@nebula.js/sn-tabbed-container 1.1.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specification/spec.json +1 -1
- package/core/esm/index.js +10 -8
- package/dist/sn-tabbed-container.js +12 -10
- package/dist/sn-tabbed-container.systemjs.js +10 -8
- package/package.json +15 -15
- package/sn-tabbed-container-ext/dist/sn-tabbed-container.js +12 -10
- package/sn-tabbed-container-ext/sn-tabbed-container.qext +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-tabbed-container
|
|
2
|
+
* @nebula.js/sn-tabbed-container v2.0.0
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,l,s,c,d,u,p,h,f,m,g,b,v,y,x,E,C,S,w,R,k,A,I,_,T,O,M;return{setters:[function(e){t=e.useOptions,r=e.useEffect,n=e.useState,o=e.onTakeSnapshot,i=e.useKeyboard,a=e.useMemo,l=e.useElement,s=e.useApp,c=e.useStaleLayout,d=e.useEmbed,u=e.useModel,p=e.useTranslator,h=e.useEmitter,f=e.useInteractionState,m=e.useTheme,g=e.usePromise,b=e.onContextMenu,v=e.useImperativeHandle},function(e){y=e,x=e.forwardRef,E=e.useContext,C=e.default,S=e.isValidElement,w=e.cloneElement,R=e.Children,k=e.useState,A=e.useEffect,I=e.useRef,_=e.useMemo,T=e.useCallback},function(e){O=e.default,M=e}],execute:function(){e("default",(function(e){const t=new lp({translator:e.translator});return{qae:{properties:cg,data:sg},ext:rm({env:e,propertyHandlerData:t}),component(){const r=Tm(),o=p();a((()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(L).forEach((t=>{e.add(L[t])}))}}(o)}),[o]);const{dataHandler:i,model:l,accessibility:s,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=r,{renderHelper:f,sharedContainerUtilities:m,activeTabId:g}=lg({element:u,models:r,env:e});nm({containerId:(null==l?void 0:l.id)||"",element:u,sharedContainerUtilities:m,translator:o,dataHandler:i,propertyHandlerData:t,renderHelper:f});const[b,y]=n(!0);gm({isContainerActive:b,activeTabId:g,renderHelper:f,modifiedLayout:h}),fm({element:u,accessibility:s,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:r});const{getViewState:x}=lm(f,ug);v((()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return dg(e)},updateActiveState(e){y(e)}})),[])}}}));var L={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}}};function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(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 N=Object.freeze({__proto__:null,default:j}),D="$$material";function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$.apply(null,arguments)}function z(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var B=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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],r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r,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(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}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,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),F="-ms-",q="-moz-",H="-webkit-",G="comm",V="rule",Y="decl",U="@keyframes",W=Math.abs,K=String.fromCharCode,X=Object.assign;function Z(e){return e.trim()}function J(e,t,r){return e.replace(t,r)}function Q(e,t){return e.indexOf(t)}function ee(e,t){return 0|e.charCodeAt(t)}function te(e,t,r){return e.slice(t,r)}function re(e){return e.length}function ne(e){return e.length}function oe(e,t){return t.push(e),e}var ie=1,ae=1,le=0,se=0,ce=0,de="";function ue(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ie,column:ae,length:a,return:""}}function pe(e,t){return X(ue("",null,null,"",null,null,0),e,{length:-e.length},t)}function he(){return ce=se>0?ee(de,--se):0,ae--,10===ce&&(ae=1,ie--),ce}function fe(){return ce=se<le?ee(de,se++):0,ae++,10===ce&&(ae=1,ie++),ce}function me(){return ee(de,se)}function ge(){return se}function be(e,t){return te(de,e,t)}function ve(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 ye(e){return ie=ae=1,le=re(de=e),se=0,[]}function xe(e){return de="",e}function Ee(e){return Z(be(se-1,we(91===e?e+2:40===e?e+1:e)))}function Ce(e){for(;(ce=me())&&ce<33;)fe();return ve(e)>2||ve(ce)>3?"":" "}function Se(e,t){for(;--t&&fe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return be(e,ge()+(t<6&&32==me()&&32==fe()))}function we(e){for(;fe();)switch(ce){case e:return se;case 34:case 39:34!==e&&39!==e&&we(ce);break;case 40:41===e&&we(e);break;case 92:fe()}return se}function Re(e,t){for(;fe()&&e+ce!==57&&(e+ce!==84||47!==me()););return"/*"+be(t,se-1)+"*"+K(47===e?e:fe())}function ke(e){for(;!ve(me());)fe();return be(e,se)}function Ae(e){return xe(Ie("",null,null,null,[""],e=ye(e),0,[0],e))}function Ie(e,t,r,n,o,i,a,l,s){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,g=1,b=1,v=0,y="",x=o,E=i,C=n,S=y;g;)switch(f=v,v=fe()){case 40:if(108!=f&&58==ee(S,u-1)){-1!=Q(S+=J(Ee(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Ee(v);break;case 9:case 10:case 13:case 32:S+=Ce(f);break;case 92:S+=Se(ge()-1,7);continue;case 47:switch(me()){case 42:case 47:oe(Te(Re(fe(),ge()),t,r),s);break;default:S+="/"}break;case 123*m:l[c++]=re(S)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+d:-1==b&&(S=J(S,/\f/g,"")),h>0&&re(S)-u&&oe(h>32?Oe(S+";",n,r,u-1):Oe(J(S," ","")+";",n,r,u-2),s);break;case 59:S+=";";default:if(oe(C=_e(S,t,r,c,d,o,l,y,x=[],E=[],u),i),123===v)if(0===d)Ie(S,t,C,C,x,i,u,l,E);else switch(99===p&&110===ee(S,3)?100:p){case 100:case 108:case 109:case 115:Ie(e,C,C,n&&oe(_e(e,C,C,0,0,o,l,y,o,x=[],u),E),o,E,u,l,n?x:E);break;default:Ie(S,C,C,C,[""],E,0,l,E)}}c=d=h=0,m=b=1,y=S="",u=a;break;case 58:u=1+re(S),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==he())continue;switch(S+=K(v),v*m){case 38:b=d>0?1:(S+="\f",-1);break;case 44:l[c++]=(re(S)-1)*b,b=1;break;case 64:45===me()&&(S+=Ee(fe())),p=me(),d=u=re(y=S+=ke(ge())),v++;break;case 45:45===f&&2==re(S)&&(m=0)}}return i}function _e(e,t,r,n,o,i,a,l,s,c,d){for(var u=o-1,p=0===o?i:[""],h=ne(p),f=0,m=0,g=0;f<n;++f)for(var b=0,v=te(e,u+1,u=W(m=a[f])),y=e;b<h;++b)(y=Z(m>0?p[b]+" "+v:J(v,/&\f/g,p[b])))&&(s[g++]=y);return ue(e,t,r,0===o?V:l,s,c,d)}function Te(e,t,r){return ue(e,t,r,G,K(ce),te(e,2,-2),0)}function Oe(e,t,r,n){return ue(e,t,r,Y,te(e,0,n),te(e,n+1,-1),n)}function Me(e,t){for(var r="",n=ne(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Le(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Y:return e.return=e.return||e.value;case G:return"";case U:return e.return=e.value+"{"+Me(e.children,n)+"}";case V:e.value=e.props.join(",")}return re(r=Me(e.children,n))?e.return=e.value+"{"+r+"}":""}function Pe(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var je=function(e,t,r){for(var n=0,o=0;n=o,o=me(),38===n&&12===o&&(t[r]=1),!ve(o);)fe();return be(e,se)},Ne=function(e,t){return xe(function(e,t){var r=-1,n=44;do{switch(ve(n)){case 0:38===n&&12===me()&&(t[r]=1),e[r]+=je(se-1,t,r);break;case 2:e[r]+=Ee(n);break;case 4:if(44===n){e[++r]=58===me()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=K(n)}}while(n=fe());return e}(ye(e),t))},De=new WeakMap,$e=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||De.get(r))&&!n){De.set(e,!0);for(var o=[],i=Ne(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},ze=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Be=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Fe=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},qe=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},He=function(e,t,r){Fe(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),qe(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!Fe(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),qe(e)))};function Ge(e,t){switch(function(e,t){return 45^ee(e,0)?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}(e,t)){case 5103:return H+"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 H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+q+e+F+e+e;case 6828:case 4268:return H+e+F+e+e;case 6165:return H+e+F+"flex-"+e+e;case 5187:return H+e+J(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return H+e+F+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return H+e+F+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+F+J(e,"shrink","negative")+e;case 5292:return H+e+F+J(e,"basis","preferred-size")+e;case 6060:return H+"box-"+J(e,"-grow","")+H+e+F+J(e,"grow","positive")+e;case 4554:return H+J(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,H+"$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(re(e)-1-t>6)switch(ee(e,t+1)){case 109:if(45!==ee(e,t+4))break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+q+(108==ee(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Q(e,"stretch")?Ge(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ee(e,t+1))break;case 6444:switch(ee(e,re(e)-3-(~Q(e,"!important")&&10))){case 107:return J(e,":",":"+H)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(45===ee(e,14)?"inline-":"")+"box$3$1"+H+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+F+e+e}return e}var Ve,Ye=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=Ge(e.value,e.length);break;case U:return Me([pe(e,{value:J(e.value,"@","@"+H)})],n);case V: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 Me([pe(e,{props:[J(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Me([pe(e,{props:[J(t,/:(plac\w+)/,":"+H+"input-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,":-moz-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,F+"input-$1")]})],n)}return""}))}}],Ue=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Ve=function(e){var t=e.match(Ue);if(t)return t[t.length-1]};var We=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Ye;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)}));var s=[$e,ze];s.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:n,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(Be(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return p.compat}}),He);var c,d=[Le,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==G&&c.insert(e.value+"{}"))}],u=function(e){var t=ne(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(s.concat(n,d));i=function(e,t,r,n){if(c=r,Ve){var o=Ve(t.styles);o&&(c={insert:function(e){r.insert(e+o)}})}!function(e){Me(Ae(e),u)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new B({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(l),p};function Ke(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xe={exports:{}},Ze={},Je="function"==typeof Symbol&&Symbol.for,Qe=Je?Symbol.for("react.element"):60103,et=Je?Symbol.for("react.portal"):60106,tt=Je?Symbol.for("react.fragment"):60107,rt=Je?Symbol.for("react.strict_mode"):60108,nt=Je?Symbol.for("react.profiler"):60114,ot=Je?Symbol.for("react.provider"):60109,it=Je?Symbol.for("react.context"):60110,at=Je?Symbol.for("react.async_mode"):60111,lt=Je?Symbol.for("react.concurrent_mode"):60111,st=Je?Symbol.for("react.forward_ref"):60112,ct=Je?Symbol.for("react.suspense"):60113,dt=Je?Symbol.for("react.suspense_list"):60120,ut=Je?Symbol.for("react.memo"):60115,pt=Je?Symbol.for("react.lazy"):60116,ht=Je?Symbol.for("react.block"):60121,ft=Je?Symbol.for("react.fundamental"):60117,mt=Je?Symbol.for("react.responder"):60118,gt=Je?Symbol.for("react.scope"):60119;function bt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Qe:switch(e=e.type){case at:case lt:case tt:case nt:case rt:case ct:return e;default:switch(e=e&&e.$$typeof){case it:case st:case pt:case ut:case ot:return e;default:return t}}case et:return t}}}function vt(e){return bt(e)===lt}Ze.AsyncMode=at,Ze.ConcurrentMode=lt,Ze.ContextConsumer=it,Ze.ContextProvider=ot,Ze.Element=Qe,Ze.ForwardRef=st,Ze.Fragment=tt,Ze.Lazy=pt,Ze.Memo=ut,Ze.Portal=et,Ze.Profiler=nt,Ze.StrictMode=rt,Ze.Suspense=ct,Ze.isAsyncMode=function(e){return vt(e)||bt(e)===at},Ze.isConcurrentMode=vt,Ze.isContextConsumer=function(e){return bt(e)===it},Ze.isContextProvider=function(e){return bt(e)===ot},Ze.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qe},Ze.isForwardRef=function(e){return bt(e)===st},Ze.isFragment=function(e){return bt(e)===tt},Ze.isLazy=function(e){return bt(e)===pt},Ze.isMemo=function(e){return bt(e)===ut},Ze.isPortal=function(e){return bt(e)===et},Ze.isProfiler=function(e){return bt(e)===nt},Ze.isStrictMode=function(e){return bt(e)===rt},Ze.isSuspense=function(e){return bt(e)===ct},Ze.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tt||e===lt||e===nt||e===rt||e===ct||e===dt||"object"==typeof e&&null!==e&&(e.$$typeof===pt||e.$$typeof===ut||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===ft||e.$$typeof===mt||e.$$typeof===gt||e.$$typeof===ht)},Ze.typeOf=bt,Xe.exports=Ze;var yt=Xe.exports,xt={};xt[yt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xt[yt.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Et(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var Ct=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},St=function(e,t,r){Ct(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var wt={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},Rt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",kt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",At=/[A-Z]|^ms/g,It=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_t=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Ot=Pe((function(e){return _t(e)?e:e.replace(At,"-$&").toLowerCase()})),Mt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(It,(function(e,t,r){return Ft={name:t,styles:r,next:Ft},t}))}return 1===wt[e]||_t(e)||"number"!=typeof t||0===t?t:t+"px"},Lt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Pt=["normal","none","initial","inherit","unset"],jt=Mt,Nt=/^-ms-/,Dt=/-(.)/g,$t={};Mt=function(e,t){if("content"===e&&("string"!=typeof t||-1===Pt.indexOf(t)&&!Lt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=jt(e,t);return""===r||_t(e)||-1===e.indexOf("-")||void 0!==$t[e]||($t[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Nt,"ms-").replace(Dt,(function(e,t){return t.toUpperCase()}))+"?")),r};var zt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bt(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(n))throw new Error(zt);return n}switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Ft={name:o.name,styles:o.styles,next:Ft},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ft={name:a.name,styles:a.styles,next:Ft},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Bt(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?n+=i+"{"+t[l]+"}":Tt(l)&&(n+=Ot(i)+":"+Mt(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(zt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Bt(e,t,a);switch(i){case"animation":case"animationName":n+=Ot(i)+":"+s+";";break;default:"undefined"===i&&console.error(kt),n+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Tt(a[c])&&(n+=Ot(i)+":"+Mt(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var l=Ft,s=r(e);return Ft=l,Bt(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=r.replace(It,(function(e,t,r){var n="animation"+c.length;return c.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=r;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Ft,qt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ht(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Ft=void 0;var i=e[0];if(null==i||void 0===i.raw)n=!1,o+=Bt(r,t,i);else{var a=i;void 0===a[0]&&console.error(Rt),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Bt(r,t,e[l]),n){var s=i;void 0===s[l]&&console.error(Rt),o+=s[l]}qt.lastIndex=0;for(var c,d="";null!==(c=qt.exec(o));)d+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+d;return{name:u,styles:o,next:Ft,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var Gt=!!y.useInsertionEffect&&y.useInsertionEffect,Vt=Gt||function(e){return e()},Yt=Gt||y.useLayoutEffect,Ut=y.createContext("undefined"!=typeof HTMLElement?We({key:"css"}):null);Ut.displayName="EmotionCacheContext";var Wt=Ut.Provider,Kt=function(e){return x((function(t,r){var n=E(Ut);return e(t,n,r)}))},Xt=y.createContext({});Xt.displayName="EmotionThemeContext";var Zt={}.hasOwnProperty,Jt=function(e){var t=e.split(".");return t[t.length-1]},Qt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Jt(t[1]):void 0},er=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),tr=function(e){return e.replace(/\$/g,"-")},rr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",or=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var n in t)Zt.call(t,n)&&(r[n]=t[n]);if(r[rr]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),r=0;r<t.length;r++){var n=Qt(t[r]);if(n){if(er.has(n))break;if(/^[A-Z]/.test(n))return tr(n)}}}((new Error).stack);o&&(r[nr]=o)}return r},ir=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ct(t,r,n),Vt((function(){return St(t,r,n)})),null},ar=Kt((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[rr],i=[n],a="";"string"==typeof e.className?a=Et(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Ht(i,void 0,y.useContext(Xt));if(-1===l.name.indexOf("-")){var s=e[nr];s&&(l=Ht([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var c={};for(var d in e)Zt.call(e,d)&&"css"!==d&&d!==rr&&d!==nr&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),y.createElement(y.Fragment,null,y.createElement(ir,{cache:t,serialized:l,isStringTag:"string"==typeof o}),y.createElement(o,c))}));ar.displayName="EmotionCssPropInternal";var lr,sr,cr=ar,dr=function(e,t){var r=arguments;if(null==t||!Zt.call(t,"css"))return y.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=cr,o[1]=or(e,t);for(var i=2;i<n;i++)o[i]=r[i];return y.createElement.apply(null,o)};lr=dr||(dr={}),sr||(sr=lr.JSX||(lr.JSX={}));var ur=!1,pr=Kt((function(e,t){!ur&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ur=!0);var r=Ht([e.styles],void 0,y.useContext(Xt)),n=y.useRef();return Yt((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),n.current=[o,i],function(){o.flush()}}),[t]),Yt((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&St(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function hr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ht(t)}function fr(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}pr.displayName="EmotionGlobal";var mr=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var gr=function(e){var t=e.cache,r=e.serializedArr;return Vt((function(){for(var e=0;e<r.length;e++)St(t,r[e],!1)})),null},br=Kt((function(e,t){var r=!1,n=[],o=function(){if(r)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Ht(o,t.registered);return n.push(a),Ct(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(r)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,r){var n=[],o=Et(e,n,r);return n.length<2?r:o+t(n)}(t.registered,o,mr(n))},theme:y.useContext(Xt)},a=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(gr,{cache:t,serializedArr:n}),a)}));br.displayName="EmotionClassNames";var vr="undefined"!=typeof document,yr="undefined"!=typeof jest||"undefined"!=typeof vi;if(vr&&!yr){var xr="undefined"!=typeof globalThis?globalThis:vr?window:global,Er="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";xr[Er]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),xr[Er]=!0}var Cr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Sr=Pe((function(e){return Cr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),wr=function(e){return"theme"!==e},Rr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Sr:wr},kr=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ar="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Ir=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ct(t,r,n),Vt((function(){return St(t,r,n)})),null},_r=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=kr(t,r,i),s=l||Rr(a),c=!s("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&u.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(Ar),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(Ar),u.push(d[f],p[f])}var m=Kt((function(e,t,r){var n=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(Xt)}"string"==typeof e.className?i=Et(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Ht(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?Rr(n):s,g={};for(var b in e)c&&"as"===b||m(b)&&(g[b]=e[b]);return g.className=i,r&&(g.ref=r),y.createElement(y.Fragment,null,y.createElement(Ir,{cache:t,serialized:f,isStringTag:"string"==typeof n}),y.createElement(n,g))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,n){return e(t,$({},r,n,{shouldForwardProp:kr(m,n,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){_r[e]=_r(e)}));var Tr={exports:{}},Or={},Mr=C,Lr=Symbol.for("react.element"),Pr=Symbol.for("react.fragment"),jr=Object.prototype.hasOwnProperty,Nr=Mr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dr={key:!0,ref:!0,__self:!0,__source:!0};function $r(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)jr.call(t,n)&&!Dr.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Lr,type:e,key:i,ref:a,props:o,_owner:Nr.current}}Or.Fragment=Pr,Or.jsx=$r,Or.jsxs=$r,Tr.exports=Or;var zr=Tr.exports;let Br;function Fr(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return zr.jsx(pr,{styles:n})}
|
|
7
|
+
System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use strict";var t,r,n,o,i,a,l,s,c,d,u,p,h,f,m,b,g,v,y,x,E,S,C,w,R,k,A,_,I,T,L,O;return{setters:[function(e){t=e.useOptions,r=e.useEffect,n=e.useState,o=e.onTakeSnapshot,i=e.useKeyboard,a=e.useMemo,l=e.useElement,s=e.useApp,c=e.useStaleLayout,d=e.useEmbed,u=e.useModel,p=e.useTranslator,h=e.useEmitter,f=e.useInteractionState,m=e.useTheme,b=e.usePromise,g=e.onContextMenu,v=e.useImperativeHandle},function(e){y=e,x=e.forwardRef,E=e.useContext,S=e.default,C=e.isValidElement,w=e.cloneElement,R=e.Children,k=e.useState,A=e.useEffect,_=e.useRef,I=e.useMemo,T=e.useCallback},function(e){L=e.default,O=e}],execute:function(){e("default",(function(e){const t=new mp({translator:e.translator});return{qae:{properties:vb,data:gb},ext:um({env:e,propertyHandlerData:t}),component(){const r=Bm(),o=p();a((()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(P).forEach((t=>{e.add(P[t])}))}}(o)}),[o]);const{dataHandler:i,model:l,accessibility:s,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=r,{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=bb({element:u,models:r,env:e});pm({containerId:(null==l?void 0:l.id)||"",element:u,sharedContainerUtilities:m,translator:o,dataHandler:i,propertyHandlerData:t,renderHelper:f});const[g,y]=n(!0);Rm({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:h}),Cm({element:u,accessibility:s,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:r});const{getViewState:x}=bm(f,xb);v((()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return yb(e)},updateActiveState(e){y(e)}})),[])}}}));var P={Container_Label_Visualizations:{id:"Container.Label.Visualizations",locale:{"de-DE":"Visualisierungen","en-US":"Visualizations","es-ES":"Visualizaciones","fr-FR":"Visualisations","it-IT":"Visualizzazioni","ja-JP":"ビジュアライゼーション","ko-KR":"시각화","nl-NL":"Visualisaties","pl-PL":"Wizualizacje","pt-BR":"Visualizações","ru-RU":"Визуализации","sv-SE":"Visualiseringar","tr-TR":"Görselleştirmeler","zh-CN":"可视化","zh-TW":"視覺化"}},LayoutContainer_EmptyList_AddContent:{id:"LayoutContainer.EmptyList.AddContent",locale:{"de-DE":"Inhalt hinzufügen","en-US":"Add content","es-ES":"Añadir contenido","fr-FR":"Ajouter un contenu","it-IT":"Aggiungi contenuto","ja-JP":"コンテンツを追加","ko-KR":"콘텐츠 추가","nl-NL":"Inhoud toevoegen","pl-PL":"Dodaj zawartość","pt-BR":"Adicionar conteúdo","ru-RU":"Добавить содержимое","sv-SE":"Lägg till innehåll","tr-TR":"İçerik ekle","zh-CN":"添加内容","zh-TW":"新增內容"}},LayoutContainer_EmptyList_EmptyHint:{id:"LayoutContainer.EmptyList.EmptyHint",locale:{"de-DE":"Leere Sammelbox","en-US":"Empty container","es-ES":"Contenedor vacío","fr-FR":"Conteneur vide","it-IT":"Contenitore vuoto","ja-JP":"コンテナが空です","ko-KR":"빈 컨테이너","nl-NL":"Lege container","pl-PL":"Pusty kontener","pt-BR":"Contêiner vazio","ru-RU":"Пустой контейнер","sv-SE":"Tom behållare","tr-TR":"Kapsayıcı boş","zh-CN":"空容器","zh-TW":"空的容器"}},LayoutContainer_Object_Charts:{id:"LayoutContainer.Object.Charts",locale:{"de-DE":"Diagramme","en-US":"Charts","es-ES":"Gráficos","fr-FR":"Graphiques","it-IT":"Grafici","ja-JP":"チャート","ko-KR":"차트","nl-NL":"Diagrammen","pl-PL":"Wykresy","pt-BR":"Gráficos","ru-RU":"Диаграммы","sv-SE":"Diagram","tr-TR":"Grafikler","zh-CN":"图表","zh-TW":"圖表"}},LayoutContainer_Object_CustomObjects:{id:"LayoutContainer.Object.CustomObjects",locale:{"de-DE":"Benutzerdefinierte Objekte","en-US":"Custom objects","es-ES":"Objetos personalizados","fr-FR":"Objets personnalisés","it-IT":"Oggetti personalizzati","ja-JP":"カスタム オブジェクト","ko-KR":"사용자 지정 개체","nl-NL":"Aangepaste objecten","pl-PL":"Obiekty niestandardowe","pt-BR":"Objetos personalizados","ru-RU":"Пользовательские объекты","sv-SE":"Anpassade objekt","tr-TR":"Özel nesneler","zh-CN":"自定义对象","zh-TW":"自訂物件"}},LayoutContainer_Object_Description:{id:"LayoutContainer.Object.Description",locale:{"de-DE":"Die Sammelbox besteht aus folgenden Objekten: {0}. Verwenden Sie zum Navigieren die Nach-links- und Nach-rechts-Pfeiltasten. Drücken Sie die Eingabetaste oder die Leertaste, um die Diagramme auszuwählen.","en-US":"Container consists of the following objects: {0}. Use left and right arrow keys to navigate through the inner charts. Press enter or space to select the charts.","es-ES":"El contenedor consta de los siguientes objetos: {0}. Utilice las teclas de flecha izquierda y derecha para navegar por los gráficos interiores. Pulse Intro o espacio para seleccionar los gráficos.","fr-FR":"Le conteneur comprend les objets suivants : {0}. Utilisez les touches de direction gauche et droite pour parcourir les graphiques internes. Appuyez sur la touche Entrée ou espace pour sélectionner les graphiques.","it-IT":"Il contenitore include i seguenti oggetti: {0}. Utilizzare i tasti freccia sinistro e destro per navigare tra i grafici interni. Per selezionare i grafici, premere Invio o Spazio.","ja-JP":"コンテナは以下のオブジェクトで構成されます: {0}。左右の矢印キーを使用して、内部のチャートをナビゲートします。Enter キーかスペース キーを押してチャートを選択します。","ko-KR":"컨테이너는 다음 개체로 구성됩니다. {0}. 왼쪽 및 오른쪽 화살표 키를 사용하여 내부 차트를 탐색하십시오. 차트를 선택하려면 Enter 키나 스페이스바를 누르십시오.","nl-NL":"Container bevat de volgende objecten: {0}. Navigeer met de pijl-links en pijl-rechts langs de binnenste diagrammen. Druk op Enter of de spatiebalk om de diagrammen te selecteren.","pl-PL":"Kontener zawiera następujące obiekty: {0}. Do nawigacji po wewnętrznych wykresach użyj lewego i prawego klawisza strzałki. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać wykresy.","pt-BR":"O contêiner consiste nos seguintes objetos: {0}. Use as setas para a esquerda e para a direita para navegar pelos gráficos internos. Pressione Enter ou espaço para selecionar os gráficos.","ru-RU":"Контейнер состоит из следующих объектов: {0}. Для навигации по внутренним диаграммам используйте клавиши со стрелками влево и вправо. Нажмите клавишу Enter или пробел, чтобы выбрать диаграммы.","sv-SE":"Behållaren innehåller följande objekt: {0}. Använd vänster och höger piltangent för att navigera genom de inre diagrammen. Tryck på returtangenten eller mellanslag för att välja diagram.","tr-TR":"Kapsayıcı şu nesneleri içerir: {0}. İç grafikler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Grafik seçmek için enter veya boşluk tuşuna basın.","zh-CN":"容器由以下对象组成:{0}。使用左右箭头键浏览内部图表。按回车或空格键选择图表。","zh-TW":"容器由下列物件組成:{0}。使用向左和向右方向鍵瀏覽內部圖表。按下 Enter 或空間以選取圖表。"}},LayoutContainer_Object_MasterItems:{id:"LayoutContainer.Object.MasterItems",locale:{"de-DE":"Master-Elemente","en-US":"Master items","es-ES":"Elementos maestros","fr-FR":"Éléments principaux","it-IT":"Voci principali","ja-JP":"マスター アイテム","ko-KR":"마스터 항목","nl-NL":"Masteritems","pl-PL":"Elementy główne","pt-BR":"Itens mestre","ru-RU":"Основные элементы","sv-SE":"Originalobjekt","tr-TR":"Ana öğeler","zh-CN":"主条目","zh-TW":"主項目"}},LayoutContainer_Object_Untitled:{id:"LayoutContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}},TabContainer_Navigation_Horizontal:{id:"TabContainer.Navigation.Horizontal",locale:{"de-DE":"Verwenden Sie die Nach-links- und Nach-rechts-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use left and right arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha izquierda y derecha para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches gauche et droite pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Utilizzare i tasti freccia destra e sinistra per navigare tra le schede. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"左右の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 왼쪽 및 오른쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-links en pijl-rechts om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w lewo i w prawo. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para a esquerda e para a direita para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки влево и вправо для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd vänster och höger piltangent för att navigera mellan flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için sağ ve sol ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用左右箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向左和向右方向鍵瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Navigation_Vertical:{id:"TabContainer.Navigation.Vertical",locale:{"de-DE":"Verwenden Sie die Nach-unten- und Nach-oben-Pfeiltasten, um durch die Registerkarten zu navigieren. Drücken Sie die Eingabetaste oder die Leertaste, um die Registerkarten auszuwählen.","en-US":"Use up and down arrow keys to navigate through the tabs. Press Enter or Space to select the tabs.","es-ES":"Utilice las teclas de flecha arriba y abajo para navegar por las pestañas. Pulse Intro o Espacio para seleccionar las pestañas.","fr-FR":"Utilisez les touches des flèches haut et bas pour naviguer à travers les onglets. Appuyez sur la touche Entrée ou Espace pour sélectionner les onglets.","it-IT":"Per navigare tra le schede, usare i tasti freccia su e giù. Per selezionare le schede, premere Invio o Spazio.","ja-JP":"上下の矢印キーで、タブ間を移動できます。Enter キーかスペース キーを押せば、タブを選択できます。","ko-KR":"탭을 탐색하려면 위쪽 및 아래쪽 화살표 키를 사용합니다. 탭을 선택하려면 Enter 키 또는 스페이스바를 누르십시오.","nl-NL":"Gebruik de pijl-omhoog en pijl-omlaag om te navigeren tussen de tabbladen. Druk op Enter of de spatiebalk om de tabbladen te selecteren.","pl-PL":"Do poruszania się po kartach użyj klawiszy strzałek w górę i w dół. Naciśnij klawisz Enter lub klawisz spacji, aby wybrać karty.","pt-BR":"Use as setas para cima e para baixo para navegar pelas guias. Pressione Enter ou Espaço para selecionar as guias.","ru-RU":'Используйте стрелки вверх и вниз для навигации по вкладкам. Нажмите Enter или "Пробел", чтобы выбрать вкладку.',"sv-SE":"Använd piltangenterna upp och ner för att navigera genom flikarna. Tryck på returtangenten eller mellanslag för att välja flikar.","tr-TR":"Sekmeler arasında gezinmek için yukarı ve aşağı ok tuşlarını kullanın. Sekme seçmek için Enter veya Boşluk tuşuna basın.","zh-CN":"使用上下箭头键浏览选项卡。按 Enter 或空格键选择选项卡。","zh-TW":"使用向上和向下方向鍵以瀏覽索引標籤。按下 Enter 或空格鍵以選取索引標籤。"}},TabContainer_Object_Description:{id:"TabContainer.Object.Description",locale:{"de-DE":"Die Registerkarten-Sammelbox besteht aus folgenden Objekten: {0}.","en-US":"Tab container consists of the following objects: {0}.","es-ES":"El contenedor de pestañas contiene los siguientes objetos: {0}.","fr-FR":"Le conteneur d'onglets comprend les objets suivants : {0}.","it-IT":"Il contenitore a schede include i seguenti oggetti: {0}.","ja-JP":"タブ コンテナは以下のオブジェクトで構成されています: {0}。","ko-KR":"탭 컨테이너는 다음 개체로 구성됩니다. {0}.","nl-NL":"Tabbladcontainer bevat de volgende objecten: {0}.","pl-PL":"Kontener kart zawiera następujące obiekty: {0}.","pt-BR":"O contêiner de guias consiste nos seguintes objetos: {0}.","ru-RU":"Контейнер вкладок содержит следующие объекты: {0}.","sv-SE":"Flikbehållaren innehåller följande objekt: {0}.","tr-TR":"Sekme kapsayıcısı şu nesneleri içerir: {0}.","zh-CN":"选项卡容器由以下对象组成:{0}。","zh-TW":"索引標籤容器由下列物件組成:{0}。"}},TabContainer_Object_Untitled:{id:"TabContainer.Object.Untitled",locale:{"de-DE":"Unbenanntes Objekt","en-US":"Untitled object","es-ES":"Objeto sin título","fr-FR":"Objet sans titre","it-IT":"Oggetto senza nome","ja-JP":"無題のオブジェクト","ko-KR":"제목 없는 개체","nl-NL":"Object zonder titel","pl-PL":"Obiekt bez tytułu","pt-BR":"Objeto sem título","ru-RU":"Объект без названия","sv-SE":"Objekt utan namn","tr-TR":"Başlıksız nesne","zh-CN":"无标题对象","zh-TW":"無標題的物件"}}};function M(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(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 N=Object.freeze({__proto__:null,default:j}),$="$$material";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z.apply(null,arguments)}function B(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var D=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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],r=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(r&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!r,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(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}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,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),F="-ms-",G="-moz-",H="-webkit-",W="comm",Y="rule",U="decl",V="@keyframes",q=Math.abs,K=String.fromCharCode,X=Object.assign;function Z(e){return e.trim()}function J(e,t,r){return e.replace(t,r)}function Q(e,t){return e.indexOf(t)}function ee(e,t){return 0|e.charCodeAt(t)}function te(e,t,r){return e.slice(t,r)}function re(e){return e.length}function ne(e){return e.length}function oe(e,t){return t.push(e),e}var ie=1,ae=1,le=0,se=0,ce=0,de="";function ue(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ie,column:ae,length:a,return:""}}function pe(e,t){return X(ue("",null,null,"",null,null,0),e,{length:-e.length},t)}function he(){return ce=se>0?ee(de,--se):0,ae--,10===ce&&(ae=1,ie--),ce}function fe(){return ce=se<le?ee(de,se++):0,ae++,10===ce&&(ae=1,ie++),ce}function me(){return ee(de,se)}function be(){return se}function ge(e,t){return te(de,e,t)}function ve(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 ye(e){return ie=ae=1,le=re(de=e),se=0,[]}function xe(e){return de="",e}function Ee(e){return Z(ge(se-1,we(91===e?e+2:40===e?e+1:e)))}function Se(e){for(;(ce=me())&&ce<33;)fe();return ve(e)>2||ve(ce)>3?"":" "}function Ce(e,t){for(;--t&&fe()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return ge(e,be()+(t<6&&32==me()&&32==fe()))}function we(e){for(;fe();)switch(ce){case e:return se;case 34:case 39:34!==e&&39!==e&&we(ce);break;case 40:41===e&&we(e);break;case 92:fe()}return se}function Re(e,t){for(;fe()&&e+ce!==57&&(e+ce!==84||47!==me()););return"/*"+ge(t,se-1)+"*"+K(47===e?e:fe())}function ke(e){for(;!ve(me());)fe();return ge(e,se)}function Ae(e){return xe(_e("",null,null,null,[""],e=ye(e),0,[0],e))}function _e(e,t,r,n,o,i,a,l,s){for(var c=0,d=0,u=a,p=0,h=0,f=0,m=1,b=1,g=1,v=0,y="",x=o,E=i,S=n,C=y;b;)switch(f=v,v=fe()){case 40:if(108!=f&&58==ee(C,u-1)){-1!=Q(C+=J(Ee(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=Ee(v);break;case 9:case 10:case 13:case 32:C+=Se(f);break;case 92:C+=Ce(be()-1,7);continue;case 47:switch(me()){case 42:case 47:oe(Te(Re(fe(),be()),t,r),s);break;default:C+="/"}break;case 123*m:l[c++]=re(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(C=J(C,/\f/g,"")),h>0&&re(C)-u&&oe(h>32?Le(C+";",n,r,u-1):Le(J(C," ","")+";",n,r,u-2),s);break;case 59:C+=";";default:if(oe(S=Ie(C,t,r,c,d,o,l,y,x=[],E=[],u),i),123===v)if(0===d)_e(C,t,S,S,x,i,u,l,E);else switch(99===p&&110===ee(C,3)?100:p){case 100:case 108:case 109:case 115:_e(e,S,S,n&&oe(Ie(e,S,S,0,0,o,l,y,o,x=[],u),E),o,E,u,l,n?x:E);break;default:_e(C,S,S,S,[""],E,0,l,E)}}c=d=h=0,m=g=1,y=C="",u=a;break;case 58:u=1+re(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==he())continue;switch(C+=K(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(re(C)-1)*g,g=1;break;case 64:45===me()&&(C+=Ee(fe())),p=me(),d=u=re(y=C+=ke(be())),v++;break;case 45:45===f&&2==re(C)&&(m=0)}}return i}function Ie(e,t,r,n,o,i,a,l,s,c,d){for(var u=o-1,p=0===o?i:[""],h=ne(p),f=0,m=0,b=0;f<n;++f)for(var g=0,v=te(e,u+1,u=q(m=a[f])),y=e;g<h;++g)(y=Z(m>0?p[g]+" "+v:J(v,/&\f/g,p[g])))&&(s[b++]=y);return ue(e,t,r,0===o?Y:l,s,c,d)}function Te(e,t,r){return ue(e,t,r,W,K(ce),te(e,2,-2),0)}function Le(e,t,r,n){return ue(e,t,r,U,te(e,0,n),te(e,n+1,-1),n)}function Oe(e,t){for(var r="",n=ne(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Pe(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case W:return"";case V:return e.return=e.value+"{"+Oe(e.children,n)+"}";case Y:e.value=e.props.join(",")}return re(r=Oe(e.children,n))?e.return=e.value+"{"+r+"}":""}function Me(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var je=function(e,t,r){for(var n=0,o=0;n=o,o=me(),38===n&&12===o&&(t[r]=1),!ve(o);)fe();return ge(e,se)},Ne=function(e,t){return xe(function(e,t){var r=-1,n=44;do{switch(ve(n)){case 0:38===n&&12===me()&&(t[r]=1),e[r]+=je(se-1,t,r);break;case 2:e[r]+=Ee(n);break;case 4:if(44===n){e[++r]=58===me()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=K(n)}}while(n=fe());return e}(ye(e),t))},$e=new WeakMap,ze=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||$e.get(r))&&!n){$e.set(e,!0);for(var o=[],i=Ne(t,o),a=r.props,l=0,s=0;l<i.length;l++)for(var c=0;c<a.length;c++,s++)e.props[s]=o[l]?i[l].replace(/&\f/g,a[c]):a[c]+" "+i[l]}}},Be=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},De=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},Fe=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Ge=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},He=function(e,t,r){Fe(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ge(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!Fe(t[r]))return!0;return!1}(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ge(e)))};function We(e,t){switch(function(e,t){return 45^ee(e,0)?(((t<<2^ee(e,0))<<2^ee(e,1))<<2^ee(e,2))<<2^ee(e,3):0}(e,t)){case 5103:return H+"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 H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+G+e+F+e+e;case 6828:case 4268:return H+e+F+e+e;case 6165:return H+e+F+"flex-"+e+e;case 5187:return H+e+J(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return H+e+F+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return H+e+F+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+F+J(e,"shrink","negative")+e;case 5292:return H+e+F+J(e,"basis","preferred-size")+e;case 6060:return H+"box-"+J(e,"-grow","")+H+e+F+J(e,"grow","positive")+e;case 4554:return H+J(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,H+"$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(re(e)-1-t>6)switch(ee(e,t+1)){case 109:if(45!==ee(e,t+4))break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+G+(108==ee(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Q(e,"stretch")?We(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ee(e,t+1))break;case 6444:switch(ee(e,re(e)-3-(~Q(e,"!important")&&10))){case 107:return J(e,":",":"+H)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(45===ee(e,14)?"inline-":"")+"box$3$1"+H+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(ee(e,t+11)){case 114:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+F+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+F+e+e}return e}var Ye,Ue=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=We(e.value,e.length);break;case V:return Oe([pe(e,{value:J(e.value,"@","@"+H)})],n);case Y: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 Oe([pe(e,{props:[J(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Oe([pe(e,{props:[J(t,/:(plac\w+)/,":"+H+"input-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,":-moz-$1")]}),pe(e,{props:[J(t,/:(plac\w+)/,F+"input-$1")]})],n)}return""}))}}],Ve=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Ye=function(e){var t=e.match(Ve);if(t)return t[t.length-1]};var qe=function(e){var t=e.key;if(!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n=e.stylisPlugins||Ue;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;l.push(e)}));var s=[ze,Be];s.push(function(e){return function(t,r,n){if("rule"===t.type&&!e.compat){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=t.parent?t.parent.children:n,a=i.length-1;a>=0;a--){var l=i[a];if(l.line<t.line)break;if(l.column<t.column){if(De(l))return;break}}o.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return p.compat}}),He);var c,d=[Pe,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==W&&c.insert(e.value+"{}"))}],u=function(e){var t=ne(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](r,n,o,i)||"";return a}}(s.concat(n,d));i=function(e,t,r,n){if(c=r,Ye){var o=Ye(t.styles);o&&(c={insert:function(e){r.insert(e+o)}})}!function(e){Oe(Ae(e),u)}(e?e+"{"+t.styles+"}":t.styles),n&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new D({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(l),p};function Ke(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Xe={exports:{}},Ze={},Je="function"==typeof Symbol&&Symbol.for,Qe=Je?Symbol.for("react.element"):60103,et=Je?Symbol.for("react.portal"):60106,tt=Je?Symbol.for("react.fragment"):60107,rt=Je?Symbol.for("react.strict_mode"):60108,nt=Je?Symbol.for("react.profiler"):60114,ot=Je?Symbol.for("react.provider"):60109,it=Je?Symbol.for("react.context"):60110,at=Je?Symbol.for("react.async_mode"):60111,lt=Je?Symbol.for("react.concurrent_mode"):60111,st=Je?Symbol.for("react.forward_ref"):60112,ct=Je?Symbol.for("react.suspense"):60113,dt=Je?Symbol.for("react.suspense_list"):60120,ut=Je?Symbol.for("react.memo"):60115,pt=Je?Symbol.for("react.lazy"):60116,ht=Je?Symbol.for("react.block"):60121,ft=Je?Symbol.for("react.fundamental"):60117,mt=Je?Symbol.for("react.responder"):60118,bt=Je?Symbol.for("react.scope"):60119;function gt(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Qe:switch(e=e.type){case at:case lt:case tt:case nt:case rt:case ct:return e;default:switch(e=e&&e.$$typeof){case it:case st:case pt:case ut:case ot:return e;default:return t}}case et:return t}}}function vt(e){return gt(e)===lt}Ze.AsyncMode=at,Ze.ConcurrentMode=lt,Ze.ContextConsumer=it,Ze.ContextProvider=ot,Ze.Element=Qe,Ze.ForwardRef=st,Ze.Fragment=tt,Ze.Lazy=pt,Ze.Memo=ut,Ze.Portal=et,Ze.Profiler=nt,Ze.StrictMode=rt,Ze.Suspense=ct,Ze.isAsyncMode=function(e){return vt(e)||gt(e)===at},Ze.isConcurrentMode=vt,Ze.isContextConsumer=function(e){return gt(e)===it},Ze.isContextProvider=function(e){return gt(e)===ot},Ze.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qe},Ze.isForwardRef=function(e){return gt(e)===st},Ze.isFragment=function(e){return gt(e)===tt},Ze.isLazy=function(e){return gt(e)===pt},Ze.isMemo=function(e){return gt(e)===ut},Ze.isPortal=function(e){return gt(e)===et},Ze.isProfiler=function(e){return gt(e)===nt},Ze.isStrictMode=function(e){return gt(e)===rt},Ze.isSuspense=function(e){return gt(e)===ct},Ze.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===tt||e===lt||e===nt||e===rt||e===ct||e===dt||"object"==typeof e&&null!==e&&(e.$$typeof===pt||e.$$typeof===ut||e.$$typeof===ot||e.$$typeof===it||e.$$typeof===st||e.$$typeof===ft||e.$$typeof===mt||e.$$typeof===bt||e.$$typeof===ht)},Ze.typeOf=gt,Xe.exports=Ze;var yt=Xe.exports,xt={};xt[yt.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xt[yt.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Et(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var St=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ct=function(e,t,r){St(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var wt={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},Rt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",kt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",At=/[A-Z]|^ms/g,_t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,It=function(e){return 45===e.charCodeAt(1)},Tt=function(e){return null!=e&&"boolean"!=typeof e},Lt=Me((function(e){return It(e)?e:e.replace(At,"-$&").toLowerCase()})),Ot=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_t,(function(e,t,r){return Ft={name:t,styles:r,next:Ft},t}))}return 1===wt[e]||It(e)||"number"!=typeof t||0===t?t:t+"px"},Pt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Mt=["normal","none","initial","inherit","unset"],jt=Ot,Nt=/^-ms-/,$t=/-(.)/g,zt={};Ot=function(e,t){if("content"===e&&("string"!=typeof t||-1===Mt.indexOf(t)&&!Pt.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=jt(e,t);return""===r||It(e)||-1===e.indexOf("-")||void 0!==zt[e]||(zt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Nt,"ms-").replace($t,(function(e,t){return t.toUpperCase()}))+"?")),r};var Bt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Dt(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(n))throw new Error(Bt);return n}switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Ft={name:o.name,styles:o.styles,next:Ft},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ft={name:a.name,styles:a.styles,next:Ft},a=a.next;return i.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Dt(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?n+=i+"{"+t[l]+"}":Tt(l)&&(n+=Lt(i)+":"+Ot(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Bt);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Dt(e,t,a);switch(i){case"animation":case"animationName":n+=Lt(i)+":"+s+";";break;default:"undefined"===i&&console.error(kt),n+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)Tt(a[c])&&(n+=Lt(i)+":"+Ot(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var l=Ft,s=r(e);return Ft=l,Dt(e,t,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var c=[],d=r.replace(_t,(function(e,t,r){var n="animation"+c.length;return c.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+d+"`")}var u=r;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Ft,Gt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ht(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";Ft=void 0;var i=e[0];if(null==i||void 0===i.raw)n=!1,o+=Dt(r,t,i);else{var a=i;void 0===a[0]&&console.error(Rt),o+=a[0]}for(var l=1;l<e.length;l++)if(o+=Dt(r,t,e[l]),n){var s=i;void 0===s[l]&&console.error(Rt),o+=s[l]}Gt.lastIndex=0;for(var c,d="";null!==(c=Gt.exec(o));)d+="-"+c[1];var u=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+d;return{name:u,styles:o,next:Ft,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var Wt=!!y.useInsertionEffect&&y.useInsertionEffect,Yt=Wt||function(e){return e()},Ut=Wt||y.useLayoutEffect,Vt=y.createContext("undefined"!=typeof HTMLElement?qe({key:"css"}):null);Vt.displayName="EmotionCacheContext";var qt=Vt.Provider,Kt=function(e){return x((function(t,r){var n=E(Vt);return e(t,n,r)}))},Xt=y.createContext({});Xt.displayName="EmotionThemeContext";var Zt={}.hasOwnProperty,Jt=function(e){var t=e.split(".");return t[t.length-1]},Qt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Jt(t[1]):void 0},er=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),tr=function(e){return e.replace(/\$/g,"-")},rr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",or=function(e,t){if("string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var r={};for(var n in t)Zt.call(t,n)&&(r[n]=t[n]);if(r[rr]=e,"undefined"!=typeof globalThis&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&("object"!=typeof t.css||!("name"in t.css)||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var o=function(e){if(e)for(var t=e.split("\n"),r=0;r<t.length;r++){var n=Qt(t[r]);if(n){if(er.has(n))break;if(/^[A-Z]/.test(n))return tr(n)}}}((new Error).stack);o&&(r[nr]=o)}return r},ir=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return St(t,r,n),Yt((function(){return Ct(t,r,n)})),null},ar=Kt((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[rr],i=[n],a="";"string"==typeof e.className?a=Et(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var l=Ht(i,void 0,y.useContext(Xt));if(-1===l.name.indexOf("-")){var s=e[nr];s&&(l=Ht([l,"label:"+s+";"]))}a+=t.key+"-"+l.name;var c={};for(var d in e)Zt.call(e,d)&&"css"!==d&&d!==rr&&d!==nr&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),y.createElement(y.Fragment,null,y.createElement(ir,{cache:t,serialized:l,isStringTag:"string"==typeof o}),y.createElement(o,c))}));ar.displayName="EmotionCssPropInternal";var lr,sr,cr=ar,dr=function(e,t){var r=arguments;if(null==t||!Zt.call(t,"css"))return y.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=cr,o[1]=or(e,t);for(var i=2;i<n;i++)o[i]=r[i];return y.createElement.apply(null,o)};lr=dr||(dr={}),sr||(sr=lr.JSX||(lr.JSX={}));var ur=!1,pr=Kt((function(e,t){!ur&&("className"in e&&e.className||"css"in e&&e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ur=!0);var r=Ht([e.styles],void 0,y.useContext(Xt)),n=y.useRef();return Ut((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),n.current=[o,i],function(){o.flush()}}),[t]),Ut((function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Ct(t,r.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",r,o,!1)}}),[t,r.name]),null}));function hr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ht(t)}function fr(){var e=hr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}pr.displayName="EmotionGlobal";var mr=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var i=t[n];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var l in void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="",i)i[l]&&l&&(a&&(a+=" "),a+=l);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var br=function(e){var t=e.cache,r=e.serializedArr;return Yt((function(){for(var e=0;e<r.length;e++)Ct(t,r[e],!1)})),null},gr=Kt((function(e,t){var r=!1,n=[],o=function(){if(r)throw new Error("css can only be used during render");for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];var a=Ht(o,t.registered);return n.push(a),St(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(r)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,r){var n=[],o=Et(e,n,r);return n.length<2?r:o+t(n)}(t.registered,o,mr(n))},theme:y.useContext(Xt)},a=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(br,{cache:t,serializedArr:n}),a)}));gr.displayName="EmotionClassNames";var vr="undefined"!=typeof document,yr="undefined"!=typeof jest||"undefined"!=typeof vi;if(vr&&!yr){var xr="undefined"!=typeof globalThis?globalThis:vr?window:global,Er="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";xr[Er]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),xr[Er]=!0}var Sr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Cr=Me((function(e){return Sr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),wr=function(e){return"theme"!==e},Rr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Cr:wr},kr=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ar="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",_r=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return St(t,r,n),Yt((function(){return Ct(t,r,n)})),null},Ir=function e(t,r){if(void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var n,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==r&&(n=r.label,o=r.target);var l=kr(t,r,i),s=l||Rr(a),c=!s("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&u.push("label:"+n+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(Ar),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(Ar),u.push(d[f],p[f])}var m=Kt((function(e,t,r){var n=c&&e.as||a,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=y.useContext(Xt)}"string"==typeof e.className?i=Et(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Ht(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===l?Rr(n):s,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,r&&(b.ref=r),y.createElement(y.Fragment,null,y.createElement(_r,{cache:t,serialized:f,isStringTag:"string"==typeof n}),y.createElement(n,b))}));return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,n){return e(t,z({},r,n,{shouldForwardProp:kr(m,n,!0)})).apply(void 0,u)},m}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ir[e]=Ir(e)}));var Tr={exports:{}},Lr={},Or=S,Pr=Symbol.for("react.element"),Mr=Symbol.for("react.fragment"),jr=Object.prototype.hasOwnProperty,Nr=Or.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$r={key:!0,ref:!0,__self:!0,__source:!0};function zr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)jr.call(t,n)&&!$r.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Pr,type:e,key:i,ref:a,props:o,_owner:Nr.current}}Lr.Fragment=Mr,Lr.jsx=zr,Lr.jsxs=zr,Tr.exports=Lr;var Br=Tr.exports;const Dr=new Map;function Fr(e){const{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return Br.jsx(pr,{styles:n})}
|
|
8
8
|
/**
|
|
9
|
-
* @mui/styled-engine v5.
|
|
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
|
-
*/function qr(e,t){return _r(e,t)}"object"==typeof document&&(Br=We({key:"css",prepend:!0}));var Hr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:function(e){const{injectFirst:t,children:r}=e;return t&&Br?zr.jsx(Wt,{value:Br,children:r}):r},ThemeContext:Xt,css:hr,default:qr,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:fr});function Gr(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 Vr(e){if(y.isValidElement(e)||!Gr(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Vr(e[r])})),t}function Yr(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Gr(e)&&Gr(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Gr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gr(e[o])?n[o]=Yr(e[o],t[o],r):r.clone?n[o]=Gr(t[o])?Vr(t[o]):t[o]:n[o]=t[o]})),n}var Ur=Object.freeze({__proto__:null,default:Yr,isPlainObject:Gr});const Wr=["values","unit","step"];function Kr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=z(e,Wr),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)=>$({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return $({keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Xr={borderRadius:4};function Zr(e,t){return t?Yr(e,t,{clone:!1}):e}const Jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jr[e]}px)`};function en(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Qr;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Qr;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Jr).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function tn(e){if("string"!=typeof e)throw new Error(j(7));return e.charAt(0).toUpperCase()+e.slice(1)}var rn=Object.freeze({__proto__:null,default:tn});function nn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function on(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:nn(e,r)||n,t&&(o=t(o,n,e)),o}function an(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=nn(e.theme,n)||{};return en(e,i,(e=>{let n=on(a,o,e);return e===n&&"string"==typeof e&&(n=on(a,o,`${t}${"default"===e?"":tn(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ln={m:"margin",p:"padding"},sn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!cn[e])return[e];e=cn[e]}const[t,r]=e.split(""),n=ln[t],o=sn[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),un=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function hn(e,t,r,n){var o;const i=null!=(o=nn(e,t,!1))?o:r;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 fn(e){return hn(e,"spacing",8)}function mn(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function gn(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=mn(t,r),e)),{})}(dn(r),n);return en(e,e[r],o)}function bn(e,t){const r=fn(e.theme);return Object.keys(e).map((n=>gn(e,t,n,r))).reduce(Zr,{})}function vn(e){return bn(e,un)}function yn(e){return bn(e,pn)}function xn(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Zr(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function En(e){return"number"!=typeof e?e:`${e}px solid`}function Cn(e,t){return an({prop:e,themeKey:"borders",transform:t})}vn.propTypes={},vn.filterProps=un,yn.propTypes={},yn.filterProps=pn;const Sn=Cn("border",En),wn=Cn("borderTop",En),Rn=Cn("borderRight",En),kn=Cn("borderBottom",En),An=Cn("borderLeft",En),In=Cn("borderColor"),_n=Cn("borderTopColor"),Tn=Cn("borderRightColor"),On=Cn("borderBottomColor"),Mn=Cn("borderLeftColor"),Ln=Cn("outline",En),Pn=Cn("outlineColor"),jn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=hn(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:mn(t,e)});return en(e,e.borderRadius,r)}return null};jn.propTypes={},jn.filterProps=["borderRadius"],xn(Sn,wn,Rn,kn,An,In,_n,Tn,On,Mn,jn,Ln,Pn);const Nn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=hn(e.theme,"spacing",8),r=e=>({gap:mn(t,e)});return en(e,e.gap,r)}return null};Nn.propTypes={},Nn.filterProps=["gap"];const Dn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=hn(e.theme,"spacing",8),r=e=>({columnGap:mn(t,e)});return en(e,e.columnGap,r)}return null};Dn.propTypes={},Dn.filterProps=["columnGap"];const $n=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=hn(e.theme,"spacing",8),r=e=>({rowGap:mn(t,e)});return en(e,e.rowGap,r)}return null};$n.propTypes={},$n.filterProps=["rowGap"];function zn(e,t){return"grey"===t?t:e}xn(Nn,Dn,$n,an({prop:"gridColumn"}),an({prop:"gridRow"}),an({prop:"gridAutoFlow"}),an({prop:"gridAutoColumns"}),an({prop:"gridAutoRows"}),an({prop:"gridTemplateColumns"}),an({prop:"gridTemplateRows"}),an({prop:"gridTemplateAreas"}),an({prop:"gridArea"}));function Bn(e){return e<=1&&0!==e?100*e+"%":e}xn(an({prop:"color",themeKey:"palette",transform:zn}),an({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zn}),an({prop:"backgroundColor",themeKey:"palette",transform:zn}));const Fn=an({prop:"width",transform:Bn}),qn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Jr[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bn(t)}};return en(e,e.maxWidth,t)}return null};qn.filterProps=["maxWidth"];const Hn=an({prop:"minWidth",transform:Bn}),Gn=an({prop:"height",transform:Bn}),Vn=an({prop:"maxHeight",transform:Bn}),Yn=an({prop:"minHeight",transform:Bn});an({prop:"size",cssProperty:"width",transform:Bn}),an({prop:"size",cssProperty:"height",transform:Bn});xn(Fn,qn,Hn,Gn,Vn,Yn,an({prop:"boxSizing"}));const Un={border:{themeKey:"borders",transform:En},borderTop:{themeKey:"borders",transform:En},borderRight:{themeKey:"borders",transform:En},borderBottom:{themeKey:"borders",transform:En},borderLeft:{themeKey:"borders",transform:En},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:En},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jn},color:{themeKey:"palette",transform:zn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zn},backgroundColor:{themeKey:"palette",transform:zn},p:{style:yn},pt:{style:yn},pr:{style:yn},pb:{style:yn},pl:{style:yn},px:{style:yn},py:{style:yn},padding:{style:yn},paddingTop:{style:yn},paddingRight:{style:yn},paddingBottom:{style:yn},paddingLeft:{style:yn},paddingX:{style:yn},paddingY:{style:yn},paddingInline:{style:yn},paddingInlineStart:{style:yn},paddingInlineEnd:{style:yn},paddingBlock:{style:yn},paddingBlockStart:{style:yn},paddingBlockEnd:{style:yn},m:{style:vn},mt:{style:vn},mr:{style:vn},mb:{style:vn},ml:{style:vn},mx:{style:vn},my:{style:vn},margin:{style:vn},marginTop:{style:vn},marginRight:{style:vn},marginBottom:{style:vn},marginLeft:{style:vn},marginX:{style:vn},marginY:{style:vn},marginInline:{style:vn},marginInlineStart:{style:vn},marginInlineEnd:{style:vn},marginBlock:{style:vn},marginBlockStart:{style:vn},marginBlockEnd:{style:vn},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:Nn},rowGap:{style:$n},columnGap:{style:Dn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:qn},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Wn(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=nn(r,l)||{};if(c)return c(o);return en(o,t,(t=>{let r=on(d,s,t);return t===r&&"string"==typeof t&&(r=on(d,s,`${e}${"default"===t?"":tn(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Un;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],c=i,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(a[r])s=Zr(s,e(r,o,i,a));else{const e=en({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?s=Zr(s,e):s[r]=t({sx:o,theme:i})}else s=Zr(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Kn=Wn();function Xn(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Kn.filterProps=["sx"];const Zn=["breakpoints","palette","spacing","shape"];function Jn(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=z(e,Zn),l=Kr(r),s=function(e=8){if(e.mui)return e;const t=fn({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=Yr({breakpoints:l,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:s,shape:$({},Xr,i)},a);return c.applyStyles=Xn,c=t.reduce(((e,t)=>Yr(e,t)),c),c.unstable_sxConfig=$({},Un,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Kn({sx:e,theme:this})},c}var Qn=Object.freeze({__proto__:null,default:Jn,private_createBreakpoints:Kr,unstable_applyStyles:Xn});function eo(e=null){const t=y.useContext(Xt);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const to=Jn();function ro(e=to){return eo(e)}function no({styles:e,themeId:t,defaultTheme:r={}}){const n=ro(r),o="function"==typeof e?e(t&&n[t]||n):e;return zr.jsx(Fr,{styles:o})}const oo=["sx"];function io(e){const{sx:t}=e,r=z(e,oo),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Un;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Gr(r)?$({},n,r):n}:$({},n,t),$({},o,{sx:i})}var ao=Object.freeze({__proto__:null,default:Kn,extendSxProp:io,unstable_createStyleFunctionSx:Wn,unstable_defaultSxConfig:Un});const lo=e=>e,so=(()=>{let e=lo;return{configure(t){e=t},generate:t=>e(t),reset(){e=lo}}})();function co(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=co(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function uo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=co(e))&&(n&&(n+=" "),n+=t);return n}const po=["className","component"];const ho={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fo(e,t,r="Mui"){const n=ho[t];return n?`${r}-${n}`:`${so.generate(e)}-${t}`}function mo(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=fo(e,t,r)})),n}var go={exports:{}},bo={},vo=Symbol.for("react.transitional.element"),yo=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),Eo=Symbol.for("react.strict_mode"),Co=Symbol.for("react.profiler"),So=Symbol.for("react.consumer"),wo=Symbol.for("react.context"),Ro=Symbol.for("react.forward_ref"),ko=Symbol.for("react.suspense"),Ao=Symbol.for("react.suspense_list"),Io=Symbol.for("react.memo"),_o=Symbol.for("react.lazy"),To=Symbol.for("react.offscreen"),Oo=Symbol.for("react.client.reference");function Mo(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vo:switch(e=e.type){case xo:case Co:case Eo:case ko:case Ao:return e;default:switch(e=e&&e.$$typeof){case wo:case Ro:case _o:case Io:case So:return e;default:return t}}case yo:return t}}}bo.ContextConsumer=So,bo.ContextProvider=wo,bo.Element=vo,bo.ForwardRef=Ro,bo.Fragment=xo,bo.Lazy=_o,bo.Memo=Io,bo.Portal=yo,bo.Profiler=Co,bo.StrictMode=Eo,bo.Suspense=ko,bo.SuspenseList=Ao,bo.isContextConsumer=function(e){return Mo(e)===So},bo.isContextProvider=function(e){return Mo(e)===wo},bo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vo},bo.isForwardRef=function(e){return Mo(e)===Ro},bo.isFragment=function(e){return Mo(e)===xo},bo.isLazy=function(e){return Mo(e)===_o},bo.isMemo=function(e){return Mo(e)===Io},bo.isPortal=function(e){return Mo(e)===yo},bo.isProfiler=function(e){return Mo(e)===Co},bo.isStrictMode=function(e){return Mo(e)===Eo},bo.isSuspense=function(e){return Mo(e)===ko},bo.isSuspenseList=function(e){return Mo(e)===Ao},bo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xo||e===Co||e===Eo||e===ko||e===Ao||e===To||"object"==typeof e&&null!==e&&(e.$$typeof===_o||e.$$typeof===Io||e.$$typeof===wo||e.$$typeof===So||e.$$typeof===Ro||e.$$typeof===Oo||void 0!==e.getModuleId)},bo.typeOf=Mo,go.exports=bo;var Lo=go.exports;const Po=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function jo(e){const t=`${e}`.match(Po);return t&&t[1]||""}function No(e,t=""){return e.displayName||e.name||jo(e)||t}function Do(e,t,r){const n=No(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var $o=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return No(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Lo.ForwardRef:return Do(e,e.render,"ForwardRef");case Lo.Memo:return Do(e,e.type,"memo");default:return}}},getFunctionName:jo});function zo(e,t){const r=$({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=$({},i),Object.keys(o).forEach((e=>{r[n][e]=zo(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Bo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Fo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var qo=Object.freeze({__proto__:null,default:Fo});function Ho(e){if(e.type)return e;if("#"===e.charAt(0))return Ho(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(j(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(j(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Go(e,t){return e=Ho(e),t=function(e,t=0,r=1){return Fo(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Vo(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Yo(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Uo(e){return e&&e.ownerDocument||document}function Wo(e){return Uo(e).defaultView||window}function Ko(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Xo(e){const t=y.useRef(e);return Bo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Zo(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ko(e,t)}))}),e)}const Jo={};const Qo=[];class ei{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ei}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ti(){const e=function(e,t){const r=y.useRef(Jo);return r.current===Jo&&(r.current=e(t)),r}(ei.create).current;var t;return t=e.disposeEffect,y.useEffect(t,Qo),e}let ri=!0,ni=!1;const oi=new ei,ii={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 ai(e){e.metaKey||e.altKey||e.ctrlKey||(ri=!0)}function li(){ri=!1}function si(){"hidden"===this.visibilityState&&ni&&(ri=!0)}function ci(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ri||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ii[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function di(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ai,!0),t.addEventListener("mousedown",li,!0),t.addEventListener("pointerdown",li,!0),t.addEventListener("touchstart",li,!0),t.addEventListener("visibilitychange",si,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ci(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ni=!0,oi.start(100,(()=>{ni=!1})),t.current=!1,!0)},ref:e}}function ui(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let pi;function hi(){if(pi)return pi;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),pi="reverse",e.scrollLeft>0?pi="default":(e.scrollLeft=1,0===e.scrollLeft&&(pi="negative")),document.body.removeChild(e),pi}function fi(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(hi()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function mi(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function gi(e){return"string"==typeof e}function bi(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function yi(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const xi=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ei(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=z(e,xi),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=uo(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=$({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=$({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=bi($({},o,n)),l=yi(n),s=yi(o),c=t(a),d=uo(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),u=$({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=$({},c,r,s,l);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}($({},a,{externalSlotProps:l})),d=function(e,t,r){return void 0===e||gi(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}(r,$({},s,{ref:Zo(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Ci(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Si=y.createContext(null);function wi(){return y.useContext(Si)}var Ri="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function ki(e){const{children:t,theme:r}=e,n=wi(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return $({},e,t)}(n,r);return null!=e&&(e[Ri]=null!==n),e}),[r,n]);return zr.jsx(Si.Provider,{value:o,children:t})}const Ai=["value"],Ii=y.createContext();function _i(e){let{value:t}=e,r=z(e,Ai);return zr.jsx(Ii.Provider,$({value:null==t||t},r))}const Ti=()=>{const e=y.useContext(Ii);return null!=e&&e},Oi=y.createContext(void 0);function Mi({value:e,children:t}){return zr.jsx(Oi.Provider,{value:e,children:t})}function Li({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?zo(o.defaultProps,n):o.styleOverrides||o.variants?n:zo(o,n)}({props:e,name:t,theme:{components:y.useContext(Oi)}})}const Pi={};function ji(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?$({},t,{[e]:i}):i;return n?()=>a:a}return $({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ni(e){const{children:t,theme:r,themeId:n}=e,o=eo(Pi),i=wi()||Pi,a=ji(n,o,r),l=ji(n,i,r,!0),s="rtl"===a.direction;return zr.jsx(ki,{theme:l,children:zr.jsx(Xt.Provider,{value:a,children:zr.jsx(_i,{value:s,children:zr.jsx(Mi,{value:null==a?void 0:a.components,children:t})})})})}var Di,$i={},zi={exports:{}};(Di=zi).exports=function(e){return e&&e.__esModule?e:{default:e}},Di.exports.__esModule=!0,Di.exports.default=Di.exports;var Bi=zi.exports,Fi=Ke(N),qi=Ke(qo),Hi=Bi;Object.defineProperty($i,"__esModule",{value:!0});var Gi=$i.alpha=na;$i.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ji(e),a=Ji(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ea({type:"rgb",values:l})},$i.colorChannel=void 0;var Vi=$i.darken=oa;$i.decomposeColor=Ji,$i.emphasize=aa;var Yi=$i.getContrastRatio=function(e,t){const r=ra(e),n=ra(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};$i.getLuminance=ra,$i.hexToRgb=Zi,$i.hslToRgb=ta;var Ui=$i.lighten=ia;$i.private_safeAlpha=function(e,t,r){try{return na(e,t)}catch(t){return e}},$i.private_safeColorChannel=void 0,$i.private_safeDarken=function(e,t,r){try{return oa(e,t)}catch(t){return e}},$i.private_safeEmphasize=function(e,t,r){try{return aa(e,t)}catch(t){return e}},$i.private_safeLighten=function(e,t,r){try{return ia(e,t)}catch(t){return e}},$i.recomposeColor=ea,$i.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ji(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 Wi=Hi(Fi),Ki=Hi(qi);function Xi(e,t=0,r=1){return(0,Ki.default)(e,t,r)}function Zi(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Ji(e){if(e.type)return e;if("#"===e.charAt(0))return Ji(Zi(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Wi.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Wi.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Qi=e=>{const t=Ji(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};$i.colorChannel=Qi;function ea(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function ta(e){e=Ji(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),ea({type:l,values:s})}function ra(e){let t="hsl"===(e=Ji(e)).type||"hsla"===e.type?Ji(ta(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 na(e,t){return e=Ji(e),t=Xi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ea(e)}function oa(e,t){if(e=Ji(e),t=Xi(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 r=0;r<3;r+=1)e.values[r]*=1-t;return ea(e)}function ia(e,t){if(e=Ji(e),t=Xi(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ea(e)}function aa(e,t=.15){return ra(e)>.5?oa(e,t):ia(e,t)}$i.private_safeColorChannel=(e,t)=>{try{return Qi(e)}catch(t){return e}};const la={black:"#000",white:"#fff"},sa={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"},ca="#f3e5f5",da="#ce93d8",ua="#ba68c8",pa="#ab47bc",ha="#9c27b0",fa="#7b1fa2",ma="#e57373",ga="#ef5350",ba="#f44336",va="#d32f2f",ya="#c62828",xa="#ffb74d",Ea="#ffa726",Ca="#ff9800",Sa="#f57c00",wa="#e65100",Ra="#e3f2fd",ka="#90caf9",Aa="#42a5f5",Ia="#1976d2",_a="#1565c0",Ta="#4fc3f7",Oa="#29b6f6",Ma="#03a9f4",La="#0288d1",Pa="#01579b",ja="#81c784",Na="#66bb6a",Da="#4caf50",$a="#388e3c",za="#2e7d32",Ba="#1b5e20",Fa=["mode","contrastThreshold","tonalOffset"],qa={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:la.white,default:la.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}},Ha={text:{primary:la.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:la.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 Ga(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ui(e.main,o):"dark"===t&&(e.dark=Vi(e.main,i)))}function Va(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=z(e,Fa),i=e.primary||function(e="light"){return"dark"===e?{main:ka,light:Ra,dark:Aa}:{main:Ia,light:Aa,dark:_a}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:da,light:ca,dark:pa}:{main:ha,light:ua,dark:fa}}(t),l=e.error||function(e="light"){return"dark"===e?{main:ba,light:ma,dark:va}:{main:va,light:ga,dark:ya}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Oa,light:Ta,dark:La}:{main:La,light:Ma,dark:Pa}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Na,light:ja,dark:$a}:{main:za,light:Da,dark:Ba}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Ea,light:xa,dark:Sa}:{main:"#ed6c02",light:Ca,dark:wa}}(t);function u(e){return Yi(e,Ha.text.primary)>=r?Ha.text.primary:qa.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(j(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(j(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ga(e,"light",o,n),Ga(e,"dark",i,n),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:Ha,light:qa};return Yr($({common:$({},la),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:sa,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:n},h[t]),o)}const Ya=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ua={textTransform:"uppercase"},Wa='"Roboto", "Helvetica", "Arial", sans-serif';function Ka(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Wa,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,p=z(r,Ya),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,r,o,i)=>{return $({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r},n===Wa?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);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(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,Ua),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ua),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yr($({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Xa(...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 Za=["none",Xa(0,2,1,-1,0,1,1,0,0,1,3,0),Xa(0,3,1,-2,0,2,2,0,0,1,5,0),Xa(0,3,3,-2,0,3,4,0,0,1,8,0),Xa(0,2,4,-1,0,4,5,0,0,1,10,0),Xa(0,3,5,-1,0,5,8,0,0,1,14,0),Xa(0,3,5,-1,0,6,10,0,0,1,18,0),Xa(0,4,5,-2,0,7,10,1,0,2,16,1),Xa(0,5,5,-3,0,8,10,1,0,3,14,2),Xa(0,5,6,-3,0,9,12,1,0,3,16,2),Xa(0,6,6,-3,0,10,14,1,0,4,18,3),Xa(0,6,7,-4,0,11,15,1,0,4,20,3),Xa(0,7,8,-4,0,12,17,2,0,5,22,4),Xa(0,7,8,-4,0,13,19,2,0,5,24,4),Xa(0,7,9,-4,0,14,21,2,0,5,26,4),Xa(0,8,9,-5,0,15,22,2,0,6,28,5),Xa(0,8,10,-5,0,16,24,2,0,6,30,5),Xa(0,8,11,-5,0,17,26,2,0,6,32,5),Xa(0,9,11,-5,0,18,28,2,0,7,34,6),Xa(0,9,12,-6,0,19,29,2,0,7,36,6),Xa(0,10,13,-6,0,20,31,3,0,8,38,7),Xa(0,10,13,-6,0,21,33,3,0,8,40,7),Xa(0,10,14,-6,0,22,35,3,0,8,42,7),Xa(0,11,14,-7,0,23,36,3,0,9,44,8),Xa(0,11,15,-7,0,24,38,3,0,9,46,8)],Ja=["duration","easing","delay"],Qa={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)"},el={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tl(e){return`${Math.round(e)}ms`}function rl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nl(e){const t=$({},Qa,e.easing),r=$({},el,e.duration);return $({getAutoHeightDuration:rl,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return z(n,Ja),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:tl(o)} ${i} ${"string"==typeof a?a:tl(a)}`)).join(",")}},e,{easing:t,duration:r})}const ol={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},il=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function al(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=z(e,il);if(e.vars&&void 0===e.generateCssVars)throw new Error(j(18));const l=Va(n),s=Jn(e);let c=Yr(s,{mixins:(d=s.breakpoints,u=r,$({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:l,shadows:Za.slice(),typography:Ka(l,i),transitions:nl(o),zIndex:$({},ol)});var d,u;return c=Yr(c,a),c=t.reduce(((e,t)=>Yr(e,t)),c),c.unstable_sxConfig=$({},Un,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Kn({sx:e,theme:this})},c}const ll=al();function sl(){const e=ro(ll);return e[D]||e}var cl,dl={},ul={exports:{}};var pl,hl={exports:{}};var fl=Ke(Hr),ml=Ke(Ur),gl=Ke(rn),bl=Ke($o),vl=Ke(Qn),yl=Ke(ao),xl=Bi;Object.defineProperty(dl,"__esModule",{value:!0});var El=dl.default=function(e={}){const{themeId:t,defaultTheme:r=Ll,rootShouldForwardProp:n=Ml,slotShouldForwardProp:o=Ml}=e,i=e=>(0,Al.default)((0,Cl.default)({},e,{theme:jl((0,Cl.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,wl.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:d,overridesResolver:u=Nl(Pl(s))}=a,p=(0,Sl.default)(a,Tl),h=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,f=d||!1;let m=Ml;"Root"===s||"root"===s?m=n:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,wl.default)(e,(0,Cl.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Rl.isPlainObject)(e)?n=>Dl(e,(0,Cl.default)({},n,{theme:jl({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&u&&s.push((e=>{const n=jl((0,Cl.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Dl(r,(0,Cl.default)({},e,{theme:n}))})),u(e,i)})),l&&!h&&s.push((e=>{var n;const o=jl((0,Cl.default)({},e,{defaultTheme:r,themeId:t}));return Dl({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Cl.default)({},e,{theme:o}))})),f||s.push(i);const c=s.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=g(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return g.withConfig&&(v.withConfig=g.withConfig),v}};dl.shouldForwardProp=Ml,dl.systemDefaultTheme=void 0;var Cl=xl((cl||(cl=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(ul)),ul.exports)),Sl=xl((pl||(pl=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(hl)),hl.exports)),wl=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Ol(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(fl),Rl=ml;xl(gl),xl(bl);var kl=xl(vl),Al=xl(yl);const Il=["ownerState"],_l=["variants"],Tl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ol(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ol=function(e){return e?r:t})(e)}function Ml(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ll=dl.systemDefaultTheme=(0,kl.default)(),Pl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function jl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Nl(e){return e?(t,r)=>r[e]:null}function Dl(e,t){let{ownerState:r}=t,n=(0,Sl.default)(t,Il);const o="function"==typeof e?e((0,Cl.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Dl(e,(0,Cl.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Sl.default)(o,_l);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Cl.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Cl.default)({ownerState:r},n,r)):e.style))})),t}return o}const $l=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zl=El({themeId:D,defaultTheme:ll,rootShouldForwardProp:$l}),Bl=["theme"];function Fl(e){let{theme:t}=e,r=z(e,Bl);const n=t[D];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$({},n,{vars:null}):t&&!t.vars&&(o=$({},t,{vars:null}))),zr.jsx(Ni,$({},r,{themeId:n?D:void 0,theme:o}))}const ql=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Hl={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Gl=12,Vl=14,Yl=16,Ul=24,Wl=3,Kl=300,Xl=400,Zl=600,Jl=700,Ql={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function es(e){return Li(e)}function ts(e){return fo("MuiSvgIcon",e)}mo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rs=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ns=zl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${tn(r.color)}`],t[`fontSize${tn(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),os=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=r,p=z(r,rs),h=y.isValidElement(n)&&"svg"===n.type,f=$({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return mi({root:["root","inherit"!==t&&`color${tn(t)}`,`fontSize${tn(r)}`]},ts,n)})(f);return zr.jsxs(ns,$({as:a,className:uo(g.root,o),focusable:"false",color:s,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&n.props,{ownerState:f,children:[h?n.props.children:n,d?zr.jsx("title",{children:d}):null]}))}));function is(e,t){function r(r,n){return zr.jsx(os,$({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=os.muiName,y.memo(y.forwardRef(r))}function as(e,t){return as=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},as(e,t)}function ls(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,as(e,t)}os.muiName="SvgIcon";var ss=!1,cs=C.createContext(null),ds="unmounted",us="exited",ps="entering",hs="entered",fs="exiting",ms=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=us,n.appearStatus=ps):o=hs:o=t.unmountOnExit||t.mountOnEnter?ds:us,n.state={status:o},n.nextCallback=null,n}ls(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ds?{status:us}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ps&&r!==hs&&(t=ps):r!==ps&&r!==hs||(t=fs)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ps){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===us&&this.setState({status:ds})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[O.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||ss?this.safeSetState({status:hs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ps},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:hs},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:O.findDOMNode(this);t&&!ss?(this.props.onExit(n),this.safeSetState({status:fs},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:us},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:us},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===ds)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(cs.Provider,{value:null},"function"==typeof r?r(e,n):C.cloneElement(C.Children.only(r),n))},t}(C.Component);function gs(){}function bs(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&S(e)?t(e):e}(e)})),r}function vs(e,t,r){return null!=r[t]?r[t]:e.props[t]}function ys(e,t,r){var n=bs(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var c=o[s][n];l[o[s][n]]=r(c)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(S(a)){var l=i in t,s=i in n,c=t[i],d=S(c)&&!c.props.in;!s||l&&!d?s||!l||d?s&&l&&S(c)&&(o[i]=w(a,{onExited:r.bind(null,a),in:c.props.in,exit:vs(a,"exit",e),enter:vs(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:vs(a,"exit",e),enter:vs(a,"enter",e)})}})),o}ms.contextType=cs,ms.propTypes={},ms.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gs,onEntering:gs,onEntered:gs,onExit:gs,onExiting:gs,onExited:gs},ms.UNMOUNTED=ds,ms.EXITED=us,ms.ENTERING=ps,ms.ENTERED=hs,ms.EXITING=fs;var xs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Es=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ls(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,bs(r.children,(function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:vs(e,"appear",r),enter:vs(e,"enter",r),exit:vs(e,"exit",r)})}))):ys(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=bs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=$({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=z(e,["component","childFactory"]),o=this.state.contextValue,i=xs(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?C.createElement(cs.Provider,{value:o},i):C.createElement(cs.Provider,{value:o},C.createElement(t,n,i))},t}(C.Component);Es.propTypes={},Es.defaultProps={component:"div",childFactory:function(e){return e}};const Cs=e=>e.scrollTop;function Ss(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function ws(e){return fo("MuiPaper",e)}mo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Rs=["className","component","elevation","square","variant"],ks=zl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Gi("#fff",ql(t.elevation))}, ${Gi("#fff",ql(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),As=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=z(r,Rs),c=$({},r,{component:o,elevation:i,square:a,variant:l}),d=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return mi({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ws,o)})(c);return zr.jsx(ks,$({as:o,ownerState:c,className:uo(d.root,n),ref:t},s))}));const Is=mo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_s=["center","classes","className"];let Ts,Os,Ms,Ls,Ps=e=>e;const js=fr(Ts||(Ts=Ps`
|
|
14
|
+
*/function Gr(e,t){return Ir(e,t)}const Hr=[];function Wr(e){return Hr[0]=e,Ht(Hr)}var Yr=Object.freeze({__proto__:null,GlobalStyles:Fr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=y.useMemo((()=>{const e=`${t}-${r}`;if("object"==typeof document&&Dr.has(e))return Dr.get(e);const n=function(e,t){const r=qe({key:"css",prepend:e});if(t){const e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}(t,r);return Dr.set(e,n),n}),[t,r]);return t||r?Br.jsx(qt,{value:o,children:n}):n},ThemeContext:Xt,css:hr,default:Gr,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Wr,keyframes:fr});function Ur(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 Vr(e){if(y.isValidElement(e)||!Ur(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Vr(e[r])})),t}function qr(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Ur(e)&&Ur(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Ur(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ur(e[o])?n[o]=qr(e[o],t[o],r):r.clone?n[o]=Ur(t[o])?Vr(t[o]):t[o]:n[o]=t[o]})),n}var Kr=Object.freeze({__proto__:null,default:qr,isPlainObject:Ur});const Xr=["values","unit","step"];function Zr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=B(e,Xr),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)=>z({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return z({keys:a,values:i,up:l,down:s,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Jr={borderRadius:4};function Qr(e,t){return t?qr(e,t,{clone:!1}):e}const en={xs:0,sm:600,md:900,lg:1200,xl:1536},tn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${en[e]}px)`};function rn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||tn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||tn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||en).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function nn(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function on(e){if("string"!=typeof e)throw new Error(j(7));return e.charAt(0).toUpperCase()+e.slice(1)}var an=Object.freeze({__proto__:null,default:on});function ln(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function sn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ln(e,r)||n,t&&(o=t(o,n,e)),o}function cn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ln(e.theme,n)||{};return rn(e,i,(e=>{let n=sn(a,o,e);return e===n&&"string"==typeof e&&(n=sn(a,o,`${t}${"default"===e?"":on(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const dn={m:"margin",p:"padding"},un={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hn=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!pn[e])return[e];e=pn[e]}const[t,r]=e.split(""),n=dn[t],o=un[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),fn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function bn(e,t,r,n){var o;const i=null!=(o=ln(e,t,!1))?o:r;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 gn(e){return bn(e,"spacing",8)}function vn(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function yn(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=vn(t,r),e)),{})}(hn(r),n);return rn(e,e[r],o)}function xn(e,t){const r=gn(e.theme);return Object.keys(e).map((n=>yn(e,t,n,r))).reduce(Qr,{})}function En(e){return xn(e,fn)}function Sn(e){return xn(e,mn)}function Cn(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Qr(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wn(e){return"number"!=typeof e?e:`${e}px solid`}function Rn(e,t){return cn({prop:e,themeKey:"borders",transform:t})}En.propTypes={},En.filterProps=fn,Sn.propTypes={},Sn.filterProps=mn;const kn=Rn("border",wn),An=Rn("borderTop",wn),_n=Rn("borderRight",wn),In=Rn("borderBottom",wn),Tn=Rn("borderLeft",wn),Ln=Rn("borderColor"),On=Rn("borderTopColor"),Pn=Rn("borderRightColor"),Mn=Rn("borderBottomColor"),jn=Rn("borderLeftColor"),Nn=Rn("outline",wn),$n=Rn("outlineColor"),zn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=bn(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:vn(t,e)});return rn(e,e.borderRadius,r)}return null};zn.propTypes={},zn.filterProps=["borderRadius"],Cn(kn,An,_n,In,Tn,Ln,On,Pn,Mn,jn,zn,Nn,$n);const Bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=bn(e.theme,"spacing",8),r=e=>({gap:vn(t,e)});return rn(e,e.gap,r)}return null};Bn.propTypes={},Bn.filterProps=["gap"];const Dn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=bn(e.theme,"spacing",8),r=e=>({columnGap:vn(t,e)});return rn(e,e.columnGap,r)}return null};Dn.propTypes={},Dn.filterProps=["columnGap"];const Fn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=bn(e.theme,"spacing",8),r=e=>({rowGap:vn(t,e)});return rn(e,e.rowGap,r)}return null};Fn.propTypes={},Fn.filterProps=["rowGap"];function Gn(e,t){return"grey"===t?t:e}Cn(Bn,Dn,Fn,cn({prop:"gridColumn"}),cn({prop:"gridRow"}),cn({prop:"gridAutoFlow"}),cn({prop:"gridAutoColumns"}),cn({prop:"gridAutoRows"}),cn({prop:"gridTemplateColumns"}),cn({prop:"gridTemplateRows"}),cn({prop:"gridTemplateAreas"}),cn({prop:"gridArea"}));function Hn(e){return e<=1&&0!==e?100*e+"%":e}Cn(cn({prop:"color",themeKey:"palette",transform:Gn}),cn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gn}),cn({prop:"backgroundColor",themeKey:"palette",transform:Gn}));const Wn=cn({prop:"width",transform:Hn}),Yn=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||en[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Hn(t)}};return rn(e,e.maxWidth,t)}return null};Yn.filterProps=["maxWidth"];const Un=cn({prop:"minWidth",transform:Hn}),Vn=cn({prop:"height",transform:Hn}),qn=cn({prop:"maxHeight",transform:Hn}),Kn=cn({prop:"minHeight",transform:Hn});cn({prop:"size",cssProperty:"width",transform:Hn}),cn({prop:"size",cssProperty:"height",transform:Hn});Cn(Wn,Yn,Un,Vn,qn,Kn,cn({prop:"boxSizing"}));const Xn={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zn},color:{themeKey:"palette",transform:Gn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gn},backgroundColor:{themeKey:"palette",transform:Gn},p:{style:Sn},pt:{style:Sn},pr:{style:Sn},pb:{style:Sn},pl:{style:Sn},px:{style:Sn},py:{style:Sn},padding:{style:Sn},paddingTop:{style:Sn},paddingRight:{style:Sn},paddingBottom:{style:Sn},paddingLeft:{style:Sn},paddingX:{style:Sn},paddingY:{style:Sn},paddingInline:{style:Sn},paddingInlineStart:{style:Sn},paddingInlineEnd:{style:Sn},paddingBlock:{style:Sn},paddingBlockStart:{style:Sn},paddingBlockEnd:{style:Sn},m:{style:En},mt:{style:En},mr:{style:En},mb:{style:En},ml:{style:En},mx:{style:En},my:{style:En},margin:{style:En},marginTop:{style:En},marginRight:{style:En},marginBottom:{style:En},marginLeft:{style:En},marginX:{style:En},marginY:{style:En},marginInline:{style:En},marginInlineStart:{style:En},marginInlineEnd:{style:En},marginBlock:{style:En},marginBlockStart:{style:En},marginBlockEnd:{style:En},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:Bn},rowGap:{style:Fn},columnGap:{style:Dn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hn},maxWidth:{style:Yn},minWidth:{transform:Hn},height:{transform:Hn},maxHeight:{transform:Hn},minHeight:{transform:Hn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zn(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:c}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=ln(r,l)||{};if(c)return c(o);return rn(o,t,(t=>{let r=sn(d,s,t);return t===r&&"string"==typeof t&&(r=sn(d,s,`${e}${"default"===t?"":on(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const l=null!=(n=i.unstable_sxConfig)?n:Xn;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let c=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],s=i,"function"==typeof a?a(s):a);var a,s;if(null!=o)if("object"==typeof o)if(l[r])c=Qr(c,e(r,o,i,l));else{const e=rn({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?c=Qr(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Qr(c,e(r,o,i,l))})),!a&&i.modularCssLayers?{"@layer sx":nn(s,c)}:nn(s,c)}return Array.isArray(o)?o.map(s):s(o)}}const Jn=Zn();function Qn(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Jn.filterProps=["sx"];const eo=["breakpoints","palette","spacing","shape"];function to(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=B(e,eo),l=Zr(r),s=function(e=8){if(e.mui)return e;const t=gn({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let c=qr({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:s,shape:z({},Jr,i)},a);return c.applyStyles=Qn,c=t.reduce(((e,t)=>qr(e,t)),c),c.unstable_sxConfig=z({},Xn,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jn({sx:e,theme:this})},c}var ro=Object.freeze({__proto__:null,default:to,private_createBreakpoints:Zr,unstable_applyStyles:Qn});function no(e=null){const t=y.useContext(Xt);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const oo=to();function io(e=oo){return no(e)}function ao(e){const t=Wr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function lo({styles:e,themeId:t,defaultTheme:r={}}){const n=io(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ao("function"==typeof e?e(o):e))):ao(i)),Br.jsx(Fr,{styles:i})}const so=["sx"];function co(e){const{sx:t}=e,r=B(e,so),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Xn;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ur(r)?z({},n,r):n}:z({},n,t),z({},o,{sx:i})}var uo=Object.freeze({__proto__:null,default:Jn,extendSxProp:co,unstable_createStyleFunctionSx:Zn,unstable_defaultSxConfig:Xn});const po=e=>e,ho=(()=>{let e=po;return{configure(t){e=t},generate:t=>e(t),reset(){e=po}}})();function fo(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function mo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fo(e))&&(n&&(n+=" "),n+=t);return n}const bo=["className","component"];const go={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 vo(e,t,r="Mui"){const n=go[t];return n?`${r}-${n}`:`${ho.generate(e)}-${t}`}function yo(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=vo(e,t,r)})),n}var xo={exports:{}},Eo={},So=Symbol.for("react.transitional.element"),Co=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),Ro=Symbol.for("react.strict_mode"),ko=Symbol.for("react.profiler"),Ao=Symbol.for("react.consumer"),_o=Symbol.for("react.context"),Io=Symbol.for("react.forward_ref"),To=Symbol.for("react.suspense"),Lo=Symbol.for("react.suspense_list"),Oo=Symbol.for("react.memo"),Po=Symbol.for("react.lazy"),Mo=Symbol.for("react.offscreen"),jo=Symbol.for("react.client.reference");function No(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case So:switch(e=e.type){case wo:case ko:case Ro:case To:case Lo:return e;default:switch(e=e&&e.$$typeof){case _o:case Io:case Po:case Oo:case Ao:return e;default:return t}}case Co:return t}}}Eo.ContextConsumer=Ao,Eo.ContextProvider=_o,Eo.Element=So,Eo.ForwardRef=Io,Eo.Fragment=wo,Eo.Lazy=Po,Eo.Memo=Oo,Eo.Portal=Co,Eo.Profiler=ko,Eo.StrictMode=Ro,Eo.Suspense=To,Eo.SuspenseList=Lo,Eo.isContextConsumer=function(e){return No(e)===Ao},Eo.isContextProvider=function(e){return No(e)===_o},Eo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===So},Eo.isForwardRef=function(e){return No(e)===Io},Eo.isFragment=function(e){return No(e)===wo},Eo.isLazy=function(e){return No(e)===Po},Eo.isMemo=function(e){return No(e)===Oo},Eo.isPortal=function(e){return No(e)===Co},Eo.isProfiler=function(e){return No(e)===ko},Eo.isStrictMode=function(e){return No(e)===Ro},Eo.isSuspense=function(e){return No(e)===To},Eo.isSuspenseList=function(e){return No(e)===Lo},Eo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===wo||e===ko||e===Ro||e===To||e===Lo||e===Mo||"object"==typeof e&&null!==e&&(e.$$typeof===Po||e.$$typeof===Oo||e.$$typeof===_o||e.$$typeof===Ao||e.$$typeof===Io||e.$$typeof===jo||void 0!==e.getModuleId)},Eo.typeOf=No,xo.exports=Eo;var $o=xo.exports;const zo=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Bo(e){const t=`${e}`.match(zo);return t&&t[1]||""}function Do(e,t=""){return e.displayName||e.name||Bo(e)||t}function Fo(e,t,r){const n=Do(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Go=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Do(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $o.ForwardRef:return Fo(e,e.render,"ForwardRef");case $o.Memo:return Fo(e,e.type,"memo");default:return}}},getFunctionName:Bo});function Ho(e,t){const r=z({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=z({},i),Object.keys(o).forEach((e=>{r[n][e]=Ho(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Wo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Yo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Uo=Object.freeze({__proto__:null,default:Yo});function Vo(e){if(e.type)return e;if("#"===e.charAt(0))return Vo(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(j(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(j(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function qo(e,t){return e=Vo(e),t=function(e,t=0,r=1){return Yo(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Ko(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Xo(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Zo(e){return e&&e.ownerDocument||document}function Jo(e){return Zo(e).defaultView||window}function Qo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let ei=0;const ti=y["useId".toString()];function ri(e){if(void 0!==ti){return ti()}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(ei+=1,r(`mui-${ei}`))}),[t]),n}(e)}function ni(e){const t=y.useRef(e);return Wo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function oi(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qo(e,t)}))}),e)}const ii={};const ai=[];class li{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new li}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function si(){const e=function(e,t){const r=y.useRef(ii);return r.current===ii&&(r.current=e(t)),r}(li.create).current;return function(e){y.useEffect(e,ai)}(e.disposeEffect),e}let ci=!0,di=!1;const ui=new li,pi={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 hi(e){e.metaKey||e.altKey||e.ctrlKey||(ci=!0)}function fi(){ci=!1}function mi(){"hidden"===this.visibilityState&&di&&(ci=!0)}function bi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ci||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function gi(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",hi,!0),t.addEventListener("mousedown",fi,!0),t.addEventListener("pointerdown",fi,!0),t.addEventListener("touchstart",fi,!0),t.addEventListener("visibilitychange",mi,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!bi(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(di=!0,ui.start(100,(()=>{di=!1})),t.current=!1,!0)},ref:e}}function yi(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let xi;function Ei(){if(xi)return xi;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),xi="reverse",e.scrollLeft>0?xi="default":(e.scrollLeft=1,0===e.scrollLeft&&(xi="negative")),document.body.removeChild(e),xi}function Si(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Ei()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Ci(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function wi(e){return"string"==typeof e}function Ri(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function ki(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Ai=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _i(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=B(e,Ai),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=mo(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=z({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=z({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ri(z({},o,n)),l=ki(n),s=ki(o),c=t(a),d=mo(null==c?void 0:c.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),u=z({},null==c?void 0:c.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=z({},c,r,s,l);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}(z({},a,{externalSlotProps:l})),d=function(e,t,r){return void 0===e||wi(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}(r,z({},s,{ref:oi(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function Ii(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ti=y.createContext(null);function Li(){return y.useContext(Ti)}var Oi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Pi(e){const{children:t,theme:r}=e,n=Li(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return z({},e,t)}(n,r);return null!=e&&(e[Oi]=null!==n),e}),[r,n]);return Br.jsx(Ti.Provider,{value:o,children:t})}const Mi=["value"],ji=y.createContext();function Ni(e){let{value:t}=e,r=B(e,Mi);return Br.jsx(ji.Provider,z({value:null==t||t},r))}const $i=()=>{const e=y.useContext(ji);return null!=e&&e},zi=y.createContext(void 0);function Bi({value:e,children:t}){return Br.jsx(zi.Provider,{value:e,children:t})}function Di({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ho(o.defaultProps,n):o.styleOverrides||o.variants?n:Ho(o,n)}({props:e,name:t,theme:{components:y.useContext(zi)}})}const Fi={};function Gi(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?z({},t,{[e]:i}):i;return n?()=>a:a}return z({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Hi(e){const{children:t,theme:r,themeId:n}=e,o=no(Fi),i=Li()||Fi,a=Gi(n,o,r),l=Gi(n,i,r,!0),s="rtl"===a.direction,c=function(e){const t=no(),r=ri()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Wo((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?Br.jsx(lo,{styles:o}):null}(a);return Br.jsx(Pi,{theme:l,children:Br.jsx(Xt.Provider,{value:a,children:Br.jsx(Ni,{value:s,children:Br.jsxs(Bi,{value:null==a?void 0:a.components,children:[c,t]})})})})}var Wi,Yi={},Ui={exports:{}};(Wi=Ui).exports=function(e){return e&&e.__esModule?e:{default:e}},Wi.exports.__esModule=!0,Wi.exports.default=Wi.exports;var Vi=Ui.exports,qi=Ke(N),Ki=Ke(Uo),Xi=Vi;Object.defineProperty(Yi,"__esModule",{value:!0});var Zi=Yi.alpha=da;Yi.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=ia(e),a=ia(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return la({type:"rgb",values:l})},Yi.colorChannel=void 0;var Ji=Yi.darken=ua;Yi.decomposeColor=ia,Yi.emphasize=ha;var Qi=Yi.getContrastRatio=function(e,t){const r=ca(e),n=ca(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Yi.getLuminance=ca,Yi.hexToRgb=oa,Yi.hslToRgb=sa;var ea=Yi.lighten=pa;Yi.private_safeAlpha=function(e,t,r){try{return da(e,t)}catch(t){return e}},Yi.private_safeColorChannel=void 0,Yi.private_safeDarken=function(e,t,r){try{return ua(e,t)}catch(t){return e}},Yi.private_safeEmphasize=function(e,t,r){try{return ha(e,t)}catch(t){return e}},Yi.private_safeLighten=function(e,t,r){try{return pa(e,t)}catch(t){return e}},Yi.recomposeColor=la,Yi.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ia(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 ta=Xi(qi),ra=Xi(Ki);function na(e,t=0,r=1){return(0,ra.default)(e,t,r)}function oa(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function ia(e){if(e.type)return e;if("#"===e.charAt(0))return ia(oa(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,ta.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,ta.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const aa=e=>{const t=ia(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Yi.colorChannel=aa;function la(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function sa(e){e=ia(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),la({type:l,values:s})}function ca(e){let t="hsl"===(e=ia(e)).type||"hsla"===e.type?ia(sa(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 da(e,t){return e=ia(e),t=na(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,la(e)}function ua(e,t){if(e=ia(e),t=na(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 r=0;r<3;r+=1)e.values[r]*=1-t;return la(e)}function pa(e,t){if(e=ia(e),t=na(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return la(e)}function ha(e,t=.15){return ca(e)>.5?ua(e,t):pa(e,t)}Yi.private_safeColorChannel=(e,t)=>{try{return aa(e)}catch(t){return e}};const fa={black:"#000",white:"#fff"},ma={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"},ba="#f3e5f5",ga="#ce93d8",va="#ba68c8",ya="#ab47bc",xa="#9c27b0",Ea="#7b1fa2",Sa="#e57373",Ca="#ef5350",wa="#f44336",Ra="#d32f2f",ka="#c62828",Aa="#ffb74d",_a="#ffa726",Ia="#ff9800",Ta="#f57c00",La="#e65100",Oa="#e3f2fd",Pa="#90caf9",Ma="#42a5f5",ja="#1976d2",Na="#1565c0",$a="#4fc3f7",za="#29b6f6",Ba="#03a9f4",Da="#0288d1",Fa="#01579b",Ga="#81c784",Ha="#66bb6a",Wa="#4caf50",Ya="#388e3c",Ua="#2e7d32",Va="#1b5e20",qa=["mode","contrastThreshold","tonalOffset"],Ka={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:fa.white,default:fa.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}},Xa={text:{primary:fa.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:fa.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 Za(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=ea(e.main,o):"dark"===t&&(e.dark=Ji(e.main,i)))}function Ja(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=B(e,qa),i=e.primary||function(e="light"){return"dark"===e?{main:Pa,light:Oa,dark:Ma}:{main:ja,light:Ma,dark:Na}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ga,light:ba,dark:ya}:{main:xa,light:va,dark:Ea}}(t),l=e.error||function(e="light"){return"dark"===e?{main:wa,light:Sa,dark:Ra}:{main:Ra,light:Ca,dark:ka}}(t),s=e.info||function(e="light"){return"dark"===e?{main:za,light:$a,dark:Da}:{main:Da,light:Ba,dark:Fa}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ha,light:Ga,dark:Ya}:{main:Ua,light:Wa,dark:Va}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:_a,light:Aa,dark:Ta}:{main:"#ed6c02",light:Ia,dark:La}}(t);function u(e){return Qi(e,Xa.text.primary)>=r?Xa.text.primary:Ka.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=z({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(j(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(j(12,t?` (${t})`:"",JSON.stringify(e.main)));return Za(e,"light",o,n),Za(e,"dark",i,n),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:Xa,light:Ka};return qr(z({common:z({},fa),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:ma,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:n},h[t]),o)}const Qa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const el={textTransform:"uppercase"},tl='"Roboto", "Helvetica", "Arial", sans-serif';function rl(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=tl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,p=B(r,Qa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,r,o,i)=>{return z({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r},n===tl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,d);var a},b={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(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,el),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,el),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qr(z({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},b),p,{clone:!1})}function nl(...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 ol=["none",nl(0,2,1,-1,0,1,1,0,0,1,3,0),nl(0,3,1,-2,0,2,2,0,0,1,5,0),nl(0,3,3,-2,0,3,4,0,0,1,8,0),nl(0,2,4,-1,0,4,5,0,0,1,10,0),nl(0,3,5,-1,0,5,8,0,0,1,14,0),nl(0,3,5,-1,0,6,10,0,0,1,18,0),nl(0,4,5,-2,0,7,10,1,0,2,16,1),nl(0,5,5,-3,0,8,10,1,0,3,14,2),nl(0,5,6,-3,0,9,12,1,0,3,16,2),nl(0,6,6,-3,0,10,14,1,0,4,18,3),nl(0,6,7,-4,0,11,15,1,0,4,20,3),nl(0,7,8,-4,0,12,17,2,0,5,22,4),nl(0,7,8,-4,0,13,19,2,0,5,24,4),nl(0,7,9,-4,0,14,21,2,0,5,26,4),nl(0,8,9,-5,0,15,22,2,0,6,28,5),nl(0,8,10,-5,0,16,24,2,0,6,30,5),nl(0,8,11,-5,0,17,26,2,0,6,32,5),nl(0,9,11,-5,0,18,28,2,0,7,34,6),nl(0,9,12,-6,0,19,29,2,0,7,36,6),nl(0,10,13,-6,0,20,31,3,0,8,38,7),nl(0,10,13,-6,0,21,33,3,0,8,40,7),nl(0,10,14,-6,0,22,35,3,0,8,42,7),nl(0,11,14,-7,0,23,36,3,0,9,44,8),nl(0,11,15,-7,0,24,38,3,0,9,46,8)],il=["duration","easing","delay"],al={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)"},ll={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sl(e){return`${Math.round(e)}ms`}function cl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function dl(e){const t=z({},al,e.easing),r=z({},ll,e.duration);return z({getAutoHeightDuration:cl,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return B(n,il),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:sl(o)} ${i} ${"string"==typeof a?a:sl(a)}`)).join(",")}},e,{easing:t,duration:r})}const ul={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=B(e,pl);if(e.vars&&void 0===e.generateCssVars)throw new Error(j(18));const l=Ja(n),s=to(e);let c=qr(s,{mixins:(d=s.breakpoints,u=r,z({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:l,shadows:ol.slice(),typography:rl(l,i),transitions:dl(o),zIndex:z({},ul)});var d,u;return c=qr(c,a),c=t.reduce(((e,t)=>qr(e,t)),c),c.unstable_sxConfig=z({},Xn,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Jn({sx:e,theme:this})},c}const fl=hl();function ml(){const e=io(fl);return e[$]||e}var bl,gl={},vl={exports:{}};var yl,xl={exports:{}};var El=Ke(Yr),Sl=Ke(Kr),Cl=Ke(an),wl=Ke(Go),Rl=Ke(ro),kl=Ke(uo),Al=Vi;Object.defineProperty(gl,"__esModule",{value:!0});var _l=gl.default=function(e={}){const{themeId:t,defaultTheme:r=Fl,rootShouldForwardProp:n=Bl,slotShouldForwardProp:o=Bl}=e,i=e=>(0,Ml.default)((0,Il.default)({},e,{theme:Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ll.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:d,overridesResolver:u=Wl(Gl(s))}=a,p=(0,Tl.default)(a,$l),h=l&&l.startsWith("Mui")||s?"components":"custom",f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,m=d||!1;let b=Bl;"Root"===s||"root"===s?b=n:s?b=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const g=(0,Ll.default)(e,(0,Il.default)({shouldForwardProp:b,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ol.isPlainObject)(e)?n=>{const o=Hl({theme:n.theme,defaultTheme:r,themeId:t});return Yl(e,(0,Il.default)({},n,{theme:o}),o.modularCssLayers?h:void 0)}:e,y=(n,...o)=>{let a=v(n);const s=o?o.map(v):[];l&&u&&s.push((e=>{const n=Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Yl(r,(0,Il.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),u(e,i)})),l&&!f&&s.push((e=>{var n;const o=Hl((0,Il.default)({},e,{defaultTheme:r,themeId:t}));return Yl({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,Il.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||s.push(i);const c=s.length-o.length;if(Array.isArray(n)&&c>0){const e=new Array(c).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=g(a,...s);return e.muiName&&(d.muiName=e.muiName),d};return g.withConfig&&(y.withConfig=g.withConfig),y}};gl.shouldForwardProp=Bl,gl.systemDefaultTheme=void 0;var Il=Al((bl||(bl=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(vl)),vl.exports)),Tl=Al((yl||(yl=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(xl)),xl.exports)),Ll=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=zl(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(El),Ol=Sl;Al(Cl),Al(wl);var Pl=Al(Rl),Ml=Al(kl);const jl=["ownerState"],Nl=["variants"],$l=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(zl=function(e){return e?r:t})(e)}function Bl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Dl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Fl=gl.systemDefaultTheme=(0,Pl.default)(),Gl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Hl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Wl(e){return e?(t,r)=>r[e]:null}function Yl(e,t,r){let{ownerState:n}=t,o=(0,Tl.default)(t,jl);const i="function"==typeof e?e((0,Il.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>Yl(e,(0,Il.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Tl.default)(i,Nl);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Il.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Il.default)({ownerState:n},o,n)):e.style;t.push(r?Dl((0,Ll.internal_serializeStyles)(i),r):i)}})),t}return r?Dl((0,Ll.internal_serializeStyles)(i),r):i}const Ul=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Vl=_l({themeId:$,defaultTheme:fl,rootShouldForwardProp:Ul}),ql=["theme"];function Kl(e){let{theme:t}=e,r=B(e,ql);const n=t[$];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=z({},n,{vars:null}):t&&!t.vars&&(o=z({},t,{vars:null}))),Br.jsx(Hi,z({},r,{themeId:n?$:void 0,theme:o}))}const Xl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Zl={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Jl=12,Ql=14,es=16,ts=24,rs=3,ns=300,os=400,is=600,as=700,ls={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function ss(e){return Di(e)}function cs(e){return vo("MuiSvgIcon",e)}yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ds=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],us=Vl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${on(r.color)}`],t[`fontSize${on(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,c,d,u,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"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==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(u=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?u:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),ps=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=r,p=B(r,ds),h=y.isValidElement(n)&&"svg"===n.type,f=z({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:r,classes:n}=e;return Ci({root:["root","inherit"!==t&&`color${on(t)}`,`fontSize${on(r)}`]},cs,n)})(f);return Br.jsxs(us,z({as:a,className:mo(b.root,o),focusable:"false",color:s,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&n.props,{ownerState:f,children:[h?n.props.children:n,d?Br.jsx("title",{children:d}):null]}))}));function hs(e,t){function r(r,n){return Br.jsx(ps,z({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ps.muiName,y.memo(y.forwardRef(r))}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}function ms(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fs(e,t)}ps.muiName="SvgIcon";var bs=!1,gs=S.createContext(null),vs="unmounted",ys="exited",xs="entering",Es="entered",Ss="exiting",Cs=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=ys,n.appearStatus=xs):o=Es:o=t.unmountOnExit||t.mountOnEnter?vs:ys,n.state={status:o},n.nextCallback=null,n}ms(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vs?{status:ys}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==xs&&r!==Es&&(t=xs):r!==xs&&r!==Es||(t=Ss)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xs){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ys&&this.setState({status:vs})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[L.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||bs?this.safeSetState({status:Es},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Es},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:L.findDOMNode(this);t&&!bs?(this.props.onExit(n),this.safeSetState({status:Ss},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:ys},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:ys},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===vs)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=B(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(gs.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function ws(){}function Rs(e,t){var r=Object.create(null);return e&&R.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)})),r}function ks(e,t,r){return null!=r[t]?r[t]:e.props[t]}function As(e,t,r){var n=Rs(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var c=o[s][n];l[o[s][n]]=r(c)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(C(a)){var l=i in t,s=i in n,c=t[i],d=C(c)&&!c.props.in;!s||l&&!d?s||!l||d?s&&l&&C(c)&&(o[i]=w(a,{onExited:r.bind(null,a),in:c.props.in,exit:ks(a,"exit",e),enter:ks(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:ks(a,"exit",e),enter:ks(a,"enter",e)})}})),o}Cs.contextType=gs,Cs.propTypes={},Cs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ws,onEntering:ws,onEntered:ws,onExit:ws,onExiting:ws,onExited:ws},Cs.UNMOUNTED=vs,Cs.EXITED=ys,Cs.ENTERING=xs,Cs.ENTERED=Es,Cs.EXITING=Ss;var _s=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Is=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ms(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Rs(r.children,(function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:ks(e,"appear",r),enter:ks(e,"enter",r),exit:ks(e,"exit",r)})}))):As(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Rs(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=z({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=B(e,["component","childFactory"]),o=this.state.contextValue,i=_s(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(gs.Provider,{value:o},i):S.createElement(gs.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Is.propTypes={},Is.defaultProps={component:"div",childFactory:function(e){return e}};const Ts=e=>e.scrollTop;function Ls(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Os(e){return vo("MuiPaper",e)}yo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ps=["className","component","elevation","square","variant"],Ms=Vl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Zi("#fff",Xl(t.elevation))}, ${Zi("#fff",Xl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),js=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=B(r,Ps),c=z({},r,{component:o,elevation:i,square:a,variant:l}),d=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ci({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Os,o)})(c);return Br.jsx(Ms,z({as:o,ownerState:c,className:mo(d.root,n),ref:t},s))}));const Ns=yo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$s=["center","classes","className"];let zs,Bs,Ds,Fs,Gs=e=>e;const Hs=fr(zs||(zs=Gs`
|
|
15
15
|
0% {
|
|
16
16
|
transform: scale(0);
|
|
17
17
|
opacity: 0.1;
|
|
@@ -21,7 +21,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
|
|
|
21
21
|
transform: scale(1);
|
|
22
22
|
opacity: 0.3;
|
|
23
23
|
}
|
|
24
|
-
`)),
|
|
24
|
+
`)),Ws=fr(Bs||(Bs=Gs`
|
|
25
25
|
0% {
|
|
26
26
|
opacity: 1;
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
|
|
|
29
29
|
100% {
|
|
30
30
|
opacity: 0;
|
|
31
31
|
}
|
|
32
|
-
`)),
|
|
32
|
+
`)),Ys=fr(Ds||(Ds=Gs`
|
|
33
33
|
0% {
|
|
34
34
|
transform: scale(1);
|
|
35
35
|
}
|
|
@@ -41,7 +41,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
|
|
|
41
41
|
100% {
|
|
42
42
|
transform: scale(1);
|
|
43
43
|
}
|
|
44
|
-
`))
|
|
44
|
+
`)),Us=Vl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Vs=Vl((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:c}=e,[d,u]=y.useState(!1),p=mo(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},f=mo(r.child,d&&r.childLeaving,n&&r.childPulsate);return l||d||u(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Br.jsx("span",{className:p,style:h,children:Br.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Fs||(Fs=Gs`
|
|
45
45
|
opacity: 0;
|
|
46
46
|
position: absolute;
|
|
47
47
|
|
|
@@ -84,4 +84,6 @@ System.register(["@nebula.js/stardust","react","react-dom"],(function(e){"use st
|
|
|
84
84
|
animation-iteration-count: infinite;
|
|
85
85
|
animation-delay: 200ms;
|
|
86
86
|
}
|
|
87
|
-
`),Is.rippleVisible,js,550,(({theme:e})=>e.transitions.easing.easeInOut),Is.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Is.child,Is.childLeaving,Ns,550,(({theme:e})=>e.transitions.easing.easeInOut),Is.childPulsate,Ds,(({theme:e})=>e.transitions.easing.easeInOut)),Bs=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=z(r,_s),[l,s]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const u=y.useRef(!1),p=ti(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,zr.jsx(zs,{classes:{ripple:uo(o.ripple,Is.ripple),rippleVisible:uo(o.rippleVisible,Is.rippleVisible),ripplePulsate:uo(o.ripplePulsate,Is.ripplePulsate),child:uo(o.child,Is.child),childLeaving:uo(o.childLeaving,Is.childLeaving),childPulsate:uo(o.childPulsate,Is.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const l=a?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:r})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:r})}),[n,m,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),zr.jsx($s,$({className:uo(Is.root,o.root,i),ref:f},a,{children:zr.jsx(Es,{component:null,exit:!0,children:l})}))}));function Fs(e){return fo("MuiButtonBase",e)}const qs=mo("MuiButtonBase",["root","disabled","focusVisible"]),Hs=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Gs=zl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${qs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Vs=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:E,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:R,onTouchMove:k,onTouchStart:A,tabIndex:I=0,TouchRippleProps:_,touchRippleRef:T,type:O}=r,M=z(r,Hs),L=y.useRef(null),P=y.useRef(null),j=Zo(P,T),{isFocusVisibleRef:N,onFocus:D,onBlur:B,ref:F}=di(),[q,H]=y.useState(!1);s&&q&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),L.current.focus()}})),[]);const[G,V]=y.useState(!1);y.useEffect((()=>{V(!0)}),[]);const Y=G&&!c&&!s;function U(e,t,r=d){return Xo((n=>{t&&t(n);return!r&&P.current&&P.current[e](n),!0}))}y.useEffect((()=>{q&&u&&!c&&G&&P.current.pulsate()}),[c,u,q,G]);const W=U("start",C),K=U("stop",m),X=U("stop",g),Z=U("stop",w),J=U("stop",(e=>{q&&e.preventDefault(),S&&S(e)})),Q=U("start",A),ee=U("stop",R),te=U("stop",k),re=U("stop",(e=>{B(e),!1===N.current&&H(!1),h&&h(e)}),!1),ne=Xo((e=>{L.current||(L.current=e.currentTarget),D(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),oe=()=>{const e=L.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Xo((e=>{u&&!ie.current&&q&&P.current&&" "===e.key&&(ie.current=!0,P.current.stop(e,(()=>{P.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),f&&f(e))})),le=Xo((e=>{u&&" "===e.key&&P.current&&q&&!e.defaultPrevented&&(ie.current=!1,P.current.stop(e,(()=>{P.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let se=l;"button"===se&&(M.href||M.to)&&(se=p);const ce={};"button"===se?(ce.type=void 0===O?"button":O,ce.disabled=s):(M.href||M.to||(ce.role="button"),s&&(ce["aria-disabled"]=s));const de=Zo(t,F,L),ue=$({},r,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:I,focusVisible:q}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=mi({root:["root",t&&"disabled",r&&"focusVisible"]},Fs,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return zr.jsxs(Gs,$({as:se,className:uo(pe.root,a),ownerState:ue,onBlur:re,onClick:f,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:W,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:s?-1:I,type:O},ce,M,{children:[i,Y?zr.jsx(Bs,$({ref:j,center:o},_)):null]}))}));function Ys(e){return fo("MuiTypography",e)}mo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Us=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ws=zl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${tn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>$({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ks={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Zs=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiTypography"}),n=(e=>Xs[e]||e)(r.color),o=io($({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ks}=o,h=z(o,Us),f=$({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=l||(d?"p":p[u]||Ks[u])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return mi({root:["root",i,"inherit"!==e.align&&`align${tn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Ys,a)})(f);return zr.jsx(Ws,$({as:m,ref:t,ownerState:f,className:uo(g.root,a)},h))}));const Js=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Zo(y.isValidElement(r)?Ci(r):null,t);if(Bo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Bo((()=>{if(i&&!o)return Ko(t,i),()=>{Ko(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return zr.jsx(y.Fragment,{children:r})}return zr.jsx(y.Fragment,{children:i?M.createPortal(r,i):i})})),Qs=["onChange","maxRows","minRows","style","value"];function ec(e){return parseInt(e,10)||0}const tc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function rc(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const nc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=z(e,Qs),{current:s}=y.useRef(null!=a),c=y.useRef(null),d=Zo(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback((()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=Wo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,l=ec(i.paddingBottom)+ec(i.paddingTop),s=ec(i.borderBottomWidth)+ec(i.borderTopWidth),d=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),n&&(h=Math.min(Number(n)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?l+s:0),overflowing:Math.abs(h-d)<=1}}),[n,o,e.placeholder]),f=Xo((()=>{const e=c.current,t=h();if(!e||!t||rc(t))return!1;const r=t.outerHeightStyle;return null!=u.current&&u.current!==r})),m=y.useCallback((()=>{const e=c.current,t=h();if(!e||!t||rc(t))return;const r=t.outerHeightStyle;u.current!==r&&(u.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),g=y.useRef(-1);Bo((()=>{const e=Yo(m),t=null==c?void 0:c.current;if(!t)return;const r=Wo(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{f()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,m,f]),Bo((()=>{m()}));return zr.jsxs(y.Fragment,{children:[zr.jsx("textarea",$({value:a,onChange:e=>{s||m(),r&&r(e)},ref:d,rows:o,style:i},l)),zr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},tc,i,{paddingTop:0,paddingBottom:0})})]})}));const oc=y.createContext(void 0);function ic(){return y.useContext(oc)}function ac(e){return zr.jsx(no,$({},e,{defaultTheme:ll,themeId:D}))}function lc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function sc(e){return fo("MuiInputBase",e)}const cc=mo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),dc=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],uc=zl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${tn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${cc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pc=zl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${cc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${cc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),hc=zr.jsx(ac,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),fc=y.forwardRef((function(e,t){var r;const n=es({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:E,multiline:C=!1,name:S,onBlur:w,onChange:R,onClick:k,onFocus:A,onKeyDown:I,onKeyUp:_,placeholder:T,readOnly:O,renderSuffix:M,rows:L,slotProps:P={},slots:N={},startAdornment:D,type:B="text",value:F}=n,q=z(n,dc),H=null!=b.value?b.value:F,{current:G}=y.useRef(null!=H),V=y.useRef(),Y=y.useCallback((e=>{}),[]),U=Zo(V,v,b.ref,Y),[W,K]=y.useState(!1),X=ic(),Z=function({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:W,y.useEffect((()=>{!X&&u&&W&&(K(!1),w&&w())}),[X,u,W,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback((e=>{!function(e,t=!1){return e&&(lc(e.value)&&""!==e.value||t&&lc(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()}),[J,Q]);Bo((()=>{G&&ee({value:H})}),[H,ee,G]);y.useEffect((()=>{ee(V.current)}),[]);let te=g,re=b;C&&"input"===te&&(re=$(L?{type:void 0,minRows:L,maxRows:L}:{type:void 0,maxRows:x,minRows:E},re),te=nc);y.useEffect((()=>{X&&X.setAdornedStart(Boolean(D))}),[X,D]);const ne=$({},n,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:D,type:B}),oe=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return mi({root:["root",`color${tn(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${tn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},sc,t)})(ne),ie=N.root||s.Root||uc,ae=P.root||c.root||{},le=N.input||s.Input||pc;return re=$({},re,null!=(r=P.input)?r:c.input),zr.jsxs(y.Fragment,{children:[!p&&hc,zr.jsxs(ie,$({},ae,!gi(ie)&&{ownerState:$({},ne,ae.ownerState)},{ref:t,onClick:e=>{V.current&&e.currentTarget===e.target&&V.current.focus(),k&&k(e)}},q,{className:uo(oe.root,ae.className,l,O&&"MuiInputBase-readOnly"),children:[D,zr.jsx(oc.Provider,{value:null,children:zr.jsx(le,$({ownerState:ne,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?V.current:{value:"x"})},name:S,placeholder:T,readOnly:O,required:Z.required,rows:L,value:H,onKeyDown:I,onKeyUp:_,type:B},re,!gi(le)&&{as:te,ownerState:$({},ne,re.ownerState)},{ref:U,className:uo(oe.input,re.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!G){const t=e.target||V.current;if(null==t)throw new Error(j(1));ee({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,M?M($({},Z,{startAdornment:D})):null]}))]})})),mc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gc={entering:{opacity:1},entered:{opacity:1}},bc=y.forwardRef((function(e,t){const r=sl(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:g=n,TransitionComponent:b=ms}=e,v=z(e,mc),x=y.useRef(null),E=Zo(x,Ci(a),t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},S=C(u),w=C(((e,t)=>{Cs(e);const n=Ss({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=C(d),k=C(f),A=C((e=>{const t=Ss({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),I=C(h);return zr.jsx(b,$({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:S,onExit:A,onExited:I,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,$({style:$({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},gc[e],m,a.props.style),ref:E},t))}))}));function vc(e){return fo("MuiBackdrop",e)}mo("MuiBackdrop",["root","invisible"]);const yc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],xc=zl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ec=y.forwardRef((function(e,t){var r,n,o;const i=es({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=bc,transitionDuration:g}=i,b=z(i,yc),v=$({},i,{component:s,invisible:u}),y=(e=>{const{classes:t,invisible:r}=e;return mi({root:["root",r&&"invisible"]},vc,t)})(v),x=null!=(r=h.root)?r:d.root;return zr.jsx(m,$({in:p,timeout:g},b,{children:zr.jsx(xc,$({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:c.Root)?n:s,className:uo(y.root,l,null==x?void 0:x.className),ownerState:$({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Cc=mo("MuiBox",["root"]),Sc=al(),wc=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=qr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Kn);return y.forwardRef((function(e,a){const l=ro(r),s=io(e),{className:c,component:d="div"}=s,u=z(s,po);return zr.jsx(i,$({as:d,ref:a,className:uo(c,o?o(n):n),theme:t&&l[t]||l},u))}))}({themeId:D,defaultTheme:Sc,defaultClassName:Cc.root,generateClassName:so.generate});function Rc(e){return fo("MuiButton",e)}const kc=mo("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"]),Ac=y.createContext({}),Ic=y.createContext(void 0),_c=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Tc=e=>$({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Oc=zl(Vs,{shouldForwardProp:e=>$l(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${tn(r.color)}`],t[`size${tn(r.size)}`],t[`${r.variant}Size${tn(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${kc.focusVisible}`]:$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${kc.disabled}`]:$({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Gi(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${kc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${kc.disabled}`]:{boxShadow:"none"}})),Mc=zl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${tn(r.size)}`]]}})((({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Tc(e)))),Lc=zl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${tn(r.size)}`]]}})((({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Tc(e)))),Pc=y.forwardRef((function(e,t){const r=y.useContext(Ac),n=y.useContext(Ic),o=es({props:zo(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,x=z(o,_c),E=$({},o,{color:a,component:l,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:b,variant:v}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $({},a,mi({root:["root",i,`${i}${tn(t)}`,`size${tn(o)}`,`${i}Size${tn(o)}`,`color${tn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${tn(o)}`],endIcon:["icon","endIcon",`iconSize${tn(o)}`]},Rc,a))})(E),S=g&&zr.jsx(Mc,{className:C.startIcon,ownerState:E,children:g}),w=p&&zr.jsx(Lc,{className:C.endIcon,ownerState:E,children:p}),R=n||"";return zr.jsxs(Oc,$({ownerState:E,className:uo(r.className,C.root,s,R),component:l,disabled:c,focusRipple:!u,focusVisibleClassName:uo(C.focusVisible,h),ref:t,type:b},x,{classes:C,children:[S,i,w]}))}));function jc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Nc(e){return parseInt(Wo(e).getComputedStyle(e).paddingRight,10)||0}function Dc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&jc(e,o)}))}function $c(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function zc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Uo(e);return t.body===e?Wo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ui(Uo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Nc(n)+e}px`;const t=Uo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Nc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Uo(n).body;else{const t=n.parentElement,r=Wo(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Bc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Bc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function qc(){return!0}function Hc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Fc,isEnabled:a=qc,open:l}=e,s=y.useRef(!1),c=y.useRef(null),d=y.useRef(null),u=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=Zo(Ci(t),f),g=y.useRef(null);y.useEffect((()=>{l&&f.current&&(h.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Uo(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(s.current=!0,u.current.focus()),u.current=null)}}),[l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Uo(f.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},r=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(f.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const b=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return zr.jsxs(y.Fragment,{children:[zr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),zr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})}const Gc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&jc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Dc(t,e.mount,e.modalRef,n,!0);const o=$c(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=$c(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=zc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=$c(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&jc(e.modalRef,t),Dc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&jc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Vc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Gc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=Zo(f,u),[g,b]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),C=()=>{o.mount(E(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},S=Xo((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Uo(h.current).body;o.add(E(),e),f.current&&C()})),w=y.useCallback((()=>o.isTopModal(E())),[o]),R=Xo((e=>{h.current=e,e&&(d&&w()?C():f.current&&jc(f.current,x))})),k=y.useCallback((()=>{o.remove(E(),x)}),[x,o]);y.useEffect((()=>()=>{k()}),[k]),y.useEffect((()=>{d?S():v&&i||k()}),[d,k,v,i,S]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=bi(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$({},r,t);return $({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>$({"aria-hidden":!0},e,{onClick:I(e),open:d}),getTransitionProps:()=>({onEnter:Vo((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Vo((()=>{b(!0),l&&l(),i&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function Yc(e){return fo("MuiModal",e)}mo("MuiModal",["root","hidden","backdrop"]);const Uc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Wc=zl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Kc=zl(Ec,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Xc=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=es({name:"MuiModal",props:e}),{BackdropComponent:c=Kc,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:C=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:A,open:I,slotProps:_,slots:T}=s,O=z(s,Uc),M=$({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:C,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:R,keepMounted:k}),{getRootProps:L,getBackdropProps:P,getTransitionProps:j,portalRef:N,isTopModal:D,exited:B,hasTransition:F}=Vc($({},M,{rootRef:t})),q=$({},M,{exited:B}),H=(e=>{const{open:t,exited:r,classes:n}=e;return mi({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Yc,n)})(q),G={};if(void 0===h.props.tabIndex&&(G.tabIndex="-1"),F){const{onEnter:e,onExited:t}=j();G.onEnter=e,G.onExited=t}const V=null!=(r=null!=(n=null==T?void 0:T.root)?n:g.Root)?r:Wc,Y=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:g.Backdrop)?o:c,U=null!=(a=null==_?void 0:_.root)?a:b.root,W=null!=(l=null==_?void 0:_.backdrop)?l:b.backdrop,K=Ei({elementType:V,externalSlotProps:U,externalForwardedProps:O,getSlotProps:L,additionalProps:{ref:t,as:m},ownerState:q,className:uo(u,null==U?void 0:U.className,null==H?void 0:H.root,!q.open&&q.exited&&(null==H?void 0:H.hidden))}),X=Ei({elementType:Y,externalSlotProps:W,additionalProps:d,getSlotProps:e=>P($({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:uo(null==W?void 0:W.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:q});return k||I||F&&!B?zr.jsx(Js,{ref:N,container:f,disablePortal:C,children:zr.jsxs(V,$({},K,{children:[!R&&c?zr.jsx(Y,$({},X)):null,zr.jsx(Hc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:S,isEnabled:D,open:I,children:y.cloneElement(h,G)})]}))}):null}));function Zc(e){return fo("MuiDivider",e)}const Jc=mo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Qc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ed=zl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Gi(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>$({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>$({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>$({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),td=zl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),rd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=r,h=z(r,Qc),f=$({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return mi({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Zc,n)})(f);return zr.jsx(ed,$({as:a,className:uo(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?zr.jsx(td,{className:m.wrapper,ownerState:f,children:o}):null}))}));rd.muiSkipListHighlight=!0;const nd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function od(e){return`scale(${e}, ${e**2})`}const id={entering:{opacity:1,transform:od(1)},entered:{opacity:1,transform:"none"}},ad="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ld=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=ms}=e,g=z(e,nd),b=ti(),v=y.useRef(),x=sl(),E=y.useRef(null),C=Zo(E,Ci(o),t),S=e=>t=>{if(e){const r=E.current;void 0===t?e(r):e(r,t)}},w=S(c),R=S(((e,t)=>{Cs(e);const{duration:r,delay:n,easing:o}=Ss({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:ad?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),k=S(s),A=S(p),I=S((e=>{const{duration:t,delay:r,easing:n}=Ss({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:ad?o:.666*o,delay:ad?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=od(.75),d&&d(e)})),_=S(u);return zr.jsx(m,$({appear:n,in:a,nodeRef:E,onEnter:R,onEntered:k,onEntering:w,onExit:I,onExited:_,onExiting:A,addEndListener:e=>{"auto"===f&&b.start(v.current||0,e),r&&r(E.current,e)},timeout:"auto"===f?null:f},g,{children:(e,t)=>y.cloneElement(o,$({style:$({opacity:0,transform:od(.75),visibility:"exited"!==e||a?void 0:"hidden"},id[e],h,o.props.style),ref:C},t))}))}));function sd(e){return fo("MuiInputAdornment",e)}ld.muiSupportAuto=!0;const cd=mo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var dd;const ud=["children","className","component","disablePointerEvents","disableTypography","position","variant"],pd=zl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${tn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>$({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${cd.positionStart}&:not(.${cd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),hd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=r,d=z(r,ud),u=ic()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=$({},r,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:s,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return mi({root:["root",r&&"disablePointerEvents",o&&`position${tn(o)}`,a,n&&"hiddenLabel",i&&`size${tn(i)}`]},sd,t)})(h);return zr.jsx(oc.Provider,{value:null,children:zr.jsx(pd,$({as:i,ownerState:h,className:uo(f.root,o),ref:t},d,{children:"string"!=typeof n||l?zr.jsxs(y.Fragment,{children:["start"===s?dd||(dd=zr.jsx("span",{className:"notranslate",children:""})):null,n]}):zr.jsx(Zs,{color:"text.secondary",children:n})}))})})),fd=y.createContext({});function md(e){return fo("MuiList",e)}mo("MuiList",["root","padding","dense","subheader"]);const gd=["children","className","component","dense","disablePadding","subheader"],bd=zl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),vd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,c=z(r,gd),d=y.useMemo((()=>({dense:a})),[a]),u=$({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return mi({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},md,t)})(u);return zr.jsx(fd.Provider,{value:d,children:zr.jsxs(bd,$({as:i,className:uo(p.root,o),ref:t,ownerState:u},c,{children:[s,n]}))})}));function yd(e){return fo("MuiListItem",e)}const xd=mo("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Ed(e){return fo("MuiListItemButton",e)}const Cd=mo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Sd=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],wd=zl(Vs,{shouldForwardProp:e=>$l(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Cd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Rd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:i="div",children:a,dense:l=!1,disableGutters:s=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=r,h=z(r,Sd),f=y.useContext(fd),m=y.useMemo((()=>({dense:l||f.dense||!1,alignItems:n,disableGutters:s})),[n,f.dense,l,s]),g=y.useRef(null);Bo((()=>{o&&g.current&&g.current.focus()}),[o]);const b=$({},r,{alignItems:n,dense:m.dense,disableGutters:s,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:a,selected:l}=e;return $({},r,mi({root:["root",n&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},Ed,r))})(b),x=Zo(g,t);return zr.jsx(fd.Provider,{value:m,children:zr.jsx(wd,$({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:uo(v.focusVisible,d),ownerState:b,className:uo(v.root,p)},h,{classes:v,children:a}))})}));function kd(e){return fo("MuiListItemSecondaryAction",e)}mo("MuiListItemSecondaryAction",["root","disableGutters"]);const Ad=["className"],Id=zl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),_d=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=z(r,Ad),i=$({},r,{disableGutters:y.useContext(fd).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return mi({root:["root",t&&"disableGutters"]},kd,r)})(i);return zr.jsx(Id,$({className:uo(a.root,n),ownerState:i,ref:t},o))}));_d.muiName="ListItemSecondaryAction";const Td=["className"],Od=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Md=zl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Cd.root}`]:{paddingRight:48}},{[`&.${xd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Ld=zl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Pd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:x,selected:E=!1,slotProps:C={},slots:S={}}=r,w=z(r.ContainerProps,Td),R=z(r,Od),k=y.useContext(fd),A=y.useMemo((()=>({dense:h||k.dense||!1,alignItems:n,disableGutters:m})),[n,k.dense,h,m]),I=y.useRef(null);Bo((()=>{o&&I.current&&I.current.focus()}),[o]);const _=y.Children.toArray(a),T=_.length&&(O=_[_.length-1],M=["ListItemSecondaryAction"],y.isValidElement(O)&&-1!==M.indexOf(null!=(L=O.type.muiName)?L:null==(P=O.type)||null==(P=P._payload)||null==(P=P.value)?void 0:P.muiName));var O,M,L,P;const j=$({},r,{alignItems:n,autoFocus:o,button:i,dense:A.dense,disabled:f,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:T,selected:E}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return mi({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},yd,n)})(j),D=Zo(I,t),B=S.root||c.Root||Md,F=C.root||d.root||{},q=$({className:uo(N.root,F.className,l),disabled:f},R);let H=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=uo(xd.focusVisible,v),H=Vs),T?(H=q.component||s?H:"div","li"===u&&("li"===H?H="div":"li"===q.component&&(q.component="div")),zr.jsx(fd.Provider,{value:A,children:zr.jsxs(Ld,$({as:u,className:uo(N.container,p),ref:D,ownerState:j},w,{children:[zr.jsx(B,$({},F,!gi(B)&&{as:H,ownerState:$({},j,F.ownerState)},q,{children:_})),_.pop()]}))})):zr.jsx(fd.Provider,{value:A,children:zr.jsxs(B,$({},F,{as:H,ref:D},!gi(B)&&{ownerState:$({},j,F.ownerState)},q,{children:[_,x&&zr.jsx(_d,{children:x})]}))})}));function jd(e){return fo("MuiListItemIcon",e)}const Nd=mo("MuiListItemIcon",["root","alignItemsFlexStart"]),Dd=["className"],$d=zl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),zd=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=z(r,Dd),i=$({},r,{alignItems:y.useContext(fd).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return mi({root:["root","flex-start"===t&&"alignItemsFlexStart"]},jd,r)})(i);return zr.jsx($d,$({className:uo(a.root,n),ownerState:i,ref:t},o))})),Bd=mo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Fd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Hd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Vd(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Gd(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const Yd=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=z(e,Fd),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Bo((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${ui(Uo(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const f=Zo(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return zr.jsx(vd,$({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Uo(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Vd(t,n,s,l,qd);else if("ArrowUp"===r)e.preventDefault(),Vd(t,n,s,l,Hd);else if("Home"===r)e.preventDefault(),Vd(t,null,s,l,qd);else if("End"===r)e.preventDefault(),Vd(t,null,s,l,Hd);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Gd(n,o);o.previousKeyMatched&&(s||Vd(t,n,!1,l,qd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},u,{children:g}))}));function Ud(e){return fo("MuiPopover",e)}mo("MuiPopover",["root","paper"]);const Wd=["onEntering"],Kd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xd=["slotProps"];function Zd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Jd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Qd(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eu(e){return"function"==typeof e?e():e}const tu=zl(Xc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ru=zl(As,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nu=y.forwardRef((function(e,t){var r,n,o;const i=es({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:C=ld,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=z(i.TransitionProps,Wd),A=z(i,Kd),I=null!=(r=null==x?void 0:x.paper)?r:b,_=y.useRef(),T=Zo(_,I.ref),O=$({},i,{anchorOrigin:s,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:E,TransitionComponent:C,transitionDuration:S,TransitionProps:k}),M=(e=>{const{classes:t}=e;return mi({root:["root"],paper:["paper"]},Ud,t)})(O),L=y.useCallback((()=>{if("anchorPosition"===d)return c;const e=eu(l),t=(e&&1===e.nodeType?e:Uo(_.current).body).getBoundingClientRect();return{top:t.top+Zd(t,s.vertical),left:t.left+Jd(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,d]),P=y.useCallback((e=>({vertical:Zd(e,E.vertical),horizontal:Jd(e,E.horizontal)})),[E.horizontal,E.vertical]),j=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=P(t);if("none"===d)return{top:null,left:null,transformOrigin:Qd(r)};const n=L();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,c=Wo(eu(l)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Qd(r)}}),[l,d,L,P,m]),[N,D]=y.useState(g),B=y.useCallback((()=>{const e=_.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,D(!0)}),[j]);y.useEffect((()=>(R&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B))),[l,R,B]);y.useEffect((()=>{g&&B()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{B()}}:null),[g,B]),y.useEffect((()=>{if(!g)return;const e=Yo((()=>{B()})),t=Wo(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,B]);let F=S;"auto"!==S||C.muiSupportAuto||(F=void 0);const q=h||(l?Uo(eu(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:tu,G=null!=(o=null==v?void 0:v.paper)?o:ru,V=Ei({elementType:G,externalSlotProps:$({},I,{style:N?I.style:$({},I.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:O,className:uo(M.paper,null==I?void 0:I.className)}),Y=Ei({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:q,open:g},ownerState:O,className:uo(M.root,p)}),{slotProps:U}=Y,W=z(Y,Xd);return zr.jsx(H,$({},W,!gi(H)&&{slotProps:U,disableScrollLock:R},{children:zr.jsx(C,$({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),B()},onExited:()=>{D(!1)},timeout:F},k,{children:zr.jsx(G,$({},V,{children:u}))}))}))}));function ou(e){return fo("MuiMenu",e)}mo("MuiMenu",["root","paper","list"]);const iu=["onEntering"],au=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],lu={vertical:"top",horizontal:"right"},su={vertical:"top",horizontal:"left"},cu=zl(nu,{shouldForwardProp:e=>$l(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),du=zl(ru,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uu=zl(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),pu=y.forwardRef((function(e,t){var r,n;const o=es({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=z(o.TransitionProps,iu),E=z(o,au),C=Ti(),S=$({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:g}),w=(e=>{const{classes:t}=e;return mi({root:["root"],paper:["paper"],list:["list"]},ou,t)})(S),R=i&&!s&&u,k=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:du,_=null!=(n=v.paper)?n:p,T=Ei({elementType:b.root,externalSlotProps:v.root,ownerState:S,className:[w.root,l]}),O=Ei({elementType:I,externalSlotProps:_,ownerState:S,className:w.paper});return zr.jsx(cu,$({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?lu:su,slots:{paper:I,root:b.root},slotProps:{root:T,paper:O},open:u,ref:t,transitionDuration:f,TransitionProps:$({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:S},E,{classes:h,children:zr.jsx(uu,$({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},c,{className:uo(w.list,c.className),children:a}))}))}));function hu(e){return fo("MuiMenuItem",e)}const fu=mo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),mu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gu=zl(Vs,{shouldForwardProp:e=>$l(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Jc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Jc.inset}`]:{marginLeft:52},[`& .${Bd.root}`]:{marginTop:0,marginBottom:0},[`& .${Bd.inset}`]:{paddingLeft:36},[`& .${Nd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Nd.root} svg`]:{fontSize:"1.25rem"}})))),bu=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:d,className:u}=r,p=z(r,mu),h=y.useContext(fd),f=y.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),m=y.useRef(null);Bo((()=>{n&&m.current&&m.current.focus()}),[n]);const g=$({},r,{dense:f.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $({},a,mi({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},hu,a))})(r),v=Zo(m,t);let x;return r.disabled||(x=void 0!==d?d:-1),zr.jsx(fd.Provider,{value:f,children:zr.jsx(gu,$({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:uo(b.focusVisible,s),className:uo(b.root,u)},p,{ownerState:g,classes:b}))})}));function vu(e){return fo("MuiTab",e)}const yu=mo("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),xu=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Eu=zl(Vs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${tn(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${yu.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${yu.iconWrapper}`]:$({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${yu.selected}`]:{opacity:1},[`&.${yu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${yu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${yu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${yu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${yu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Cu=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:s="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:g="inherit",value:b,wrapped:v=!1}=r,x=z(r,xu),E=$({},r,{disabled:o,disableFocusRipple:i,selected:f,icon:!!l,iconPosition:s,label:!!d,fullWidth:a,textColor:g,wrapped:v}),C=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:i,label:a,selected:l,disabled:s}=e;return mi({root:["root",i&&a&&"labelIcon",`textColor${tn(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},vu,t)})(E),S=l&&d&&y.isValidElement(l)?y.cloneElement(l,{className:uo(C.iconWrapper,l.props.className)}):l;return zr.jsxs(Eu,$({focusRipple:!i,className:uo(C.root,n),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,b),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,b),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===s||"start"===s?zr.jsxs(y.Fragment,{children:[S,d]}):zr.jsxs(y.Fragment,{children:[d,S]}),c]}))}));var Su=is(zr.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wu=is(zr.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ru(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const ku=["onChange"],Au={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Iu(e){return fo("MuiTabScrollButton",e)}const _u=mo("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Tu=["className","slots","slotProps","direction","orientation","disabled"],Ou=zl(Vs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${_u.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),Mu=y.forwardRef((function(e,t){var r,n;const o=es({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:s}=o,c=z(o,Tu),d=$({isRtl:Ti()},o),u=(e=>{const{classes:t,orientation:r,disabled:n}=e;return mi({root:["root",r,n&&"disabled"]},Iu,t)})(d),p=null!=(r=a.StartScrollButtonIcon)?r:Su,h=null!=(n=a.EndScrollButtonIcon)?n:wu,f=Ei({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Ei({elementType:h,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return zr.jsx(Ou,$({component:"div",className:uo(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===s?zr.jsx(p,$({},f)):zr.jsx(h,$({},m))}))}));function Lu(e){return fo("MuiTabs",e)}const Pu=mo("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),ju=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nu=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Du=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,$u=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},zu=zl("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Pu.scrollButtons}`]:t.scrollButtons},{[`& .${Pu.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Pu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Bu=zl("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Fu=zl("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),qu=zl("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Hu=zl((function(e){const{onChange:t}=e,r=z(e,ku),n=y.useRef(),o=y.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Bo((()=>{const e=Yo((()=>{const e=n.current;i(),e!==n.current&&t(n.current)})),r=Wo(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}}),[t]),y.useEffect((()=>{i(),t(n.current)}),[t]),zr.jsx("div",$({style:Au},r,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Gu={},Vu=y.forwardRef((function(e,t){const r=es({props:e,name:"MuiTabs"}),n=sl(),o=Ti(),{"aria-label":i,"aria-labelledby":a,action:l,centered:s=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:g=Mu,scrollButtons:b="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:S={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:A=!1}=r,I=z(r,ju),_="scrollable"===k,T="vertical"===m,O=T?"scrollTop":"scrollLeft",M=T?"top":"left",L=T?"bottom":"right",P=T?"clientHeight":"clientWidth",j=T?"height":"width",N=$({},r,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:T,scrollButtons:b,textColor:w,variant:k,visibleScrollbar:A,fixed:!_,hideScrollbar:_&&!A,scrollableX:_&&!T,scrollableY:_&&T,centered:s&&!_,scrollButtonsHideMobile:!p}),D=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return mi({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Lu,s)})(N),B=Ei({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=Ei({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[q,H]=y.useState(!1),[G,V]=y.useState(Gu),[Y,U]=y.useState(!1),[W,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),re=y.useRef(null),ne=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:fi(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==R){const e=re.current.children;if(e.length>0){const t=e[ee.get(R)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},oe=Xo((()=>{const{tabsMeta:e,tabMeta:t}=ne();let r,n=0;if(T)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(o?-1:1)*(t[r]-e[r]+i)}const i={[r]:n,[j]:t?t[j]:0};if(isNaN(G[r])||isNaN(G[j]))V(i);else{const e=Math.abs(G[r]-i[r]),t=Math.abs(G[j]-i[j]);(e>=1||t>=1)&&V(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},o=()=>{}){const{ease:i=Ru,duration:a=300}=n;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=n=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=n);const d=Math.min(1,(n-l)/a);t[e]=i(d)*(r-s)+s,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};s===r?o(new Error("Element already at target position")):requestAnimationFrame(u)}(O,te.current,e,{duration:n.transitions.duration.standard}):te.current[O]=e},ae=e=>{let t=te.current[O];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===hi()?-1:1),ie(t)},le=()=>{const e=te.current[P];let t=0;const r=Array.from(re.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[P]>e){0===n&&(t=e);break}t+=o[P]}return t},se=()=>{ae(-1*le())},ce=()=>{ae(le())},de=y.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=Xo((e=>{const{tabsMeta:t,tabMeta:r}=ne();if(r&&t)if(r[M]<t[M]){const n=t[O]+(r[M]-t[M]);ie(n,{animation:e})}else if(r[L]>t[L]){const n=t[O]+(r[L]-t[L]);ie(n,{animation:e})}})),pe=Xo((()=>{_&&!1!==b&&Z(!X)}));y.useEffect((()=>{const e=Yo((()=>{te.current&&oe()}));let t;const r=r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()},n=Wo(te.current);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(r),o.observe(re.current,{childList:!0})),()=>{var r,i;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(i=t)||i.disconnect()}}),[oe,pe]),y.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&_&&!1!==b){const r=e[0],n=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),o);i.observe(r);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),o);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}}),[_,b,X,null==c?void 0:c.length]),y.useEffect((()=>{H(!0)}),[]),y.useEffect((()=>{oe()})),y.useEffect((()=>{ue(Gu!==G)}),[ue,G]),y.useImperativeHandle(l,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const he=zr.jsx(qu,$({},C,{className:uo(D.indicator,C.className),ownerState:N,style:$({},G,C.style)}));let fe=0;const me=y.Children.map(c,(e=>{if(!y.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const r=t===R;return fe+=1,y.cloneElement(e,$({fullWidth:"fullWidth"===k,indicator:r&&!q&&he,selected:r,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),ge=(()=>{const e={};e.scrollbarSizeListener=_?zr.jsx(Hu,{onChange:de,className:uo(D.scrollableX,D.hideScrollbar)}):null;const t=_&&("auto"===b&&(Y||W)||!0===b);return e.scrollButtonStart=t?zr.jsx(g,$({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:B},orientation:m,direction:o?"right":"left",onClick:se,disabled:!Y},S,{className:uo(D.scrollButtons,S.className)})):null,e.scrollButtonEnd=t?zr.jsx(g,$({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!W},S,{className:uo(D.scrollButtons,S.className)})):null,e})();return zr.jsxs(zu,$({className:uo(D.root,d),ownerState:N,ref:t,as:u},I,{children:[ge.scrollButtonStart,ge.scrollbarSizeListener,zr.jsxs(Bu,{className:D.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[zr.jsx(Fu,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:D.flexContainer,ownerState:N,onKeyDown:e=>{const t=re.current,r=Uo(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),$u(t,r,Du);break;case i:e.preventDefault(),$u(t,r,Nu);break;case"Home":e.preventDefault(),$u(t,null,Nu);break;case"End":e.preventDefault(),$u(t,null,Du)}},ref:re,role:"tablist",children:me}),q&&he]}),ge.scrollButtonEnd]}))}));function Yu(e){return zr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:zr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Uu=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return zr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function Wu(e={}){return zr.jsx(Uu,{...e,children:zr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[zr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),zr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Ku(e={}){return zr.jsx(Uu,{fontSize:"medium",...e,children:zr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[zr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),zr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Xu(e){return zr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:zr.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Zu(e={}){return zr.jsx(Uu,{...e,children:zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:zr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[zr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),zr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Ju(e={}){return zr.jsx(Uu,{fontSize:"medium",...e,children:zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:zr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:zr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Qu({className:e}){return zr.jsx(Uu,{fontSize:"small",className:e,children:zr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:zr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:zr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:zr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[zr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),zr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function ep(e={}){return zr.jsx(Uu,{...e,children:zr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:zr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:zr.jsx("rect",{stroke:Hl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const tp={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Wl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var rp=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Hl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Hl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:zr.jsx(Yu,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Hl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Hl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`,borderRadius:Wl,backgroundColor:Hl.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Hl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Hl.WHITE,color:Hl.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Wl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Hl.GREYSCALE_0_15,backgroundColor:Hl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Hl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Hl.GREEN_PALE},"&:active":{backgroundColor:Hl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hl.GREEN_PALE,boxShadow:`0 0 0 3px ${Go(Hl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Hl.BLUE_PALE},"&:active":{backgroundColor:Hl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hl.BLUE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Wl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Hl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Hl.GREYSCALE_0_15,backgroundColor:Hl.GREYSCALE_100_60,"&:active":{backgroundColor:Hl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Hl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Hl.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Hl.PURPLE,"&.Mui-focusVisible":{borderColor:Hl.PURPLE,boxShadow:`0 0 0 3px ${Go(Hl.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Hl.GREEN,"&.Mui-focusVisible":{borderColor:Hl.GREEN,boxShadow:`0 0 0 3px ${Go(Hl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Hl.BLUE,"&.Mui-focusVisible":{borderColor:Hl.BLUE,boxShadow:`0 0 0 3px ${Go(Hl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Hl.ORANGE,"&.Mui-focusVisible":{borderColor:Hl.ORANGE,boxShadow:`0 0 0 3px ${Go(Hl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Hl.RED,"&.Mui-focusVisible":{borderColor:Hl.RED,boxShadow:`0 0 0 3px ${Go(Hl.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Hl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Hl.PURPLE_PALE},"&:active":{backgroundColor:Hl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Hl.PURPLE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Hl.GREEN_PALE},"&:active":{backgroundColor:Hl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Hl.GREEN_PALE,boxShadow:`0 0 0 3px ${Go(Hl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Hl.BLUE_PALE},"&:active":{backgroundColor:Hl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Hl.BLUE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Hl.ORANGE_PALE},"&:active":{backgroundColor:Hl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Hl.ORANGE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Hl.RED_PALE},"&:active":{backgroundColor:Hl.RED_DARK},"&.Mui-focusVisible":{borderColor:Hl.RED_PALE,boxShadow:`0 0 0 3px ${Go(Hl.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Hl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Hl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wl,boxShadow:`inset 0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:zr.jsx(Xu,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Gl,borderRadius:Wl,color:Hl.TEXT_PRIMARY,backgroundColor:Hl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Hl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Hl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Hl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Hl.GREYSCALE_0_05,color:Hl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Hl.GREEN,borderColor:Hl.GREEN},"&.MuiChip-outlinedInfo":{color:Hl.BLUE,borderColor:Hl.BLUE},"&.MuiChip-outlinedWarning":{color:Hl.ORANGE,borderColor:Hl.ORANGE},"&.MuiChip-outlinedError":{color:Hl.RED,borderColor:Hl.RED}},outlined:{border:`solid 1px ${Hl.GREYSCALE_0_15}`,backgroundColor:Hl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wl,boxShadow:"none",backgroundColor:Hl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Hl.GREEN,borderColor:Hl.GREEN},outlinedSecondary:{color:Hl.BLUE,borderColor:Hl.BLUE},label:{fontFamily:Ql.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:zr.jsx(Xu,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:zr.jsx(Yu,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Wl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wl,fontSize:Vl,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Hl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Hl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Hl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Hl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Hl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wl,border:`solid 1px ${Hl.GREYSCALE_0_15}`,color:Hl.GREYSCALE_0_60,marginRight:0,width:Ul,height:Ul},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Hl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Hl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Vl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Gl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Hl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Hl.GREYSCALE_25,fontSize:Gl,fontFamily:Ql.FONT_FAMILY,fontWeight:Zl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Hl.TEXT_PRIMARY},"&.Mui-error":{color:Hl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Hl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Xl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Hl.TEXT_SECONDARY,content:"'(required)'",fontWeight:Xl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Vl,lineHeight:"16px",backgroundColor:Hl.WHITE,borderRadius:Wl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hl.GREYSCALE_0_05}`,borderColor:Hl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Hl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Hl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hl.RED}`,boxShadow:`0px 0px 0px 1px ${Hl.RED}, inset 0 2px 0 0 ${Hl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Hl.GREYSCALE_0_10}`,borderColor:Hl.GREYSCALE_0_10,backgroundColor:Hl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Hl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Hl.GREYSCALE_0_15,borderRadius:Wl,boxShadow:`inset 0 2px 0 0 ${Hl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>zr.jsx(Yu,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Hl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Hl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Hl.GREYSCALE_0_03},"&:active":{backgroundColor:Hl.GREYSCALE_0_10},"&:focus":{backgroundColor:Hl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Hl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Hl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Hl.GREYSCALE_0_30,"&:hover":{backgroundColor:Hl.GREYSCALE_0_0,borderColor:Hl.GREYSCALE_0_15},"& ~svg":{color:Hl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Hl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Hl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Hl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Vl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Gl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Gl,fontWeight:Zl,color:Hl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Zl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Hl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:zr.jsx(Ju,{}),checkedIcon:zr.jsx(Ku,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Hl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Hl.GREEN_PALE,boxShadow:`0 0 0 3px ${Go(Hl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Hl.BLUE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Hl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Hl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:zr.jsx(ep,{}),checkedIcon:zr.jsx(Wu,{}),indeterminateIcon:zr.jsx(Zu,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Hl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Hl.GREYSCALE_0_55,color:Hl.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Hl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Hl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Hl.GREYSCALE_0_55,"&:hover":{color:Hl.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Hl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Hl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Vl,color:Hl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Zl},secondary:{fontSize:Gl,color:Hl.GREYSCALE_45,fontWeight:Xl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Vl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Vl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Hl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Gl,borderBottom:`solid 1px ${Hl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Vl,color:Hl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Hl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Hl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Hl.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Hl.RED}}},"&.Mui-focusVisible":{backgroundColor:Hl.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Hl.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Hl.GREEN,height:"24px","&.Mui-disabled":{color:Hl.GREYSCALE_0_15}},rail:{backgroundColor:Hl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Hl.GREYSCALE_0_05}`,borderRadius:Wl,boxShadow:`inset 0px 0px 0px 1px ${Hl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Hl.GREYSCALE_0_05}`,borderRadius:Wl},thumb:{height:"16px",width:"16px",borderRadius:Wl,backgroundColor:Hl.WHITE,boxShadow:`0px 1px 2px 0px ${Hl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Hl.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wl,boxShadow:`0 2px 4px 0 ${Hl.GREYSCALE_0_30}, 0 0 0 1px ${Hl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Hl.GREYSCALE_0_15}, 0 0 0 1px ${Hl.GREYSCALE_0_06}, 0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Hl.GREYSCALE_0_15}, 0 0 0 1px ${Hl.GREYSCALE_0_06}, 0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Hl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Hl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Hl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Hl.GREYSCALE_0_15},markLabel:{color:Hl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Hl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Hl.WHITE,color:Hl.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Hl.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Hl.GREEN_PALE,boxShadow:`0 0 0 3px ${Go(Hl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Hl.BLUE_PALE,boxShadow:`0 0 0 3px ${Go(Hl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Hl.GREYSCALE_0_15,borderRadius:Wl},thumb:{height:"16px",width:"16px",borderRadius:Wl,backgroundColor:Hl.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Vl,fontWeight:Zl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Hl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Hl.MISC_FOCUS_BORDER}`,backgroundColor:Hl.GREYSCALE_0_03,borderRadius:Wl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Hl.GREYSCALE_25,"&.Mui-selected":{color:Hl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Vl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wl,"&:hover":{backgroundColor:Hl.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Hl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Hl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Hl.GREYSCALE_0_05},"&:hover":{backgroundColor:Hl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Hl.GREYSCALE_85}`,borderRight:`1px solid ${Hl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Zl,backgroundColor:Hl.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Hl.GREYSCALE_98,borderBottom:`1px solid ${Hl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Hl.GREYSCALE_85}`,borderTop:`1px solid ${Hl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Hl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Hl.GREYSCALE_0_05,"&:hover":{backgroundColor:Hl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Hl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>zr.jsx(Qu,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Hl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Vl,borderRadius:Wl,padding:"7px 16px",border:`1px solid ${Hl.GREYSCALE_0_15}`,backgroundColor:Hl.GREYSCALE_100_60,color:Hl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Hl.GREYSCALE_0_10,border:`1px solid ${Hl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Hl.GREYSCALE_0_03,border:`1px solid ${Hl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Hl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Hl.MISC_FOCUS_BORDER}`,border:`1px solid ${Hl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Hl.GREYSCALE_25,backgroundColor:Hl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Hl.GREYSCALE_0_10,border:`1px solid ${Hl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Gl,height:24,width:24,padding:7},sizeLarge:{fontSize:Yl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Vl,borderRadius:Wl}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Hl.GREYSCALE_20},tooltip:{backgroundColor:Hl.GREYSCALE_20,fontSize:Gl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...tp}:{}});var np=()=>({mode:"light",primary:{ultraLight:Hl.GREEN_ULTRA_LIGHT,light:Hl.GREEN_PALE,main:Hl.GREEN,dark:Hl.GREEN_DARK,extraDark:Hl.GREEN_EXTRA_DARK,contrastText:Hl.WHITE},secondary:{ultraLight:Hl.BLUE_ULTRA_LIGHT,light:Hl.BLUE_PALE,main:Hl.BLUE,dark:Hl.BLUE_DARK,extraDark:Hl.BLUE_EXTRA_DARK,contrastText:Hl.WHITE},error:{ultraLight:Hl.RED_ULTRA_LIGHT,light:Hl.RED_PALE,main:Hl.RED,dark:Hl.RED_DARK,extraDark:Hl.RED_EXTRA_DARK,contrastText:Hl.WHITE},warning:{ultraLight:Hl.ORANGE_ULTRA_LIGHT,light:Hl.ORANGE_PALE,main:Hl.ORANGE,dark:Hl.ORANGE_DARK,extraDark:Hl.ORANGE_EXTRA_DARK,contrastText:Hl.WHITE},success:{ultraLight:Hl.GREEN_ULTRA_LIGHT,light:Hl.GREEN_PALE,main:Hl.GREEN,dark:Hl.GREEN_DARK,extraDark:Hl.GREEN_EXTRA_DARK,contrastText:Hl.WHITE},info:{ultraLight:Hl.BLUE_ULTRA_LIGHT,light:Hl.BLUE_PALE,main:Hl.BLUE,dark:Hl.BLUE_DARK,extraDark:Hl.BLUE_EXTRA_DARK,contrastText:Hl.WHITE},text:{primary:Hl.TEXT_PRIMARY,secondary:Hl.TEXT_SECONDARY,disabled:Hl.GREYSCALE_0_30},action:{hover:Hl.GREYSCALE_0_03,hoverOpacity:.03,selected:Hl.GREYSCALE_0_05,selectedOpacity:.05,focus:Hl.MISC_FOCUS_BORDER},amethyst:{ultraLight:Hl.WHITE,main:Hl.PURPLE,light:Hl.PURPLE_PALE,dark:Hl.PURPLE_DARK,extraDark:Hl.GREYSCALE_0_0,contrastText:Hl.WHITE},background:{paper:Hl.WHITE,default:Hl.GREYSCALE_95},divider:Hl.GREYSCALE_0_15});var op=e=>np();var ip=(e,t=!1)=>{const r=((e,t)=>rp(t))(0,t);return{components:r,palette:op(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Vl,fontWeightLight:Kl,fontWeightRegular:Xl,fontWeightMedium:Zl,fontWeightBold:Jl,htmlFontSize:Vl,fontFamily:Ql.FONT_FAMILY,button:{fontWeight:Zl,fontSize:Vl,textTransform:"none"},body1:{fontSize:Yl,lineHeight:"24px"},body2:{fontSize:Vl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ul,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Yl,fontWeight:Zl,lineHeight:"16px"},h6:{fontSize:Vl,fontWeight:Zl,lineHeight:"16px"},caption:{color:Hl.TEXT_SECONDARY},subtitle1:{fontSize:Vl,color:Hl.TEXT_SECONDARY},subtitle2:{fontSize:Gl,color:Hl.TEXT_SECONDARY}},shape:{borderRadius:Wl}}};function ap(e){return al({...ip("light"),direction:e})}class lp{constructor({translator:e}){P(this,"translator",void 0),P(this,"muiTheme",void 0),P(this,"containers",{}),P(this,"sync",(({element:e,sharedContainerUtilities:t,translator:r,containerId:n,dataHandler:o,renderHelper:i})=>{this.translator=r,this.containers[n]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i}})),P(this,"setMuiTheme",(e=>{this.muiTheme=ap(e)})),P(this,"destroy",(e=>{delete this.containers[e]})),this.translator=e}}const sp=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class cp{constructor(e,t){P(this,"embed",void 0),P(this,"translator",void 0),P(this,"charts",{}),P(this,"getCharts",(()=>{var e;return this.charts=(null===(e=this.embed)||void 0===e?void 0:e.getRegisteredTypes()).reduce(((e,t)=>{var r,n;if(!(sp.includes(t.id)||!1===(null===(r=t.libraryInfo)||void 0===r?void 0:r.isLibraryItem)||null!==(n=t.libraryInfo)&&void 0!==n&&n.deprecated)){var o;const r=t;null!==(o=r.libraryInfo)&&void 0!==o&&o.translationKey&&(r.libraryInfo.translation=this.translator.get(r.libraryInfo.translationKey)),e[t.id||t.type]=r}return e}),{}),this.charts})),P(this,"getChart",(e=>(this.charts[e]||this.getCharts(),this.charts[e]))),this.embed=e,this.translator=t}}var dp,up=O;dp=up.createRoot,up.hydrateRoot;const pp=x(((e,t)=>zr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:zr.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),hp="rgb(89, 89, 89)",fp=_r(wc)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),mp=_r(wc)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),gp=_r(vd,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),bp=_r(Zs)({color:hp,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),vp=_r(zd)({"&.MuiListItemIcon-root":{minWidth:32,color:hp,marginRight:"0px"}}),yp=_r(rd)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),xp=_r(Pc)({"&.MuiButton-contained":{backgroundColor:hp,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:hp,color:hp,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${hp}`}}}),Ep=_r(os)({width:"1em",height:"1em",paddingBottom:"8px"}),Cp=_r(os)({width:"16px",height:"16px"}),Sp=({name:e,items:t,onSelect:r})=>C.createElement(C.Fragment,null,C.createElement(Pd,{key:e,dense:!0},C.createElement(bp,{noWrap:!0,fontWeight:"bold"},e)),C.createElement(yp,null),t.map((e=>{var t;return C.createElement(Pd,{key:null!==(t=e.qExtendsId)&&void 0!==t?t:e.name,divider:!0,disablePadding:!0,disableGutters:!0},C.createElement(Rd,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{r(e)},disableRipple:!0,dense:!0},e.iconPath&&C.createElement(vp,null,e.IconDefinition?C.createElement(e.IconDefinition,null):C.createElement(Cp,{viewBox:"0 0 16 16"},C.createElement("path",{d:e.iconPath}))),C.createElement(bp,{noWrap:!0,title:e.translation||e.name},e.translation||e.name)))}))),wp=({categories:e,anchorEl:t,onClose:r,onSelect:n,width:o})=>{const[i,a]=k(""),l=!!t;return A((()=>{l&&a("")}),[l]),C.createElement(nu,{open:l,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"}},C.createElement(fc,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:C.createElement(hd,{position:"start"},C.createElement(pp,null))}),C.createElement(yp,null),C.createElement(gp,{width:o},e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return(null==t?void 0:t.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()))>-1}));return t.length>0&&C.createElement(Sp,{key:e.name,name:e.name,items:t,onSelect:n})}))))},Rp=({anchorEl:e,onClose:t,dataHandler:r,translator:n,sharedContainerUtilities:o,width:i})=>{const[a,l]=k([]),[s,c]=k({});A((()=>{if(e&&r){(async()=>{const e=await r.getMasterVizList();l(e),c(r.getCharts())})().catch((()=>{}))}}),[e,r]);const d=[],u=[],p=new Map,h=Object.values(s);if(0===h.length&&0===a.length)return null;h.forEach((e=>{var t;if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(null!==(t=e.libraryInfo.bundle)&&void 0!==t&&t.name){const t=e.libraryInfo.bundle.name,r=p.get(t);r?r.push(e):p.set(t,[e])}else u.push(e)}));const f=e=>e.map((e=>{var t,r,n,o;return{iconPath:null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.id,translation:(null===(n=e.libraryInfo)||void 0===n?void 0:n.translation)||(null===(o=e.libraryInfo)||void 0===o?void 0:o.name)||e.id||"",type:e.id}})).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),m=[{name:n.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>{var t,r;return{qExtendsId:e.qExtendsId,iconPath:null===(t=s[e.visualization])||void 0===t||null===(t=t.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=s[e.visualization])||void 0===r||null===(r=r.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.name,type:e.visualization}})).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:n.get("LayoutContainer.Object.Charts"),items:d.map((e=>{var t,r,n,o,i;return{iconPath:(null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath)||"",IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:(null===(n=e.libraryInfo)||void 0===n?void 0:n.name)||e.id,type:(null===(o=e.libraryInfo)||void 0===o?void 0:o.template)||e.id,translation:(null===(i=e.libraryInfo)||void 0===i?void 0:i.translation)||e.id||""}})).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:n.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return C.createElement(wp,{categories:m,anchorEl:e,onSelect:e=>{if(!r)return;const{qExtendsId:n}=e;(n?r.addMasterObjectAsChild({initProps:{qExtendsId:n,qInfo:{qType:"undefined"}}}):r.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then((e=>{null!=e&&e.id&&(null==o||o.setSelected([e.id]))})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},kp=e=>{var t,r;const n=Ip(e);return null!==(t=null===(r=e.objects)||void 0===r?void 0:r.map((e=>{const{childRefId:t}=e;if(!t)return e;const r=n[t];return r?{...e,id:r}:e})))&&void 0!==t?t:[]},Ap=(e,t)=>{var r;return null==e||null===(r=e.qChildList)||void 0===r||null===(r=r.qItems)||void 0===r?void 0:r.find((e=>{var r;return(null==e||null===(r=e.qData)||void 0===r?void 0:r.childRefId)===t}))},Ip=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qData)||void 0===r?void 0:r.childRefId]=null==t||null===(n=t.qInfo)||void 0===n?void 0:n.qId,e}),{})};var _p=Ap,Tp=e=>{const t={...e};return t.objects=kp(t),t},Op=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qInfo)||void 0===r?void 0:r.qId]=null===(n=t.qData)||void 0===n?void 0:n.childRefId,e}),{})},Mp=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Lp=(e,t)=>{var r;if(!e)return t;const n=Ap(e,t);return null==n||null===(r=n.qInfo)||void 0===r?void 0:r.qId};class Pp{constructor({app:e,data:t}){P(this,"layout",void 0),P(this,"app",void 0),P(this,"activeId",""),P(this,"data",void 0),P(this,"properties",void 0),P(this,"setSelectedChild",(e=>{var t;null===(t=this.activeContainer)||void 0===t||null===(t=t.sharedContainerUtilities)||void 0===t||t.setSelected(e)})),P(this,"addChild",(({initProps:e,objectInitProps:t,children:r})=>{if(!this.activeContainer)return;const{dataHandler:n}=this.activeContainer;if(null!=e&&e.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return null==n?void 0:n.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:r})}return null==n?void 0:n.addVizAsChild({type:null==e?void 0:e.visualization,initProps:e,objectInitProps:t,children:r})})),P(this,"deleteChild",(async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(null==t?void 0:t.deleteChildren([e]))})),P(this,"duplicateChild",(async e=>{var t;const{childRefId:r,...n}=e,o=this.getEngineId(r);if(!o)return;const i=await(null===(t=this.app)||void 0===t?void 0:t.getObject(o));if(i&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await i.getFullPropertyTree(),r=t.qProperty,o=t.qChildren,a=await this.addChild({initProps:r,children:o,objectInitProps:n});a&&(null==e||e.setSelected([a.id]))}})),P(this,"openAddChildPopover",(e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const r=e.getElementsByClassName(t);let n;return 0===r.length?(n=document.createElement("div"),n.className=t,e.appendChild(n)):n=r[0],dp(n)})(this.activeContainer.element,"add-child-popover"),r=()=>{t.unmount()};null==t||t.render(C.createElement(Fl,{theme:this.data.muiTheme},C.createElement(Rp,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:r,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})))}})),P(this,"setModel",(e=>{this.activeId=e.id})),P(this,"setLayout",(e=>{this.layout=e})),P(this,"getLayout",(()=>this.layout)),P(this,"getEngineId",(e=>Lp(this.layout,e))),P(this,"setProperties",(e=>{this.properties=e})),P(this,"canAddDimension",(()=>!1)),P(this,"canAddMeasure",(()=>!1)),P(this,"canColorBy",(()=>!1)),P(this,"getDimensions",(()=>[])),P(this,"getMeasures",(()=>[])),P(this,"minDimensions",(()=>0)),P(this,"minMeasures",(()=>0)),P(this,"maxDimensions",(()=>0)),P(this,"maxMeasures",(()=>0)),this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}getObject(e){const t=this.getEngineId(e);var r;if(t)return null===(r=this.activeContainer)||void 0===r?void 0:r.renderHelper.objectMap.get(t)}}function jp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Np(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||$p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dp(e){return function(e){if(Array.isArray(e))return jp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $p(e,t){if(e){if("string"==typeof e)return jp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jp(e,t):void 0}}var zp=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Bp=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Fp=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function qp(e){var t=e.theme,r=e.translator,n=e.defaultValue,o=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,Dp(new Set([n].concat(Dp(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(n),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(Dp(i.map((function(e){return Fp(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],Dp(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Bp:zp}(o).map((function(e){return Fp(e)}))))}function Hp(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=e.flags,a=function(){return t.getStyle(n,o,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return qp({theme:t,translator:r,defaultValue:a(),flags:i})}}}var Gp,Vp,Yp=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Up=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function Wp(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=function(){return t.getStyle(n,o,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,n=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?n.push.apply(n,Dp(new Set([r].concat(Dp(o))))):n.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Dp(n.map((function(e){return Up(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Dp(Yp.map((function(e){return Up(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function Kp(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:Hp({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:Wp({theme:t,translator:r,id:n,path:o})}}function Xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zp=function(){if(Vp)return Gp;Vp=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Gp=function e(){var t,r,n,s,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(r in t)n=l(u,r),u!==(s=l(t,r))&&(f&&s&&(i(s)||(c=o(s)))?(c?(c=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(f,d,s)})):void 0!==s&&a(u,{name:r,newValue:s}));return u},Gp}();function Jp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Qp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function eh(){}Xp(Zp);var th=1/.7,rh="\\s*([+-]?\\d+)\\s*",nh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ih=/^#([0-9a-f]{3,8})$/,ah=new RegExp(`^rgb\\(${rh},${rh},${rh}\\)$`),lh=new RegExp(`^rgb\\(${oh},${oh},${oh}\\)$`),sh=new RegExp(`^rgba\\(${rh},${rh},${rh},${nh}\\)$`),ch=new RegExp(`^rgba\\(${oh},${oh},${oh},${nh}\\)$`),dh=new RegExp(`^hsl\\(${nh},${oh},${oh}\\)$`),uh=new RegExp(`^hsla\\(${nh},${oh},${oh},${nh}\\)$`),ph={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 hh(){return this.rgb().formatHex()}function fh(){return this.rgb().formatRgb()}function mh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ih.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?gh(t):3===r?new xh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?bh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?bh(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=ah.exec(e))?new xh(t[1],t[2],t[3],1):(t=lh.exec(e))?new xh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sh.exec(e))?bh(t[1],t[2],t[3],t[4]):(t=ch.exec(e))?bh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dh.exec(e))?kh(t[1],t[2]/100,t[3]/100,1):(t=uh.exec(e))?kh(t[1],t[2]/100,t[3]/100,t[4]):ph.hasOwnProperty(e)?gh(ph[e]):"transparent"===e?new xh(NaN,NaN,NaN,0):null}function gh(e){return new xh(e>>16&255,e>>8&255,255&e,1)}function bh(e,t,r,n){return n<=0&&(e=t=r=NaN),new xh(e,t,r,n)}function vh(e){return e instanceof eh||(e=mh(e)),e?new xh((e=e.rgb()).r,e.g,e.b,e.opacity):new xh}function yh(e,t,r,n){return 1===arguments.length?vh(e):new xh(e,t,r,null==n?1:n)}function xh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Eh(){return`#${Rh(this.r)}${Rh(this.g)}${Rh(this.b)}`}function Ch(){const e=Sh(this.opacity);return`${1===e?"rgb(":"rgba("}${wh(this.r)}, ${wh(this.g)}, ${wh(this.b)}${1===e?")":`, ${e})`}`}function Sh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rh(e){return((e=wh(e))<16?"0":"")+e.toString(16)}function kh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ih(e,t,r,n)}function Ah(e){if(e instanceof Ih)return new Ih(e.h,e.s,e.l,e.opacity);if(e instanceof eh||(e=mh(e)),!e)return new Ih;if(e instanceof Ih)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Ih(a,l,s,e.opacity)}function Ih(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function _h(e){return(e=(e||0)%360)<0?e+360:e}function Th(e){return Math.max(0,Math.min(1,e||0))}function Oh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Jp(eh,mh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:hh,formatHex:hh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ah(this).formatHsl()},formatRgb:fh,toString:fh}),Jp(xh,yh,Qp(eh,{brighter(e){return e=null==e?th:Math.pow(th,e),new xh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xh(wh(this.r),wh(this.g),wh(this.b),Sh(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:Eh,formatHex:Eh,formatHex8:function(){return`#${Rh(this.r)}${Rh(this.g)}${Rh(this.b)}${Rh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ch,toString:Ch})),Jp(Ih,(function(e,t,r,n){return 1===arguments.length?Ah(e):new Ih(e,t,r,null==n?1:n)}),Qp(eh,{brighter(e){return e=null==e?th:Math.pow(th,e),new Ih(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ih(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new xh(Oh(e>=240?e-240:e+120,o,n),Oh(e,o,n),Oh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ih(_h(this.h),Th(this.s),Th(this.l),Sh(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=Sh(this.opacity);return`${1===e?"hsl(":"hsla("}${_h(this.h)}, ${100*Th(this.s)}%, ${100*Th(this.l)}%${1===e?")":`, ${e})`}`}}));const Mh=Math.PI/180,Lh=180/Math.PI,Ph=4/29,jh=6/29,Nh=3*jh*jh;function Dh(e){if(e instanceof $h)return new $h(e.l,e.a,e.b,e.opacity);if(e instanceof Hh)return Gh(e);e instanceof xh||(e=vh(e));var t,r,n=qh(e.r),o=qh(e.g),i=qh(e.b),a=zh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=zh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=zh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new $h(116*a-16,500*(t-a),200*(a-r),e.opacity)}function $h(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function zh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Nh+Ph}function Bh(e){return e>jh?e*e*e:Nh*(e-Ph)}function Fh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Gh(e){if(isNaN(e.h))return new $h(e.l,0,0,e.opacity);var t=e.h*Mh;return new $h(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Jp($h,(function(e,t,r,n){return 1===arguments.length?Dh(e):new $h(e,t,r,null==n?1:n)}),Qp(eh,{brighter(e){return new $h(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new $h(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,r=isNaN(this.b)?e:e-this.b/200;return new xh(Fh(3.1338561*(t=.96422*Bh(t))-1.6168667*(e=1*Bh(e))-.4906146*(r=.82521*Bh(r))),Fh(-.9787684*t+1.9161415*e+.033454*r),Fh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Jp(Hh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Hh)return new Hh(e.h,e.c,e.l,e.opacity);if(e instanceof $h||(e=Dh(e)),0===e.a&&0===e.b)return new Hh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Lh;return new Hh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Hh(e,t,r,null==n?1:n)}),Qp(eh,{brighter(e){return new Hh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Hh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Gh(this).rgb()}}));var Vh=-.14861,Yh=1.78277,Uh=-.29227,Wh=-.90649,Kh=1.97294,Xh=Kh*Wh,Zh=Kh*Yh,Jh=Yh*Uh-Wh*Vh;function Qh(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ef)return new ef(e.h,e.s,e.l,e.opacity);e instanceof xh||(e=vh(e));var t=e.r/255,r=e.g/255,n=e.b/255,o=(Jh*n+Xh*t-Zh*r)/(Jh+Xh-Zh),i=n-o,a=(Kh*(r-o)-Uh*i)/Wh,l=Math.sqrt(a*a+i*i)/(Kh*o*(1-o)),s=l?Math.atan2(a,i)*Lh-120:NaN;return new ef(s<0?s+360:s,l,o,e.opacity)}(e):new ef(e,t,r,null==n?1:n)}function ef(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Jp(ef,Qh,Qp(eh,{brighter(e){return e=null==e?th:Math.pow(th,e),new ef(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ef(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Mh,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),o=Math.sin(e);return new xh(255*(t+r*(Vh*n+Yh*o)),255*(t+r*(Uh*n+Wh*o)),255*(t+r*(Kh*n)),this.opacity)}}));var tf=e=>()=>e;function rf(e,t){return function(r){return e+r*t}}function nf(e,t){var r=t-e;return r?rf(e,r):tf(isNaN(e)?t:e)}function of(e){return((e=Math.exp(e))+1/e)/2}function af(e){return function t(r){function n(t,n){var o=e((t=Qh(t)).h,(n=Qh(n)).h),i=nf(t.s,n.s),a=nf(t.l,n.l),l=nf(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,r)),t.opacity=l(e),t+""}}return r=+r,n.gamma=t,n}(1)}!function e(t){var r=function(e){return 1==(e=+e)?nf:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):tf(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=yh(e)).r,(t=yh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=nf(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1),function e(t,r,n){function o(e,o){var i,a,l=e[0],s=e[1],c=e[2],d=o[0],u=o[1],p=o[2],h=d-l,f=u-s,m=h*h+f*f;if(m<1e-12)a=Math.log(p/c)/t,i=function(e){return[l+e*h,s+e*f,c*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),b=(p*p-c*c+n*m)/(2*c*r*g),v=(p*p-c*c-n*m)/(2*p*r*g),y=Math.log(Math.sqrt(b*b+1)-b),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-y)/t,i=function(e){var n,o=e*a,i=of(y),d=c/(r*g)*(i*(n=t*o+y,((n=Math.exp(2*n))-1)/(n+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[l+d*h,s+d*f,c*i/of(t*o+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var r=Math.max(.001,+t),n=r*r;return e(r,n,n*n)},o}(Math.SQRT2,2,4),af((function(e,t){var r=t-e;return r?rf(e,r>180||r<-180?r-360*Math.round(r/360):r):tf(isNaN(e)?t:e)})),af(nf);var lf="center",sf="bottom";function cf(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(void 0===o[a])return r;o=o[a]}return o}[{key:"NoDataExist",alignment:lf,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:lf,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:lf,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:lf},{key:"DataRangeIncludingZero",alignment:sf},{key:"LimitedData",alignment:sf},{key:"NegativeOrZeroValues",alignment:sf}].reduce((function(e,t){return e[t.key]=t,e}),{});var df=["__proto__","constructor"];function uf(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!df.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}var pf,hf={exports:{}},ff=pf?hf.exports:(pf=1,hf.exports=function(){function e(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},c=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]},u=function e(){var t,r,n,o,i,a,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(r in t)n=d(u,r),u!==(o=d(t,r))&&(f&&o&&(s(o)||(i=l(o)))?(i?(i=!1,a=n&&l(n)?n:[]):a=n&&s(n)?n:{},c(u,{name:r,newValue:e(f,a,o)})):void 0!==o&&c(u,{name:r,newValue:o}));return u};function p(e,t,r,n){if(!e)return-1;const o=r.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),l=-1,s=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(s=o.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),l=o.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==s||-1!==l){a=t;break}if(Array.isArray(n)&&n.some(((e,t)=>e!==t))){const e=n.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:s>=0?e=>e[a].qAttrDims.qValues[s]:l>=0?e=>e[a].qAttrExps.qValues[l]:e=>e[a]}function h(e,t,r){let{key:n}=r;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:n,field:e.field.key()}),o}function f(e){let{cache:t,f:r,mainCell:n,p:o,page:i,rowIdx:a,row:l,sourceKey:s,target:c,targetProp:d,columnOrder:f}=e,m=n;if(o.field&&o.field!==r){const e=p(o.field,i,{cache:t},f);if(-1===e)return;m=u({qRow:a},e(l))}c[d]=h(o,m,{key:s})}function m(e,t,r,n){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),l=t.key(),s="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:c,main:d}=n.normalizeConfig(o[e],t),m=Object.keys(c),g=!!o[e].trackBy,b=typeof o[e].trackBy,v={},y=[],x=[];for(let t=0;t<a.qDataPages.length;t++){const i=p(s,a.qDataPages[t],{cache:r},a.qColumnOrder);if(-1!==i)for(let p=0;p<a.qDataPages[t].qMatrix.length;p++){const E=a.qDataPages[t].qArea.qTop+p,C=u({qRow:E},i(a.qDataPages[t].qMatrix[p])),S=h(d,C,{key:l});if(!d.filter||d.filter(C)){for(let e=0;e<m.length;e++){const n=c[m[e]];let o=n.fields||[n];n.fields&&(S[m[e]]=[]);for(let i=0;i<o.length;i++)f({cache:r,f:s,mainCell:C,p:o[i],prop:m[e],page:a.qDataPages[t],rowIdx:E,row:a.qDataPages[t].qMatrix[p],sourceKey:l,target:n.fields?S[m[e]]:S,targetProp:n.fields?i:m[e],columnOrder:a.qColumnOrder});if(n.fields){const t=S[m[e]].map((e=>e.value)),r=S[m[e]].map((e=>e.label));S[m[e]]={value:"function"==typeof n.value?n.value(t):void 0!==n.value?n.value:t,label:"function"==typeof n.label?n.label(r):void 0!==n.label?String(n.label):String(S[m[e]].value)}}}g&&n.track({cfg:o[e],itemData:C,obj:S,target:y,tracker:v,trackType:b}),x.push(S)}}}const E=g?n.collect(y,{main:d,propsArr:m,props:c}):x;i=[...i,...E]}return i}function g(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function b(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y)):void 0===t&&(t=v);for(var r,n,o,i,a,l=new C(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new C(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(E)}function v(e){return e.children}function y(e){return Array.isArray(e)?e[1]:null}function x(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function E(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function C(e){this.data=e,this.depth=this.height=0,this.parent=null}function S(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}C.prototype=b.prototype={constructor:C,count:function(){return this.eachAfter(g)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return b(this).eachBefore(x)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}};var w={depth:-1},R={},k={};function A(e){return e.id}function I(e){return e.parentId}function _(){var e,t=A,r=I;function n(n){var o,i,a,l,s,c,d,u,p=Array.from(n),h=t,f=r,m=new Map;if(null!=e){const t=p.map(((t,r)=>function(e){let t=(e=`${e}`).length;return O(e,t-1)&&!O(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,r,n)))),r=t.map(T),o=new Set(t).add("");for(const e of r)o.has(e)||(o.add(e),t.push(e),r.push(T(e)),p.push(k));h=(e,r)=>t[r],f=(e,t)=>r[t]}for(a=0,o=p.length;a<o;++a)i=p[a],c=p[a]=new C(i),null!=(d=h(i,a,n))&&(d+="")&&(u=c.id=d,m.set(u,m.has(u)?R:c)),null!=(d=f(i,a,n))&&(d+="")&&(c.parent=d);for(a=0;a<o;++a)if(d=(c=p[a]).parent){if(!(s=m.get(d)))throw new Error("missing: "+d);if(s===R)throw new Error("ambiguous: "+d);s.children?s.children.push(c):s.children=[c],c.parent=s}else{if(l)throw new Error("multiple roots");l=c}if(!l)throw new Error("no root");if(null!=e){for(;l.data===k&&1===l.children.length;)l=l.children[0],--o;for(let e=p.length-1;e>=0&&(c=p[e]).data===k;--e)c.data=null}if(l.parent=w,l.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(E),l.parent=null,o>0)throw new Error("cycle");return l}return n.id=function(e){return arguments.length?(t=S(e),n):t},n.parentId=function(e){return arguments.length?(r=S(e),n):r},n.path=function(t){return arguments.length?(e=S(t),n):e},n}function T(e){let t=e.length;if(t<2)return"";for(;--t>1&&!O(e,t););return e.slice(0,t)}function O(e,t){if("/"===e[t]){let r=0;for(;t>0&&"\\"===e[--t];)++r;if(!(1&r))return!0}return!1}function M(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const r=e.split("/");let n,o=t;for(let e=0;e<r.length;e++){if("*"===r[e]&&Array.isArray(o)){const t=[];n=r.slice(e+1).join("/");for(let e=0;e<o.length;e++){let r=M(n,o[e]);Array.isArray(r)?t.push(...r):t.push(r)}return t}if(!r[e]&&Array.isArray(o)){const t=new Array(o.length);n=r.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=M(n,o[e]);return t}r[e]in o&&(o=o[r[e]])}return o}function L(e,t,r){let n=[];if(!e||!e.length)return n;if(t<=0){const t=r>=0?[e[r]]:e;n=[...n,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(n=[...n,...L(e[o].children,t-1,r)]);return n}function P(e,t,r){if(e===t)return e=>e;if(e>t){const r=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<r;++e)t=t.parent;return t}}if(t>e){const n=Math.max(0,Math.min(100,t-e));return e=>L(e.children,n-1,r)}return!1}const j=/^qDimensionInfo(?:\/(\d+))?/,N=/^\/?qMeasureInfo\/(\d+)/,D=/\/qAttrExprInfo\/(\d+)/,$=/\/qAttrDimInfo\/(\d+)/;function z(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function B(e,t){let{cube:r}=t;if(!e)return-1;let n=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,l=-1,s=-1,c=-1,d=-1,u=n;const p=r.qEffectiveInterColumnSortOrder,h=z(r);return j.test(u)&&(o=!0,i=+j.exec(u)[1],u=n.replace(j,"")),N.test(u)&&("K"===r.qMode?c=+N.exec(u)[1]:p&&-1!==p.indexOf(-1)?(c=+N.exec(u)[1],d=0):d=+N.exec(u)[1],u=u.replace(N,"")),u&&($.exec(u)?l=+$.exec(u)[1]:D.exec(u)&&(a=+D.exec(u)[1])),s=o?"S"===r.qMode?h[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):r.qDimensionInfo.length-("K"===r.qMode?0:1),{fieldDepth:s+1,pseudoMeasureIndex:c,measureIdx:d,attrDimIdx:l,attrIdx:a}}function F(e,t){let r,n,o=P(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return r=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?n=e=>{var r;return null==e||null===(r=e.qAttrDims)||void 0===r?void 0:r.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(n=e=>{var r;return null==e||null===(r=e.qAttrExps)||void 0===r?void 0:r.qValues[t.attrIdx]}),{nodeFn:o,attrFn:n,valueFn:r}}function q(e,t,r){let{key:n}=r;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:n,field:e.field.key()}),o}function H(e){let{propsArr:t,props:r,item:n,itemData:o,ret:i,sourceKey:a}=e;for(let e=0;e<t.length;e++){const l=r[t[e]],s=l.fields||[l];let c,d;l.fields&&(c=[],d=[]);for(let r=0;r<s.length;r++){const u=s[r];let p,h,f,m,g,b;if("primitive"===u.type?(f=u.value,b=String(u.value)):("function"==typeof u.value&&(p=e=>u.value(e,n)),"function"==typeof u.label&&(h=e=>u.label(e,n)),u.accessor?(m=u.accessor(n),Array.isArray(m)?(g=m.map(u.valueAccessor),u.attrAccessor&&(g=g.map(u.attrAccessor)),p&&(f=g.map(p),p=null),h&&(b=g.map(h),h=null),f=u.reduce?u.reduce(f):f,b=u.reduceLabel?u.reduceLabel(b,f):String(f)):(f=u.attrAccessor?u.attrAccessor(u.valueAccessor(m)):u.valueAccessor(m),b=f)):(f=o,b=o)),l.fields){const e=p?p(f):f;c.push(e),d.push(h&&null!=b?h(b):null!=b?b:String(e))}else{const r=p?p(f):f;i[t[e]]={value:r,label:h?h(b):null!=b?b:String(r)},u.field&&(i[t[e]].source={field:u.field.key(),key:a})}}c&&(i[t[e]]={value:"function"==typeof l.value?l.value(c,n):c,label:"function"==typeof l.label?l.label(d,n):d})}}const G=(e,t,r)=>{const n="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=M(n,e);return i&&i[0]?(t.tree=b(i[0],r.children||(e=>e[o])),t.tree):null};const V=e=>{let{propsArr:t,props:r,cube:n,cache:o,itemDepthObject:i,f:a}=e;for(let e=0;e<t.length;e++){const o=r[t[e]],l=o.fields?o.fields:[o];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=F(i,B(t.field,{cube:n}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function Y(){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,o=arguments.length>3?arguments[3]:void 0;const i=t.raw(),a=t.key(),l="S"===i.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,r=e.fields();return t&&t.length===r.length?t:r.map(((e,t)=>t))}(e),o=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(o.indexOf(e)))),a=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(o.indexOf(e)))),l={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let o="__root",c=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],a="".concat(o,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);l[a]||(l[a]=r({__id:a,__parent:o,qValues:[]},t),c=!0),o=a}if(c)for(let e=0;e<a.length;e++){const t=n[a[e]];l[o].qValues.push(t)}}const c=Object.keys(l).map((e=>l[e]));return _().id((e=>e.__id)).parentId((e=>e.__parent))(c)}(t):G(i,n,e);if(!l)return null;const s=l.height,c=[];for(let a=0;a<=s;a++){let l=null;if(a>0)if("S"===i.qMode){let e=z(i)[a-1];l=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[a-1];a>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),l=n.fields[e]}const{props:s,main:d}=o.normalizeConfig(r(r({},e),{},{field:l?l.key():void 0}),t),u=Object.keys(s);c[a]={propsArr:u,props:s,main:d};const p=l?B(l,{cube:i}):{fieldDepth:0};V({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:p,f:l})}const d=l.copy().descendants(),u=l.descendants();for(let e=0;e<u.length;e++){const t=c[u[e].depth].propsArr,r=c[u[e].depth].props,n=c[u[e].depth].main,o=d[e],i=o.data,l=q(n,i,{key:a});H({propsArr:t,props:r,item:o,itemData:i,ret:l,sourceKey:a}),u[e].data=l}return l}function U(e,t,r,n){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const l=t.raw(),s=t.key();if(!G(l,r,e))continue;const c="object"==typeof o[a].field?o[a].field:t.field(o[a].field),{props:d,main:u}=n.normalizeConfig(o[a],t),p=Object.keys(d),h=B(c,{cube:l}),{nodeFn:f,attrFn:m,valueFn:g}=F({fieldDepth:0},h);V({propsArr:p,props:d,cube:l,cache:r,itemDepthObject:h,f:c});const b=!!o[a].trackBy,v=typeof o[a].trackBy,y={},x=[],E=f(r.tree),C=[];for(let e=0;e<E.length;e++){const t=E[e],r=m?m(g(t)):g(t);if(u.filter&&!u.filter(r))continue;const i=q(u,r,{key:s});H({propsArr:p,props:d,item:t,itemData:r,ret:i,sourceKey:s}),b&&n.track({cfg:o[a],itemData:r,obj:i,target:x,tracker:y,trackType:v}),C.push(i)}const S=b?n.collect(x,{main:u,propsArr:p,props:d}):C;i=[...i,...S]}return i}var W=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t;t=function(){return function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.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],s=d[1]&&d[d.length-1].length){for(m="",b=(u=t[0]).length%s,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),f+(r?"-":"")+n+x}},e.exports=t()}));function K(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const X={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Z=/%\)?$/,J=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Q=/^\(oct\)/i,ee=/^\(dec\)/i,te=/^\(hex\)/i,re=/^\(bin\)/i,ne=/^\(rom\)/i,oe=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,ie=/#|0/g;function ae(e,t,r,n){return e=e.toString(t),r[1]===r[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",n||".")}function le(e,t,r){let n;return J.test(t)?e=ae(e,Number(/\d{2}/.exec(t)[0]),t,r):Q.test(t)?e=ae(e,8,t,r):ee.test(t)?e=ae(e,10,t,r):te.test(t)?e=ae(e,16,t,r):re.test(t)?e=ae(e,2,t,r):ne.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=function(e,t){let r,n="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),l=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(r=0;r<a.length;r++)if(a[r]<=o){n+=l[r],o-=a[r];break}for(r=0;r<i;r++)n="M".concat(n);return t[1]!==t[1].toUpperCase()&&(n=n.toLowerCase()),n}(e,t)):t+n+e.toExponential(0)),e}function se(e,t,r){const n=K(e);return r?n:new RegExp(n||"",t)}function ce(e,t,r,n){let o,i,a,l,s,c,d,u,p,h=e.pattern;n&&(e.abbreviate=!0),p=function(e,t){return t&&(t=K(t)),e&&(e=K(e)),new RegExp("(?:[#0]+".concat(e,")?[#0]+(?:").concat(t,"[#0]+)?"))}(t,r),a=h.match(p),a=a?a[0]:"",l=a?h.substr(0,h.indexOf(a)):h,s=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===r&&(o=a.split(r),i=o.pop(),a=o.join("")+r+i,t=""),c=t,t=/,/.test(r)?"¤":",",c&&(a=a.replace(se(c,"g"),t)),d=r,r=".",d&&(a=a.replace(se(d,"g"),r)),u=a.match(/#/g),u=u?u.length:0;const f=h.split(d);let m;f[1]&&(m=f[1].match(ie)),e.prefix=l||"",e.postfix=s||"",e.pattern=h,e.maxPrecision=m?m.length:2,e.percentage=Z.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(se(t,null,!0),"|").concat(se(r,null,!0)),"g"),e.groupTemp=c,e.decTemp=d,e.t=t,e.d=r,e.temp=u}class de{constructor(e,t,r,n,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=r||",",this.decimalDelimiter=n||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return X;const r={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}(e,this.patternSeparator),this.prepare()}clone(){const e=new de(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,r,n){return this.prepare(t,r,n),this.formatValue(e)}prepare(e,t,r){let n;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===r&&(r=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},n=this._prepared,e=e.split(this.patternSeparator),n.positive.pattern=e[0],n.negative.pattern=e[1],n.zero.pattern=e[2],oe.test(e[0])&&(n.positive.isFunctional=!0),e[1]?oe.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?oe.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1;const o="U"===this.type;n.positive.isFunctional||ce(n.positive,t,r,o),n.negative&&!n.negative.isFunctional&&ce(n.negative,t,r,o),n.zero&&!n.zero.isFunctional&&ce(n.zero,t,r,o)}formatValue(e){let t,r,n,o,i,a,l,s,c,d=this._prepared,u="",p="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===d.pattern)return e.toString();if(0===e&&d.zero)return d=d.zero,d.pattern;if(e<0&&d.negative?(d=d.negative,e=-e):d=d.positive,i=d.d,a=d.t,d.isFunctional)e=le(e,d.pattern,i);else{if(d.percentage&&(e*=100),d.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let n,o,i=t[0];for(l=0,r=Number(Number(e).toExponential().split("e")[1]);i<=r&&l<t.length;)l++,i=t[l];l>0&&(n=t[l-1]),n&&r>0&&n>0?o=n:(r<0&&n<0||!n)&&(i<0&&i-r<=d.maxPrecision?o=i:n<=r&&!(i>0&&-r<=d.maxPrecision)&&(o=n)),o&&(u=this.abbreviations[o],e/=10**o)}if(n=Math.abs(e),t=d.temp,s=d.numericPattern,c=s.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,c||"#"!==s.slice(-1)[0])if(n>=1e15||n>0&&n<=1e-14)e=n?n.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let r=s.split(i)[0];if(r+=i,e=W(r,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),r=c.replace(/#+$/,"").length;let o=("I"===this.type?0:n%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(l=o.length;l<r;l++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(n>=10**t||n<1||n<1e-4)0===e?e="0":n<1e-4||n>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(s+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),l=0;l<t;l++)s+="#";e=W(s,e)}e=e.replace(d.numericRegex,(e=>e===a?d.groupTemp:e===i?d.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return d.prefix+e+p+u+d.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function ue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:r=5e3,multipleArguments:n=!1,toKey:o=e=>e}=t;let i,a,l=Object.create(null),s=Object.create(null),c=0,d=0;return i=n?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(c>=r&&(delete l[s[d]],delete s[d],c--,d++),l[e]=t,s[c]=e,c++,t),i.get=e=>l[e],i.has=e=>e in l,i.clear=()=>{l=Object.create(null),s=Object.create(null),c=0,d=0},i.size=()=>c,i}function pe(e,t,r,n,o){const i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new de(...t)}(o,e,t,r,n),a=ue(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function l(e){return a(e)}return l.format=function(e,t,r,n){return a.clear(),i.format(t,e,r,n)},l.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},l}const he="D",fe="T",me="TS",ge="IV",be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ye=["January","February","March","April","May","June","July","August","September","October","November","December"],xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(e,t){for(let r=e.length;r<t;r++)e="0".concat(e);return e}function Ce(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function Se(e,t){let r,n=function(e){const t=e,r=24*Ce(t),n=60*Ce(r),o=60*Ce(n),i=1e3*Ce(o);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(o),f:Math.round(i)}}(e),o=n.d,i=n.h,a=n.m,l=n.s,s=n.f,c=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(r.getTime())&&(r=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(l+=60*a),/w+/gi.test(t)&&(c=r?r.getDay()-1:0,c<0&&(c=6));let d="";return r&&(d=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:o,h:i,m:a,s:l,f:s,t:d}}class we{constructor(e,t,r){const n=e||{};n.qCalendarStrings||(n.qCalendarStrings={qLongDayNames:be,qDayNames:ve,qLongMonthNames:ye,qMonthNames:xe}),this.localeInfo=n,this.locale_days=n.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=n.qCalendarStrings.qDayNames.slice(),this.locale_months=n.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=n.qCalendarStrings.qMonthNames.slice(),t||(t={[fe]:n.qTimeFmt||"hh:mm:ss",[he]:n.qDateFmt||"YYYY-MM-DD",[me]:n.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[r]),this.pattern=t}clone(){const e=new we(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const r=/t+/gi.test(t);let n;e instanceof Date?n=function(e,t){let r=e.getUTCHours(),n=e.getUTCDay()-1;return t&&(r%=12,r||(r=12)),n<0&&(n=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:n,date:e.getUTCDate(),h:r,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,r):(e<0&&(e=-e,t="-".concat(t)),n=Se(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Ee("".concat(t.year).slice(-2),2),YYY:Ee("".concat(t.year).slice(-3),3),def:e=>Ee("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:Ee("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Ee("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>Ee("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>Ee("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>Ee("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>Ee("".concat(t.s),e.length)},"f+|F+":{def(e){let r="".concat(t.f),n=e.length-r.length;if(n>0)for(let e=0;e<n;e++)r+="0";else n<0&&(r=r.slice(0,e.length));return r}},"t{1,2}|T{1,2}":{def(e){let r=t.t;return e[0].toUpperCase()===e[0]&&(r=r.toUpperCase()),r=r.slice(0,e.length),r}}}}(this,n),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g");return t.replace(a,(e=>{let t,r,n;for(r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&(t=new RegExp(r),t.test(e)))break;if(!t)return"";for(const t in o[r])if(t===e||t.toLowerCase()===e){n=o[r][t],void 0===n&&(n=o[r][t.toLowerCase()]);break}return void 0===n&&(n=o[r].def),"function"==typeof n&&(n=n(e)),n}))}}function Re(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new we(...t)}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",r=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),n=ue(r.format.bind(r),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==ge?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),n(e)}return i.format=function(e,t){return n.clear(),t=o(t),r.format(t,e)},i.locale=function(o){return r=Re(o,e,t),n=ue(r.format.bind(r),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,n.clear()),t},i}function Ae(){let e,{meta:t,id:r,key:n,localeInfo:o,fieldExtractor:i,value:a,type:l,sourceField:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===l?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),d="dimension"===l?"first":"avg",u=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return ke(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let r="#",n=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(r=e.qNumFormat.qFmt||r,n=e.qNumFormat.qThou||n,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(r="#".concat(o,"##"),i="U"),pe(r,n,o,i,t)}(t,o),p={id:()=>r,key:()=>n,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>l,origin:()=>s,items:()=>(e||(e=i(p)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:d,reduceLabel:"dimension"===l?"first":(e,t)=>u(t),formatter:()=>u,tags:()=>t.qTags};return p}function Ie(e,t,r,n,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(n?"".concat(n,"/"):"").concat(e,"/").concat(i),l={instance:Ae(u({id:"".concat(r?"".concat(r,"/"):"").concat(a),key:a,meta:t},o))};return l.attrDims=Ie("qAttrDimInfo",t,r,a,u({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),l.attrExps=Ie("qAttrExprInfo",t,r,a,u({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),l.measures=Ie("qMeasureInfo",t,r,a,u({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),l}))}function _e(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const a=_e.util,l={cache:o,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:r}=t;if("number"==typeof e)return r.fields[e];const n=r.allFields;if("function"==typeof e){for(let t=0;t<n.length;t++)if(e(n[t]))return n[t];return!1}if("string"==typeof e){for(let t=0;t<n.length;t++)if(n[t].key()===e||n[t].title()===e)return n[t]}else if(e&&-1!==n.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,l),fields:()=>o.fields.slice(),extract:e=>l.extractor(e,s,o,a),hierarchy:e=>l.hierarchy(e,s,o,a),_cache:()=>o};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(l.extractor=U,l.hierarchy=Y,l.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(l.extractor=m,l.pages=i.qDataPages,l.hierarchy=Y):l.extractor=()=>[],l.fieldExtractor=e=>l.extractor({field:e},s,o,a);const c="S"===i.qMode?e=>e.qElemNumber:void 0,d="S"===i.qMode?e=>e.qNum:void 0;o.wrappedFields.push(...Ie("qDimensionInfo",i,e,"",u({},l,{value:c,type:"dimension"}))),o.wrappedFields.push(...Ie("qMeasureInfo",i,e,"",u({},l,{value:d,type:"measure"}))),o.fields=o.wrappedFields.map((e=>e.instance));const p=e=>{e.forEach((e=>{o.allFields.push(e.instance),p(e.measures),p(e.attrDims),p(e.attrExps)}))};return p(o.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=Ae(r({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>l.extractor({field:e},s,o,a),key:t.key,type:n.type(),localeInfo:l.localeInfo,value:n.value},t.override||{}));o.virtualFields.push(i)})),o.allFields.push(...o.virtualFields),s}const Te=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],Oe=/\/qDimensionInfo(?:\/(\d+))?/,Me=/\/qMeasureInfo\/(\d+)/,Le=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,Pe=/\/qAttrExprInfo\/(\d+)/,je=/\/?qHyperCube/,Ne=/\/?qTreeData/,De=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),$e=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function ze(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=t.byCells,o=t.primarySource,i=[],a={},l=e.isActive();let s=!1;return e.brushes().forEach((e=>{const t=function(e,t){let r=e,n=-1,o=-1,i="",a=e=>e;je.test(e)?(i="".concat(r.substr(0,r.indexOf("qHyperCube")+10)),a=De):Ne.test(e)&&(i="".concat(r.substr(0,r.indexOf("qTreeData")+9)),a=$e);let l=!0;if(Oe.test(e)&&(n=+Oe.exec(e)[1]),Me.test(e)&&(o=+Me.exec(e)[1]),Le.test(e)){o=-1,n=0;const e=+Le.exec(r)[2];isNaN(e)||(n=e,r=r.replace(/\/\d+$/,"")),l=!1}if(Pe.test(e)){const e=o;if(t){o=0;const a=M(i,t);o+=(a.qMeasureInfo||[]).length,n>-1?(o=a.qDimensionInfo.slice(0,n).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),n=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+Pe.exec(r)[1]}else n>-1?(n=-1,o=+Pe.exec(r)[1]):o+=+Pe.exec(r)[1]+1}return Te.forEach((e=>{let[t,n]=e;r=r.replace(t,n)})),l&&(r=a(r)),r&&"/"!==r[0]&&(r="/".concat(r)),{measureIdx:o,dimensionIdx:n,path:r}}(e.id,r);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const r=e.brush.ranges();r.length&&(s=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),r.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const r=e.brush.ranges();r.length&&(s=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),r.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const r=e.brush.ranges();r.length&&(s=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),r.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(n)if(r&&r.qHyperCube&&("P"===r.qHyperCube.qMode||"T"===r.qHyperCube.qMode||"K"===r.qHyperCube.qMode)){const n=r.qHyperCube,i=n.qNoOfLeftDims,l=n.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const r=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||l>=i)&&i>-1?r.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:l-i})})):r.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),s=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),s=!!a.selectHyperCubeCells.values.length);else{const r=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));s=!!r.length,i.push({params:[t.path,t.dimensionIdx,r,!1],method:"selectHyperCubeValues"})}}})),!s&&l?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i);var c}function Be(e){_e.util=e.data("matrix").util,e.data("q",_e),e.formatter("q-number",pe),e.formatter("q-time",ke)}return Be.qBrushHelper=ze,Be.selections=ze,Be}());Xp(ff);var mf="'Source Sans Pro', 'Arial', 'sans-serif'",gf="#333333",bf="#595959",vf="#737373",yf="#cccccc",xf="#e6e6e6";function Ef(e){var t={};return[].concat(Dp(e),Dp([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",bf],["object","axis.label.name","fontFamily",mf],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",yf],["object","axis.line.minor","color",xf],["object","axis.title","color"],["object","axis.title","fontFamily",mf],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",xf],["object","grid.line.major","color",yf],["object","grid.line.minor","color",xf],["object","label.value","color",bf],["object","label.value","fontFamily",mf],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",bf],[!1,"label.value","lightColor",xf],["object","outOfRange","color","#999"],["object","legend.title","color",gf],["object","legend.title","fontFamily",mf],["object","legend.title","fontSize","15px"],["object","legend.label","color",bf],["object","legend.label","fontFamily",mf],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",gf],["object","referenceLine.label.name","fontFamily",mf],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",xf],["object","referenceLine.outOfBounds","fontFamily",mf],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",vf,function(e){return"transparent"===e?vf:e}]])).reduce((function(e,r){var n="".concat(r[0],"-").concat(r[1],"-").concat(r[2],"}");return t[n]||(t[n]=!0,e.push(r)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Cf=function(e){return e};function Sf(e){var t=e.theme,r=e.id,n=e.transform,o=e.extend,i=e.matrix,a={},l=n.reduce((function(e,t){var r=Np(t,2),n=r[0],o=r[1];return e[n]=o,e}),{});return i.forEach((function(e){var n=Np(e,5),o=n[0],i=n[1],s=n[2],c=n[3],d=n[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,r=e.base,n=e.path,o=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===r)return a;var l=t.getStyle(r,n,o);return void 0===l?a:l}({theme:t,base:"object"===o&&r?"".concat("object",".").concat(r):o,path:i,attribute:s,defaultValue:c}),h=(l["".concat(i,".").concat(s)]||Cf)(u(p));uf(a,[i,s].filter(Boolean).join("."),h)})),o.forEach((function(e){var t=Np(e,2),r=t[0],n=t[1];uf(a,r,n)})),a}const wf={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function Rf(e){if(!e.objects)return{};const t=Mp(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map((r=>{var n;return{chart_type:r.qData.visualization,chart_id:r.qInfo.qId,chart_isMaster:!!r.qData.qExtendsId,tab_isVisible:0!==(null===(n=t[r.qData.childRefId])||void 0===n?void 0:n.condition),tab_isActive:r.qData.childRefId===e.cachedTabId}}))}}const kf=({ref:e,theme:t,change:r})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9.5,component:"dropdown",change(t){(cf(t,`${e}.color`)||cf(t,`${e}.colorExpression`))&&(uf(t,`${e}.color`,void 0),uf(t,`${e}.colorExpression`,void 0)),null==r||r(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:1,show:t=>!cf(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>{var r;return{color:null!==(r=null==t?void 0:t.getStyle("object.tabbedContainer",e,"color"))&&void 0!==r?r:"none"}},showAlpha:!0,change:e=>{null==r||r(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>cf(t,`${e}.useColorExpression`)}}}),Af=({theme:e})=>({bgColorAllWrapper:kf({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:kf({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:kf({ref:"background.hover",theme:e,change:e=>{uf(e,"indicator.hover.color",cf(e,"background.hover.color")),uf(e,"indicator.hover.useColorExpression",cf(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),If=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},_f=({theme:e})=>({colorWrapper:kf({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:kf({ref:"indicator.hover",theme:e,change:e=>{uf(e,"background.hover.color",cf(e,"indicator.hover.color")),uf(e,"background.hover.useColorExpression",cf(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Tf=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),change:(e,t,r)=>{var n;const o=null===(n=e.label)||void 0===n?void 0:n.fontFamily,i=(e=>{const t=[];return e.objects.forEach((e=>{var r,n;const o=null===(r=e.components)||void 0===r?void 0:r.find((e=>"tab"===e.key)),i=null==o||null===(n=o.label)||void 0===n?void 0:n.fontFamily;i&&-1===t.indexOf(i)&&t.push(i)})),t})(r);o&&-1===i.indexOf(o)&&i.push(o),r.fontsUsed=i}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Of=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Tf({paths:{ref:"label",theme:"label.value"},fontResolver:r,theme:n})}}}),Mf=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{var t,r;if(void 0!==(null===(t=e.width)||void 0===t?void 0:t.value)&&"%"===(null===(r=e.width)||void 0===r?void 0:r.unit))for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>{var t;return"px"===(null===(t=e.width)||void 0===t?void 0:t.unit)},defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>{var t,r;return!(null!==(t=e.width)&&void 0!==t&&t.unit)||"px"!==(null===(r=e.width)||void 0===r?void 0:r.unit)},defaultValue:[5,20]}}}}}),Lf=({theme:e,ref:t,key:r})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:r,items:_f({theme:e})}}}),Pf=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:If({paths:{ref:"icon",theme:"icon.value"},fontResolver:r,theme:n})}},show:(e,{layout:t})=>!0===t.showIcons}),jf=({theme:e,ref:t,key:r})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:r,items:"tab"===r?{bgColorWrapper:kf({ref:"background"})}:Af({theme:e})}}}),Nf=({fontResolver:e,theme:t})=>{const r="components",n="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:r,items:{label:Of({ref:r,key:n,fontResolver:e,theme:t}),width:{...Mf({ref:r,key:n}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Pf({ref:r,key:n,fontResolver:e,theme:t}),background:jf({ref:r,key:n,theme:t})}}},Df={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},$f={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},zf=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{var r,n,o;const i=t.getLayout(),a=null===(r=_p(i,e.childRefId))||void 0===r?void 0:r.qMeta;return!(null!=a&&null!==(n=a.privileges)&&void 0!==n&&n.includes("update")&&null!==(o=i.permissions)&&void 0!==o&&o.update)},action(t,r,{app:n}){const{sense:o}=e.env.anything,i=r.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:n,parent:"current",headerLabel:t.label}),r.setSelectedChild([i]))}}),Bf=e=>{const{sense:t}=e.env.anything;return{label:Df,condition:$f,styling:Nf({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),editProperties:zf(e)}},Ff={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},qf={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Hf=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,r){const n=document.querySelector(".pp-toplist-add-button");null!==n&&r.openAddChildPopover(n)},remove(e,t,r){r.deleteChild(e.childRefId).catch((()=>{}))},items:Bf(e)}),Gf=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Ff,chartsLabel:qf,chartList:Hf(e)}}),Vf={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Yf={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},Uf={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},Wf={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},Kf={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const r=t.getLayout();return r?r.objects.map((e=>({translation:e.label,value:e.childRefId}))):[]},change(e,t){const r=Lp(t.getLayout(),e.defaultTabId);r&&t.setSelectedChild([r])},show:e=>e.objects.length>0},Xf={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},Zf=({fontResolver:e,theme:t})=>{const r="components",n="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Of({ref:r,key:n,fontResolver:e,theme:t}),width:Mf({ref:r,key:n}),indicator:Lf({ref:r,key:n,theme:t}),icon:Pf({ref:r,key:n,fontResolver:e,theme:t}),background:jf({ref:r,key:n,theme:t})}}},Jf={items:{details:{show:e=>!0===e.showDetails}}},Qf=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:Zf({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),container:{type:"items",items:{showTabs:Vf,useDropdown:Yf,useScrollButton:Uf,showIcons:Wf,orientation:Xf,defaultTabId:Kf}}}}},em=e=>({uses:"settings",items:{general:Jf,presentation:Qf(e)}}),tm=e=>({type:"items",component:"accordion",items:{content:Gf(e),settings:em(e)}}),rm=e=>{const{sense:t}=e.env.anything,r=function(e){var t=e.theme,r=e.translator,n=e.config,o=void 0===n?{}:n,i=e.flags,a=function(e){var t=e.config,r=void 0===t?{}:t,n=r.id,o=r.paths;return{id:void 0===n?"object":"".concat("object",".").concat(n),paths:Array.isArray(o)?o:[]}}({config:o}),l=a.id,s=a.paths,c={};s.forEach((function(e){for(var n=e.split("."),o=c,a=0;a<n.length;a++){var s=n[a];a===n.length-1?o[s]=Kp({theme:t,translator:r,id:l,path:e,flags:i}):void 0===o[s]&&(o[s]={}),o=o[s]}}));var d=function(e){for(var t=e.split("."),r=c,n=0;n<t.length;n++){var o=t[n];if(void 0===r[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[o]}return r};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:null==t?void 0:t.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),n=function(e){return{async getDropOptions(e,t,r){const{item:n}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){var i;const n=await e.model.getProperties();return o.setProperties(n),o.setLayout(null===(i=e.model)||void 0===i?void 0:i.layout),this.getDropStateOptions(t,o,e.model,r)}if("visualization"===n.type)return t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"addvisualization",select(){var e;null===(e=o.addChild({initProps:{qExtendsId:n.id,qInfo:{qType:"undefined"}}}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),void r();const a=await t.item.getDropOption(t.item);"newObject"===(null==a?void 0:a.id)&&t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"createvisualization",select(){var e,t;null===(e=o.addChild({initProps:{...a.args.init,visualization:a.args.template},children:null===(t=a.args.children)||void 0===t?void 0:t.map((e=>({qProperty:e})))}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),r()},async addChild(t,r){const{model:n}=this,o=new Pp({app:n.app,data:e.propertyHandlerData});return o.setModel(n),{childModel:await o.addChild({initProps:t,children:r}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&sp.includes(t.template))return!1;if("visualization"===t.type&&sp.includes(t.visualization))return!1}return"gridcell"!==e.type||!sp.includes(e.cell.model.layout.visualization)}}}(e);return{definition:tm({...e,fontResolver:r}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Pp({app:t,data:e.propertyHandlerData}),...n,addChild:async function(e,t){const{childModel:r,handler:o}=await n.addChild.apply(this,[e,t]);r&&o.setSelectedChild([r.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:r,defaultTabId:n,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),l=await t.getFullPropertyTree();if(!l.qProperty.objects&&r){const s=[];l.qChildren.forEach((e=>{const r=e.qProperty;if(r.qInfo.qId){const n=async n=>{const o=await t.getChild(n),i=await o.getEffectiveProperties();return{...e,qProperty:{...r,childRefId:i.childRefId}}};s.push(n(r.qInfo.qId))}}));const c=await Promise.all(s),d={...e,objects:r,defaultTabId:null!=n?n:"",components:o,qChildListDef:wf,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...l,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const r={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(r.qInfo.qType=t.qInfo.qType),r.visualization=t.visualization,{qProperty:r,qChildren:e.qChildren}},extendMetrics:Rf}},nm=({propertyHandlerData:e,element:n,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:l,renderHelper:s})=>{const c=t();a&&e.sync({containerId:a,element:n,sharedContainerUtilities:o,translator:i,dataHandler:l,renderHelper:s}),r((()=>{e.setMuiTheme(c.direction)}),[c.direction,e]),r((()=>()=>{a&&e.destroy(a)}),[a,e,c.direction])},om=e=>e.reduce(((e,{id:t,data:r})=>(r&&(e[t]=r),e)),{}),im=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getViewState().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return{viewStates:om(r)}},am=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getSnapshotLayout().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return om(r)},lm=(e,t)=>(o((async r=>{const n=r,{snapshotData:o}=n;if(o){const r=Tp(n),i=t(e.objectMap,r),[a,l]=await Promise.all([am(i.objectMap),im(i.objectMap)]);o.objectsData={layouts:a},n.objects=i.objects,o.viewState=l}return r})),{getViewState:()=>im(e.objectMap)});let sm=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.PASTE="ctrl+v",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e.SHIFT="Shift",e}({}),cm=function(e){return e.KEY_DOWN="keydown",e.KEY_UP="keyup",e.FOCUS_OUT="focusout",e}({});var dm,um;!function(e){e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator"}(dm||(dm={})),function(e){e.TABS="& .tab-button.MuiTab-root, .tab-button.active-tab-button",e.TABS_HOVER="& .tab-button.MuiTab-root:hover",e.TABS_LABEL="& .tab-label",e.TABS_ICON="& .tab-icon svg",e.TABS_WRAPPER="& .tab-wrapper",e.TAB_INDICATOR="& .MuiTabs-indicator"}(um||(um={}));const pm=e=>{var t;return null===(t=e.getElementsByClassName(dm.ACTIVE_TAB))||void 0===t?void 0:t[0]},hm=e=>{var t;return null===(t=e.getElementsByClassName(dm.ACTIVE_TAB_PANEL))||void 0===t?void 0:t[0]},fm=({element:e,setAccessibility:t,accessibility:o,renderHelper:l,interactions:s,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;r((()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),r=((e,t)=>e.map((e=>e.label||t.get("TabContainer.Object.Untitled"))).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[r,u?t:""]))})()}),[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),g=i(),b=a((()=>()=>{var e;(t(!1),g.enabled)&&(null===(e=g.blur)||void 0===e||e.call(g,!0))}),[g,t]),v=a((()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case sm.ESCAPE:var r;t.stopPropagation(),null===(r=g.blur)||void 0===r||r.call(g,!0);break;case sm.ENTER:case sm.SPACE:{t.stopPropagation();const r=t.target;var n;if(null!=r&&r.classList.contains(dm.ACTIVE_TAB))null===(n=hm(e))||void 0===n||n.focus();break}}}),[e,g]),y=a((()=>t=>{const r=t.shiftKey?`shift+${t.key}`:t.key,n=l.objectMap.values().next().value,o=l.objectApis.values().next().value;switch(r){case sm.ESCAPE:{const r=pm(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.support)||void 0===n?void 0:n.call(t,"viewData"))?t.toggleDataView():null==r||r.focus()})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.supportViewData)||void 0===n?void 0:n.call(t))?null===(o=t.toggleDataView)||void 0===o||o.call(t):null==r||r.focus()})({event:t,objectApi:n,activeTab:r});break}case sm.ENTER:case sm.SPACE:{const r=hm(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n,o,i;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.support)||void 0===o?void 0:o.call(t,"viewData"))?t.toggleDataView():null===(i=t.toggleFocus)||void 0===i||i.call(t,!0)})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o,i,a;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.supportViewData)||void 0===o?void 0:o.call(t))?null===(a=t.toggleDataView)||void 0===a||a.call(t):t.viewDataToggled&&"function"==typeof(null===(i=t.dataViewObject)||void 0===i?void 0:i.focus)?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:n,activeTab:r});break}case sm.OPEN_CONTEXT_MENU:t.stopPropagation(),null!=n&&n.viewDataToggled||e!==document.activeElement&&(b(),e.focus())}}),[e,b,m,l]),x=a((()=>e=>{const t=e.target;null!=t&&t.classList.contains(dm.ACTIVE_TAB_PANEL)?y(e):v(e)}),[v,y]);r((()=>(o&&e.addEventListener(cm.KEY_DOWN,x),()=>{e.removeEventListener(cm.KEY_DOWN,x)})),[e,o,x]);const[E,C]=n(!1);r((()=>{E&&(C(!1),window.setTimeout((()=>{var t,r;return null===(t=null!==(r=(e=>{var t;return null===(t=e.getElementsByClassName(dm.TAB_MENU))||void 0===t?void 0:t[0]})(e))&&void 0!==r?r:pm(e))||void 0===t?void 0:t.focus()}),0))}),[e,E]),r((()=>{t(!1)}),[s.edit,t]),r((()=>{const r=t=>{const r=t.relatedTarget;null!=e&&e.contains(r)||null!=r&&r.classList.contains(dm.TAB_MENU_ITEM)||null==b||b()};return g.enabled&&g.active&&!s.edit&&(t(!0),C(!0),e.addEventListener(cm.FOCUS_OUT,r)),()=>{e.removeEventListener(cm.FOCUS_OUT,r)}}),[g])},mm=e=>{const[t]=n(e);return[t,function(e){Object.assign(t,e)}]},gm=({isContainerActive:e,activeTabId:t,modifiedLayout:n,renderHelper:o})=>{const i={modifiedLayout:n,activeTabId:t,renderHelper:o,isContainerActive:e},[l,s]=mm(i);s(i);const c=a((()=>()=>{const e=Op(l.modifiedLayout);for(const[t,r]of l.renderHelper.objectMap.entries()){const n=l.isContainerActive&&l.activeTabId===e[t];"setIsActive"in r&&r.setIsActive(n)}}),[l]);r((()=>{l.isContainerActive&&c()}),[o.objectMap,c,l]),r((()=>{c()}),[e,c])},bm={getChar(e){let t,r=e;return r>9?(t=65+r-10,t>90&&(t+=6)):r=`${r}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const vm={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class ym{constructor(e){P(this,"sessionObject",void 0),P(this,"getOrCreateSessionObject",(async e=>{const t=vm.qInfo.qId;this.sessionObject=await e.getObject(t).catch((()=>e.createSessionObject(vm)))})),P(this,"getMasterVisualizations",(async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map((e=>({...e.qData,qExtendsId:e.qInfo.qId}))).filter((e=>!sp.includes(e.visualization)))}catch(e){return[]}})),this.getOrCreateSessionObject(e).catch((()=>{}))}}let xm=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Em{constructor({embed:e,model:t,app:r,translator:n,mutex:o}){P(this,"model",void 0),P(this,"embed",void 0),P(this,"app",void 0),P(this,"undoRedoModel",void 0),P(this,"chartList",void 0),P(this,"masterVizList",void 0),P(this,"mutex",void 0),P(this,"rememberAsGroup",(async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const r=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),r})),P(this,"generateProperties",(async(e,t)=>await this.embed.generateProperties({type:e,properties:t}))),P(this,"addVizAsChild",(async({type:e,initProps:t,objectInitProps:r,children:n})=>{try{const o=await this.generateProperties(e,t);let i=(null==r?void 0:r.label)||(null==t?void 0:t.title);if(!i){const r=this.getChart(null==t?void 0:t.visualization),n=null==r?void 0:r.libraryInfo;i=(null==n?void 0:n.translation)||(null==n?void 0:n.name)||e}const a={...r,label:i};return await this.addChild(o,n,a)}catch(e){return}})),P(this,"addMasterObjectAsChild",(async({initProps:e,objectInitProps:t,children:r})=>{try{if(!e||!e.qExtendsId||!this.app)return;const n=await this.app.getObject(e.qExtendsId),o=await n.getProperties(),i=(null==t?void 0:t.label)||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},l={...t,label:i};return await this.addChild(a,r,l)}catch(e){return}})),P(this,"deleteChildren",(async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const r=await t.getFullPropertyTree(),{qChildren:n,qProperty:o}=r,i=new Set(e);return r.qChildren=n.filter((({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)})),r.qProperty.objects=o.objects.filter((e=>!i.has(e.childRefId))),await t.setFullPropertyTree(r),!0}catch(e){return!1}finally{this.mutex.unlock()}})),P(this,"moveChild",(async(e,t)=>{if(this.model)try{await this.mutex.lock();const r=await this.model.getProperties(),{objects:n}=r,o=n.findIndex((e=>e.childRefId===t));let i=!1;switch(e){case xm.TOP:{if(0===o)break;const e=n.splice(o,1)[0];n.unshift(e),i=!0;break}case xm.BOTTOM:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.push(e),i=!0;break}case xm.UP:{if(0===o)break;const e=n.splice(o,1)[0];n.splice(o-1,0,e),i=!0;break}case xm.DOWN:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(r)}finally{this.mutex.unlock()}})),P(this,"getCharts",(()=>{var e;return(null===(e=this.chartList)||void 0===e?void 0:e.getCharts())||{}})),P(this,"getMasterVizList",(()=>{var e;return(null===(e=this.masterVizList)||void 0===e?void 0:e.getMasterVisualizations())||Promise.resolve([])})),P(this,"getChart",(e=>{var t;return null===(t=this.chartList)||void 0===t?void 0:t.getChart(e)})),P(this,"getChartLabelById",((e,t)=>{var r,n;const o=null==e||null===(r=e.qChildList)||void 0===r?void 0:r.qItems.find((e=>e.qInfo.qId===t));if(!o)return"";const{visualization:i,title:a}=o.qData;if(a)return a;const l=this.getChart(i);return(null==l||null===(n=l.libraryInfo)||void 0===n?void 0:n.translation)||i})),this.model=t,this.embed=e,this.app=r;const i=r;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then((e=>{this.undoRedoModel=e})).catch((()=>{})),r&&(this.masterVizList=new ym(r)),e&&n&&(this.chartList=new cp(e,n)),this.mutex=o}async addChild(e,t,r){if(this.model&&!sp.includes(e.visualization))try{await this.mutex.lock();const{model:n}=this,o=async()=>{e.childRefId=bm.id();const o=await n.createChild(e);if(o){const t=await n.getProperties();t.objects.unshift({childRefId:e.childRefId,...r,condition:{qValueExpression:{qExpr:""}}}),await n.setProperties(t)}return t&&o&&await Promise.all(t.map((({qProperty:e})=>o.createChild(e)))),o};return await this.rememberAsGroup(o)}catch(e){return}finally{this.mutex.unlock()}}}class Cm{constructor(e){P(this,"locked",!1),P(this,"tasks",[]),P(this,"id",void 0),P(this,"lock",(async()=>this.locked?new Promise((e=>{this.tasks.push(e)})):(this.locked=!0,!0))),P(this,"unlock",(()=>{if(this.tasks.length>0){const e=this.tasks.shift();null==e||e(!0)}else this.locked=!1})),this.id=e}}const Sm={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},rebeccapurple:{r:102,g:51,b:153},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}},wm={index:-1,color:"none",alpha:1},Rm=e=>{let t=parseFloat(e[1]),r=parseFloat(e[3]),n=parseFloat(e[5]);return t%=360,r/=100,n/=100,t=Math.max(0,Math.min(t,360)),r=Math.max(0,Math.min(r,1)),n=Math.max(0,Math.min(n,1)),{h:t,s:r,l:n,v:n}},km=(e,t,r,n,o=1)=>{let i,a,l,s=[];switch(r=Math.floor(r)){case 0:s=[e,t,0];break;case 1:s=[t,e,0];break;case 2:s=[0,e,t];break;case 3:s=[0,t,e];break;case 4:s=[t,0,e];break;case 5:s=[e,0,t];break;default:s=[0,0,0]}return i=s[0]+n,a=s[1]+n,l=s[2]+n,i=Math.round(255*i),a=Math.round(255*a),l=Math.round(255*l),`rgba(${i},${a},${l},${o})`},Am=e=>{const{h:t,s:r,l:n}=Rm(e),o=e.length>7?parseFloat(e[7]):1,i=n<=.5?2*n*r:(2-2*n)*r,a=t/60,l=i*(1-Math.abs(a%2-1));return km(i,l,a,n-.5*i,o)},Im={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(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),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Am(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Am(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:r,v:n}=Rm(e),o=n*r,i=t/60,a=o*(1-Math.abs(i%2-1));return km(o,a,i,n-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const r=e&&Sm[e.toLowerCase()];if(r){const e=void 0!==r.a?r.a:1;return`rgba(${r.r},${r.g},${r.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:r}){const n=(null==e?void 0:e.color)||wm;let o;return o=null!=e&&e.useColorExpression?Im.resolveExpression(e):"string"==typeof n?n:(null==r?void 0:r.getColorPickerColor(n))||"",o&&"none"!==o?o:t}};class _m{constructor({modifiedLayout:e,themeService:t}){var r;P(this,"modifiedLayout",void 0),P(this,"themeStyle",void 0),P(this,"style",void 0),P(this,"objectMap",void 0),P(this,"activeTabId",void 0),P(this,"theme",void 0),P(this,"getTabsWidth",(e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const r=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}})),P(this,"getTabWidth",(e=>{var t;const r=null==e?void 0:e.value,n=null!==(t=null==e?void 0:e.unit)&&void 0!==t?t:"%";if(void 0===r||2!==r.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${r[0]}${n}`,maxWidth:`${r[1]}${n}`}})),P(this,"getColorStyle",((e,t=e)=>{const r=this.resolveComponentStyle({compPath:e,themePath:t}),n=Im.getColor({style:r,theme:this.theme});return null!=n?n:r})),P(this,"getTabBackgroundStyle",((e,t)=>{let r;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});r=Im.getColor({style:e,theme:this.theme})}return null!=r?r:Im.getColor({style:t,theme:this.theme})})),P(this,"createTabClasses",(()=>{var e;return null===(e=this.modifiedLayout.objects)||void 0===e?void 0:e.reduce(((e,t)=>{var r;const n=null==t?void 0:t.childRefId,o=null==t||null===(r=t.components)||void 0===r?void 0:r.find((e=>"tab"===e.key));return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:cf(o,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,null==o?void 0:o.background),...this.getTabWidth(null==o?void 0:o.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:cf(o,"label.fontSize"),fontFamily:cf(o,"label.fontFamily"),color:Im.getColor({style:cf(o,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:cf(o,"icon.size"),color:Im.getColor({style:cf(o,"icon.color"),theme:this.theme})},e}),{})})),P(this,"createTabsClasses",(()=>({[um.TABS_LABEL]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[um.TABS_ICON]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[um.TABS]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[um.TABS_HOVER]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[um.TABS_WRAPPER]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[um.TAB_INDICATOR]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}}))),P(this,"createStyleClasses",(()=>({...this.createTabsClasses(),...this.createTabClasses()}))),P(this,"resolveComponentStyle",(({key:e="tabs",compPath:t,themePath:r=t,defaultValue:n})=>{var o,i,a;const l=null===(o=this.modifiedLayout.components)||void 0===o?void 0:o.find((t=>t.key===e));return null!==(i=null!==(a=cf(l,t))&&void 0!==a?a:cf(this.themeStyle,r))&&void 0!==i?i:n})),this.modifiedLayout=e;const{cachedTabId:n,defaultTabId:o,objects:i}=this.modifiedLayout;this.activeTabId=n||o||(null===(r=i[0])||void 0===r?void 0:r.childRefId)||"",this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Mp(this.modifiedLayout),this.style=this.createStyleClasses()}getStyleClasses(){return this.style}getTabStyle(e){var t;return null===(t=this.objectMap[e].components)||void 0===t?void 0:t.find((e=>"tab"===e.key))}}const Tm=()=>{const e=l(),r=s(),o=c(),i=d(),g=u(),b=p(),v=t(),y=h(),x=f(),E=function(e){var t=e.theme,r=e.config,n=void 0===r?{}:r,o=n.id,i=n.resolve,a=void 0===i?[]:i,l=n.transform,s=void 0===l?[]:l,c=n.extend,d=void 0===c?[]:c,u={theme:t,matrix:Ef(a),styles:void 0};return u.styles=Sf({theme:t,id:o,transform:s,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=Sf({theme:e,id:o,transform:s,extend:d,matrix:u.matrix})}}}({theme:m(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=a((()=>new cp(i,b)),[i,b]),[S]=n((()=>new Cm(g.id))),[w,R]=n(!1),k=a((()=>i&&g&&r?new Em({embed:i,model:g,app:r,translator:b,mutex:S}):void 0),[i,g,r,b,S]),A=a((()=>Tp(o)),[o]),I=a((()=>new _m({modifiedLayout:A,themeService:E})),[A,E]);return a((()=>({app:r,modifiedLayout:A,embed:i,model:g,emitter:y,interactions:x,dataHandler:k,chartList:C,styleModel:I,mutex:S,options:v,accessibility:w,setAccessibility:R,translator:b,element:e})),[A,i,g,r,y,x,k,C,I,S,v,w,b,e])},Om=({dataHandler:e,modifiedLayout:t,translator:r,sharedContainerUtilities:n,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const l=!t.qExtendsId;return C.createElement(mp,null,C.createElement(fp,null,C.createElement(o,null),l?C.createElement(C.Fragment,null,C.createElement(xp,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":r.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0},r.get("LayoutContainer.EmptyList.AddContent")),C.createElement(Rp,{translator:r,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:n})):C.createElement(Zs,{variant:"inherit"},r.get("LayoutContainer.EmptyList.EmptyHint"))))};class Mm{constructor(e){P(this,"_rendered",new Set),P(this,"_objectMap",new Map),P(this,"_objectApis",new Map),P(this,"_resolver",void 0),P(this,"_dependencyData",void 0),P(this,"_recreateMap",new Map),P(this,"createTimerForRendering",(()=>{if(!this.resolver){let e;const t=setTimeout((()=>{this.doResolve()}),9e4),r=new Promise((t=>{e=t}));this._resolver={promise:r,resolve:e,timer:t}}return this._resolver})),P(this,"doResolve",(()=>{var e,t,r;this.resolver&&(clearTimeout(null===(e=this.resolver)||void 0===e?void 0:e.timer),null===(t=(r=this.resolver).resolve)||void 0===t||t.call(r,!0),this._resolver=void 0)})),P(this,"tryToResolve",(()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every((e=>this.rendered.has(e.id))))&&this.doResolve()}})),this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}syncObjects(e){const t=new Set,r=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),n=new Set(r);let o=!1;return e.forEach((e=>{r.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),n.delete(e.id)):o=!0})),n.forEach((e=>{var t;const r=this.objectMap.get(e);var n;r&&(this.confirmPotentialSelections(r),null===(n=r.destroy)||void 0===n||n.call(r),this.objectMap.delete(e));null===(t=this.objectApis.get(e))||void 0===t||t.destroy(),this.objectApis.delete(e)})),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach((e=>{const r=this.objectMap.get(e.id);r&&t.push(r)})),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find((t=>t.qInfo.qId===e))}getObjectOptions(e){var t,r;const{viewState:n,modifiedLayout:o,options:i}=this._dependencyData,{chartAnimations:a,direction:l,progressiveRendering:s,freeResize:c,navigation:d}=i;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!(null==o||!o.qExtendsId),isSnapshot:!!o.snapshotData,...!(null==n||null===(t=n.viewStates)||void 0===t||!t[e])&&{viewState:null==n?void 0:n.viewStates[e]},...!(null==n||null===(r=n.layouts)||void 0===r||!r[e])&&{layout:n.layouts[e]},direction:l,chartAnimations:a,progressiveRendering:s,freeResize:c,navigation:d,disableThemeBorder:!1,fallbackToClient:i.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const Lm=()=>C.createElement(Ep,{viewBox:"0 0 16 16"},C.createElement("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})),Pm=({libraryInfo:e,style:t,id:r})=>C.createElement("div",{style:t,"data-testid":"tab-chart-icon",id:r,className:dm.TABS_ICON},C.createElement(e.IconDefinition,null)),jm=({style:e,id:t})=>C.createElement("div",{style:e,"data-testid":"tab-hidden-icon",id:t},C.createElement(Cp,{viewBox:"0 0 16 16"},C.createElement("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"}))),Nm=()=>C.createElement(Cp,{viewBox:"0 0 16 16"},C.createElement("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})),Dm=zl(Mu)({width:28,overflow:"hidden"}),$m=zl(Mu)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),zm=({chartObject:e,embed:t,renderHelper:r,direction:n,accessibility:o,interactions:i,env:a})=>{const l=I(),{id:s}=e;A((()=>{if(s&&l.current){const e=r.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:l.current,options:e}).then((e=>{r.saveObjectApi(s,e)})).catch((e=>{var t;const n=null===(t=r.getChildLayout(s))||void 0===t||null===(t=t.qInfo)||void 0===t?void 0:t.qType;console.error("Could not render chart with id",s,n,e)}))}}),[s,t,r,n]);const c=_((()=>()=>{if(null!=e&&e.id&&a.anything){const t=null==e?void 0:e.label,{sense:n}=a.anything,o="current",i=r.objectMap.get(e.id);i&&n.propertyPanel.show({model:i.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}}),[a,e,r]);return A((()=>{const e=null==l?void 0:l.current;return e&&null!=i&&i.edit&&e.addEventListener("dblclick",c),()=>{null==e||e.removeEventListener("dblclick",c)}}),[l,c,i]),C.createElement(wc,{className:dm.ACTIVE_TAB_PANEL,"aria-label":e.label,tabIndex:o?0:-1,height:"100%",width:"100%",sx:{direction:"ltr",padding:"2px",boxSizing:"border-box","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200},flex:"1 0 0"}},C.createElement(wc,{ref:l,sx:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`}))};var Bm;!function(e){e.TABS_HEIGHT="36px"}(Bm||(Bm={}));const Fm=(e,t)=>e.find((e=>e.childRefId===t)),qm=(e,t)=>!t.edit&&0===e.condition,Hm=({charts:e,handleChangeTab:t,activeTabId:r,element:n,translator:o,accessibility:i,disabled:a})=>{const[l,s]=C.useState(null),c=Boolean(l),d=()=>{s(null)},u=T((e=>{null==e||e.focus()}),[]);return C.createElement(C.Fragment,null,C.createElement(Pc,{onClick:e=>{s(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:dm.TAB_MENU,sx:{m:"2px"}},C.createElement(Nm,null)),C.createElement(pu,{anchorEl:l,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}}},e.map((e=>C.createElement(bu,{className:dm.TAB_MENU_ITEM,ref:r===e.childRefId&&c?u:null,key:`chartTabMenu-${e.childRefId}`,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout((()=>{var e;null===(e=n.getElementsByClassName(dm.ACTIVE_TAB_PANEL))||void 0===e||null===(e=e[0])||void 0===e||e.focus()}),0)})(e)},sx:{...r===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label},C.createElement(Zs,{variant:"inherit",noWrap:!0},e.label))))))},Gm=({label:e,id:t})=>C.createElement(wc,{className:dm.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"}},C.createElement("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"}},e)),Vm=({libraryInfo:e,chart:t,iconPosition:r,id:n})=>{let o;switch(r){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition?C.createElement(jm,{id:`${dm.TABS_ICON}-${n}`,style:o}):e?C.createElement(Pm,{id:`${dm.TABS_ICON}-${n}`,libraryInfo:e,style:o}):null},Ym=({models:e,activeTabId:t,handleChangeTab:r})=>{const{modifiedLayout:n,chartList:o,interactions:i,accessibility:a}=e,l=null==o?void 0:o.getCharts(),s=n.objects.filter((e=>!qm(e,i))),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:$m}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Dm})(n),p=!1===i.active&&!i.edit,[h,f]=k(!1),m=T((e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)}),[c]);return C.createElement(wc,{className:dm.TAB_WRAPPER,sx:d,ref:e=>{m(e)}},n.useDropdown&&h&&C.createElement(Hm,{charts:s,handleChangeTab:r,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}),C.createElement(Vu,{value:t,onChange:(e,t)=>{r(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!n.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Bm.TABS_HEIGHT}},s.map((r=>{var o,i,s,d,u;const h=null===(o=_p(n,r.childRefId))||void 0===o||null===(o=o.qData)||void 0===o?void 0:o.visualization,f=h&&(null==l||null===(i=l[h])||void 0===i?void 0:i.libraryInfo),m=e.styleModel.getTabStyle(r.childRefId),g=0===r.condition||n.showIcons&&f&&!1!==(null==m||null===(s=m.icon)||void 0===s?void 0:s.show),b="vertical"===c?"top":"start",v=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:b}),y=e.styleModel.resolveComponentStyle({compPath:"label.show"}),x=r.label&&(null!==(d=null==m||null===(u=m.label)||void 0===u?void 0:u.show)&&void 0!==d?d:!1!==y),E=`${n.qInfo.qId}-${r.childRefId}`;return C.createElement(Cu,{className:`${dm.TAB} ${t===r.childRefId?dm.ACTIVE_TAB:""}`,disabled:p,id:`tab-${E}`,value:r.childRefId,title:r.label,label:x?C.createElement(Gm,{label:r.label,id:E}):void 0,icon:g?C.createElement(Vm,{libraryInfo:f,chart:r,iconPosition:v,id:E}):"",iconPosition:v,key:r.childRefId,"data-testid":`container-tab-${r.childRefId}`,sx:{textAlign:"vertical"!==c||n.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Bm.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":r.label,"aria-controls":`tab-panel-${E}`,tabIndex:a&&t===r.childRefId?0:-1})}))))},Um=({models:e,renderHelper:t,activeTabId:r,handleChangeTab:n,env:o})=>{const{modifiedLayout:i,embed:a,interactions:l,options:s,styleModel:c,accessibility:d}=e,u=i.objects,p=l.edit||!!u.find((e=>0!==e.condition)),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return C.createElement(wc,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:s.direction,...m}},h&&C.createElement(Ym,{models:e,activeTabId:r,handleChangeTab:n}),u.map((e=>{const n=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=r===e.childRefId&&!qm(e,l);return C.createElement("div",{role:"tabpanel",id:n,key:n,hidden:!c,style:{height:"100%",width:"100%"}},c&&C.createElement(zm,{chartObject:e,renderHelper:t,direction:s.direction,embed:a,accessibility:d,interactions:l,env:o}))})))};let Wm=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),Km=function(e){return e.COPY="copy",e.PASTE="paste-and-replace",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.TAKE_SNAP_SHOT="take-snapshot",e.SNAP_SHOT_GROUP="snapshotGroup",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const Xm=[Km.PASTE,Km.ZOOM_IN,Km.VISUAL_EXPLORATION],Zm=[Km.VISUAL_EXPLORATION,Km.ALERT_GROUP,Km.SHOW_DETAILS,Km.EXPLAIN_KEY_DRIVERS,Km.EXPLAIN_KEY_DRIVERS_OLD_ID],Jm=[Km.DELETE,Km.CUT,Km.ADD_TO_MASTER_ITEMS,Km.UNLINK_VISUALIZATION],Qm=[Km.PASTE],eg=(e,t)=>{const{childRefId:r}=e.model.layout,n=t.objects.find((e=>e.childRefId===r));return{...e,additionalData:{label:null==n?void 0:n.label}}},tg=(e,t,r,n,o)=>{const i=t.getSupportFunction(Km.COPY);if(!i)return void e.deleteItem(Km.COPY);const a=()=>{i(eg(r,n)).catch((()=>{}))},l=e.items.find((e=>e.id===Km.COPY));if(l)l.updateItem({select:a});else if(o){const t=e.items.findIndex((e=>e.id===Km.CUT)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:Km.COPY,id:Km.COPY,icon:"copy",select:a,items:[]},r)}},rg=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,ng=async(e,t,r,n)=>{const o=t.getBuilder("default");if(!o)return;const i=await o();i.addItem({translation:"contextMenu.containerOptionsHeader",tid:Km.CONTAINER_HEADER,id:Km.CONTAINER_HEADER,bold:!0,items:[]},0);const a=rg(r);i.items.forEach((e=>{(Zm.includes(e.id)||!a&&Qm.includes(e.id))&&i.deleteItem(e.id)})),a&&await(async(e,t,r)=>{var n;const o=t.getSupportFunction(Wm.PASTE),i=await(null==o||null===(n=o())||void 0===n?void 0:n.catch((()=>{})));if(!i||sp.includes(i.template))return void e.deleteItem(Km.PASTE);const a=()=>{r()},l=e.items.find((e=>e.id===Km.PASTE));if(l)l.updateItem({translation:"contextMenu.paste",select:a});else{const t=e.items.findLastIndex((e=>e.id===Km.COPY||e.id===Km.DEVELOPER||e.id===Km.CONTAINER_HEADER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:Km.PASTE,id:Km.PASTE,icon:"paste",select:a,items:[]},r)}})(i,t,n),e.updateItem({items:i.items}),1===e.items.length&&e.deleteItem(Km.CONTAINER_HEADER)},og=e=>{const t={[Km.MONITOR_IN_HUB]:!0,[Km.SUBSCRIBE]:!0,[Km.NOTES_GROUP]:!0,[Km.DOWNLOAD]:!0,[Km.SHARE_IMAGE]:!0};e.items.forEach((r=>{t[r.id]?e.deleteItem(r.id):r.items&&og(r)}))},ig=(e,t,r,n,o,i)=>a=>{const{dataHandler:l,modifiedLayout:s}=n;if(rg(n)){r.isInvalid||(((e,t,r,n)=>{const{model:o,modifiedLayout:i}=r,a=e.items.findLastIndex((e=>e.id===Km.CHART_HEADER||e.id===Km.REORDER_LAYERS_GROUP)),l=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:Km.EDIT_PROPERTIES,id:Km.EDIT_PROPERTIES,icon:Km.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,r=i.objects.find((t=>t.childRefId===e)),a=null==r?void 0:r.label,{sense:l}=n.anything,s=o;l.propertyPanel.show({model:t.model,parent:s,headerLabel:a})}},l)})(a,r,n,o),((e,t,r,n,o,i)=>{const a=n.getSupportFunction(Km.COPY);if(!a)return void e.deleteItem(Km.CUT);const l=()=>{o&&a(eg(r,i)).then((async()=>{await(null==o?void 0:o.deleteChildren([t]))})).catch((()=>{}))},s=e.items.find((e=>e.id===Km.CUT));if(s)s.updateItem({select:l});else{const t=e.items.findLastIndex((e=>e.id===Km.ADD_TO_MASTER_ITEMS||e.id===Km.UNLINK_VISUALIZATION||e.id===Km.EDIT_PROPERTIES||e.id===Km.REORDER_LAYERS_GROUP||e.id===Km.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:Km.CUT,id:Km.CUT,icon:"cut",select:l,items:[]},r)}})(a,t,r,e,l,s),tg(a,e,r,s,!0),((e,t,r,n,o)=>{const i=t.getSupportFunction(Wm.COPY),a=t.getSupportFunction(Wm.PASTE);if(!i||!a)return void e.deleteItem(Km.DUPLICATE);const l=()=>{i(eg(r,n)).then((()=>{o()})).catch((()=>{}))},s=e.items.find((e=>e.id===Km.DUPLICATE));if(s)s.updateItem({select:l});else{const t=e.items.findIndex((e=>e.id===Km.COPY)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:Km.DUPLICATE,id:Km.DUPLICATE,icon:Km.DUPLICATE,items:[],select:l},r)}})(a,e,r,s,i)),((e,t,r)=>{const n=()=>{r&&r.deleteChildren([t]).catch((()=>{}))},o=e.items.find((e=>e.id===Km.DELETE));if(o)o.updateItem({select:n});else{const t=e.items.findLastIndex((e=>e.id===Km.DUPLICATE||e.id===Km.ADD_TO_MASTER_ITEMS||e.id===Km.UNLINK_VISUALIZATION||e.id===Km.REORDER_LAYERS_GROUP||e.id===Km.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:Km.DELETE,id:Km.DELETE,icon:"bin",items:[],select:n},r)}})(a,t,l)}else tg(a,e,r,s,!1)},ag=(e,t,r,n)=>{b((async(o,i,a)=>{var l;if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const r=t.getSupportFunction(Wm.PASTE);r&&r().then((async({template:t,init:r,children:n,additionalData:o})=>{const{label:i}=o,a={label:i};r.qExtendsId?await e.addMasterObjectAsChild({initProps:r,children:n,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:r,children:n,objectInitProps:a})})).catch((e=>{e&&t.getSupportFunction(Wm.RESET_COPY_BUFFER)}))})(r.dataHandler,a);if(await ng(o,a,r,s),og(o),!(e=>{var t;let r;r="qv-radial-contextmenu"===e.type?null===(t=e.touches[0])||void 0===t?void 0:t.target:e.target;return r&&((e,t)=>{let r=e;for(;r;){var n;if(null!==(n=r.classList)&&void 0!==n&&n.contains(t))return r;r=r.parentNode}return null})(r,dm.ACTIVE_TAB_PANEL)})(i))return!0;const c=null===(l=r.modifiedLayout.objects.find((t=>t.childRefId===e)))||void 0===l?void 0:l.id;if(!c)return!0;const d=t.objectMap.get(c);if(!d)return!0;const u=ig(a,e,d,r,n,s),p=await(async(e,t,r,n)=>{const o=rg(r),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:Km.CHART_HEADER,id:Km.CHART_HEADER,bold:!0,items:[]},0),n(a),a.items.forEach((e=>{(Xm.includes(e.id)||!o&&Jm.includes(e.id))&&a.deleteItem(e.id)})),1===a.items.length&&a.deleteItem(Km.CHART_HEADER),a})(a,d,r,u);return!p||(o.items.length>0&&p.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},p.items.length),o.updateItem({items:p.items}),!0)}))},lg=({element:e,models:o,env:i})=>{var l;const s=((e,t)=>{const[o,i]=n(void 0);return r((()=>{if(0===e.getElementsByClassName(t).length){const r=document.createElement("div");r.className=t,e.appendChild(r);const n=dp(r);i(n)}return()=>{null==o||o.unmount()}}),[e,t,o]),o})(e,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=o,{cachedTabId:h,defaultTabId:f,objects:m,qChildList:b}=d,v=ap(c.direction),y=(e=>{const{viewState:r}=t(),{snapshotData:n}=e;if(n){var o;const{layouts:e}=n.objectsData;return{layouts:e,viewStates:null===(o=n.viewState)||void 0===o?void 0:o.viewStates}}if(r){const{viewStates:e}=r;return{viewStates:e}}})(d),x=h||f||(null===(l=m[0])||void 0===l?void 0:l.childRefId)||"",E={modifiedLayout:d,activeTabId:x,env:i},[S,w]=mm(E);w(E);const R=a((()=>d.objects.filter((e=>x===e.childRefId))),[x,d.objects]),{renderHelper:k}=(e=>{const{visibleLayoutObjects:t,options:o}=e,[i]=n((()=>new Mm(e))),[,a]=n(o);return i.dependencyData=e,g((async()=>{var e,r;return a((e=>(e!==o&&t.forEach((e=>i.recreateMap.set(e.id,!0))),o))),i.syncObjects(t)?null===(r=i.createTimerForRendering())||void 0===r?void 0:r.promise:null===(e=i.resolver)||void 0===e?void 0:e.promise}),[t,o]),r((()=>()=>{i.destroy()}),[i]),{renderHelper:i}})({modifiedLayout:d,visibleLayoutObjects:R,viewState:y,options:c});ag(x,k,o,i);const[A]=n({current:void 0}),I=a((()=>e=>{(async({model:e,patchList:t})=>{if(null!=e&&e.applyPatches){const r=await e.getEffectiveProperties(),n=[];t.forEach((e=>{const{newValue:t,propertyName:o}=e,i=void 0!==r[o]?"Replace":"Add";t?n.push({qPath:`/${o}`,qOp:i,qValue:t&&JSON.stringify(t)}):"Replace"===i&&n.push({qPath:`/${o}`,qOp:"Remove"})})),n.length>0&&await e.applyPatches(n,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]})}),[p]),_=a((()=>({setSelected:e=>{var t;const r=null===(t=S.modifiedLayout.objects.find((t=>t.id===e[0])))||void 0===t?void 0:t.childRefId;r?I(r):A.current=e[0]}})),[I,S,A]);r((()=>{const e=(({chartObjects:e,activeTabId:t})=>{var r;return!Fm(e,t)&&e.length>0?null===(r=e[0])||void 0===r?void 0:r.childRefId:t})({chartObjects:S.modifiedLayout.objects,activeTabId:S.activeTabId});if(e!==S.activeTabId)I(e);else if(A.current){var t;const e=null===(t=S.modifiedLayout.objects.find((e=>e.id===A.current)))||void 0===t?void 0:t.childRefId;e&&I(e)}A.current=void 0}),[null==d?void 0:d.objects.length,S,A,I]),r((()=>{const e=(({chartObjects:e,activeTabId:t,interactions:r})=>{const n=Fm(e,t);if(!n||qm(n,r)){const r=e.find((e=>0!==e.condition));return(null==r?void 0:r.childRefId)||t}return t})({chartObjects:S.modifiedLayout.objects,activeTabId:S.activeTabId,interactions:u});e!==S.activeTabId&&I(e)}),[u,null==d?void 0:d.objects,S,I]);const T=0===b.qItems.length&&u.edit;return r((()=>{null==s||s.render(C.createElement(Fl,{theme:v},T?C.createElement(Om,{Icon:Lm,dataHandler:o.dataHandler,modifiedLayout:o.modifiedLayout,translator:o.translator,sharedContainerUtilities:_}):null,!T&&C.createElement(Um,{models:o,renderHelper:k,activeTabId:x,handleChangeTab:I,env:i})))}),[s,o,v,T,k,x,_,I,i]),{renderHelper:k,sharedContainerUtilities:_,activeTabId:x}};var sg={targets:[]};const cg={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const dg=e=>e.map((e=>{if(e.canReceive){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:r=>t(r)&&e.canReceive(r)}}return e})),ug=(e,t)=>{let r=!0;const n=t.objects.reduce(((t,n)=>{const o=n.id;if(0!==n.condition){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(r=!1,t.objectMap.set(o,i)),t.objects.push(n),t}return t}),{objects:[],objectMap:new Map});return r?{objects:[],objectMap:new Map}:n}}}}));
|
|
87
|
+
`),Ns.rippleVisible,Hs,550,(({theme:e})=>e.transitions.easing.easeInOut),Ns.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ns.child,Ns.childLeaving,Ws,550,(({theme:e})=>e.transitions.easing.easeInOut),Ns.childPulsate,Ys,(({theme:e})=>e.transitions.easing.easeInOut)),qs=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=B(r,$s),[l,s]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const u=y.useRef(!1),p=si(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,Br.jsx(Vs,{classes:{ripple:mo(o.ripple,Ns.ripple),rippleVisible:mo(o.rippleVisible,Ns.rippleVisible),ripplePulsate:mo(o.ripplePulsate,Ns.ripplePulsate),child:mo(o.child,Ns.child),childLeaving:mo(o.childLeaving,Ns.childLeaving),childPulsate:mo(o.childPulsate,Ns.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[o]),b=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const l=a?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(r-s.top)}if(i)b=Math.sqrt((2*s.width**2+s.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:r})}),[n,m,p]),g=y.useCallback((()=>{b({},{pulsate:!0})}),[b]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{v(e,t)}));h.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:g,start:b,stop:v})),[g,b,v]),Br.jsx(Us,z({className:mo(Ns.root,o.root,i),ref:f},a,{children:Br.jsx(Is,{component:null,exit:!0,children:l})}))}));function Ks(e){return vo("MuiButtonBase",e)}const Xs=yo("MuiButtonBase",["root","disabled","focusVisible"]),Zs=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Js=Vl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Xs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qs=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:g,onFocusVisible:v,onKeyDown:x,onKeyUp:E,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:k,onTouchStart:A,tabIndex:_=0,TouchRippleProps:I,touchRippleRef:T,type:L}=r,O=B(r,Zs),P=y.useRef(null),M=y.useRef(null),j=oi(M,T),{isFocusVisibleRef:N,onFocus:$,onBlur:D,ref:F}=gi(),[G,H]=y.useState(!1);s&&G&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),P.current.focus()}})),[]);const[W,Y]=y.useState(!1);y.useEffect((()=>{Y(!0)}),[]);const U=W&&!c&&!s;function V(e,t,r=d){return ni((n=>{t&&t(n);return!r&&M.current&&M.current[e](n),!0}))}y.useEffect((()=>{G&&u&&!c&&W&&M.current.pulsate()}),[c,u,G,W]);const q=V("start",S),K=V("stop",m),X=V("stop",b),Z=V("stop",w),J=V("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),Q=V("start",A),ee=V("stop",R),te=V("stop",k),re=V("stop",(e=>{D(e),!1===N.current&&H(!1),h&&h(e)}),!1),ne=ni((e=>{P.current||(P.current=e.currentTarget),$(e),!0===N.current&&(H(!0),v&&v(e)),g&&g(e)})),oe=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=ni((e=>{u&&!ie.current&&G&&M.current&&" "===e.key&&(ie.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),f&&f(e))})),le=ni((e=>{u&&" "===e.key&&M.current&&G&&!e.defaultPrevented&&(ie.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let se=l;"button"===se&&(O.href||O.to)&&(se=p);const ce={};"button"===se?(ce.type=void 0===L?"button":L,ce.disabled=s):(O.href||O.to||(ce.role="button"),s&&(ce["aria-disabled"]=s));const de=oi(t,F,P),ue=z({},r,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:_,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ci({root:["root",t&&"disabled",r&&"focusVisible"]},Ks,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Br.jsxs(Js,z({as:se,className:mo(pe.root,a),ownerState:ue,onBlur:re,onClick:f,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:s?-1:_,type:L},ce,O,{children:[i,U?Br.jsx(qs,z({ref:j,center:o},I)):null]}))}));function ec(e){return vo("MuiTypography",e)}yo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],rc=Vl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${on(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>z({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),nc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},oc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ic=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTypography"}),n=(e=>oc[e]||e)(r.color),o=co(z({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=nc}=o,h=B(o,tc),f=z({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=l||(d?"p":p[u]||nc[u])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ci({root:["root",i,"inherit"!==e.align&&`align${on(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ec,a)})(f);return Br.jsx(rc,z({as:m,ref:t,ownerState:f,className:mo(b.root,a)},h))}));const ac=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=oi(y.isValidElement(r)?Ii(r):null,t);if(Wo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Wo((()=>{if(i&&!o)return Qo(t,i),()=>{Qo(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return Br.jsx(y.Fragment,{children:r})}return Br.jsx(y.Fragment,{children:i?O.createPortal(r,i):i})})),lc=["onChange","maxRows","minRows","style","value"];function sc(e){return parseInt(e,10)||0}const cc={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function dc(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const uc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=B(e,lc),{current:s}=y.useRef(null!=a),c=y.useRef(null),d=oi(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback((()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=Jo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,l=sc(i.paddingBottom)+sc(i.paddingTop),s=sc(i.borderBottomWidth)+sc(i.borderTopWidth),d=r.scrollHeight;r.value="x";const u=r.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),n&&(h=Math.min(Number(n)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?l+s:0),overflowing:Math.abs(h-d)<=1}}),[n,o,e.placeholder]),f=ni((()=>{const e=c.current,t=h();if(!e||!t||dc(t))return!1;const r=t.outerHeightStyle;return null!=u.current&&u.current!==r})),m=y.useCallback((()=>{const e=c.current,t=h();if(!e||!t||dc(t))return;const r=t.outerHeightStyle;u.current!==r&&(u.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),b=y.useRef(-1);Wo((()=>{const e=Xo(m),t=null==c?void 0:c.current;if(!t)return;const r=Jo(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{f()&&(n.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,m,f]),Wo((()=>{m()}));return Br.jsxs(y.Fragment,{children:[Br.jsx("textarea",z({value:a,onChange:e=>{s||m(),r&&r(e)},ref:d,rows:o,style:i},l)),Br.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:z({},cc,i,{paddingTop:0,paddingBottom:0})})]})}));const pc=y.createContext(void 0);function hc(){return y.useContext(pc)}function fc(e){return Br.jsx(lo,z({},e,{defaultTheme:fl,themeId:$}))}function mc(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function bc(e){return vo("MuiInputBase",e)}const gc=yo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),vc=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],yc=Vl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${on(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>z({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${gc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xc=Vl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return z({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${gc.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${gc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ec=Br.jsx(fc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Sc=y.forwardRef((function(e,t){var r;const n=ss({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:g={},inputRef:v,maxRows:x,minRows:E,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:k,onFocus:A,onKeyDown:_,onKeyUp:I,placeholder:T,readOnly:L,renderSuffix:O,rows:P,slotProps:M={},slots:N={},startAdornment:$,type:D="text",value:F}=n,G=B(n,vc),H=null!=g.value?g.value:F,{current:W}=y.useRef(null!=H),Y=y.useRef(),U=y.useCallback((e=>{}),[]),V=oi(Y,v,g.ref,U),[q,K]=y.useState(!1),X=hc(),Z=function({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=X?X.focused:q,y.useEffect((()=>{!X&&u&&q&&(K(!1),w&&w())}),[X,u,q,w]);const J=X&&X.onFilled,Q=X&&X.onEmpty,ee=y.useCallback((e=>{!function(e,t=!1){return e&&(mc(e.value)&&""!==e.value||t&&mc(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()}),[J,Q]);Wo((()=>{W&&ee({value:H})}),[H,ee,W]);y.useEffect((()=>{ee(Y.current)}),[]);let te=b,re=g;S&&"input"===te&&(re=z(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},re),te=uc);y.useEffect((()=>{X&&X.setAdornedStart(Boolean($))}),[X,$]);const ne=z({},n,{color:Z.color||"primary",disabled:Z.disabled,endAdornment:h,error:Z.error,focused:Z.focused,formControl:X,fullWidth:f,hiddenLabel:Z.hiddenLabel,multiline:S,size:Z.size,startAdornment:$,type:D}),oe=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Ci({root:["root",`color${on(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${on(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",n&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},bc,t)})(ne),ie=N.root||s.Root||yc,ae=M.root||c.root||{},le=N.input||s.Input||xc;return re=z({},re,null!=(r=M.input)?r:c.input),Br.jsxs(y.Fragment,{children:[!p&&Ec,Br.jsxs(ie,z({},ae,!wi(ie)&&{ownerState:z({},ne,ae.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),k&&k(e)}},G,{className:mo(oe.root,ae.className,l,L&&"MuiInputBase-readOnly"),children:[$,Br.jsx(pc.Provider,{value:null,children:Br.jsx(le,z({ownerState:ne,"aria-invalid":Z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Z.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:T,readOnly:L,required:Z.required,rows:P,value:H,onKeyDown:_,onKeyUp:I,type:D},re,!wi(le)&&{as:te,ownerState:z({},ne,re.ownerState)},{ref:V,className:mo(oe.input,re.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||Y.current;if(null==t)throw new Error(j(1));ee({value:t.value})}g.onChange&&g.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Z.disabled?e.stopPropagation():(A&&A(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,O?O(z({},Z,{startAdornment:$})):null]}))]})})),Cc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],wc={entering:{opacity:1},entered:{opacity:1}},Rc=y.forwardRef((function(e,t){const r=ml(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=n,TransitionComponent:g=Cs}=e,v=B(e,Cc),x=y.useRef(null),E=oi(x,Ii(a),t),S=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=S(u),w=S(((e,t)=>{Ts(e);const n=Ls({style:m,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),R=S(d),k=S(f),A=S((e=>{const t=Ls({style:m,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),_=S(h);return Br.jsx(g,z({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:_,onExiting:k,addEndListener:e=>{o&&o(x.current,e)},timeout:b},v,{children:(e,t)=>y.cloneElement(a,z({style:z({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},wc[e],m,a.props.style),ref:E},t))}))}));function kc(e){return vo("MuiBackdrop",e)}yo("MuiBackdrop",["root","invisible"]);const Ac=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_c=Vl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>z({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Ic=y.forwardRef((function(e,t){var r,n,o;const i=ss({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=Rc,transitionDuration:b}=i,g=B(i,Ac),v=z({},i,{component:s,invisible:u}),y=(e=>{const{classes:t,invisible:r}=e;return Ci({root:["root",r&&"invisible"]},kc,t)})(v),x=null!=(r=h.root)?r:d.root;return Br.jsx(m,z({in:p,timeout:b},g,{children:Br.jsx(_c,z({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:c.Root)?n:s,className:mo(y.root,l,null==x?void 0:x.className),ownerState:z({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Tc=yo("MuiBox",["root"]),Lc=hl(),Oc=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Gr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Jn);return y.forwardRef((function(e,a){const l=io(r),s=co(e),{className:c,component:d="div"}=s,u=B(s,bo);return Br.jsx(i,z({as:d,ref:a,className:mo(c,o?o(n):n),theme:t&&l[t]||l},u))}))}({themeId:$,defaultTheme:Lc,defaultClassName:Tc.root,generateClassName:ho.generate});function Pc(e){return vo("MuiButton",e)}const Mc=yo("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"]),jc=y.createContext({}),Nc=y.createContext(void 0),$c=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zc=e=>z({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Bc=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${on(r.color)}`],t[`size${on(r.size)}`],t[`${r.variant}Size${on(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Mc.focusVisible}`]:z({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Mc.disabled}`]:z({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Zi(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mc.disabled}`]:{boxShadow:"none"}})),Dc=Vl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${on(r.size)}`]]}})((({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zc(e)))),Fc=Vl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${on(r.size)}`]]}})((({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zc(e)))),Gc=y.forwardRef((function(e,t){const r=y.useContext(jc),n=y.useContext(Nc),o=ss({props:Ho(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:g,variant:v="text"}=o,x=B(o,$c),E=z({},o,{color:a,component:l,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),S=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return z({},a,Ci({root:["root",i,`${i}${on(t)}`,`size${on(o)}`,`${i}Size${on(o)}`,`color${on(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${on(o)}`],endIcon:["icon","endIcon",`iconSize${on(o)}`]},Pc,a))})(E),C=b&&Br.jsx(Dc,{className:S.startIcon,ownerState:E,children:b}),w=p&&Br.jsx(Fc,{className:S.endIcon,ownerState:E,children:p}),R=n||"";return Br.jsxs(Bc,z({ownerState:E,className:mo(r.className,S.root,s,R),component:l,disabled:c,focusRipple:!u,focusVisibleClassName:mo(S.focusVisible,h),ref:t,type:g},x,{classes:S,children:[C,i,w]}))}));function Hc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Wc(e){return parseInt(Jo(e).getComputedStyle(e).paddingRight,10)||0}function Yc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Hc(e,o)}))}function Uc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Vc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Zo(e);return t.body===e?Jo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=yi(Zo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Wc(n)+e}px`;const t=Zo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Wc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Zo(n).body;else{const t=n.parentElement,r=Jo(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const qc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Kc(e){const t=[],r=[];return Array.from(e.querySelectorAll(qc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Xc(){return!0}function Zc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Kc,isEnabled:a=Xc,open:l}=e,s=y.useRef(!1),c=y.useRef(null),d=y.useRef(null),u=y.useRef(null),p=y.useRef(null),h=y.useRef(!1),f=y.useRef(null),m=oi(Ii(t),f),b=y.useRef(null);y.useEffect((()=>{l&&f.current&&(h.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Zo(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{o||(u.current&&u.current.focus&&(s.current=!0,u.current.focus()),u.current=null)}}),[l]),y.useEffect((()=>{if(!l||!f.current)return;const e=Zo(f.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},r=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(f.current)),r.length>0){var o,l;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,l,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return Br.jsxs(y.Fragment,{children:[Br.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Br.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Jc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Hc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Yc(t,e.mount,e.modalRef,n,!0);const o=Uc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Uc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Vc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Uc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Hc(e.modalRef,t),Yc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Hc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Qc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Jc,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=oi(f,u),[b,g]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),S=()=>{o.mount(E(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},C=ni((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zo(h.current).body;o.add(E(),e),f.current&&S()})),w=y.useCallback((()=>o.isTopModal(E())),[o]),R=ni((e=>{h.current=e,e&&(d&&w()?S():f.current&&Hc(f.current,x))})),k=y.useCallback((()=>{o.remove(E(),x)}),[x,o]);y.useEffect((()=>()=>{k()}),[k]),y.useEffect((()=>{d?C():v&&i||k()}),[d,k,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ri(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=z({},r,t);return z({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>z({"aria-hidden":!0},e,{onClick:_(e),open:d}),getTransitionProps:()=>({onEnter:Ko((()=>{g(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Ko((()=>{g(!0),l&&l(),i&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function ed(e){return vo("MuiModal",e)}yo("MuiModal",["root","hidden","backdrop"]);const td=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],rd=Vl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),nd=Vl(Ic,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),od=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=ss({name:"MuiModal",props:e}),{BackdropComponent:c=nd,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:g={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:k=!1,onBackdropClick:A,open:_,slotProps:I,slots:T}=s,L=B(s,td),O=z({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:j,portalRef:N,isTopModal:$,exited:D,hasTransition:F}=Qc(z({},O,{rootRef:t})),G=z({},O,{exited:D}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Ci({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},ed,n)})(G),W={};if(void 0===h.props.tabIndex&&(W.tabIndex="-1"),F){const{onEnter:e,onExited:t}=j();W.onEnter=e,W.onExited=t}const Y=null!=(r=null!=(n=null==T?void 0:T.root)?n:b.Root)?r:rd,U=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:b.Backdrop)?o:c,V=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(l=null==I?void 0:I.backdrop)?l:g.backdrop,K=_i({elementType:Y,externalSlotProps:V,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:G,className:mo(u,null==V?void 0:V.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=_i({elementType:U,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M(z({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:mo(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return k||_||F&&!D?Br.jsx(ac,{ref:N,container:f,disablePortal:S,children:Br.jsxs(Y,z({},K,{children:[!R&&c?Br.jsx(U,z({},X)):null,Br.jsx(Zc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:$,open:_,children:y.cloneElement(h,W)})]}))}):null}));function id(e){return vo("MuiDivider",e)}const ad=yo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ld=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sd=Vl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>z({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Zi(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>z({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>z({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>z({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),cd=Vl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>z({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),dd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=r,h=B(r,ld),f=z({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Ci({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},id,n)})(f);return Br.jsx(sd,z({as:a,className:mo(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?Br.jsx(cd,{className:m.wrapper,ownerState:f,children:o}):null}))}));dd.muiSkipListHighlight=!0;const ud=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pd(e){return`scale(${e}, ${e**2})`}const hd={entering:{opacity:1,transform:pd(1)},entered:{opacity:1,transform:"none"}},fd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),md=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Cs}=e,b=B(e,ud),g=si(),v=y.useRef(),x=ml(),E=y.useRef(null),S=oi(E,Ii(o),t),C=e=>t=>{if(e){const r=E.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{Ts(e);const{duration:r,delay:n,easing:o}=Ls({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:fd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),k=C(s),A=C(p),_=C((e=>{const{duration:t,delay:r,easing:n}=Ls({style:h,timeout:f,easing:i},{mode:"exit"});let o;"auto"===f?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:fd?o:.666*o,delay:fd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=pd(.75),d&&d(e)})),I=C(u);return Br.jsx(m,z({appear:n,in:a,nodeRef:E,onEnter:R,onEntered:k,onEntering:w,onExit:_,onExited:I,onExiting:A,addEndListener:e=>{"auto"===f&&g.start(v.current||0,e),r&&r(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,z({style:z({opacity:0,transform:pd(.75),visibility:"exited"!==e||a?void 0:"hidden"},hd[e],h,o.props.style),ref:S},t))}))}));function bd(e){return vo("MuiInputAdornment",e)}md.muiSupportAuto=!0;const gd=yo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var vd;const yd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],xd=Vl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${on(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${gd.positionStart}&:not(.${gd.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),Ed=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=r,d=B(r,yd),u=hc()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=z({},r,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:s,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Ci({root:["root",r&&"disablePointerEvents",o&&`position${on(o)}`,a,n&&"hiddenLabel",i&&`size${on(i)}`]},bd,t)})(h);return Br.jsx(pc.Provider,{value:null,children:Br.jsx(xd,z({as:i,ownerState:h,className:mo(f.root,o),ref:t},d,{children:"string"!=typeof n||l?Br.jsxs(y.Fragment,{children:["start"===s?vd||(vd=Br.jsx("span",{className:"notranslate",children:""})):null,n]}):Br.jsx(ic,{color:"text.secondary",children:n})}))})})),Sd=y.createContext({});function Cd(e){return vo("MuiList",e)}yo("MuiList",["root","padding","dense","subheader"]);const wd=["children","className","component","dense","disablePadding","subheader"],Rd=Vl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),kd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,c=B(r,wd),d=y.useMemo((()=>({dense:a})),[a]),u=z({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ci({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Cd,t)})(u);return Br.jsx(Sd.Provider,{value:d,children:Br.jsxs(Rd,z({as:i,className:mo(p.root,o),ref:t,ownerState:u},c,{children:[s,n]}))})}));function Ad(e){return vo("MuiListItem",e)}const _d=yo("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function Id(e){return vo("MuiListItemButton",e)}const Td=yo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ld=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Od=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>z({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Td.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Td.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Td.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Td.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Td.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Pd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:i="div",children:a,dense:l=!1,disableGutters:s=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=r,h=B(r,Ld),f=y.useContext(Sd),m=y.useMemo((()=>({dense:l||f.dense||!1,alignItems:n,disableGutters:s})),[n,f.dense,l,s]),b=y.useRef(null);Wo((()=>{o&&b.current&&b.current.focus()}),[o]);const g=z({},r,{alignItems:n,dense:m.dense,disableGutters:s,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:a,selected:l}=e;return z({},r,Ci({root:["root",n&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},Id,r))})(g),x=oi(b,t);return Br.jsx(Sd.Provider,{value:m,children:Br.jsx(Od,z({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:mo(v.focusVisible,d),ownerState:g,className:mo(v.root,p)},h,{classes:v,children:a}))})}));function Md(e){return vo("MuiListItemSecondaryAction",e)}yo("MuiListItemSecondaryAction",["root","disableGutters"]);const jd=["className"],Nd=Vl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>z({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),$d=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=B(r,jd),i=z({},r,{disableGutters:y.useContext(Sd).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Ci({root:["root",t&&"disableGutters"]},Md,r)})(i);return Br.jsx(Nd,z({className:mo(a.root,n),ownerState:i,ref:t},o))}));$d.muiName="ListItemSecondaryAction";const zd=["className"],Bd=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Dd=Vl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>z({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&z({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Td.root}`]:{paddingRight:48}},{[`&.${_d.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_d.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_d.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${_d.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_d.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Fd=Vl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Gd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:g=!1,focusVisibleClassName:v,secondaryAction:x,selected:E=!1,slotProps:S={},slots:C={}}=r,w=B(r.ContainerProps,zd),R=B(r,Bd),k=y.useContext(Sd),A=y.useMemo((()=>({dense:h||k.dense||!1,alignItems:n,disableGutters:m})),[n,k.dense,h,m]),_=y.useRef(null);Wo((()=>{o&&_.current&&_.current.focus()}),[o]);const I=y.Children.toArray(a),T=I.length&&(L=I[I.length-1],O=["ListItemSecondaryAction"],y.isValidElement(L)&&-1!==O.indexOf(null!=(P=L.type.muiName)?P:null==(M=L.type)||null==(M=M._payload)||null==(M=M.value)?void 0:M.muiName));var L,O,P,M;const j=z({},r,{alignItems:n,autoFocus:o,button:i,dense:A.dense,disabled:f,disableGutters:m,disablePadding:b,divider:g,hasSecondaryAction:T,selected:E}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return Ci({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},Ad,n)})(j),$=oi(_,t),D=C.root||c.Root||Dd,F=S.root||d.root||{},G=z({className:mo(N.root,F.className,l),disabled:f},R);let H=s||"li";return i&&(G.component=s||"div",G.focusVisibleClassName=mo(_d.focusVisible,v),H=Qs),T?(H=G.component||s?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),Br.jsx(Sd.Provider,{value:A,children:Br.jsxs(Fd,z({as:u,className:mo(N.container,p),ref:$,ownerState:j},w,{children:[Br.jsx(D,z({},F,!wi(D)&&{as:H,ownerState:z({},j,F.ownerState)},G,{children:I})),I.pop()]}))})):Br.jsx(Sd.Provider,{value:A,children:Br.jsxs(D,z({},F,{as:H,ref:$},!wi(D)&&{ownerState:z({},j,F.ownerState)},G,{children:[I,x&&Br.jsx($d,{children:x})]}))})}));function Hd(e){return vo("MuiListItemIcon",e)}const Wd=yo("MuiListItemIcon",["root","alignItemsFlexStart"]),Yd=["className"],Ud=Vl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Vd=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=B(r,Yd),i=z({},r,{alignItems:y.useContext(Sd).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ci({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Hd,r)})(i);return Br.jsx(Ud,z({className:mo(a.root,n),ownerState:i,ref:t},o))})),qd=yo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Kd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Xd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Zd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Jd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Qd(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Jd(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const eu=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=B(e,Kd),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wo((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${yi(Zo(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const f=oi(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=y.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return Br.jsx(kd,z({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zo(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Qd(t,n,s,l,Xd);else if("ArrowUp"===r)e.preventDefault(),Qd(t,n,s,l,Zd);else if("Home"===r)e.preventDefault(),Qd(t,null,s,l,Xd);else if("End"===r)e.preventDefault(),Qd(t,null,s,l,Zd);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Jd(n,o);o.previousKeyMatched&&(s||Qd(t,n,!1,l,Xd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},u,{children:b}))}));function tu(e){return vo("MuiPopover",e)}yo("MuiPopover",["root","paper"]);const ru=["onEntering"],nu=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ou=["slotProps"];function iu(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function au(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function lu(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function su(e){return"function"==typeof e?e():e}const cu=Vl(od,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),du=Vl(js,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uu=y.forwardRef((function(e,t){var r,n,o;const i=ss({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:g={},slots:v,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=md,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=B(i.TransitionProps,ru),A=B(i,nu),_=null!=(r=null==x?void 0:x.paper)?r:g,I=y.useRef(),T=oi(I,_.ref),L=z({},i,{anchorOrigin:s,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:k}),O=(e=>{const{classes:t}=e;return Ci({root:["root"],paper:["paper"]},tu,t)})(L),P=y.useCallback((()=>{if("anchorPosition"===d)return c;const e=su(l),t=(e&&1===e.nodeType?e:Zo(I.current).body).getBoundingClientRect();return{top:t.top+iu(t,s.vertical),left:t.left+au(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,d]),M=y.useCallback((e=>({vertical:iu(e,E.vertical),horizontal:au(e,E.horizontal)})),[E.horizontal,E.vertical]),j=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=M(t);if("none"===d)return{top:null,left:null,transformOrigin:lu(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,c=Jo(su(l)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:lu(r)}}),[l,d,P,M,m]),[N,$]=y.useState(b),D=y.useCallback((()=>{const e=I.current;if(!e)return;const t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,$(!0)}),[j]);y.useEffect((()=>(R&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,R,D]);y.useEffect((()=>{b&&D()})),y.useImperativeHandle(a,(()=>b?{updatePosition:()=>{D()}}:null),[b,D]),y.useEffect((()=>{if(!b)return;const e=Xo((()=>{D()})),t=Jo(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,D]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(l?Zo(su(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:cu,W=null!=(o=null==v?void 0:v.paper)?o:du,Y=_i({elementType:W,externalSlotProps:z({},_,{style:N?_.style:z({},_.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:L,className:mo(O.paper,null==_?void 0:_.className)}),U=_i({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:L,className:mo(O.root,p)}),{slotProps:V}=U,q=B(U,ou);return Br.jsx(H,z({},q,!wi(H)&&{slotProps:V,disableScrollLock:R},{children:Br.jsx(S,z({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),D()},onExited:()=>{$(!1)},timeout:F},k,{children:Br.jsx(W,z({},Y,{children:u}))}))}))}));function pu(e){return vo("MuiMenu",e)}yo("MuiMenu",["root","paper","list"]);const hu=["onEntering"],fu=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],mu={vertical:"top",horizontal:"right"},bu={vertical:"top",horizontal:"left"},gu=Vl(uu,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vu=Vl(du,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yu=Vl(eu,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),xu=y.forwardRef((function(e,t){var r,n;const o=ss({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:g={},slotProps:v={}}=o,x=B(o.TransitionProps,hu),E=B(o,fu),S=$i(),C=z({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Ci({root:["root"],paper:["paper"],list:["list"]},pu,t)})(C),R=i&&!s&&u,k=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===A)&&(A=t))}));const _=null!=(r=g.paper)?r:vu,I=null!=(n=v.paper)?n:p,T=_i({elementType:g.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),L=_i({elementType:_,externalSlotProps:I,ownerState:C,className:w.paper});return Br.jsx(gu,z({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?mu:bu,slots:{paper:_,root:g.root},slotProps:{root:T,paper:L},open:u,ref:t,transitionDuration:f,TransitionProps:z({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},E,{classes:h,children:Br.jsx(yu,z({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:b},c,{className:mo(w.list,c.className),children:a}))}))}));function Eu(e){return vo("MuiMenuItem",e)}const Su=yo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cu=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wu=Vl(Qs,{shouldForwardProp:e=>Ul(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>z({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Su.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Su.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Su.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zi(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Su.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Su.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ad.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ad.inset}`]:{marginLeft:52},[`& .${qd.root}`]:{marginTop:0,marginBottom:0},[`& .${qd.inset}`]:{paddingLeft:36},[`& .${Wd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Wd.root} svg`]:{fontSize:"1.25rem"}})))),Ru=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:d,className:u}=r,p=B(r,Cu),h=y.useContext(Sd),f=y.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),m=y.useRef(null);Wo((()=>{n&&m.current&&m.current.focus()}),[n]);const b=z({},r,{dense:f.dense,divider:a,disableGutters:l}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return z({},a,Ci({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Eu,a))})(r),v=oi(m,t);let x;return r.disabled||(x=void 0!==d?d:-1),Br.jsx(Sd.Provider,{value:f,children:Br.jsx(wu,z({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:mo(g.focusVisible,s),className:mo(g.root,u)},p,{ownerState:b,classes:g}))})}));function ku(e){return vo("MuiTab",e)}const Au=yo("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),_u=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Iu=Vl(Qs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${on(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${Au.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:t})=>z({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Au.iconWrapper}`]:z({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${Au.selected}`]:{opacity:1},[`&.${Au.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Au.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${Au.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Au.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),Tu=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:s="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=r,x=B(r,_u),E=z({},r,{disabled:o,disableFocusRipple:i,selected:f,icon:!!l,iconPosition:s,label:!!d,fullWidth:a,textColor:b,wrapped:v}),S=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:i,label:a,selected:l,disabled:s}=e;return Ci({root:["root",i&&a&&"labelIcon",`textColor${on(r)}`,n&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},ku,t)})(E),C=l&&d&&y.isValidElement(l)?y.cloneElement(l,{className:mo(S.iconWrapper,l.props.className)}):l;return Br.jsxs(Iu,z({focusRipple:!i,className:mo(S.root,n),ref:t,role:"tab","aria-selected":f,disabled:o,onClick:e=>{!f&&u&&u(e,g),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,g),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===s||"start"===s?Br.jsxs(y.Fragment,{children:[C,d]}):Br.jsxs(y.Fragment,{children:[d,C]}),c]}))}));var Lu=hs(Br.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ou=hs(Br.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Pu(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Mu=["onChange"],ju={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Nu(e){return vo("MuiTabScrollButton",e)}const $u=yo("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zu=["className","slots","slotProps","direction","orientation","disabled"],Bu=Vl(Qs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})((({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${$u.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),Du=y.forwardRef((function(e,t){var r,n;const o=ss({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:s}=o,c=B(o,zu),d=z({isRtl:$i()},o),u=(e=>{const{classes:t,orientation:r,disabled:n}=e;return Ci({root:["root",r,n&&"disabled"]},Nu,t)})(d),p=null!=(r=a.StartScrollButtonIcon)?r:Lu,h=null!=(n=a.EndScrollButtonIcon)?n:Ou,f=_i({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=_i({elementType:h,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return Br.jsx(Bu,z({component:"div",className:mo(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===s?Br.jsx(p,z({},f)):Br.jsx(h,z({},m))}))}));function Fu(e){return vo("MuiTabs",e)}const Gu=yo("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Hu=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Wu=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Yu=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Uu=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=r(e,o)}},Vu=Vl("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Gu.scrollButtons}`]:t.scrollButtons},{[`& .${Gu.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Gu.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),qu=Vl("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})((({ownerState:e})=>z({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Ku=Vl("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})((({ownerState:e})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),Xu=Vl("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>z({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Zu=Vl((function(e){const{onChange:t}=e,r=B(e,Mu),n=y.useRef(),o=y.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return Wo((()=>{const e=Xo((()=>{const e=n.current;i(),e!==n.current&&t(n.current)})),r=Jo(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}}),[t]),y.useEffect((()=>{i(),t(n.current)}),[t]),Br.jsx("div",z({style:ju},r,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ju={},Qu=y.forwardRef((function(e,t){const r=ss({props:e,name:"MuiTabs"}),n=ml(),o=$i(),{"aria-label":i,"aria-labelledby":a,action:l,centered:s=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Du,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:A=!1}=r,_=B(r,Hu),I="scrollable"===k,T="vertical"===m,L=T?"scrollTop":"scrollLeft",O=T?"top":"left",P=T?"bottom":"right",M=T?"clientHeight":"clientWidth",j=T?"height":"width",N=z({},r,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:T,scrollButtons:g,textColor:w,variant:k,visibleScrollbar:A,fixed:!I,hideScrollbar:I&&!A,scrollableX:I&&!T,scrollableY:I&&T,centered:s&&!I,scrollButtonsHideMobile:!p}),$=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return Ci({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Fu,s)})(N),D=_i({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=_i({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[G,H]=y.useState(!1),[W,Y]=y.useState(Ju),[U,V]=y.useState(!1),[q,K]=y.useState(!1),[X,Z]=y.useState(!1),[J,Q]=y.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=y.useRef(null),re=y.useRef(null),ne=()=>{const e=te.current;let t,r;if(e){const r=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Si(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(e&&!1!==R){const e=re.current.children;if(e.length>0){const t=e[ee.get(R)];r=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:r}},oe=ni((()=>{const{tabsMeta:e,tabMeta:t}=ne();let r,n=0;if(T)r="top",t&&e&&(n=t.top-e.top+e.scrollTop);else if(r=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;n=(o?-1:1)*(t[r]-e[r]+i)}const i={[r]:n,[j]:t?t[j]:0};if(isNaN(W[r])||isNaN(W[j]))Y(i);else{const e=Math.abs(W[r]-i[r]),t=Math.abs(W[j]-i[j]);(e>=1||t>=1)&&Y(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,r,n={},o=()=>{}){const{ease:i=Pu,duration:a=300}=n;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=n=>{if(c)return void o(new Error("Animation cancelled"));null===l&&(l=n);const d=Math.min(1,(n-l)/a);t[e]=i(d)*(r-s)+s,d>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(u)};s===r?o(new Error("Element already at target position")):requestAnimationFrame(u)}(L,te.current,e,{duration:n.transitions.duration.standard}):te.current[L]=e},ae=e=>{let t=te.current[L];T?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Ei()?-1:1),ie(t)},le=()=>{const e=te.current[M];let t=0;const r=Array.from(re.current.children);for(let n=0;n<r.length;n+=1){const o=r[n];if(t+o[M]>e){0===n&&(t=e);break}t+=o[M]}return t},se=()=>{ae(-1*le())},ce=()=>{ae(le())},de=y.useCallback((e=>{Q({overflow:null,scrollbarWidth:e})}),[]),ue=ni((e=>{const{tabsMeta:t,tabMeta:r}=ne();if(r&&t)if(r[O]<t[O]){const n=t[L]+(r[O]-t[O]);ie(n,{animation:e})}else if(r[P]>t[P]){const n=t[L]+(r[P]-t[P]);ie(n,{animation:e})}})),pe=ni((()=>{I&&!1!==g&&Z(!X)}));y.useEffect((()=>{const e=Xo((()=>{te.current&&oe()}));let t;const r=r=>{r.forEach((e=>{e.removedNodes.forEach((e=>{var r;null==(r=t)||r.unobserve(e)})),e.addedNodes.forEach((e=>{var r;null==(r=t)||r.observe(e)}))})),e(),pe()},n=Jo(te.current);let o;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(re.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(r),o.observe(re.current,{childList:!0})),()=>{var r,i;e.clear(),n.removeEventListener("resize",e),null==(r=o)||r.disconnect(),null==(i=t)||i.disconnect()}}),[oe,pe]),y.useEffect((()=>{const e=Array.from(re.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const r=e[0],n=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{V(!e[0].isIntersecting)}),o);i.observe(r);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),o);return a.observe(n),()=>{i.disconnect(),a.disconnect()}}}),[I,g,X,null==c?void 0:c.length]),y.useEffect((()=>{H(!0)}),[]),y.useEffect((()=>{oe()})),y.useEffect((()=>{ue(Ju!==W)}),[ue,W]),y.useImperativeHandle(l,(()=>({updateIndicator:oe,updateScrollButtons:pe})),[oe,pe]);const he=Br.jsx(Xu,z({},S,{className:mo($.indicator,S.className),ownerState:N,style:z({},W,S.style)}));let fe=0;const me=y.Children.map(c,(e=>{if(!y.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const r=t===R;return fe+=1,y.cloneElement(e,z({fullWidth:"fullWidth"===k,indicator:r&&!G&&he,selected:r,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=I?Br.jsx(Zu,{onChange:de,className:mo($.scrollableX,$.hideScrollbar)}):null;const t=I&&("auto"===g&&(U||q)||!0===g);return e.scrollButtonStart=t?Br.jsx(b,z({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:D},orientation:m,direction:o?"right":"left",onClick:se,disabled:!U},C,{className:mo($.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?Br.jsx(b,z({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},C,{className:mo($.scrollButtons,C.className)})):null,e})();return Br.jsxs(Vu,z({className:mo($.root,d),ownerState:N,ref:t,as:u},_,{children:[be.scrollButtonStart,be.scrollbarSizeListener,Br.jsxs(qu,{className:$.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[Br.jsx(Ku,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:$.flexContainer,ownerState:N,onKeyDown:e=>{const t=re.current,r=Zo(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(n="ArrowRight",i="ArrowLeft"),e.key){case n:e.preventDefault(),Uu(t,r,Yu);break;case i:e.preventDefault(),Uu(t,r,Wu);break;case"Home":e.preventDefault(),Uu(t,null,Wu);break;case"End":e.preventDefault(),Uu(t,null,Yu)}},ref:re,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))}));function ep(e){return Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Br.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var tp=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Br.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function rp(e={}){return Br.jsx(tp,{...e,children:Br.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Br.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Br.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function np(e={}){return Br.jsx(tp,{fontSize:"medium",...e,children:Br.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Br.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Br.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function op(e){return Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Br.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function ip(e={}){return Br.jsx(tp,{...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Br.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Br.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function ap(e={}){return Br.jsx(tp,{fontSize:"medium",...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Br.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function lp({className:e}){return Br.jsx(tp,{fontSize:"small",className:e,children:Br.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Br.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Br.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Br.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Br.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function sp(e={}){return Br.jsx(tp,{...e,children:Br.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Br.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Br.jsx("rect",{stroke:Zl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const cp={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rs,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var dp=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Zl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Zl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Br.jsx(ep,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Zl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,borderRadius:rs,backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Zl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Zl.WHITE,color:Zl.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:rs},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Zl.GREYSCALE_0_15,backgroundColor:Zl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Zl.GREEN_PALE},"&:active":{backgroundColor:Zl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Zl.BLUE_PALE},"&:active":{backgroundColor:Zl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:rs,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Zl.GREYSCALE_0_15,backgroundColor:Zl.GREYSCALE_100_60,"&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Zl.PURPLE,"&.Mui-focusVisible":{borderColor:Zl.PURPLE,boxShadow:`0 0 0 3px ${qo(Zl.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Zl.GREEN,"&.Mui-focusVisible":{borderColor:Zl.GREEN,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Zl.BLUE,"&.Mui-focusVisible":{borderColor:Zl.BLUE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Zl.ORANGE,"&.Mui-focusVisible":{borderColor:Zl.ORANGE,boxShadow:`0 0 0 3px ${qo(Zl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Zl.RED,"&.Mui-focusVisible":{borderColor:Zl.RED,boxShadow:`0 0 0 3px ${qo(Zl.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Zl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Zl.PURPLE_PALE},"&:active":{backgroundColor:Zl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Zl.PURPLE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Zl.GREEN_PALE},"&:active":{backgroundColor:Zl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Zl.BLUE_PALE},"&:active":{backgroundColor:Zl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Zl.ORANGE_PALE},"&:active":{backgroundColor:Zl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Zl.ORANGE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Zl.RED_PALE},"&:active":{backgroundColor:Zl.RED_DARK},"&.Mui-focusVisible":{borderColor:Zl.RED_PALE,boxShadow:`0 0 0 3px ${qo(Zl.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Zl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Zl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:rs,boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Br.jsx(op,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Jl,borderRadius:rs,color:Zl.TEXT_PRIMARY,backgroundColor:Zl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Zl.GREYSCALE_0_05,color:Zl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Zl.GREEN,borderColor:Zl.GREEN},"&.MuiChip-outlinedInfo":{color:Zl.BLUE,borderColor:Zl.BLUE},"&.MuiChip-outlinedWarning":{color:Zl.ORANGE,borderColor:Zl.ORANGE},"&.MuiChip-outlinedError":{color:Zl.RED,borderColor:Zl.RED}},outlined:{border:`solid 1px ${Zl.GREYSCALE_0_15}`,backgroundColor:Zl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:rs,boxShadow:"none",backgroundColor:Zl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Zl.GREEN,borderColor:Zl.GREEN},outlinedSecondary:{color:Zl.BLUE,borderColor:Zl.BLUE},label:{fontFamily:ls.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Br.jsx(op,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Br.jsx(ep,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:rs},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:rs,fontSize:Ql,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Zl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Zl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Zl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Zl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:rs,border:`solid 1px ${Zl.GREYSCALE_0_15}`,color:Zl.GREYSCALE_0_60,marginRight:0,width:ts,height:ts},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Zl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:rs,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Zl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ql}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Jl,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Zl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Zl.GREYSCALE_25,fontSize:Jl,fontFamily:ls.FONT_FAMILY,fontWeight:is,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Zl.TEXT_PRIMARY},"&.Mui-error":{color:Zl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Zl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:os,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Zl.TEXT_SECONDARY,content:"'(required)'",fontWeight:os,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ql,lineHeight:"16px",backgroundColor:Zl.WHITE,borderRadius:rs,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderColor:Zl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.RED}`,boxShadow:`0px 0px 0px 1px ${Zl.RED}, inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Zl.GREYSCALE_0_10}`,borderColor:Zl.GREYSCALE_0_10,backgroundColor:Zl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Zl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Zl.GREYSCALE_0_15,borderRadius:rs,boxShadow:`inset 0 2px 0 0 ${Zl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Br.jsx(ep,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Zl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Zl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&:active":{backgroundColor:Zl.GREYSCALE_0_10},"&:focus":{backgroundColor:Zl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Zl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Zl.GREYSCALE_0_30,"&:hover":{backgroundColor:Zl.GREYSCALE_0_0,borderColor:Zl.GREYSCALE_0_15},"& ~svg":{color:Zl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Zl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:rs}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Zl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Zl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ql,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Jl,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Jl,fontWeight:is,color:Zl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:is}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Zl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Br.jsx(ap,{}),checkedIcon:Br.jsx(np,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Zl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Zl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Zl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Br.jsx(sp,{}),checkedIcon:Br.jsx(rp,{}),indeterminateIcon:Br.jsx(ip,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:rs,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Zl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Zl.GREYSCALE_0_55,color:Zl.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Zl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Zl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Zl.GREYSCALE_0_55,"&:hover":{color:Zl.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Zl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Zl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ql,color:Zl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:is},secondary:{fontSize:Jl,color:Zl.GREYSCALE_45,fontWeight:os,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ql,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ql,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Zl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Jl,borderBottom:`solid 1px ${Zl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ql,color:Zl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Zl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Zl.RED}}},"&.Mui-focusVisible":{backgroundColor:Zl.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Zl.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Zl.GREEN,height:"24px","&.Mui-disabled":{color:Zl.GREYSCALE_0_15}},rail:{backgroundColor:Zl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderRadius:rs,boxShadow:`inset 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Zl.GREYSCALE_0_05}`,borderRadius:rs},thumb:{height:"16px",width:"16px",borderRadius:rs,backgroundColor:Zl.WHITE,boxShadow:`0px 1px 2px 0px ${Zl.GREYSCALE_0_15}, 0px 0px 0px 1px ${Zl.GREYSCALE_0_05}`,"&:hover":{borderRadius:rs,boxShadow:`0 2px 4px 0 ${Zl.GREYSCALE_0_30}, 0 0 0 1px ${Zl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Zl.GREYSCALE_0_15}, 0 0 0 1px ${Zl.GREYSCALE_0_06}, 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Zl.GREYSCALE_0_15}, 0 0 0 1px ${Zl.GREYSCALE_0_06}, 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Zl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Zl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Zl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Zl.GREYSCALE_0_15},markLabel:{color:Zl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Zl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Zl.WHITE,color:Zl.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Zl.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Zl.GREEN_PALE,boxShadow:`0 0 0 3px ${qo(Zl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Zl.BLUE_PALE,boxShadow:`0 0 0 3px ${qo(Zl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Zl.GREYSCALE_0_15,borderRadius:rs},thumb:{height:"16px",width:"16px",borderRadius:rs,backgroundColor:Zl.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Ql,fontWeight:is,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Zl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Zl.MISC_FOCUS_BORDER}`,backgroundColor:Zl.GREYSCALE_0_03,borderRadius:rs},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Zl.GREYSCALE_25,"&.Mui-selected":{color:Zl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ql,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:rs,"&:hover":{backgroundColor:Zl.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Zl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Zl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:rs,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Zl.GREYSCALE_0_05},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Zl.GREYSCALE_85}`,borderRight:`1px solid ${Zl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:is,backgroundColor:Zl.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Zl.GREYSCALE_98,borderBottom:`1px solid ${Zl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Zl.GREYSCALE_85}`,borderTop:`1px solid ${Zl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Zl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Zl.GREYSCALE_0_05,"&:hover":{backgroundColor:Zl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Zl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Br.jsx(lp,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Zl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ql,borderRadius:rs,padding:"7px 16px",border:`1px solid ${Zl.GREYSCALE_0_15}`,backgroundColor:Zl.GREYSCALE_100_60,color:Zl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Zl.GREYSCALE_0_10,border:`1px solid ${Zl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Zl.GREYSCALE_0_03,border:`1px solid ${Zl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Zl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Zl.MISC_FOCUS_BORDER}`,border:`1px solid ${Zl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Zl.GREYSCALE_25,backgroundColor:Zl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Zl.GREYSCALE_0_10,border:`1px solid ${Zl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Jl,height:24,width:24,padding:7},sizeLarge:{fontSize:es,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ql,borderRadius:rs}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Zl.GREYSCALE_20},tooltip:{backgroundColor:Zl.GREYSCALE_20,fontSize:Jl,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...cp}:{}});var up=()=>({mode:"light",primary:{ultraLight:Zl.GREEN_ULTRA_LIGHT,light:Zl.GREEN_PALE,main:Zl.GREEN,dark:Zl.GREEN_DARK,extraDark:Zl.GREEN_EXTRA_DARK,contrastText:Zl.WHITE},secondary:{ultraLight:Zl.BLUE_ULTRA_LIGHT,light:Zl.BLUE_PALE,main:Zl.BLUE,dark:Zl.BLUE_DARK,extraDark:Zl.BLUE_EXTRA_DARK,contrastText:Zl.WHITE},error:{ultraLight:Zl.RED_ULTRA_LIGHT,light:Zl.RED_PALE,main:Zl.RED,dark:Zl.RED_DARK,extraDark:Zl.RED_EXTRA_DARK,contrastText:Zl.WHITE},warning:{ultraLight:Zl.ORANGE_ULTRA_LIGHT,light:Zl.ORANGE_PALE,main:Zl.ORANGE,dark:Zl.ORANGE_DARK,extraDark:Zl.ORANGE_EXTRA_DARK,contrastText:Zl.WHITE},success:{ultraLight:Zl.GREEN_ULTRA_LIGHT,light:Zl.GREEN_PALE,main:Zl.GREEN,dark:Zl.GREEN_DARK,extraDark:Zl.GREEN_EXTRA_DARK,contrastText:Zl.WHITE},info:{ultraLight:Zl.BLUE_ULTRA_LIGHT,light:Zl.BLUE_PALE,main:Zl.BLUE,dark:Zl.BLUE_DARK,extraDark:Zl.BLUE_EXTRA_DARK,contrastText:Zl.WHITE},text:{primary:Zl.TEXT_PRIMARY,secondary:Zl.TEXT_SECONDARY,disabled:Zl.GREYSCALE_0_30},action:{hover:Zl.GREYSCALE_0_03,hoverOpacity:.03,selected:Zl.GREYSCALE_0_05,selectedOpacity:.05,focus:Zl.MISC_FOCUS_BORDER},amethyst:{ultraLight:Zl.WHITE,main:Zl.PURPLE,light:Zl.PURPLE_PALE,dark:Zl.PURPLE_DARK,extraDark:Zl.GREYSCALE_0_0,contrastText:Zl.WHITE},background:{paper:Zl.WHITE,default:Zl.GREYSCALE_95},divider:Zl.GREYSCALE_0_15});var pp=e=>up();var hp=(e,t=!1)=>{const r=((e,t)=>dp(t))(0,t);return{components:r,palette:pp(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,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)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Ql,fontWeightLight:ns,fontWeightRegular:os,fontWeightMedium:is,fontWeightBold:as,htmlFontSize:Ql,fontFamily:ls.FONT_FAMILY,button:{fontWeight:is,fontSize:Ql,textTransform:"none"},body1:{fontSize:es,lineHeight:"24px"},body2:{fontSize:Ql,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ts,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:es,fontWeight:is,lineHeight:"16px"},h6:{fontSize:Ql,fontWeight:is,lineHeight:"16px"},caption:{color:Zl.TEXT_SECONDARY},subtitle1:{fontSize:Ql,color:Zl.TEXT_SECONDARY},subtitle2:{fontSize:Jl,color:Zl.TEXT_SECONDARY}},shape:{borderRadius:rs}}};function fp(e){return hl({...hp("light"),direction:e})}class mp{constructor({translator:e}){M(this,"translator",void 0),M(this,"muiTheme",void 0),M(this,"containers",{}),M(this,"sync",(({element:e,sharedContainerUtilities:t,translator:r,containerId:n,dataHandler:o,renderHelper:i})=>{this.translator=r,this.containers[n]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i}})),M(this,"setMuiTheme",(e=>{this.muiTheme=fp(e)})),M(this,"destroy",(e=>{delete this.containers[e]})),this.translator=e}}const bp=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class gp{constructor(e,t){M(this,"embed",void 0),M(this,"translator",void 0),M(this,"charts",{}),M(this,"getCharts",(()=>{var e;return this.charts=(null===(e=this.embed)||void 0===e?void 0:e.getRegisteredTypes()).reduce(((e,t)=>{var r,n;if(!(bp.includes(t.id)||!1===(null===(r=t.libraryInfo)||void 0===r?void 0:r.isLibraryItem)||null!==(n=t.libraryInfo)&&void 0!==n&&n.deprecated)){var o;const r=t;null!==(o=r.libraryInfo)&&void 0!==o&&o.translationKey&&(r.libraryInfo.translation=this.translator.get(r.libraryInfo.translationKey)),e[t.id||t.type]=r}return e}),{}),this.charts})),M(this,"getChart",(e=>(this.charts[e]||this.getCharts(),this.charts[e]))),this.embed=e,this.translator=t}}var vp,yp=L;vp=yp.createRoot,yp.hydrateRoot;const xp=x(((e,t)=>Br.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Br.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),Ep="rgb(89, 89, 89)",Sp=Ir(Oc)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),Cp=Ir(Oc)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),wp=Ir(kd,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),Rp=Ir(ic)({color:Ep,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),kp=Ir(Vd)({"&.MuiListItemIcon-root":{minWidth:32,color:Ep,marginRight:"0px"}}),Ap=Ir(dd)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),_p=Ir(Gc)({"&.MuiButton-contained":{backgroundColor:Ep,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Ep,color:Ep,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Ep}`}}}),Ip=Ir(ps)({width:"1em",height:"1em",paddingBottom:"8px"}),Tp=Ir(ps)({width:"16px",height:"16px"}),Lp=({name:e,items:t,onSelect:r})=>S.createElement(S.Fragment,null,S.createElement(Gd,{key:e,dense:!0},S.createElement(Rp,{noWrap:!0,fontWeight:"bold"},e)),S.createElement(Ap,null),t.map((e=>{var t;return S.createElement(Gd,{key:null!==(t=e.qExtendsId)&&void 0!==t?t:e.name,divider:!0,disablePadding:!0,disableGutters:!0},S.createElement(Pd,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{r(e)},disableRipple:!0,dense:!0},e.iconPath&&S.createElement(kp,null,e.IconDefinition?S.createElement(e.IconDefinition,null):S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:e.iconPath}))),S.createElement(Rp,{noWrap:!0,title:e.translation||e.name},e.translation||e.name)))}))),Op=({categories:e,anchorEl:t,onClose:r,onSelect:n,width:o})=>{const[i,a]=k(""),l=!!t;return A((()=>{l&&a("")}),[l]),S.createElement(uu,{open:l,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"}},S.createElement(Sc,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:S.createElement(Ed,{position:"start"},S.createElement(xp,null))}),S.createElement(Ap,null),S.createElement(wp,{width:o},e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return(null==t?void 0:t.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()))>-1}));return t.length>0&&S.createElement(Lp,{key:e.name,name:e.name,items:t,onSelect:n})}))))},Pp=({anchorEl:e,onClose:t,dataHandler:r,translator:n,sharedContainerUtilities:o,width:i})=>{const[a,l]=k([]),[s,c]=k({});A((()=>{if(e&&r){(async()=>{const e=await r.getMasterVizList();l(e),c(r.getCharts())})().catch((()=>{}))}}),[e,r]);const d=[],u=[],p=new Map,h=Object.values(s);if(0===h.length&&0===a.length)return null;h.forEach((e=>{var t;if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(null!==(t=e.libraryInfo.bundle)&&void 0!==t&&t.name){const t=e.libraryInfo.bundle.name,r=p.get(t);r?r.push(e):p.set(t,[e])}else u.push(e)}));const f=e=>e.map((e=>{var t,r,n,o;return{iconPath:null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.id,translation:(null===(n=e.libraryInfo)||void 0===n?void 0:n.translation)||(null===(o=e.libraryInfo)||void 0===o?void 0:o.name)||e.id||"",type:e.id}})).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),m=[{name:n.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>{var t,r;return{qExtendsId:e.qExtendsId,iconPath:null===(t=s[e.visualization])||void 0===t||null===(t=t.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(r=s[e.visualization])||void 0===r||null===(r=r.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:e.name,type:e.visualization}})).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:n.get("LayoutContainer.Object.Charts"),items:d.map((e=>{var t,r,n,o,i;return{iconPath:(null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath)||"",IconDefinition:null===(r=e.libraryInfo)||void 0===r?void 0:r.IconDefinition,name:(null===(n=e.libraryInfo)||void 0===n?void 0:n.name)||e.id,type:(null===(o=e.libraryInfo)||void 0===o?void 0:o.template)||e.id,translation:(null===(i=e.libraryInfo)||void 0===i?void 0:i.translation)||e.id||""}})).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:n.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return S.createElement(Op,{categories:m,anchorEl:e,onSelect:e=>{if(!r)return;const{qExtendsId:n}=e;(n?r.addMasterObjectAsChild({initProps:{qExtendsId:n,qInfo:{qType:"undefined"}}}):r.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then((e=>{null!=e&&e.id&&(null==o||o.setSelected([e.id]))})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},Mp=e=>{var t,r;const n=Np(e);return null!==(t=null===(r=e.objects)||void 0===r?void 0:r.map((e=>{const{childRefId:t}=e;if(!t)return e;const r=n[t];return r?{...e,id:r}:e})))&&void 0!==t?t:[]},jp=(e,t)=>{var r;return null==e||null===(r=e.qChildList)||void 0===r||null===(r=r.qItems)||void 0===r?void 0:r.find((e=>{var r;return(null==e||null===(r=e.qData)||void 0===r?void 0:r.childRefId)===t}))},Np=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qData)||void 0===r?void 0:r.childRefId]=null==t||null===(n=t.qInfo)||void 0===n?void 0:n.qId,e}),{})};var $p=jp,zp=e=>{const t={...e};return t.objects=Mp(t),t},Bp=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var r,n;return e[null==t||null===(r=t.qInfo)||void 0===r?void 0:r.qId]=null===(n=t.qData)||void 0===n?void 0:n.childRefId,e}),{})},Dp=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Fp=(e,t)=>{var r;if(!e)return t;const n=jp(e,t);return null==n||null===(r=n.qInfo)||void 0===r?void 0:r.qId};class Gp{constructor({app:e,data:t}){M(this,"layout",void 0),M(this,"app",void 0),M(this,"activeId",""),M(this,"data",void 0),M(this,"properties",void 0),M(this,"setSelectedChild",(e=>{var t;null===(t=this.activeContainer)||void 0===t||null===(t=t.sharedContainerUtilities)||void 0===t||t.setSelected(e)})),M(this,"addChild",(({initProps:e,objectInitProps:t,children:r})=>{if(!this.activeContainer)return;const{dataHandler:n}=this.activeContainer;if(null!=e&&e.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return null==n?void 0:n.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:r})}return null==n?void 0:n.addVizAsChild({type:null==e?void 0:e.visualization,initProps:e,objectInitProps:t,children:r})})),M(this,"deleteChild",(async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(null==t?void 0:t.deleteChildren([e]))})),M(this,"duplicateChild",(async e=>{var t;const{childRefId:r,...n}=e,o=this.getEngineId(r);if(!o)return;const i=await(null===(t=this.app)||void 0===t?void 0:t.getObject(o));if(i&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await i.getFullPropertyTree(),r=t.qProperty,o=t.qChildren,a=await this.addChild({initProps:r,children:o,objectInitProps:n});a&&(null==e||e.setSelected([a.id]))}})),M(this,"openAddChildPopover",(e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const r=e.getElementsByClassName(t);let n;return 0===r.length?(n=document.createElement("div"),n.className=t,e.appendChild(n)):n=r[0],vp(n)})(this.activeContainer.element,"add-child-popover"),r=()=>{t.unmount()};null==t||t.render(S.createElement(Kl,{theme:this.data.muiTheme},S.createElement(Pp,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:r,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})))}})),M(this,"setModel",(e=>{this.activeId=e.id})),M(this,"setLayout",(e=>{this.layout=e})),M(this,"getLayout",(()=>this.layout)),M(this,"getEngineId",(e=>Fp(this.layout,e))),M(this,"setProperties",(e=>{this.properties=e})),M(this,"canAddDimension",(()=>!1)),M(this,"canAddMeasure",(()=>!1)),M(this,"canColorBy",(()=>!1)),M(this,"getDimensions",(()=>[])),M(this,"getMeasures",(()=>[])),M(this,"minDimensions",(()=>0)),M(this,"minMeasures",(()=>0)),M(this,"maxDimensions",(()=>0)),M(this,"maxMeasures",(()=>0)),this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}getObject(e){const t=this.getEngineId(e);var r;if(t)return null===(r=this.activeContainer)||void 0===r?void 0:r.renderHelper.objectMap.get(t)}}function Hp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Wp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||Vp(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Up(e){return function(e){if(Array.isArray(e))return Hp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vp(e,t){if(e){if("string"==typeof e)return Hp(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hp(e,t):void 0}}var qp,Kp="top",Xp="top-right",Zp="right",Jp="bottom-right",Qp="bottom",eh="bottom-left",th="left",rh="top-left";Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(qp={},"equal-equal",[Kp,Qp]),"equal-higher",[Qp,Jp]),"equal-lower",[Kp,Xp]),"equal-void",[Kp,Qp]),"higher-equal",[th,eh,Kp,Xp]),"higher-higher-acute",[Qp,eh,th,Xp]),"higher-higher-obtuse",[Qp,Kp]),"higher-lower-negative",[Kp,Xp,Zp]),"higher-lower-positive",[Qp,eh,th]),"higher-void",[Kp]),Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(Wp(qp,"lower-equal",[Kp]),"lower-higher-negative",[Kp,rh]),"lower-higher-positive",[Jp]),"lower-lower-acute",[Kp,rh,th,Xp,Zp]),"lower-lower-obtuse",[Kp,Qp]),"lower-void",[Kp]),"void-equal",[Kp]),"void-higher",[Kp,Qp]),"void-lower",[Kp,Qp,th]),"void-void",[Kp]),Wp(qp,"unclassified",[Kp,Qp,Zp,th,Xp,Jp,eh,rh]);var nh=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],oh=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var ih=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function ah(e){var t=e.theme,r=e.translator,n=e.defaultValue,o=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,Up(new Set([n].concat(Up(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(n),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(Up(i.map((function(e){return ih(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],Up(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?oh:nh}(o).map((function(e){return ih(e)}))))}function lh(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=e.flags,a=function(){return t.getStyle(n,o,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return ah({theme:t,translator:r,defaultValue:a(),flags:i})}}}var sh,ch,dh=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],uh=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ph(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,i=function(){return t.getStyle(n,o,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,n=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?n.push.apply(n,Up(new Set([r].concat(Up(o))))):n.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Up(n.map((function(e){return uh(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Up(dh.map((function(e){return uh(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function hh(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:lh({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:ph({theme:t,translator:r,id:n,path:o})}}var fh=function(){if(ch)return sh;ch=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return sh=function e(){var t,r,n,s,c,d,u=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<h;++p)if(null!=(t=arguments[p]))for(r in t)n=l(u,r),u!==(s=l(t,r))&&(f&&s&&(i(s)||(c=o(s)))?(c?(c=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(f,d,s)})):void 0!==s&&a(u,{name:r,newValue:s}));return u},sh}();function mh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function bh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(fh);var vh=1/.7,yh="\\s*([+-]?\\d+)\\s*",xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Eh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sh=/^#([0-9a-f]{3,8})$/,Ch=new RegExp(`^rgb\\(${yh},${yh},${yh}\\)$`),wh=new RegExp(`^rgb\\(${Eh},${Eh},${Eh}\\)$`),Rh=new RegExp(`^rgba\\(${yh},${yh},${yh},${xh}\\)$`),kh=new RegExp(`^rgba\\(${Eh},${Eh},${Eh},${xh}\\)$`),Ah=new RegExp(`^hsl\\(${xh},${Eh},${Eh}\\)$`),_h=new RegExp(`^hsla\\(${xh},${Eh},${Eh},${xh}\\)$`),Ih={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 Th(){return this.rgb().formatHex()}function Lh(){return this.rgb().formatRgb()}function Oh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Sh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ph(t):3===r?new $h(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Mh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Mh(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=Ch.exec(e))?new $h(t[1],t[2],t[3],1):(t=wh.exec(e))?new $h(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Rh.exec(e))?Mh(t[1],t[2],t[3],t[4]):(t=kh.exec(e))?Mh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ah.exec(e))?Hh(t[1],t[2]/100,t[3]/100,1):(t=_h.exec(e))?Hh(t[1],t[2]/100,t[3]/100,t[4]):Ih.hasOwnProperty(e)?Ph(Ih[e]):"transparent"===e?new $h(NaN,NaN,NaN,0):null}function Ph(e){return new $h(e>>16&255,e>>8&255,255&e,1)}function Mh(e,t,r,n){return n<=0&&(e=t=r=NaN),new $h(e,t,r,n)}function jh(e){return e instanceof gh||(e=Oh(e)),e?new $h((e=e.rgb()).r,e.g,e.b,e.opacity):new $h}function Nh(e,t,r,n){return 1===arguments.length?jh(e):new $h(e,t,r,null==n?1:n)}function $h(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function zh(){return`#${Gh(this.r)}${Gh(this.g)}${Gh(this.b)}`}function Bh(){const e=Dh(this.opacity);return`${1===e?"rgb(":"rgba("}${Fh(this.r)}, ${Fh(this.g)}, ${Fh(this.b)}${1===e?")":`, ${e})`}`}function Dh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gh(e){return((e=Fh(e))<16?"0":"")+e.toString(16)}function Hh(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yh(e,t,r,n)}function Wh(e){if(e instanceof Yh)return new Yh(e.h,e.s,e.l,e.opacity);if(e instanceof gh||(e=Oh(e)),!e)return new Yh;if(e instanceof Yh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Yh(a,l,s,e.opacity)}function Yh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Uh(e){return(e=(e||0)%360)<0?e+360:e}function Vh(e){return Math.max(0,Math.min(1,e||0))}function qh(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}mh(gh,Oh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Th,formatHex:Th,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Wh(this).formatHsl()},formatRgb:Lh,toString:Lh}),mh($h,Nh,bh(gh,{brighter(e){return e=null==e?vh:Math.pow(vh,e),new $h(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $h(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $h(Fh(this.r),Fh(this.g),Fh(this.b),Dh(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:zh,formatHex:zh,formatHex8:function(){return`#${Gh(this.r)}${Gh(this.g)}${Gh(this.b)}${Gh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Bh,toString:Bh})),mh(Yh,(function(e,t,r,n){return 1===arguments.length?Wh(e):new Yh(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return e=null==e?vh:Math.pow(vh,e),new Yh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yh(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new $h(qh(e>=240?e-240:e+120,o,n),qh(e,o,n),qh(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Yh(Uh(this.h),Vh(this.s),Vh(this.l),Dh(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=Dh(this.opacity);return`${1===e?"hsl(":"hsla("}${Uh(this.h)}, ${100*Vh(this.s)}%, ${100*Vh(this.l)}%${1===e?")":`, ${e})`}`}}));const Kh=Math.PI/180,Xh=180/Math.PI,Zh=4/29,Jh=6/29,Qh=3*Jh*Jh;function ef(e){if(e instanceof tf)return new tf(e.l,e.a,e.b,e.opacity);if(e instanceof lf)return sf(e);e instanceof $h||(e=jh(e));var t,r,n=af(e.r),o=af(e.g),i=af(e.b),a=rf((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=rf((.4360747*n+.3850649*o+.1430804*i)/.96422),r=rf((.0139322*n+.0971045*o+.7141733*i)/.82521)),new tf(116*a-16,500*(t-a),200*(a-r),e.opacity)}function tf(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function rf(e){return e>.008856451679035631?Math.pow(e,1/3):e/Qh+Zh}function nf(e){return e>Jh?e*e*e:Qh*(e-Zh)}function of(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function af(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function lf(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function sf(e){if(isNaN(e.h))return new tf(e.l,0,0,e.opacity);var t=e.h*Kh;return new tf(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}mh(tf,(function(e,t,r,n){return 1===arguments.length?ef(e):new tf(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return new tf(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new tf(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,r=isNaN(this.b)?e:e-this.b/200;return new $h(of(3.1338561*(t=.96422*nf(t))-1.6168667*(e=1*nf(e))-.4906146*(r=.82521*nf(r))),of(-.9787684*t+1.9161415*e+.033454*r),of(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),mh(lf,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof lf)return new lf(e.h,e.c,e.l,e.opacity);if(e instanceof tf||(e=ef(e)),0===e.a&&0===e.b)return new lf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Xh;return new lf(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new lf(e,t,r,null==n?1:n)}),bh(gh,{brighter(e){return new lf(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new lf(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return sf(this).rgb()}}));var cf=e=>()=>e;function df(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):cf(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?df:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):cf(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Nh(e)).r,(t=Nh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=df(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var uf="center",pf="bottom";function hf(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(void 0===o[a])return r;o=o[a]}return o}[{key:"NoDataExist",alignment:uf,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:uf,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:uf,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:uf},{key:"DataRangeIncludingZero",alignment:pf},{key:"LimitedData",alignment:pf},{key:"NegativeOrZeroValues",alignment:pf}].reduce((function(e,t){return e[t.key]=t,e}),{});var ff,mf=["__proto__","constructor"];function bf(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!mf.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function gf(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function vf(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=xf)):void 0===t&&(t=yf);for(var r,n,o,i,a,l=new Cf(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Cf(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Sf)}function yf(e){return e.children}function xf(e){return Array.isArray(e)?e[1]:null}function Ef(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Sf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Cf(e){this.data=e,this.depth=this.height=0,this.parent=null}Cf.prototype=vf.prototype={constructor:Cf,count:function(){return this.eachAfter(gf)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return vf(this).eachBefore(Ef)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},ff=function(e){
|
|
88
|
+
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
89
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.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],s=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%s,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),f+(r?"-":"")+n+x}},ff({exports:{}});var wf="'Source Sans Pro', 'Arial', 'sans-serif'",Rf="#333333",kf="#595959",Af="#737373",_f="#cccccc",If="#e6e6e6";function Tf(e){var t={};return[].concat(Up(e),Up([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",kf],["object","axis.label.name","fontFamily",wf],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",_f],["object","axis.line.minor","color",If],["object","axis.title","color"],["object","axis.title","fontFamily",wf],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",If],["object","grid.line.major","color",_f],["object","grid.line.minor","color",If],["object","label.value","color",kf],["object","label.value","fontFamily",wf],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",kf],[!1,"label.value","lightColor",If],["object","outOfRange","color","#999"],["object","legend.title","color",Rf],["object","legend.title","fontFamily",wf],["object","legend.title","fontSize","15px"],["object","legend.label","color",kf],["object","legend.label","fontFamily",wf],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Rf],["object","referenceLine.label.name","fontFamily",wf],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",If],["object","referenceLine.outOfBounds","fontFamily",wf],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Af,function(e){return"transparent"===e?Af:e}]])).reduce((function(e,r){var n="".concat(r[0],"-").concat(r[1],"-").concat(r[2],"}");return t[n]||(t[n]=!0,e.push(r)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Lf=function(e){return e};function Of(e){var t=e.theme,r=e.id,n=e.transform,o=e.extend,i=e.matrix,a={},l=n.reduce((function(e,t){var r=Yp(t,2),n=r[0],o=r[1];return e[n]=o,e}),{});return i.forEach((function(e){var n=Yp(e,5),o=n[0],i=n[1],s=n[2],c=n[3],d=n[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,r=e.base,n=e.path,o=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===r)return a;var l=t.getStyle(r,n,o);return void 0===l?a:l}({theme:t,base:"object"===o&&r?"".concat("object",".").concat(r):o,path:i,attribute:s,defaultValue:c}),h=(l["".concat(i,".").concat(s)]||Lf)(u(p));bf(a,[i,s].filter(Boolean).join("."),h)})),o.forEach((function(e){var t=Yp(e,2),r=t[0],n=t[1];bf(a,r,n)})),a}const Pf={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function Mf(e){if(!e.objects)return{};const t=Dp(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map((r=>{var n;return{chart_type:r.qData.visualization,chart_id:r.qInfo.qId,chart_isMaster:!!r.qData.qExtendsId,tab_isVisible:0!==(null===(n=t[r.qData.childRefId])||void 0===n?void 0:n.condition),tab_isActive:r.qData.childRefId===e.cachedTabId}}))}}const jf=({ref:e,theme:t,change:r})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9.5,component:"dropdown",change(t){(hf(t,`${e}.color`)||hf(t,`${e}.colorExpression`))&&(bf(t,`${e}.color`,void 0),bf(t,`${e}.colorExpression`,void 0)),null==r||r(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:1,show:t=>!hf(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>{var r;return{color:null!==(r=null==t?void 0:t.getStyle("object.tabbedContainer",e,"color"))&&void 0!==r?r:"none"}},showAlpha:!0,change:e=>{null==r||r(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>hf(t,`${e}.useColorExpression`)}}}),Nf=({theme:e})=>({bgColorAllWrapper:jf({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:jf({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jf({ref:"background.hover",theme:e,change:e=>{bf(e,"indicator.hover.color",hf(e,"background.hover.color")),bf(e,"indicator.hover.useColorExpression",hf(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),$f=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},zf=({theme:e})=>({colorWrapper:jf({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:jf({ref:"indicator.hover",theme:e,change:e=>{bf(e,"background.hover.color",hf(e,"indicator.hover.color")),bf(e,"background.hover.useColorExpression",hf(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Bf=({paths:e,fontResolver:t,theme:r})=>{const n=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(n),defaultValue:()=>t.getDefaultValue(n),change:(e,t,r)=>{var n;const o=null===(n=e.label)||void 0===n?void 0:n.fontFamily,i=(e=>{const t=[];return e.objects.forEach((e=>{var r,n;const o=null===(r=e.components)||void 0===r?void 0:r.find((e=>"tab"===e.key)),i=null==o||null===(n=o.label)||void 0===n?void 0:n.fontFamily;i&&-1===t.indexOf(i)&&t.push(i)})),t})(r);o&&-1===i.indexOf(o)&&i.push(o),r.fontsUsed=i}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},Df=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Bf({paths:{ref:"label",theme:"label.value"},fontResolver:r,theme:n})}}}),Ff=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{var t,r;if(void 0!==(null===(t=e.width)||void 0===t?void 0:t.value)&&"%"===(null===(r=e.width)||void 0===r?void 0:r.unit))for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>{var t;return"px"===(null===(t=e.width)||void 0===t?void 0:t.unit)},defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>{var t,r;return!(null!==(t=e.width)&&void 0!==t&&t.unit)||"px"!==(null===(r=e.width)||void 0===r?void 0:r.unit)},defaultValue:[5,20]}}}}}),Gf=({theme:e,ref:t,key:r})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:r,items:zf({theme:e})}}}),Hf=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:$f({paths:{ref:"icon",theme:"icon.value"},fontResolver:r,theme:n})}},show:(e,{layout:t})=>!0===t.showIcons}),Wf=({theme:e,ref:t,key:r})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:r,items:"tab"===r?{bgColorWrapper:jf({ref:"background"})}:Nf({theme:e})}}}),Yf=({fontResolver:e,theme:t})=>{const r="components",n="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:r,items:{label:Df({ref:r,key:n,fontResolver:e,theme:t}),width:{...Ff({ref:r,key:n}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Hf({ref:r,key:n,fontResolver:e,theme:t}),background:Wf({ref:r,key:n,theme:t})}}},Uf={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Vf={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},qf=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{var r,n,o;const i=t.getLayout(),a=null===(r=$p(i,e.childRefId))||void 0===r?void 0:r.qMeta;return!(null!=a&&null!==(n=a.privileges)&&void 0!==n&&n.includes("update")&&null!==(o=i.permissions)&&void 0!==o&&o.update)},action(t,r,{app:n}){const{sense:o}=e.env.anything,i=r.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:n,parent:"current",headerLabel:t.label}),r.setSelectedChild([i]))}}),Kf=e=>{const{sense:t}=e.env.anything;return{label:Uf,condition:Vf,styling:Yf({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),editProperties:qf(e)}},Xf={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Zf={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Jf=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,r){const n=document.querySelector(".pp-toplist-add-button");null!==n&&r.openAddChildPopover(n)},remove(e,t,r){r.deleteChild(e.childRefId).catch((()=>{}))},items:Kf(e)}),Qf=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Xf,chartsLabel:Zf,chartList:Jf(e)}}),em={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},tm={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},rm={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},nm={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},om={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const r=t.getLayout();return r?r.objects.map((e=>({translation:e.label,value:e.childRefId}))):[]},change(e,t){const r=Fp(t.getLayout(),e.defaultTabId);r&&t.setSelectedChild([r])},show:e=>e.objects.length>0},im={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},am=({fontResolver:e,theme:t})=>{const r="components",n="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:Df({ref:r,key:n,fontResolver:e,theme:t}),width:Ff({ref:r,key:n}),indicator:Gf({ref:r,key:n,theme:t}),icon:Hf({ref:r,key:n,fontResolver:e,theme:t}),background:Wf({ref:r,key:n,theme:t})}}},lm={items:{details:{show:e=>!0===e.showDetails}}},sm=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:am({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),container:{type:"items",items:{showTabs:em,useDropdown:tm,useScrollButton:rm,showIcons:nm,orientation:im,defaultTabId:om}}}}},cm=e=>({uses:"settings",items:{general:lm,presentation:sm(e)}}),dm=e=>({type:"items",component:"accordion",items:{content:Qf(e),settings:cm(e)}}),um=e=>{const{sense:t}=e.env.anything,r=function(e){var t=e.theme,r=e.translator,n=e.config,o=void 0===n?{}:n,i=e.flags,a=function(e){var t=e.config,r=void 0===t?{}:t,n=r.id,o=r.paths;return{id:void 0===n?"object":"".concat("object",".").concat(n),paths:Array.isArray(o)?o:[]}}({config:o}),l=a.id,s=a.paths,c={};s.forEach((function(e){for(var n=e.split("."),o=c,a=0;a<n.length;a++){var s=n[a];a===n.length-1?o[s]=hh({theme:t,translator:r,id:l,path:e,flags:i}):void 0===o[s]&&(o[s]={}),o=o[s]}}));var d=function(e){for(var t=e.split("."),r=c,n=0;n<t.length;n++){var o=t[n];if(void 0===r[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[o]}return r};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:null==t?void 0:t.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),n=function(e){return{async getDropOptions(e,t,r){const{item:n}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){var i;const n=await e.model.getProperties();return o.setProperties(n),o.setLayout(null===(i=e.model)||void 0===i?void 0:i.layout),this.getDropStateOptions(t,o,e.model,r)}if("visualization"===n.type)return t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"addvisualization",select(){var e;null===(e=o.addChild({initProps:{qExtendsId:n.id,qInfo:{qType:"undefined"}}}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),void r();const a=await t.item.getDropOption(t.item);"newObject"===(null==a?void 0:a.id)&&t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"createvisualization",select(){var e,t;null===(e=o.addChild({initProps:{...a.args.init,visualization:a.args.template},children:null===(t=a.args.children)||void 0===t?void 0:t.map((e=>({qProperty:e})))}))||void 0===e||e.then((e=>{e&&o.setSelectedChild([e.id])}))}}),r()},async addChild(t,r){const{model:n}=this,o=new Gp({app:n.app,data:e.propertyHandlerData});return o.setModel(n),{childModel:await o.addChild({initProps:t,children:r}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&bp.includes(t.template))return!1;if("visualization"===t.type&&bp.includes(t.visualization))return!1}return"gridcell"!==e.type||!bp.includes(e.cell.model.layout.visualization)}}}(e);return{definition:dm({...e,fontResolver:r}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Gp({app:t,data:e.propertyHandlerData}),...n,addChild:async function(e,t){const{childModel:r,handler:o}=await n.addChild.apply(this,[e,t]);r&&o.setSelectedChild([r.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:r,defaultTabId:n,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),l=await t.getFullPropertyTree();if(!l.qProperty.objects&&r){const s=[];l.qChildren.forEach((e=>{const r=e.qProperty;if(r.qInfo.qId){const n=async n=>{const o=await t.getChild(n),i=await o.getEffectiveProperties();return{...e,qProperty:{...r,childRefId:i.childRefId}}};s.push(n(r.qInfo.qId))}}));const c=await Promise.all(s),d={...e,objects:r,defaultTabId:null!=n?n:"",components:o,qChildListDef:Pf,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...l,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const r={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(r.qInfo.qType=t.qInfo.qType),r.visualization=t.visualization,{qProperty:r,qChildren:e.qChildren}},extendMetrics:Mf}},pm=({propertyHandlerData:e,element:n,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:l,renderHelper:s})=>{const c=t();a&&e.sync({containerId:a,element:n,sharedContainerUtilities:o,translator:i,dataHandler:l,renderHelper:s}),r((()=>{e.setMuiTheme(c.direction)}),[c.direction,e]),r((()=>()=>{a&&e.destroy(a)}),[a,e,c.direction])},hm=e=>e.reduce(((e,{id:t,data:r})=>(r&&(e[t]=r),e)),{}),fm=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getViewState().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return{viewStates:hm(r)}},mm=async e=>{const t=[];for(const[r,n]of e){const e={id:r,data:void 0},o=n;t.push(o.getSnapshotLayout().then((e=>({id:r,data:e}))).catch((()=>e)))}const r=await Promise.all(t);return hm(r)},bm=(e,t)=>(o((async r=>{const n=r,{snapshotData:o}=n;if(o){const r=zp(n),i=t(e.objectMap,r),[a,l]=await Promise.all([mm(i.objectMap),fm(i.objectMap)]);o.objectsData={layouts:a},n.objects=i.objects,o.viewState=l}return r})),{getViewState:()=>fm(e.objectMap)});let gm=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.PASTE="ctrl+v",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e.SHIFT="Shift",e}({}),vm=function(e){return e.KEY_DOWN="keydown",e.KEY_UP="keyup",e.FOCUS_OUT="focusout",e}({});var ym,xm;!function(e){e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator"}(ym||(ym={})),function(e){e.TABS="& .tab-button.MuiTab-root, .tab-button.active-tab-button",e.TABS_HOVER="& .tab-button.MuiTab-root:hover",e.TABS_LABEL="& .tab-label",e.TABS_ICON="& .tab-icon svg",e.TABS_WRAPPER="& .tab-wrapper",e.TAB_INDICATOR="& .MuiTabs-indicator"}(xm||(xm={}));const Em=e=>{var t;return null===(t=e.getElementsByClassName(ym.ACTIVE_TAB))||void 0===t?void 0:t[0]},Sm=e=>{var t;return null===(t=e.getElementsByClassName(ym.ACTIVE_TAB_PANEL))||void 0===t?void 0:t[0]},Cm=({element:e,setAccessibility:t,accessibility:o,renderHelper:l,interactions:s,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;r((()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),r=((e,t)=>e.map((e=>e.label||t.get("TabContainer.Object.Untitled"))).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[r,u?t:""]))})()}),[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=i(),g=a((()=>()=>{var e;(t(!1),b.enabled)&&(null===(e=b.blur)||void 0===e||e.call(b,!0))}),[b,t]),v=a((()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case gm.ESCAPE:var r;t.stopPropagation(),null===(r=b.blur)||void 0===r||r.call(b,!0);break;case gm.ENTER:case gm.SPACE:{t.stopPropagation();const r=t.target;var n;if(null!=r&&r.classList.contains(ym.ACTIVE_TAB))null===(n=Sm(e))||void 0===n||n.focus();break}}}),[e,b]),y=a((()=>t=>{const r=t.shiftKey?`shift+${t.key}`:t.key,n=l.objectMap.values().next().value,o=l.objectApis.values().next().value;switch(r){case gm.ESCAPE:{const r=Em(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.support)||void 0===n?void 0:n.call(t,"viewData"))?t.toggleDataView():null==r||r.focus()})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o;e.stopPropagation(),(null==t?void 0:t.viewDataToggled)&&(null===(n=t.supportViewData)||void 0===n?void 0:n.call(t))?null===(o=t.toggleDataView)||void 0===o||o.call(t):null==r||r.focus()})({event:t,objectApi:n,activeTab:r});break}case gm.ENTER:case gm.SPACE:{const r=Sm(e);m?(({event:e,objectApi:t,activeTab:r})=>{var n,o,i;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.support)||void 0===o?void 0:o.call(t,"viewData"))?t.toggleDataView():null===(i=t.toggleFocus)||void 0===i||i.call(t,!0)})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{var n,o,i,a;if(!t)return;e.stopPropagation(),null===(n=t.setOnBlurHandler)||void 0===n||n.call(t,(()=>{var e;null==r||r.focus(),null===(e=t.setOnBlurHandler)||void 0===e||e.call(t,void 0)})),!t.viewDataToggled&&(null===(o=t.supportViewData)||void 0===o?void 0:o.call(t))?null===(a=t.toggleDataView)||void 0===a||a.call(t):t.viewDataToggled&&"function"==typeof(null===(i=t.dataViewObject)||void 0===i?void 0:i.focus)?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:n,activeTab:r});break}case gm.OPEN_CONTEXT_MENU:t.stopPropagation(),null!=n&&n.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}}),[e,g,m,l]),x=a((()=>e=>{const t=e.target;null!=t&&t.classList.contains(ym.ACTIVE_TAB_PANEL)?y(e):v(e)}),[v,y]);r((()=>(o&&e.addEventListener(vm.KEY_DOWN,x),()=>{e.removeEventListener(vm.KEY_DOWN,x)})),[e,o,x]);const[E,S]=n(!1);r((()=>{E&&(S(!1),window.setTimeout((()=>{var t,r;return null===(t=null!==(r=(e=>{var t;return null===(t=e.getElementsByClassName(ym.TAB_MENU))||void 0===t?void 0:t[0]})(e))&&void 0!==r?r:Em(e))||void 0===t?void 0:t.focus()}),0))}),[e,E]),r((()=>{t(!1)}),[s.edit,t]),r((()=>{const r=t=>{const r=t.relatedTarget;null!=e&&e.contains(r)||null!=r&&r.classList.contains(ym.TAB_MENU_ITEM)||null==g||g()};return b.enabled&&b.active&&!s.edit&&(t(!0),S(!0),e.addEventListener(vm.FOCUS_OUT,r)),()=>{e.removeEventListener(vm.FOCUS_OUT,r)}}),[b])},wm=e=>{const[t]=n(e);return[t,function(e){Object.assign(t,e)}]},Rm=({isContainerActive:e,activeTabId:t,modifiedLayout:n,renderHelper:o})=>{const i={modifiedLayout:n,activeTabId:t,renderHelper:o,isContainerActive:e},[l,s]=wm(i);s(i);const c=a((()=>()=>{const e=Bp(l.modifiedLayout);for(const[t,r]of l.renderHelper.objectMap.entries()){const n=l.isContainerActive&&l.activeTabId===e[t];"setIsActive"in r&&r.setIsActive(n)}}),[l]);r((()=>{l.isContainerActive&&c()}),[o.objectMap,c,l]),r((()=>{c()}),[e,c])},km={getChar(e){let t,r=e;return r>9?(t=65+r-10,t>90&&(t+=6)):r=`${r}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Am={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class _m{constructor(e){M(this,"sessionObject",void 0),M(this,"getOrCreateSessionObject",(async e=>{const t=Am.qInfo.qId;this.sessionObject=await e.getObject(t).catch((()=>e.createSessionObject(Am)))})),M(this,"getMasterVisualizations",(async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map((e=>({...e.qData,qExtendsId:e.qInfo.qId}))).filter((e=>!bp.includes(e.visualization)))}catch(e){return[]}})),this.getOrCreateSessionObject(e).catch((()=>{}))}}let Im=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Tm{constructor({embed:e,model:t,app:r,translator:n,mutex:o}){M(this,"model",void 0),M(this,"embed",void 0),M(this,"app",void 0),M(this,"undoRedoModel",void 0),M(this,"chartList",void 0),M(this,"masterVizList",void 0),M(this,"mutex",void 0),M(this,"rememberAsGroup",(async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const r=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),r})),M(this,"generateProperties",(async(e,t)=>await this.embed.generateProperties({type:e,properties:t}))),M(this,"addVizAsChild",(async({type:e,initProps:t,objectInitProps:r,children:n})=>{try{const o=await this.generateProperties(e,t);let i=(null==r?void 0:r.label)||(null==t?void 0:t.title);if(!i){const r=this.getChart(null==t?void 0:t.visualization),n=null==r?void 0:r.libraryInfo;i=(null==n?void 0:n.translation)||(null==n?void 0:n.name)||e}const a={...r,label:i};return await this.addChild(o,n,a)}catch(e){return}})),M(this,"addMasterObjectAsChild",(async({initProps:e,objectInitProps:t,children:r})=>{try{if(!e||!e.qExtendsId||!this.app)return;const n=await this.app.getObject(e.qExtendsId),o=await n.getProperties(),i=(null==t?void 0:t.label)||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},l={...t,label:i};return await this.addChild(a,r,l)}catch(e){return}})),M(this,"deleteChildren",(async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const r=await t.getFullPropertyTree(),{qChildren:n,qProperty:o}=r,i=new Set(e);return r.qChildren=n.filter((({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)})),r.qProperty.objects=o.objects.filter((e=>!i.has(e.childRefId))),await t.setFullPropertyTree(r),!0}catch(e){return!1}finally{this.mutex.unlock()}})),M(this,"moveChild",(async(e,t)=>{if(this.model)try{await this.mutex.lock();const r=await this.model.getProperties(),{objects:n}=r,o=n.findIndex((e=>e.childRefId===t));let i=!1;switch(e){case Im.TOP:{if(0===o)break;const e=n.splice(o,1)[0];n.unshift(e),i=!0;break}case Im.BOTTOM:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.push(e),i=!0;break}case Im.UP:{if(0===o)break;const e=n.splice(o,1)[0];n.splice(o-1,0,e),i=!0;break}case Im.DOWN:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(r)}finally{this.mutex.unlock()}})),M(this,"getCharts",(()=>{var e;return(null===(e=this.chartList)||void 0===e?void 0:e.getCharts())||{}})),M(this,"getMasterVizList",(()=>{var e;return(null===(e=this.masterVizList)||void 0===e?void 0:e.getMasterVisualizations())||Promise.resolve([])})),M(this,"getChart",(e=>{var t;return null===(t=this.chartList)||void 0===t?void 0:t.getChart(e)})),M(this,"getChartLabelById",((e,t)=>{var r,n;const o=null==e||null===(r=e.qChildList)||void 0===r?void 0:r.qItems.find((e=>e.qInfo.qId===t));if(!o)return"";const{visualization:i,title:a}=o.qData;if(a)return a;const l=this.getChart(i);return(null==l||null===(n=l.libraryInfo)||void 0===n?void 0:n.translation)||i})),this.model=t,this.embed=e,this.app=r;const i=r;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then((e=>{this.undoRedoModel=e})).catch((()=>{})),r&&(this.masterVizList=new _m(r)),e&&n&&(this.chartList=new gp(e,n)),this.mutex=o}async addChild(e,t,r){if(this.model&&!bp.includes(e.visualization))try{await this.mutex.lock();const{model:n}=this,o=async()=>{e.childRefId=km.id();const o=await n.createChild(e);if(o){const t=await n.getProperties();t.objects.unshift({childRefId:e.childRefId,...r,condition:{qValueExpression:{qExpr:""}}}),await n.setProperties(t)}return t&&o&&await Promise.all(t.map((({qProperty:e})=>o.createChild(e)))),o};return await this.rememberAsGroup(o)}catch(e){return}finally{this.mutex.unlock()}}}class Lm{constructor(e){M(this,"locked",!1),M(this,"tasks",[]),M(this,"id",void 0),M(this,"lock",(async()=>this.locked?new Promise((e=>{this.tasks.push(e)})):(this.locked=!0,!0))),M(this,"unlock",(()=>{if(this.tasks.length>0){const e=this.tasks.shift();null==e||e(!0)}else this.locked=!1})),this.id=e}}const Om={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},rebeccapurple:{r:102,g:51,b:153},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}},Pm={index:-1,color:"none",alpha:1},Mm=e=>{let t=parseFloat(e[1]),r=parseFloat(e[3]),n=parseFloat(e[5]);return t%=360,r/=100,n/=100,t=Math.max(0,Math.min(t,360)),r=Math.max(0,Math.min(r,1)),n=Math.max(0,Math.min(n,1)),{h:t,s:r,l:n,v:n}},jm=(e,t,r,n,o=1)=>{let i,a,l,s=[];switch(r=Math.floor(r)){case 0:s=[e,t,0];break;case 1:s=[t,e,0];break;case 2:s=[0,e,t];break;case 3:s=[0,t,e];break;case 4:s=[t,0,e];break;case 5:s=[e,0,t];break;default:s=[0,0,0]}return i=s[0]+n,a=s[1]+n,l=s[2]+n,i=Math.round(255*i),a=Math.round(255*a),l=Math.round(255*l),`rgba(${i},${a},${l},${o})`},Nm=e=>{const{h:t,s:r,l:n}=Mm(e),o=e.length>7?parseFloat(e[7]):1,i=n<=.5?2*n*r:(2-2*n)*r,a=t/60,l=i*(1-Math.abs(a%2-1));return jm(i,l,a,n-.5*i,o)},$m={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(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),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Nm(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Nm(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:r,v:n}=Mm(e),o=n*r,i=t/60,a=o*(1-Math.abs(i%2-1));return jm(o,a,i,n-o)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const r=e&&Om[e.toLowerCase()];if(r){const e=void 0!==r.a?r.a:1;return`rgba(${r.r},${r.g},${r.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:r}){const n=(null==e?void 0:e.color)||Pm;let o;return o=null!=e&&e.useColorExpression?$m.resolveExpression(e):"string"==typeof n?n:(null==r?void 0:r.getColorPickerColor(n))||"",o&&"none"!==o?o:t}};class zm{constructor({modifiedLayout:e,themeService:t}){var r;M(this,"modifiedLayout",void 0),M(this,"themeStyle",void 0),M(this,"style",void 0),M(this,"objectMap",void 0),M(this,"activeTabId",void 0),M(this,"theme",void 0),M(this,"getTabsWidth",(e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const r=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}})),M(this,"getTabWidth",(e=>{var t;const r=null==e?void 0:e.value,n=null!==(t=null==e?void 0:e.unit)&&void 0!==t?t:"%";if(void 0===r||2!==r.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${r[0]}${n}`,maxWidth:`${r[1]}${n}`}})),M(this,"getColorStyle",((e,t=e)=>{const r=this.resolveComponentStyle({compPath:e,themePath:t}),n=$m.getColor({style:r,theme:this.theme});return null!=n?n:r})),M(this,"getTabBackgroundStyle",((e,t)=>{let r;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});r=$m.getColor({style:e,theme:this.theme})}return null!=r?r:$m.getColor({style:t,theme:this.theme})})),M(this,"createTabClasses",(()=>{var e;return null===(e=this.modifiedLayout.objects)||void 0===e?void 0:e.reduce(((e,t)=>{var r;const n=null==t?void 0:t.childRefId,o=null==t||null===(r=t.components)||void 0===r?void 0:r.find((e=>"tab"===e.key));return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:hf(o,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,null==o?void 0:o.background),...this.getTabWidth(null==o?void 0:o.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${n}`]={fontSize:hf(o,"label.fontSize"),fontFamily:hf(o,"label.fontFamily"),color:$m.getColor({style:hf(o,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:hf(o,"icon.size"),color:$m.getColor({style:hf(o,"icon.color"),theme:this.theme})},e}),{})})),M(this,"createTabsClasses",(()=>({[xm.TABS_LABEL]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[xm.TABS_ICON]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[xm.TABS]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[xm.TABS_HOVER]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[xm.TABS_WRAPPER]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[xm.TAB_INDICATOR]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}}))),M(this,"createStyleClasses",(()=>({...this.createTabsClasses(),...this.createTabClasses()}))),M(this,"resolveComponentStyle",(({key:e="tabs",compPath:t,themePath:r=t,defaultValue:n})=>{var o,i,a;const l=null===(o=this.modifiedLayout.components)||void 0===o?void 0:o.find((t=>t.key===e));return null!==(i=null!==(a=hf(l,t))&&void 0!==a?a:hf(this.themeStyle,r))&&void 0!==i?i:n})),this.modifiedLayout=e;const{cachedTabId:n,defaultTabId:o,objects:i}=this.modifiedLayout;this.activeTabId=n||o||(null===(r=i[0])||void 0===r?void 0:r.childRefId)||"",this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Dp(this.modifiedLayout),this.style=this.createStyleClasses()}getStyleClasses(){return this.style}getTabStyle(e){var t;return null===(t=this.objectMap[e].components)||void 0===t?void 0:t.find((e=>"tab"===e.key))}}const Bm=()=>{const e=l(),r=s(),o=c(),i=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function(e){var t=e.theme,r=e.config,n=void 0===r?{}:r,o=n.id,i=n.resolve,a=void 0===i?[]:i,l=n.transform,s=void 0===l?[]:l,c=n.extend,d=void 0===c?[]:c,u={theme:t,matrix:Tf(a),styles:void 0};return u.styles=Of({theme:t,id:o,transform:s,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=Of({theme:e,id:o,transform:s,extend:d,matrix:u.matrix})}}}({theme:m(),config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),S=a((()=>new gp(i,g)),[i,g]),[C]=n((()=>new Lm(b.id))),[w,R]=n(!1),k=a((()=>i&&b&&r?new Tm({embed:i,model:b,app:r,translator:g,mutex:C}):void 0),[i,b,r,g,C]),A=a((()=>zp(o)),[o]),_=a((()=>new zm({modifiedLayout:A,themeService:E})),[A,E]);return a((()=>({app:r,modifiedLayout:A,embed:i,model:b,emitter:y,interactions:x,dataHandler:k,chartList:S,styleModel:_,mutex:C,options:v,accessibility:w,setAccessibility:R,translator:g,element:e})),[A,i,b,r,y,x,k,S,_,C,v,w,g,e])},Dm=({dataHandler:e,modifiedLayout:t,translator:r,sharedContainerUtilities:n,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const l=!t.qExtendsId;return S.createElement(Cp,null,S.createElement(Sp,null,S.createElement(o,null),l?S.createElement(S.Fragment,null,S.createElement(_p,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":r.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0},r.get("LayoutContainer.EmptyList.AddContent")),S.createElement(Pp,{translator:r,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:n})):S.createElement(ic,{variant:"inherit"},r.get("LayoutContainer.EmptyList.EmptyHint"))))};class Fm{constructor(e){M(this,"_rendered",new Set),M(this,"_objectMap",new Map),M(this,"_objectApis",new Map),M(this,"_resolver",void 0),M(this,"_dependencyData",void 0),M(this,"_recreateMap",new Map),M(this,"createTimerForRendering",(()=>{if(!this.resolver){let e;const t=setTimeout((()=>{this.doResolve()}),9e4),r=new Promise((t=>{e=t}));this._resolver={promise:r,resolve:e,timer:t}}return this._resolver})),M(this,"doResolve",(()=>{var e,t,r;this.resolver&&(clearTimeout(null===(e=this.resolver)||void 0===e?void 0:e.timer),null===(t=(r=this.resolver).resolve)||void 0===t||t.call(r,!0),this._resolver=void 0)})),M(this,"tryToResolve",(()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every((e=>this.rendered.has(e.id))))&&this.doResolve()}})),this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get objectApis(){return this._objectApis}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}syncObjects(e){const t=new Set,r=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),n=new Set(r);let o=!1;return e.forEach((e=>{r.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),n.delete(e.id)):o=!0})),n.forEach((e=>{var t;const r=this.objectMap.get(e);var n;r&&(this.confirmPotentialSelections(r),null===(n=r.destroy)||void 0===n||n.call(r),this.objectMap.delete(e));null===(t=this.objectApis.get(e))||void 0===t||t.destroy(),this.objectApis.delete(e)})),this._rendered=t,this.tryToResolve(),o}destroy(){for(const e of this.objectApis.values())e.destroy();this._objectMap=new Map,this._objectApis=new Map}saveObject(e,t){this.objectMap.set(e,t)}saveObjectApi(e,t){this._objectApis.set(e,t)}onRendered(e){this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach((e=>{const r=this.objectMap.get(e.id);r&&t.push(r)})),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find((t=>t.qInfo.qId===e))}getObjectOptions(e){var t,r;const{viewState:n,modifiedLayout:o,options:i}=this._dependencyData,{chartAnimations:a,direction:l,progressiveRendering:s,freeResize:c,navigation:d}=i;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!(null==o||!o.qExtendsId),isSnapshot:!!o.snapshotData,...!(null==n||null===(t=n.viewStates)||void 0===t||!t[e])&&{viewState:null==n?void 0:n.viewStates[e]},...!(null==n||null===(r=n.layouts)||void 0===r||!r[e])&&{layout:n.layouts[e]},direction:l,chartAnimations:a,progressiveRendering:s,freeResize:c,navigation:d,disableThemeBorder:!1,fallbackToClient:i.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const Gm=()=>S.createElement(Ip,{viewBox:"0 0 16 16"},S.createElement("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})),Hm=({libraryInfo:e,style:t,id:r})=>S.createElement("div",{style:t,"data-testid":"tab-chart-icon",id:r,className:ym.TABS_ICON},S.createElement(e.IconDefinition,null)),Wm=({style:e,id:t})=>S.createElement("div",{style:e,"data-testid":"tab-hidden-icon",id:t},S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"}))),Ym=()=>S.createElement(Tp,{viewBox:"0 0 16 16"},S.createElement("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})),Um=Vl(Du)({width:28,overflow:"hidden"}),Vm=Vl(Du)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),qm=({chartObject:e,embed:t,renderHelper:r,direction:n,interactions:o,env:i})=>{const a=_(null),{id:l}=e;A((()=>{if(l&&a.current){const e=r.getObjectOptions(l)||{};e.disableThemeBorder=!0,t.render({id:l,element:a.current,options:e}).then((e=>{r.saveObjectApi(l,e)})).catch((e=>{var t;const n=null===(t=r.getChildLayout(l))||void 0===t||null===(t=t.qInfo)||void 0===t?void 0:t.qType;console.error("Could not render chart with id",l,n,e)}))}}),[l,t,r,n]);const s=I((()=>()=>{if(null!=e&&e.id&&i.anything){const t=null==e?void 0:e.label,{sense:n}=i.anything,o="current",a=r.objectMap.get(e.id);a&&n.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}}),[i,e,r]);return A((()=>{const e=null==a?void 0:a.current;return e&&null!=o&&o.edit&&e.addEventListener("dblclick",s),()=>{null==e||e.removeEventListener("dblclick",s)}}),[a,s,o]),S.createElement("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};var Km;!function(e){e.TABS_HEIGHT="36px"}(Km||(Km={}));const Xm=(e,t)=>e.find((e=>e.childRefId===t)),Zm=(e,t)=>!t.edit&&0===e.condition,Jm=({charts:e,handleChangeTab:t,activeTabId:r,element:n,translator:o,accessibility:i,disabled:a})=>{const[l,s]=S.useState(null),c=Boolean(l),d=()=>{s(null)},u=T((e=>{null==e||e.focus()}),[]);return S.createElement(S.Fragment,null,S.createElement(Gc,{onClick:e=>{s(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:ym.TAB_MENU,sx:{m:"2px"}},S.createElement(Ym,null)),S.createElement(xu,{anchorEl:l,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}}},e.map((e=>S.createElement(Ru,{className:ym.TAB_MENU_ITEM,ref:r===e.childRefId&&c?u:null,key:`chartTabMenu-${e.childRefId}`,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout((()=>{var e;null===(e=n.getElementsByClassName(ym.ACTIVE_TAB_PANEL))||void 0===e||null===(e=e[0])||void 0===e||e.focus()}),0)})(e)},sx:{...r===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label},S.createElement(ic,{variant:"inherit",noWrap:!0},e.label))))))},Qm=({label:e,id:t})=>S.createElement(Oc,{className:ym.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"}},S.createElement("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"}},e)),eb=({libraryInfo:e,chart:t,iconPosition:r,id:n})=>{let o;switch(r){case"bottom":o={marginTop:"6px"};break;case"top":o={marginBottom:"6px"};break;case"end":o={marginInlineStart:"8px"};break;default:o={marginInlineEnd:"8px"}}o.display="flex",o.alignItems="center",o.height="100%",o.flex="1 0 0";return 0===t.condition?S.createElement(Wm,{id:`${ym.TABS_ICON}-${n}`,style:o}):e?S.createElement(Hm,{id:`${ym.TABS_ICON}-${n}`,libraryInfo:e,style:o}):null},tb=({models:e,activeTabId:t,handleChangeTab:r})=>{const{modifiedLayout:n,chartList:o,interactions:i,accessibility:a}=e,l=null==o?void 0:o.getCharts(),s=n.objects.filter((e=>!Zm(e,i))),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Vm}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Um})(n),p=!1===i.active&&!i.edit,[h,f]=k(!1),m=T((e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)}),[c]);return S.createElement(Oc,{className:ym.TAB_WRAPPER,sx:d,ref:e=>{m(e)}},n.useDropdown&&h&&S.createElement(Jm,{charts:s,handleChangeTab:r,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}),S.createElement(Qu,{value:t,onChange:(e,t)=>{r(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!n.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Km.TABS_HEIGHT}},s.map((r=>{var o,i,s,d,u;const h=null===(o=$p(n,r.childRefId))||void 0===o||null===(o=o.qData)||void 0===o?void 0:o.visualization,f=h&&(null==l||null===(i=l[h])||void 0===i?void 0:i.libraryInfo),m=e.styleModel.getTabStyle(r.childRefId),b=0===r.condition||n.showIcons&&f&&!1!==(null==m||null===(s=m.icon)||void 0===s?void 0:s.show),g="vertical"===c?"top":"start",v=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:g}),y=e.styleModel.resolveComponentStyle({compPath:"label.show"}),x=r.label&&(null!==(d=null==m||null===(u=m.label)||void 0===u?void 0:u.show)&&void 0!==d?d:!1!==y),E=`${n.qInfo.qId}-${r.childRefId}`;return S.createElement(Tu,{className:`${ym.TAB} ${t===r.childRefId?ym.ACTIVE_TAB:""}`,disabled:p,id:`tab-${E}`,value:r.childRefId,title:r.label,label:x?S.createElement(Qm,{label:r.label,id:E}):void 0,icon:b?S.createElement(eb,{libraryInfo:f,chart:r,iconPosition:v,id:E}):"",iconPosition:v,key:r.childRefId,"data-testid":`container-tab-${r.childRefId}`,sx:{textAlign:"vertical"!==c||n.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Km.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":r.label,"aria-controls":`tab-panel-${E}`,tabIndex:a&&t===r.childRefId?0:-1})}))))},rb=({models:e,renderHelper:t,activeTabId:r,handleChangeTab:n,env:o})=>{const{modifiedLayout:i,embed:a,interactions:l,options:s,styleModel:c,accessibility:d}=e,u=i.objects,p=l.edit||!!u.find((e=>0!==e.condition)),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return S.createElement(Oc,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:s.direction,...m}},h&&S.createElement(tb,{models:e,activeTabId:r,handleChangeTab:n}),u.map((e=>{const n=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=r===e.childRefId&&!Zm(e,l);return S.createElement(Oc,{role:"tabpanel",id:n,key:n,"aria-label":e.label,sx:{height:"100%",width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr",flex:"1 0 0","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:ym.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0}},c&&S.createElement(qm,{chartObject:e,renderHelper:t,direction:s.direction,embed:a,interactions:l,env:o}))})))};let nb=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),ob=function(e){return e.COPY="copy",e.PASTE="paste-and-replace",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.TAKE_SNAP_SHOT="take-snapshot",e.SNAP_SHOT_GROUP="snapshotGroup",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS_OLD_ID="explainKeyDrivers",e.EXPLAIN_KEY_DRIVERS="key-driver",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const ib=[ob.PASTE,ob.ZOOM_IN,ob.VISUAL_EXPLORATION],ab=[ob.VISUAL_EXPLORATION,ob.ALERT_GROUP,ob.SHOW_DETAILS,ob.EXPLAIN_KEY_DRIVERS,ob.EXPLAIN_KEY_DRIVERS_OLD_ID],lb=[ob.DELETE,ob.CUT,ob.ADD_TO_MASTER_ITEMS,ob.UNLINK_VISUALIZATION],sb=[ob.PASTE],cb=(e,t)=>{const{childRefId:r}=e.model.layout,n=t.objects.find((e=>e.childRefId===r));return{...e,additionalData:{label:null==n?void 0:n.label}}},db=(e,t,r,n,o)=>{const i=t.getSupportFunction(ob.COPY);if(!i)return void e.deleteItem(ob.COPY);const a=()=>{i(cb(r,n)).catch((()=>{}))},l=e.items.find((e=>e.id===ob.COPY));if(l)l.updateItem({select:a});else if(o){const t=e.items.findIndex((e=>e.id===ob.CUT)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:ob.COPY,id:ob.COPY,icon:"copy",select:a,items:[]},r)}},ub=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,pb=async(e,t,r,n)=>{const o=t.getBuilder("default");if(!o)return;const i=await o();i.addItem({translation:"contextMenu.containerOptionsHeader",tid:ob.CONTAINER_HEADER,id:ob.CONTAINER_HEADER,bold:!0,items:[]},0);const a=ub(r);i.items.forEach((e=>{(ab.includes(e.id)||!a&&sb.includes(e.id))&&i.deleteItem(e.id)})),a&&await(async(e,t,r)=>{var n;const o=t.getSupportFunction(nb.PASTE),i=await(null==o||null===(n=o())||void 0===n?void 0:n.catch((()=>{})));if(!i||bp.includes(i.template))return void e.deleteItem(ob.PASTE);const a=()=>{r()},l=e.items.find((e=>e.id===ob.PASTE));if(l)l.updateItem({translation:"contextMenu.paste",select:a});else{const t=e.items.findLastIndex((e=>e.id===ob.COPY||e.id===ob.DEVELOPER||e.id===ob.CONTAINER_HEADER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:ob.PASTE,id:ob.PASTE,icon:"paste",select:a,items:[]},r)}})(i,t,n),e.updateItem({items:i.items}),1===e.items.length&&e.deleteItem(ob.CONTAINER_HEADER)},hb=e=>{const t={[ob.MONITOR_IN_HUB]:!0,[ob.SUBSCRIBE]:!0,[ob.NOTES_GROUP]:!0,[ob.DOWNLOAD]:!0,[ob.SHARE_IMAGE]:!0};e.items.forEach((r=>{t[r.id]?e.deleteItem(r.id):r.items&&hb(r)}))},fb=(e,t,r,n,o,i)=>a=>{const{dataHandler:l,modifiedLayout:s}=n;if(ub(n)){r.isInvalid||(((e,t,r,n)=>{const{model:o,modifiedLayout:i}=r,a=e.items.findLastIndex((e=>e.id===ob.CHART_HEADER||e.id===ob.REORDER_LAYERS_GROUP)),l=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:ob.EDIT_PROPERTIES,id:ob.EDIT_PROPERTIES,icon:ob.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,r=i.objects.find((t=>t.childRefId===e)),a=null==r?void 0:r.label,{sense:l}=n.anything,s=o;l.propertyPanel.show({model:t.model,parent:s,headerLabel:a})}},l)})(a,r,n,o),((e,t,r,n,o,i)=>{const a=n.getSupportFunction(ob.COPY);if(!a)return void e.deleteItem(ob.CUT);const l=()=>{o&&a(cb(r,i)).then((async()=>{await(null==o?void 0:o.deleteChildren([t]))})).catch((()=>{}))},s=e.items.find((e=>e.id===ob.CUT));if(s)s.updateItem({select:l});else{const t=e.items.findLastIndex((e=>e.id===ob.ADD_TO_MASTER_ITEMS||e.id===ob.UNLINK_VISUALIZATION||e.id===ob.EDIT_PROPERTIES||e.id===ob.REORDER_LAYERS_GROUP||e.id===ob.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:ob.CUT,id:ob.CUT,icon:"cut",select:l,items:[]},r)}})(a,t,r,e,l,s),db(a,e,r,s,!0),((e,t,r,n,o)=>{const i=t.getSupportFunction(nb.COPY),a=t.getSupportFunction(nb.PASTE);if(!i||!a)return void e.deleteItem(ob.DUPLICATE);const l=()=>{i(cb(r,n)).then((()=>{o()})).catch((()=>{}))},s=e.items.find((e=>e.id===ob.DUPLICATE));if(s)s.updateItem({select:l});else{const t=e.items.findIndex((e=>e.id===ob.COPY)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:ob.DUPLICATE,id:ob.DUPLICATE,icon:ob.DUPLICATE,items:[],select:l},r)}})(a,e,r,s,i)),((e,t,r)=>{const n=()=>{r&&r.deleteChildren([t]).catch((()=>{}))},o=e.items.find((e=>e.id===ob.DELETE));if(o)o.updateItem({select:n});else{const t=e.items.findLastIndex((e=>e.id===ob.DUPLICATE||e.id===ob.ADD_TO_MASTER_ITEMS||e.id===ob.UNLINK_VISUALIZATION||e.id===ob.REORDER_LAYERS_GROUP||e.id===ob.DEVELOPER)),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:ob.DELETE,id:ob.DELETE,icon:"bin",items:[],select:n},r)}})(a,t,l)}else db(a,e,r,s,!1)},mb=(e,t,r,n)=>{g((async(o,i,a)=>{var l;if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const r=t.getSupportFunction(nb.PASTE);r&&r().then((async({template:t,init:r,children:n,additionalData:o})=>{const{label:i}=o,a={label:i};r.qExtendsId?await e.addMasterObjectAsChild({initProps:r,children:n,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:r,children:n,objectInitProps:a})})).catch((e=>{e&&t.getSupportFunction(nb.RESET_COPY_BUFFER)}))})(r.dataHandler,a);if(await pb(o,a,r,s),hb(o),!(e=>{var t;let r;r="qv-radial-contextmenu"===e.type?null===(t=e.touches[0])||void 0===t?void 0:t.target:e.target;return r&&((e,t)=>{let r=e;for(;r;){var n;if(null!==(n=r.classList)&&void 0!==n&&n.contains(t))return r;r=r.parentNode}return null})(r,ym.ACTIVE_TAB_PANEL)})(i))return!0;const c=null===(l=r.modifiedLayout.objects.find((t=>t.childRefId===e)))||void 0===l?void 0:l.id;if(!c)return!0;const d=t.objectMap.get(c);if(!d)return!0;const u=fb(a,e,d,r,n,s),p=await(async(e,t,r,n)=>{const o=ub(r),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:ob.CHART_HEADER,id:ob.CHART_HEADER,bold:!0,items:[]},0),n(a),a.items.forEach((e=>{(ib.includes(e.id)||!o&&lb.includes(e.id))&&a.deleteItem(e.id)})),1===a.items.length&&a.deleteItem(ob.CHART_HEADER),a})(a,d,r,u);return!p||(o.items.length>0&&p.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},p.items.length),o.updateItem({items:p.items}),!0)}))},bb=({element:e,models:o,env:i})=>{var l;const s=((e,t)=>{const[o,i]=n(void 0);return r((()=>{if(0===e.getElementsByClassName(t).length){const r=document.createElement("div");r.className=t,e.appendChild(r);const n=vp(r);i(n)}return()=>{null==o||o.unmount()}}),[e,t,o]),o})(e,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=o,{cachedTabId:h,defaultTabId:f,objects:m,qChildList:g}=d,v=fp(c.direction),y=(e=>{const{viewState:r}=t(),{snapshotData:n}=e;if(n){var o;const{layouts:e}=n.objectsData;return{layouts:e,viewStates:null===(o=n.viewState)||void 0===o?void 0:o.viewStates}}if(r){const{viewStates:e}=r;return{viewStates:e}}})(d),x=h||f||(null===(l=m[0])||void 0===l?void 0:l.childRefId)||"",E={modifiedLayout:d,activeTabId:x,env:i},[C,w]=wm(E);w(E);const R=a((()=>d.objects.filter((e=>x===e.childRefId))),[x,d.objects]),{renderHelper:k}=(e=>{const{visibleLayoutObjects:t,options:o}=e,[i]=n((()=>new Fm(e))),[,a]=n(o);return i.dependencyData=e,b((async()=>{var e,r;return a((e=>(e!==o&&t.forEach((e=>i.recreateMap.set(e.id,!0))),o))),i.syncObjects(t)?null===(r=i.createTimerForRendering())||void 0===r?void 0:r.promise:null===(e=i.resolver)||void 0===e?void 0:e.promise}),[t,o]),r((()=>()=>{i.destroy()}),[i]),{renderHelper:i}})({modifiedLayout:d,visibleLayoutObjects:R,viewState:y,options:c});mb(x,k,o,i);const[A]=n({current:void 0}),_=a((()=>e=>{(async({model:e,patchList:t})=>{if(null!=e&&e.applyPatches){const r=await e.getEffectiveProperties(),n=[];t.forEach((e=>{const{newValue:t,propertyName:o}=e,i=void 0!==r[o]?"Replace":"Add";t?n.push({qPath:`/${o}`,qOp:i,qValue:t&&JSON.stringify(t)}):"Replace"===i&&n.push({qPath:`/${o}`,qOp:"Remove"})})),n.length>0&&await e.applyPatches(n,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]})}),[p]),I=a((()=>({setSelected:e=>{var t;const r=null===(t=C.modifiedLayout.objects.find((t=>t.id===e[0])))||void 0===t?void 0:t.childRefId;r?_(r):A.current=e[0]}})),[_,C,A]);r((()=>{const e=(({chartObjects:e,activeTabId:t})=>{var r;return!Xm(e,t)&&e.length>0?null===(r=e[0])||void 0===r?void 0:r.childRefId:t})({chartObjects:C.modifiedLayout.objects,activeTabId:C.activeTabId});if(e!==C.activeTabId)_(e);else if(A.current){var t;const e=null===(t=C.modifiedLayout.objects.find((e=>e.id===A.current)))||void 0===t?void 0:t.childRefId;e&&_(e)}A.current=void 0}),[null==d?void 0:d.objects.length,C,A,_]),r((()=>{const e=(({chartObjects:e,activeTabId:t,interactions:r})=>{const n=Xm(e,t);if(!n||Zm(n,r)){const r=e.find((e=>0!==e.condition));return(null==r?void 0:r.childRefId)||t}return t})({chartObjects:C.modifiedLayout.objects,activeTabId:C.activeTabId,interactions:u});e!==C.activeTabId&&_(e)}),[u,null==d?void 0:d.objects,C,_]);const T=0===g.qItems.length&&u.edit;return r((()=>{null==s||s.render(S.createElement(Kl,{theme:v},T?S.createElement(Dm,{Icon:Gm,dataHandler:o.dataHandler,modifiedLayout:o.modifiedLayout,translator:o.translator,sharedContainerUtilities:I}):null,!T&&S.createElement(rb,{models:o,renderHelper:k,activeTabId:x,handleChangeTab:_,env:i})))}),[s,o,v,T,k,x,I,_,i]),{renderHelper:k,sharedContainerUtilities:I,activeTabId:x}};var gb={targets:[]};const vb={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var r=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const yb=e=>e.map((e=>{if(e.canReceive){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:r=>t(r)&&e.canReceive(r)}}return e})),xb=(e,t)=>{let r=!0;const n=t.objects.reduce(((t,n)=>{const o=n.id;if(0!==n.condition){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(r=!1,t.objectMap.set(o,i)),t.objects.push(n),t}return t}),{objects:[],objectMap:new Map});return r?{objects:[],objectMap:new Map}:n}}}}));
|