@nebula.js/sn-tabbed-container 2.0.5 → 2.2.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.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-tabbed-container v2.0.5
2
+ * @nebula.js/sn-tabbed-container v2.2.0
3
3
  * Copyright (c) 2026 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,s,l,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.onTakeSnapshot,o=e.useKeyboard,i=e.useMemo,a=e.useState,s=e.useElement,l=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 ru({translator:e.translator});return{qae:{properties:bm,data:mm},ext:rf({env:e,propertyHandlerData:t}),component(){const r=Yf(),n=p();i(()=>{!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])})}}(n)},[n]);const{dataHandler:o,model:s,accessibility:l,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=r,{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=fm({element:u,models:r,env:e});nf({containerId:s?.id||"",element:u,sharedContainerUtilities:m,translator:n,dataHandler:o,propertyHandlerData:t,renderHelper:f});const[g,y]=a(!0);Sf({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:h}),xf({element:u,accessibility:l,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:r});const{getViewState:x}=lf(f,vm);v(()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return gm(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){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 j=Object.freeze({__proto__:null,default:M}),N="$$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(-1!==t.indexOf(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}(),B="-ms-",F="-moz-",G="-webkit-",H="comm",W="rule",Y="decl",V="@keyframes",U=Math.abs,q=String.fromCharCode,K=Object.assign;function X(e){return e.trim()}function Z(e,t,r){return e.replace(t,r)}function J(e,t){return e.indexOf(t)}function Q(e,t){return 0|e.charCodeAt(t)}function ee(e,t,r){return e.slice(t,r)}function te(e){return e.length}function re(e){return e.length}function ne(e,t){return t.push(e),e}var oe=1,ie=1,ae=0,se=0,le=0,ce="";function de(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:oe,column:ie,length:a,return:""}}function ue(e,t){return K(de("",null,null,"",null,null,0),e,{length:-e.length},t)}function pe(){return le=se>0?Q(ce,--se):0,ie--,10===le&&(ie=1,oe--),le}function he(){return le=se<ae?Q(ce,se++):0,ie++,10===le&&(ie=1,oe++),le}function fe(){return Q(ce,se)}function me(){return se}function be(e,t){return ee(ce,e,t)}function ge(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 ve(e){return oe=ie=1,ae=te(ce=e),se=0,[]}function ye(e){return ce="",e}function xe(e){return X(be(se-1,Ce(91===e?e+2:40===e?e+1:e)))}function Ee(e){for(;(le=fe())&&le<33;)he();return ge(e)>2||ge(le)>3?"":" "}function Se(e,t){for(;--t&&he()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return be(e,me()+(t<6&&32==fe()&&32==he()))}function Ce(e){for(;he();)switch(le){case e:return se;case 34:case 39:34!==e&&39!==e&&Ce(le);break;case 40:41===e&&Ce(e);break;case 92:he()}return se}function we(e,t){for(;he()&&e+le!==57&&(e+le!==84||47!==fe()););return"/*"+be(t,se-1)+"*"+q(47===e?e:he())}function Re(e){for(;!ge(fe());)he();return be(e,se)}function ke(e){return ye(Ae("",null,null,null,[""],e=ve(e),0,[0],e))}function Ae(e,t,r,n,o,i,a,s,l){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=he()){case 40:if(108!=f&&58==Q(C,u-1)){-1!=J(C+=Z(xe(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=xe(v);break;case 9:case 10:case 13:case 32:C+=Ee(f);break;case 92:C+=Se(me()-1,7);continue;case 47:switch(fe()){case 42:case 47:ne(Ie(we(he(),me()),t,r),l);break;default:C+="/"}break;case 123*m:s[c++]=te(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(C=Z(C,/\f/g,"")),h>0&&te(C)-u&&ne(h>32?Te(C+";",n,r,u-1):Te(Z(C," ","")+";",n,r,u-2),l);break;case 59:C+=";";default:if(ne(S=_e(C,t,r,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Ae(C,t,S,S,x,i,u,s,E);else switch(99===p&&110===Q(C,3)?100:p){case 100:case 108:case 109:case 115:Ae(e,S,S,n&&ne(_e(e,S,S,0,0,o,s,y,o,x=[],u),E),o,E,u,s,n?x:E);break;default:Ae(C,S,S,S,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=C="",u=a;break;case 58:u=1+te(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==pe())continue;switch(C+=q(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(te(C)-1)*g,g=1;break;case 64:45===fe()&&(C+=xe(he())),p=fe(),d=u=te(y=C+=Re(me())),v++;break;case 45:45===f&&2==te(C)&&(m=0)}}return i}function _e(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=re(p),f=0,m=0,b=0;f<n;++f)for(var g=0,v=ee(e,u+1,u=U(m=a[f])),y=e;g<h;++g)(y=X(m>0?p[g]+" "+v:Z(v,/&\f/g,p[g])))&&(l[b++]=y);return de(e,t,r,0===o?W:s,l,c,d)}function Ie(e,t,r){return de(e,t,r,H,q(le),ee(e,2,-2),0)}function Te(e,t,r,n){return de(e,t,r,Y,ee(e,0,n),ee(e,n+1,-1),n)}function Le(e,t){for(var r="",n=re(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Oe(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 H:return"";case V:return e.return=e.value+"{"+Le(e.children,n)+"}";case W:e.value=e.props.join(",")}return te(r=Le(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 Me=function(e,t,r){for(var n=0,o=0;n=o,o=fe(),38===n&&12===o&&(t[r]=1),!ge(o);)he();return be(e,se)},je=function(e,t){return ye(function(e,t){var r=-1,n=44;do{switch(ge(n)){case 0:38===n&&12===fe()&&(t[r]=1),e[r]+=Me(se-1,t,r);break;case 2:e[r]+=xe(n);break;case 4:if(44===n){e[++r]=58===fe()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=q(n)}}while(n=he());return e}(ve(e),t))},Ne=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)||Ne.get(r))&&!n){Ne.set(e,!0);for(var o=[],i=je(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},ze=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},Be=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Fe=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ge=function(e,t,r){Be(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."),Fe(e)):function(e,t){for(var r=e-1;r>=0;r--)if(!Be(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."),Fe(e)))};function He(e,t){switch(function(e,t){return 45^Q(e,0)?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+F+e+B+e+e;case 6828:case 4268:return G+e+B+e+e;case 6165:return G+e+B+"flex-"+e+e;case 5187:return G+e+Z(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return G+e+B+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return G+e+B+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+B+Z(e,"shrink","negative")+e;case 5292:return G+e+B+Z(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Z(e,"-grow","")+G+e+B+Z(e,"grow","positive")+e;case 4554:return G+Z(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,G+"$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(te(e)-1-t>6)switch(Q(e,t+1)){case 109:if(45!==Q(e,t+4))break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+F+(108==Q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~J(e,"stretch")?He(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Q(e,t+1))break;case 6444:switch(Q(e,te(e)-3-(~J(e,"!important")&&10))){case 107:return Z(e,":",":"+G)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===Q(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(Q(e,t+11)){case 114:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+B+e+e}return e}var We,Ye=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=He(e.value,e.length);break;case V:return Le([ue(e,{value:Z(e.value,"@","@"+G)})],n);case W: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 Le([ue(e,{props:[Z(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Le([ue(e,{props:[Z(t,/:(plac\w+)/,":"+G+"input-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,B+"input-$1")]})],n)}return""})}}],Ve=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;We=function(e){var t=e.match(Ve);if(t)return t[t.length-1]};var Ue=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={},s=[];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;s.push(e)});var l=[$e,ze];l.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 s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(De(s))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}}),Ge);var c,d=[Oe,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==H&&c.insert(e.value+"{}"))}],u=function(e){var t=re(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(l.concat(n,d));i=function(e,t,r,n){if(c=r,We){var o=We(t.styles);o&&(c={insert:function(e){r.insert(e+o)}})}!function(e){Le(ke(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(s),p};function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ke(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?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,Ze,Je,Qe,et={exports:{}},tt={};function rt(){return Ze||(Ze=1,et.exports=function(){if(Xe)return tt;Xe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case r:return p}}}function x(e){return y(e)===c}return tt.AsyncMode=l,tt.ConcurrentMode=c,tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=d,tt.Fragment=n,tt.Lazy=f,tt.Memo=h,tt.Portal=r,tt.Profiler=i,tt.StrictMode=o,tt.Suspense=u,tt.isAsyncMode=function(e){return x(e)||y(e)===l},tt.isConcurrentMode=x,tt.isContextConsumer=function(e){return y(e)===s},tt.isContextProvider=function(e){return y(e)===a},tt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tt.isForwardRef=function(e){return y(e)===d},tt.isFragment=function(e){return y(e)===n},tt.isLazy=function(e){return y(e)===f},tt.isMemo=function(e){return y(e)===h},tt.isPortal=function(e){return y(e)===r},tt.isProfiler=function(e){return y(e)===i},tt.isStrictMode=function(e){return y(e)===o},tt.isSuspense=function(e){return y(e)===u},tt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},tt.typeOf=y,tt}()),et.exports}!function(){if(Qe)return Je;Qe=1;var e=rt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Je=function e(t,n,o){if("string"!=typeof n){if(u){var p=d(n);p&&p!==u&&e(t,p,o)}var h=s(n);l&&(h=h.concat(l(n)));for(var f=i(t),m=i(n),b=0;b<h.length;++b){var g=h[b];if(!(r[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(n,g);try{a(t,g,v)}catch(e){}}}}return t}}();function nt(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var ot=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},it=function(e,t,r){ot(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 at={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},st="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",lt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ct=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ut=function(e){return 45===e.charCodeAt(1)},pt=function(e){return null!=e&&"boolean"!=typeof e},ht=Pe(function(e){return ut(e)?e:e.replace(ct,"-$&").toLowerCase()}),ft=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,function(e,t,r){return Ct={name:t,styles:r,next:Ct},t})}return 1===at[e]||ut(e)||"number"!=typeof t||0===t?t:t+"px"},mt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,bt=["normal","none","initial","inherit","unset"],gt=ft,vt=/^-ms-/,yt=/-(.)/g,xt={};ft=function(e,t){if("content"===e&&("string"!=typeof t||-1===bt.indexOf(t)&&!mt.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=gt(e,t);return""===r||ut(e)||-1===e.indexOf("-")||void 0!==xt[e]||(xt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(vt,"ms-").replace(yt,function(e,t){return t.toUpperCase()})+"?")),r};var Et="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function St(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(Et);return n}switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=r;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ct={name:a.name,styles:a.styles,next:Ct},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+=St(e,t,r[o])+";";else for(var i in r){var a=r[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":pt(s)&&(n+=ht(i)+":"+ft(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Et);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=St(e,t,a);switch(i){case"animation":case"animationName":n+=ht(i)+":"+l+";";break;default:"undefined"===i&&console.error(lt),n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)pt(a[c])&&(n+=ht(i)+":"+ft(i,a[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=Ct,l=r(e);return Ct=s,St(e,t,l)}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(dt,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 Ct,wt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Rt(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="";Ct=void 0;var i=e[0];if(null==i||void 0===i.raw)n=!1,o+=St(r,t,i);else{var a=i;void 0===a[0]&&console.error(st),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=St(r,t,e[s]),n){var l=i;void 0===l[s]&&console.error(st),o+=l[s]}wt.lastIndex=0;for(var c,d="";null!==(c=wt.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:Ct,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 kt=!!y.useInsertionEffect&&y.useInsertionEffect,At=kt||function(e){return e()},_t=kt||y.useLayoutEffect,It=y.createContext("undefined"!=typeof HTMLElement?Ue({key:"css"}):null);It.displayName="EmotionCacheContext";var Tt=It.Provider,Lt=function(e){return x(function(t,r){var n=E(It);return e(t,n,r)})},Ot=y.createContext({});Ot.displayName="EmotionThemeContext";var Pt={}.hasOwnProperty,Mt=function(e){var t=e.split(".");return t[t.length-1]},jt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Mt(t[1]):void 0},Nt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$t=function(e){return e.replace(/\$/g,"-")},zt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Bt=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)Pt.call(t,n)&&(r[n]=t[n]);if(r[zt]=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=jt(t[r]);if(n){if(Nt.has(n))break;if(/^[A-Z]/.test(n))return $t(n)}}}((new Error).stack);o&&(r[Dt]=o)}return r},Ft=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ot(t,r,n),At(function(){return it(t,r,n)}),null},Gt=Lt(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[zt],i=[n],a="";"string"==typeof e.className?a=nt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Rt(i,void 0,y.useContext(Ot));if(-1===s.name.indexOf("-")){var l=e[Dt];l&&(s=Rt([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var c={};for(var d in e)Pt.call(e,d)&&"css"!==d&&d!==zt&&d!==Dt&&(c[d]=e[d]);return c.className=a,r&&(c.ref=r),y.createElement(y.Fragment,null,y.createElement(Ft,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,c))});Gt.displayName="EmotionCssPropInternal";var Ht,Wt,Yt=Gt,Vt=function(e,t){var r=arguments;if(null==t||!Pt.call(t,"css"))return y.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=Yt,o[1]=Bt(e,t);for(var i=2;i<n;i++)o[i]=r[i];return y.createElement.apply(null,o)};Ht=Vt||(Vt={}),Wt||(Wt=Ht.JSX||(Ht.JSX={}));var Ut=!1,qt=Lt(function(e,t){!Ut&&("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?"),Ut=!0);var r=Rt([e.styles],void 0,y.useContext(Ot)),n=y.useRef();return _t(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]),_t(function(){var e=n.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&it(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 Kt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Rt(t)}function Xt(){var e=Kt.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_"}}}qt.displayName="EmotionGlobal";var Zt=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 s 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[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Jt=function(e){var t=e.cache,r=e.serializedArr;return At(function(){for(var e=0;e<r.length;e++)it(t,r[e],!1)}),null},Qt=Lt(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=Rt(o,t.registered);return n.push(a),ot(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=nt(e,n,r);return n.length<2?r:o+t(n)}(t.registered,o,Zt(n))},theme:y.useContext(Ot)},a=e.children(i);return r=!0,y.createElement(y.Fragment,null,y.createElement(Jt,{cache:t,serializedArr:n}),a)});Qt.displayName="EmotionClassNames";var er="undefined"!=typeof document,tr="undefined"!=typeof jest||"undefined"!=typeof vi;if(er&&!tr){var rr="undefined"!=typeof globalThis?globalThis:er?window:global,nr="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";rr[nr]&&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."),rr[nr]=!0}var or=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,ir=Pe(function(e){return or.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),ar=function(e){return"theme"!==e},sr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ir:ar},lr=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},cr="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",dr=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return ot(t,r,n),At(function(){return it(t,r,n)}),null},ur=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 s=lr(t,r,i),l=s||sr(a),c=!l("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(cr),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(cr),u.push(d[f],p[f])}var m=Lt(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(Ot)}"string"==typeof e.className?i=nt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Rt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?sr(n):l,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(dr,{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=s,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:lr(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){ur[e]=ur(e)});var pr,hr,fr={exports:{}},mr={};var br=(hr||(hr=1,fr.exports=function(){if(pr)return mr;pr=1;var e=S,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,r,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return mr.Fragment=r,mr.jsx=a,mr.jsxs=a,mr}()),fr.exports);const gr=new Map;function vr(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(qt,{styles:n})}
7
+ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use strict";var t,n,r,o,i,a,s,l,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,n=e.useEffect,r=e.onTakeSnapshot,o=e.useKeyboard,i=e.useMemo,a=e.useState,s=e.useElement,l=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 eu({translator:e.translator});return{qae:{properties:xm,data:ym},ext:sf({env:e,propertyHandlerData:t}),component(){const n=Kf(),r=p();i(()=>{!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])})}}(r)},[r]);const{dataHandler:o,model:s,accessibility:l,setAccessibility:c,interactions:d,element:u,modifiedLayout:h}=n,{renderHelper:f,sharedContainerUtilities:m,activeTabId:b}=vm({element:u,models:n,env:e});lf({containerId:s?.id||"",element:u,sharedContainerUtilities:m,translator:r,dataHandler:o,propertyHandlerData:t,renderHelper:f});const[g,y]=a(!0);kf({isContainerActive:g,activeTabId:b,renderHelper:f,modifiedLayout:h}),wf({element:u,accessibility:l,setAccessibility:c,renderHelper:f,interactions:d,env:e,models:n});const{getViewState:x}=pf(f,Sm);v(()=>({getViewState:x,getChildrenObjects(){const e=f.getChildrenObjects();return Em(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){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 j=Object.freeze({__proto__:null,default:M}),N="$$material";function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(null,arguments)}function z(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var D=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0!==e.speedy&&e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1],n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);if(n&&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||!n,this.isSpeedy){var r=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{r.insertRule(e,r.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}(),B="-ms-",F="-moz-",G="-webkit-",H="comm",W="rule",Y="decl",U="@keyframes",V=Math.abs,q=String.fromCharCode,K=Object.assign;function X(e){return e.trim()}function Z(e,t,n){return e.replace(t,n)}function J(e,t){return e.indexOf(t)}function Q(e,t){return 0|e.charCodeAt(t)}function ee(e,t,n){return e.slice(t,n)}function te(e){return e.length}function ne(e){return e.length}function re(e,t){return t.push(e),e}var oe=1,ie=1,ae=0,se=0,le=0,ce="";function de(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:oe,column:ie,length:a,return:""}}function ue(e,t){return K(de("",null,null,"",null,null,0),e,{length:-e.length},t)}function pe(){return le=se>0?Q(ce,--se):0,ie--,10===le&&(ie=1,oe--),le}function he(){return le=se<ae?Q(ce,se++):0,ie++,10===le&&(ie=1,oe++),le}function fe(){return Q(ce,se)}function me(){return se}function be(e,t){return ee(ce,e,t)}function ge(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 ve(e){return oe=ie=1,ae=te(ce=e),se=0,[]}function ye(e){return ce="",e}function xe(e){return X(be(se-1,Ce(91===e?e+2:40===e?e+1:e)))}function Ee(e){for(;(le=fe())&&le<33;)he();return ge(e)>2||ge(le)>3?"":" "}function Se(e,t){for(;--t&&he()&&!(le<48||le>102||le>57&&le<65||le>70&&le<97););return be(e,me()+(t<6&&32==fe()&&32==he()))}function Ce(e){for(;he();)switch(le){case e:return se;case 34:case 39:34!==e&&39!==e&&Ce(le);break;case 40:41===e&&Ce(e);break;case 92:he()}return se}function we(e,t){for(;he()&&e+le!==57&&(e+le!==84||47!==fe()););return"/*"+be(t,se-1)+"*"+q(47===e?e:he())}function Re(e){for(;!ge(fe());)he();return be(e,se)}function ke(e){return ye(Ae("",null,null,null,[""],e=ve(e),0,[0],e))}function Ae(e,t,n,r,o,i,a,s,l){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=r,C=y;b;)switch(f=v,v=he()){case 40:if(108!=f&&58==Q(C,u-1)){-1!=J(C+=Z(xe(v),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=xe(v);break;case 9:case 10:case 13:case 32:C+=Ee(f);break;case 92:C+=Se(me()-1,7);continue;case 47:switch(fe()){case 42:case 47:re(Ie(we(he(),me()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=te(C)*g;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==g&&(C=Z(C,/\f/g,"")),h>0&&te(C)-u&&re(h>32?Te(C+";",r,n,u-1):Te(Z(C," ","")+";",r,n,u-2),l);break;case 59:C+=";";default:if(re(S=_e(C,t,n,c,d,o,s,y,x=[],E=[],u),i),123===v)if(0===d)Ae(C,t,S,S,x,i,u,s,E);else switch(99===p&&110===Q(C,3)?100:p){case 100:case 108:case 109:case 115:Ae(e,S,S,r&&re(_e(e,S,S,0,0,o,s,y,o,x=[],u),E),o,E,u,s,r?x:E);break;default:Ae(C,S,S,S,[""],E,0,s,E)}}c=d=h=0,m=g=1,y=C="",u=a;break;case 58:u=1+te(C),h=f;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==pe())continue;switch(C+=q(v),v*m){case 38:g=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(te(C)-1)*g,g=1;break;case 64:45===fe()&&(C+=xe(he())),p=fe(),d=u=te(y=C+=Re(me())),v++;break;case 45:45===f&&2==te(C)&&(m=0)}}return i}function _e(e,t,n,r,o,i,a,s,l,c,d){for(var u=o-1,p=0===o?i:[""],h=ne(p),f=0,m=0,b=0;f<r;++f)for(var g=0,v=ee(e,u+1,u=V(m=a[f])),y=e;g<h;++g)(y=X(m>0?p[g]+" "+v:Z(v,/&\f/g,p[g])))&&(l[b++]=y);return de(e,t,n,0===o?W:s,l,c,d)}function Ie(e,t,n){return de(e,t,n,H,q(le),ee(e,2,-2),0)}function Te(e,t,n,r){return de(e,t,n,Y,ee(e,0,r),ee(e,r+1,-1),r)}function Le(e,t){for(var n="",r=ne(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Oe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Y:return e.return=e.return||e.value;case H:return"";case U:return e.return=e.value+"{"+Le(e.children,r)+"}";case W:e.value=e.props.join(",")}return te(n=Le(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Me=function(e,t,n){for(var r=0,o=0;r=o,o=fe(),38===r&&12===o&&(t[n]=1),!ge(o);)he();return be(e,se)},je=function(e,t){return ye(function(e,t){var n=-1,r=44;do{switch(ge(r)){case 0:38===r&&12===fe()&&(t[n]=1),e[n]+=Me(se-1,t,n);break;case 2:e[n]+=xe(r);break;case 4:if(44===r){e[++n]=58===fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=q(r)}}while(r=he());return e}(ve(e),t))},Ne=new WeakMap,$e=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ne.get(n))&&!r){Ne.set(e,!0);for(var o=[],i=je(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},ze=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},Be=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},Fe=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},Ge=function(e,t,n){Be(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."),Fe(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!Be(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Fe(e)))};function He(e,t){switch(function(e,t){return 45^Q(e,0)?(((t<<2^Q(e,0))<<2^Q(e,1))<<2^Q(e,2))<<2^Q(e,3):0}(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+F+e+B+e+e;case 6828:case 4268:return G+e+B+e+e;case 6165:return G+e+B+"flex-"+e+e;case 5187:return G+e+Z(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+B+"flex-$1$2")+e;case 5443:return G+e+B+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return G+e+B+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+B+Z(e,"shrink","negative")+e;case 5292:return G+e+B+Z(e,"basis","preferred-size")+e;case 6060:return G+"box-"+Z(e,"-grow","")+G+e+B+Z(e,"grow","positive")+e;case 4554:return G+Z(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+B+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,G+"$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(te(e)-1-t>6)switch(Q(e,t+1)){case 109:if(45!==Q(e,t+4))break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+F+(108==Q(e,t+3)?"$3":"$2-$3"))+e;case 115:return~J(e,"stretch")?He(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Q(e,t+1))break;case 6444:switch(Q(e,te(e)-3-(~J(e,"!important")&&10))){case 107:return Z(e,":",":"+G)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===Q(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(Q(e,t+11)){case 114:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+B+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+B+e+e}return e}var We,Ye=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=He(e.value,e.length);break;case U:return Le([ue(e,{value:Z(e.value,"@","@"+G)})],r);case W: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 Le([ue(e,{props:[Z(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Le([ue(e,{props:[Z(t,/:(plac\w+)/,":"+G+"input-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,":-moz-$1")]}),ue(e,{props:[Z(t,/:(plac\w+)/,B+"input-$1")]})],r)}return""})}}],Ue=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;We=function(e){var t=e.match(Ue);if(t)return t[t.length-1]};var Ve=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 n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r=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={},s=[];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(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l=[$e,ze];l.push(function(e){return function(t,n,r){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:r,a=i.length-1;a>=0;a--){var s=i[a];if(s.line<t.line)break;if(s.column<t.column){if(De(s))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}}),Ge);var c,d=[Oe,function(e){e.root||(e.return?c.insert(e.return):e.value&&e.type!==H&&c.insert(e.value+"{}"))}],u=function(e){var t=ne(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(l.concat(r,d));i=function(e,t,n,r){if(c=n,We){var o=We(t.styles);o&&(c={insert:function(e){n.insert(e+o)}})}!function(e){Le(ke(e),u)}(e?e+"{"+t.styles+"}":t.styles),r&&(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(s),p};function qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ke(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Xe,Ze,Je,Qe,et={exports:{}},tt={};function nt(){return Ze||(Ze=1,et.exports=function(){if(Xe)return tt;Xe=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case u:return e;default:switch(e=e&&e.$$typeof){case s:case d:case f:case h:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return tt.AsyncMode=l,tt.ConcurrentMode=c,tt.ContextConsumer=s,tt.ContextProvider=a,tt.Element=t,tt.ForwardRef=d,tt.Fragment=r,tt.Lazy=f,tt.Memo=h,tt.Portal=n,tt.Profiler=i,tt.StrictMode=o,tt.Suspense=u,tt.isAsyncMode=function(e){return x(e)||y(e)===l},tt.isConcurrentMode=x,tt.isContextConsumer=function(e){return y(e)===s},tt.isContextProvider=function(e){return y(e)===a},tt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},tt.isForwardRef=function(e){return y(e)===d},tt.isFragment=function(e){return y(e)===r},tt.isLazy=function(e){return y(e)===f},tt.isMemo=function(e){return y(e)===h},tt.isPortal=function(e){return y(e)===n},tt.isProfiler=function(e){return y(e)===i},tt.isStrictMode=function(e){return y(e)===o},tt.isSuspense=function(e){return y(e)===u},tt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===d||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v||e.$$typeof===m)},tt.typeOf=y,tt}()),et.exports}!function(){if(Qe)return Je;Qe=1;var e=nt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;Je=function e(t,r,o){if("string"!=typeof r){if(u){var p=d(r);p&&p!==u&&e(t,p,o)}var h=s(r);l&&(h=h.concat(l(r)));for(var f=i(t),m=i(r),b=0;b<h.length;++b){var g=h[b];if(!(n[g]||o&&o[g]||m&&m[g]||f&&f[g])){var v=c(r,g);try{a(t,g,v)}catch(e){}}}}return t}}();function rt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var ot=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},it=function(e,t,n){ot(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var at={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},st="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",lt="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ct=/[A-Z]|^ms/g,dt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ut=function(e){return 45===e.charCodeAt(1)},pt=function(e){return null!=e&&"boolean"!=typeof e},ht=Pe(function(e){return ut(e)?e:e.replace(ct,"-$&").toLowerCase()}),ft=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dt,function(e,t,n){return Ct={name:t,styles:n,next:Ct},t})}return 1===at[e]||ut(e)||"number"!=typeof t||0===t?t:t+"px"},mt=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,bt=["normal","none","initial","inherit","unset"],gt=ft,vt=/^-ms-/,yt=/-(.)/g,xt={};ft=function(e,t){if("content"===e&&("string"!=typeof t||-1===bt.indexOf(t)&&!mt.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 n=gt(e,t);return""===n||ut(e)||-1===e.indexOf("-")||void 0!==xt[e]||(xt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(vt,"ms-").replace(yt,function(e,t){return t.toUpperCase()})+"?")),n};var Et="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function St(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles){if("NO_COMPONENT_SELECTOR"===String(r))throw new Error(Et);return r}switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Ct={name:o.name,styles:o.styles,next:Ct},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ct={name:a.name,styles:a.styles,next:Ct},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=St(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":pt(s)&&(r+=ht(i)+":"+ft(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i)throw new Error(Et);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=St(e,t,a);switch(i){case"animation":case"animationName":r+=ht(i)+":"+l+";";break;default:"undefined"===i&&console.error(lt),r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)pt(a[c])&&(r+=ht(i)+":"+ft(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Ct,l=n(e);return Ct=s,St(e,t,l)}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=n.replace(dt,function(e,t,n){var r="animation"+c.length;return c.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"});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=n;if(null==t)return u;var p=t[u];return void 0!==p?p:u}var Ct,wt=/label:\s*([^\s;{]+)\s*(;|$)/g;function Rt(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ct=void 0;var i=e[0];if(null==i||void 0===i.raw)r=!1,o+=St(n,t,i);else{var a=i;void 0===a[0]&&console.error(st),o+=a[0]}for(var s=1;s<e.length;s++)if(o+=St(n,t,e[s]),r){var l=i;void 0===l[s]&&console.error(st),o+=l[s]}wt.lastIndex=0;for(var c,d="";null!==(c=wt.exec(o));)d+="-"+c[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+d;return{name:u,styles:o,next:Ct,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 kt=!!y.useInsertionEffect&&y.useInsertionEffect,At=kt||function(e){return e()},_t=kt||y.useLayoutEffect,It=y.createContext("undefined"!=typeof HTMLElement?Ve({key:"css"}):null);It.displayName="EmotionCacheContext";var Tt=It.Provider,Lt=function(e){return x(function(t,n){var r=E(It);return e(t,r,n)})},Ot=y.createContext({});Ot.displayName="EmotionThemeContext";var Pt={}.hasOwnProperty,Mt=function(e){var t=e.split(".");return t[t.length-1]},jt=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?Mt(t[1]):void 0},Nt=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),$t=function(e){return e.replace(/\$/g,"-")},zt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Bt=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 n={};for(var r in t)Pt.call(t,r)&&(n[r]=t[r]);if(n[zt]=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"),n=0;n<t.length;n++){var r=jt(t[n]);if(r){if(Nt.has(r))break;if(/^[A-Z]/.test(r))return $t(r)}}}((new Error).stack);o&&(n[Dt]=o)}return n},Ft=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ot(t,n,r),At(function(){return it(t,n,r)}),null},Gt=Lt(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[zt],i=[r],a="";"string"==typeof e.className?a=rt(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Rt(i,void 0,y.useContext(Ot));if(-1===s.name.indexOf("-")){var l=e[Dt];l&&(s=Rt([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var c={};for(var d in e)Pt.call(e,d)&&"css"!==d&&d!==zt&&d!==Dt&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),y.createElement(y.Fragment,null,y.createElement(Ft,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,c))});Gt.displayName="EmotionCssPropInternal";var Ht,Wt,Yt=Gt,Ut=function(e,t){var n=arguments;if(null==t||!Pt.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Yt,o[1]=Bt(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};Ht=Ut||(Ut={}),Wt||(Wt=Ht.JSX||(Ht.JSX={}));var Vt=!1,qt=Lt(function(e,t){!Vt&&("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?"),Vt=!0);var n=Rt([e.styles],void 0,y.useContext(Ot)),r=y.useRef();return _t(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+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}},[t]),_t(function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&it(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}},[t,n.name]),null});function Kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Rt(t)}function Xt(){var e=Kt.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_"}}}qt.displayName="EmotionGlobal";var Zt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];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 s 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[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};var Jt=function(e){var t=e.cache,n=e.serializedArr;return At(function(){for(var e=0;e<n.length;e++)it(t,n[e],!1)}),null},Qt=Lt(function(e,t){var n=!1,r=[],o=function(){if(n)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=Rt(o,t.registered);return r.push(a),ot(t,a,!1),t.key+"-"+a.name},i={css:o,cx:function(){if(n)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],o=rt(e,r,n);return r.length<2?n:o+t(r)}(t.registered,o,Zt(r))},theme:y.useContext(Ot)},a=e.children(i);return n=!0,y.createElement(y.Fragment,null,y.createElement(Jt,{cache:t,serializedArr:r}),a)});Qt.displayName="EmotionClassNames";var en="undefined"!=typeof document,tn="undefined"!=typeof jest||"undefined"!=typeof vi;if(en&&!tn){var nn="undefined"!=typeof globalThis?globalThis:en?window:global,rn="__EMOTION_REACT_"+"11.14.0".split(".")[0]+"__";nn[rn]&&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."),nn[rn]=!0}var on=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,an=Pe(function(e){return on.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),sn=function(e){return"theme"!==e},ln=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?an:sn},cn=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},dn="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",un=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return ot(t,n,r),At(function(){return it(t,n,r)}),null},pn=function e(t,n){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 r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=cn(t,n,i),l=s||ln(a),c=!l("as");return function(){var d=arguments,u=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var p=d[0];void 0===p[0]&&console.error(dn),u.push(p[0]);for(var h=d.length,f=1;f<h;f++)void 0===p[f]&&console.error(dn),u.push(d[f],p[f])}var m=Lt(function(e,t,n){var r=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(Ot)}"string"==typeof e.className?i=rt(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var f=Rt(u.concat(d),t.registered,p);i+=t.key+"-"+f.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?ln(r):l,b={};for(var g in e)c&&"as"===g||m(g)&&(b[g]=e[g]);return b.className=i,n&&(b.ref=n),y.createElement(y.Fragment,null,y.createElement(un,{cache:t,serialized:f,isStringTag:"string"==typeof r}),y.createElement(r,b))});return m.displayName=void 0!==r?r:"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=s,Object.defineProperty(m,"toString",{value:function(){return void 0===o?"NO_COMPONENT_SELECTOR":"."+o}}),m.withComponent=function(t,r){return e(t,$({},n,r,{shouldForwardProp:cn(m,r,!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){pn[e]=pn(e)});var hn,fn,mn={exports:{}},bn={};var gn=(fn||(fn=1,mn.exports=function(){if(hn)return bn;hn=1;var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,d=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:d,props:l,_owner:o.current}}return bn.Fragment=n,bn.jsx=a,bn.jsxs=a,bn}()),mn.exports);const vn=new Map;function yn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return gn.jsx(qt,{styles:r})}
8
8
  /**
9
9
  * @mui/styled-engine v5.18.0
10
10
  *
11
11
  * @license MIT
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */function yr(e,t){return ur(e,t)}const xr=[];function Er(e){return xr[0]=e,Rt(xr)}var Sr=Object.freeze({__proto__:null,GlobalStyles:vr,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:n}=e,o=y.useMemo(()=>{const e=`${t}-${r}`;if("object"==typeof document&&gr.has(e))return gr.get(e);const n=function(e,t){const r=Ue({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 gr.set(e,n),n},[t,r]);return t||r?br.jsx(Tt,{value:o,children:n}):n},ThemeContext:Ot,css:Kt,default:yr,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Er,keyframes:Xt});function Cr(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 wr(e){if(y.isValidElement(e)||!Cr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=wr(e[r])}),t}function Rr(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(o=>{y.isValidElement(t[o])?n[o]=t[o]:Cr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Cr(e[o])?n[o]=Rr(e[o],t[o],r):r.clone?n[o]=Cr(t[o])?wr(t[o]):t[o]:n[o]=t[o]}),n}var kr=Object.freeze({__proto__:null,default:Rr,isPlainObject:Cr});const Ar=["values","unit","step"];function _r(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=z(e,Ar),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 s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(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:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ir={borderRadius:4};function Tr(e,t){return t?Rr(e,t,{clone:!1}):e}const Lr={xs:0,sm:600,md:900,lg:1200,xl:1536},Or={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lr[e]}px)`};function Pr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Or;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||Or;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||Lr).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function Mr(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function jr(e){if("string"!=typeof e)throw new Error(M(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Nr=Object.freeze({__proto__:null,default:jr});function $r(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 zr(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:$r(e,r)||n,t&&(o=t(o,n,e)),o}function Dr(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=$r(e.theme,n)||{};return Pr(e,i,e=>{let n=zr(a,o,e);return e===n&&"string"==typeof e&&(n=zr(a,o,`${t}${"default"===e?"":jr(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Br={m:"margin",p:"padding"},Fr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hr=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Gr[e])return[e];e=Gr[e]}const[t,r]=e.split(""),n=Br[t],o=Fr[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),Wr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Yr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Vr(e,t,r,n){var o;const i=null!=(o=$r(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 Ur(e){return Vr(e,"spacing",8)}function qr(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 Kr(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=qr(t,r),e),{})}(Hr(r),n);return Pr(e,e[r],o)}function Xr(e,t){const r=Ur(e.theme);return Object.keys(e).map(n=>Kr(e,t,n,r)).reduce(Tr,{})}function Zr(e){return Xr(e,Wr)}function Jr(e){return Xr(e,Yr)}function Qr(...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]?Tr(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 tn(e,t){return Dr({prop:e,themeKey:"borders",transform:t})}Zr.propTypes={},Zr.filterProps=Wr,Jr.propTypes={},Jr.filterProps=Yr;const rn=tn("border",en),nn=tn("borderTop",en),on=tn("borderRight",en),an=tn("borderBottom",en),sn=tn("borderLeft",en),ln=tn("borderColor"),cn=tn("borderTopColor"),dn=tn("borderRightColor"),un=tn("borderBottomColor"),pn=tn("borderLeftColor"),hn=tn("outline",en),fn=tn("outlineColor"),mn=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Vr(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:qr(t,e)});return Pr(e,e.borderRadius,r)}return null};mn.propTypes={},mn.filterProps=["borderRadius"],Qr(rn,nn,on,an,sn,ln,cn,dn,un,pn,mn,hn,fn);const bn=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Vr(e.theme,"spacing",8),r=e=>({gap:qr(t,e)});return Pr(e,e.gap,r)}return null};bn.propTypes={},bn.filterProps=["gap"];const gn=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Vr(e.theme,"spacing",8),r=e=>({columnGap:qr(t,e)});return Pr(e,e.columnGap,r)}return null};gn.propTypes={},gn.filterProps=["columnGap"];const vn=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Vr(e.theme,"spacing",8),r=e=>({rowGap:qr(t,e)});return Pr(e,e.rowGap,r)}return null};vn.propTypes={},vn.filterProps=["rowGap"];function yn(e,t){return"grey"===t?t:e}Qr(bn,gn,vn,Dr({prop:"gridColumn"}),Dr({prop:"gridRow"}),Dr({prop:"gridAutoFlow"}),Dr({prop:"gridAutoColumns"}),Dr({prop:"gridAutoRows"}),Dr({prop:"gridTemplateColumns"}),Dr({prop:"gridTemplateRows"}),Dr({prop:"gridTemplateAreas"}),Dr({prop:"gridArea"}));function xn(e){return e<=1&&0!==e?100*e+"%":e}Qr(Dr({prop:"color",themeKey:"palette",transform:yn}),Dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yn}),Dr({prop:"backgroundColor",themeKey:"palette",transform:yn}));const En=Dr({prop:"width",transform:xn}),Sn=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])||Lr[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:xn(t)}};return Pr(e,e.maxWidth,t)}return null};Sn.filterProps=["maxWidth"];const Cn=Dr({prop:"minWidth",transform:xn}),wn=Dr({prop:"height",transform:xn}),Rn=Dr({prop:"maxHeight",transform:xn}),kn=Dr({prop:"minHeight",transform:xn});Dr({prop:"size",cssProperty:"width",transform:xn}),Dr({prop:"size",cssProperty:"height",transform:xn});Qr(En,Sn,Cn,wn,Rn,kn,Dr({prop:"boxSizing"}));const An={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:mn},color:{themeKey:"palette",transform:yn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yn},backgroundColor:{themeKey:"palette",transform:yn},p:{style:Jr},pt:{style:Jr},pr:{style:Jr},pb:{style:Jr},pl:{style:Jr},px:{style:Jr},py:{style:Jr},padding:{style:Jr},paddingTop:{style:Jr},paddingRight:{style:Jr},paddingBottom:{style:Jr},paddingLeft:{style:Jr},paddingX:{style:Jr},paddingY:{style:Jr},paddingInline:{style:Jr},paddingInlineStart:{style:Jr},paddingInlineEnd:{style:Jr},paddingBlock:{style:Jr},paddingBlockStart:{style:Jr},paddingBlockEnd:{style:Jr},m:{style:Zr},mt:{style:Zr},mr:{style:Zr},mb:{style:Zr},ml:{style:Zr},mx:{style:Zr},my:{style:Zr},margin:{style:Zr},marginTop:{style:Zr},marginRight:{style:Zr},marginBottom:{style:Zr},marginLeft:{style:Zr},marginX:{style:Zr},marginY:{style:Zr},marginInline:{style:Zr},marginInlineStart:{style:Zr},marginInlineEnd:{style:Zr},marginBlock:{style:Zr},marginBlockStart:{style:Zr},marginBlockEnd:{style:Zr},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:vn},columnGap:{style:gn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xn},maxWidth:{style:Sn},minWidth:{transform:xn},height:{transform:xn},maxHeight:{transform:xn},minHeight:{transform:xn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _n(){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:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=$r(r,s)||{};if(c)return c(o);return Pr(o,t,t=>{let r=zr(d,l,t);return t===r&&"string"==typeof t&&(r=zr(d,l,`${e}${"default"===t?"":jr(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 s=null!=(n=i.unstable_sxConfig)?n:An;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 c=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=Tr(c,e(r,o,i,s));else{const e=Pr({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=Tr(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=Tr(c,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":Mr(l,c)}:Mr(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const In=_n();function Tn(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:{}}In.filterProps=["sx"];const Ln=["breakpoints","palette","spacing","shape"];function On(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=z(e,Ln),s=_r(r),l=function(e=8){if(e.mui)return e;const t=Ur({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=Rr({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},Ir,i)},a);return c.applyStyles=Tn,c=t.reduce((e,t)=>Rr(e,t),c),c.unstable_sxConfig=$({},An,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return In({sx:e,theme:this})},c}var Pn=Object.freeze({__proto__:null,default:On,private_createBreakpoints:_r,unstable_applyStyles:Tn});function Mn(e=null){const t=y.useContext(Ot);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const jn=On();function Nn(e=jn){return Mn(e)}function $n(e){const t=Er(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zn({styles:e,themeId:t,defaultTheme:r={}}){const n=Nn(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>$n("function"==typeof e?e(o):e)):$n(i)),br.jsx(vr,{styles:i})}const Dn=["sx"];function Bn(e){const{sx:t}=e,r=z(e,Dn),{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:An;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 Cr(r)?$({},n,r):n}:$({},n,t),$({},o,{sx:i})}var Fn=Object.freeze({__proto__:null,default:In,extendSxProp:Bn,unstable_createStyleFunctionSx:_n,unstable_defaultSxConfig:An});const Gn=e=>e,Hn=(()=>{let e=Gn;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gn}}})();function Wn(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=Wn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Yn(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Wn(e))&&(n&&(n+=" "),n+=t);return n}const Vn=["className","component"];const Un={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 qn(e,t,r="Mui"){const n=Un[t];return n?`${r}-${n}`:`${Hn.generate(e)}-${t}`}function Kn(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=qn(e,t,r)}),n}var Xn,Zn,Jn={exports:{}},Qn={};function eo(){if(Xn)return Qn;Xn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case r:case o:case n:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return Qn.ContextConsumer=i,Qn.ContextProvider=a,Qn.Element=e,Qn.ForwardRef=s,Qn.Fragment=r,Qn.Lazy=u,Qn.Memo=d,Qn.Portal=t,Qn.Profiler=o,Qn.StrictMode=n,Qn.Suspense=l,Qn.SuspenseList=c,Qn.isContextConsumer=function(e){return f(e)===i},Qn.isContextProvider=function(e){return f(e)===a},Qn.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qn.isForwardRef=function(e){return f(e)===s},Qn.isFragment=function(e){return f(e)===r},Qn.isLazy=function(e){return f(e)===u},Qn.isMemo=function(e){return f(e)===d},Qn.isPortal=function(e){return f(e)===t},Qn.isProfiler=function(e){return f(e)===o},Qn.isStrictMode=function(e){return f(e)===n},Qn.isSuspense=function(e){return f(e)===l},Qn.isSuspenseList=function(e){return f(e)===c},Qn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Qn.typeOf=f,Qn}function to(){return Zn||(Zn=1,Jn.exports=eo()),Jn.exports}var ro=to();const no=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oo(e){const t=`${e}`.match(no);return t&&t[1]||""}function io(e,t=""){return e.displayName||e.name||oo(e)||t}function ao(e,t,r){const n=io(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var so=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return io(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ro.ForwardRef:return ao(e,e.render,"ForwardRef");case ro.Memo:return ao(e,e.type,"memo");default:return}}},getFunctionName:oo});function lo(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]=lo(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const co="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function uo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var po=Object.freeze({__proto__:null,default:uo});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(M(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(M(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function fo(e,t){return e=ho(e),t=function(e,t=0,r=1){return uo(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 mo(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function bo(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function go(e){return e&&e.ownerDocument||document}function vo(e){return go(e).defaultView||window}function yo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let xo=0;const Eo=y["useId".toString()];function So(e){if(void 0!==Eo){return Eo()}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect(()=>{null==t&&(xo+=1,r(`mui-${xo}`))},[t]),n}(e)}function Co(e){const t=y.useRef(e);return co(()=>{t.current=e}),y.useRef((...e)=>(0,t.current)(...e)).current}function wo(...e){return y.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{yo(e,t)})},e)}const Ro={};const ko=[];class Ao{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ao}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function _o(){const e=function(e,t){const r=y.useRef(Ro);return r.current===Ro&&(r.current=e(t)),r}(Ao.create).current;return function(e){y.useEffect(e,ko)}(e.disposeEffect),e}let Io=!0,To=!1;const Lo=new Ao,Oo={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 Po(e){e.metaKey||e.altKey||e.ctrlKey||(Io=!0)}function Mo(){Io=!1}function jo(){"hidden"===this.visibilityState&&To&&(Io=!0)}function No(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Io||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Oo[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function $o(){const e=y.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Po,!0),t.addEventListener("mousedown",Mo,!0),t.addEventListener("pointerdown",Mo,!0),t.addEventListener("touchstart",Mo,!0),t.addEventListener("visibilitychange",jo,!0))},[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!No(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(To=!0,Lo.start(100,()=>{To=!1}),t.current=!1,!0)},ref:e}}function zo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Do;function Bo(){if(Do)return Do;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),Do="reverse",e.scrollLeft>0?Do="default":(e.scrollLeft=1,0===e.scrollLeft&&(Do="negative")),document.body.removeChild(e),Do}function Fo(e,t){const r=e.scrollLeft;if("rtl"!==t)return r;switch(Bo()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function Go(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 Ho(e){return"string"==typeof e}function Wo(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 Yo(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 Vo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Uo(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=z(e,Vo),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Yn(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=Wo($({},o,n)),s=Yo(n),l=Yo(o),c=t(a),d=Yn(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,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}($({},a,{externalSlotProps:s})),d=function(e,t,r){return void 0===e||Ho(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}(r,$({},l,{ref:wo(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function qo(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 Ko=y.createContext(null);function Xo(){return y.useContext(Ko)}var Zo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Jo(e){const{children:t,theme:r}=e,n=Xo(),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[Zo]=null!==n),e},[r,n]);return br.jsx(Ko.Provider,{value:o,children:t})}const Qo=["value"],ei=y.createContext();function ti(e){let{value:t}=e,r=z(e,Qo);return br.jsx(ei.Provider,$({value:null==t||t},r))}const ri=()=>{const e=y.useContext(ei);return null!=e&&e},ni=y.createContext(void 0);function oi({value:e,children:t}){return br.jsx(ni.Provider,{value:e,children:t})}function ii({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?lo(o.defaultProps,n):o.styleOverrides||o.variants?n:lo(o,n)}({props:e,name:t,theme:{components:y.useContext(ni)}})}const ai={};function si(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 li(e){const{children:t,theme:r,themeId:n}=e,o=Mn(ai),i=Xo()||ai,a=si(n,o,r),s=si(n,i,r,!0),l="rtl"===a.direction,c=function(e){const t=Mn(),r=So()||"",{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};`:"",co(()=>{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(zn,{styles:o}):null}(a);return br.jsx(Jo,{theme:s,children:br.jsx(Ot.Provider,{value:a,children:br.jsx(ti,{value:l,children:br.jsxs(oi,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ci,di={},ui={exports:{}};function pi(){return ci||(ci=1,(e=ui).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ui.exports;var e}var hi,fi=Ke(j),mi=Ke(po);function bi(){if(hi)return di;hi=1;var e=pi();Object.defineProperty(di,"__esModule",{value:!0}),di.alpha=d,di.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},di.colorChannel=void 0,di.darken=u,di.decomposeColor=i,di.emphasize=h,di.getContrastRatio=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},di.getLuminance=c,di.hexToRgb=o,di.hslToRgb=l,di.lighten=p,di.private_safeAlpha=function(e,t,r){try{return d(e,t)}catch(t){return e}},di.private_safeColorChannel=void 0,di.private_safeDarken=function(e,t,r){try{return u(e,t)}catch(t){return e}},di.private_safeEmphasize=function(e,t,r){try{return h(e,t)}catch(t){return e}},di.private_safeLighten=function(e,t,r){try{return p(e,t)}catch(t){return e}},di.recomposeColor=s,di.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(fi),r=e(mi);function n(e,t=0,n=1){return(0,r.default)(e,t,n)}function o(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 i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const r=e.indexOf("("),n=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,t.default)(9,e));let a,s=e.substring(r+1,e.length-1);if("color"===n){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:n,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};di.colorChannel=a;function s(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 l(e){e=i(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){return e=i(e),t=n(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=n(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 s(e)}function p(e,t){if(e=i(e),t=n(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 s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return di.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},di}var gi=bi();const yi={black:"#000",white:"#fff"},xi={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"},Ei="#f3e5f5",Si="#ce93d8",Ci="#ba68c8",wi="#ab47bc",Ri="#9c27b0",ki="#7b1fa2",Ai="#e57373",_i="#ef5350",Ii="#f44336",Ti="#d32f2f",Li="#c62828",Oi="#ffb74d",Pi="#ffa726",Mi="#ff9800",ji="#f57c00",Ni="#e65100",$i="#e3f2fd",zi="#90caf9",Di="#42a5f5",Bi="#1976d2",Fi="#1565c0",Gi="#4fc3f7",Hi="#29b6f6",Wi="#03a9f4",Yi="#0288d1",Vi="#01579b",Ui="#81c784",qi="#66bb6a",Ki="#4caf50",Xi="#388e3c",Zi="#2e7d32",Ji="#1b5e20",Qi=["mode","contrastThreshold","tonalOffset"],ea={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:yi.white,default:yi.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}},ta={text:{primary:yi.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:yi.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 ra(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=gi.lighten(e.main,o):"dark"===t&&(e.dark=gi.darken(e.main,i)))}function na(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=z(e,Qi),i=e.primary||function(e="light"){return"dark"===e?{main:zi,light:$i,dark:Di}:{main:Bi,light:Di,dark:Fi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Si,light:Ei,dark:wi}:{main:Ri,light:Ci,dark:ki}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ii,light:Ai,dark:Ti}:{main:Ti,light:_i,dark:Li}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Hi,light:Gi,dark:Yi}:{main:Yi,light:Wi,dark:Vi}}(t),c=e.success||function(e="light"){return"dark"===e?{main:qi,light:Ui,dark:Xi}:{main:Zi,light:Ki,dark:Ji}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Pi,light:Oi,dark:ji}:{main:"#ed6c02",light:Mi,dark:Ni}}(t);function u(e){return gi.getContrastRatio(e,ta.text.primary)>=r?ta.text.primary:ea.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(M(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(M(12,t?` (${t})`:"",JSON.stringify(e.main)));return ra(e,"light",o,n),ra(e,"dark",i,n),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ta,light:ea};return Rr($({common:$({},yi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:xi,contrastThreshold:r,getContrastText:u,augmentColor:p,tonalOffset:n},h[t]),o)}const oa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ia={textTransform:"uppercase"},aa='"Roboto", "Helvetica", "Arial", sans-serif';function sa(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=aa,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=r,p=z(r,oa),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===aa?{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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ia),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ia),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Rr($({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function la(...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 ca=["none",la(0,2,1,-1,0,1,1,0,0,1,3,0),la(0,3,1,-2,0,2,2,0,0,1,5,0),la(0,3,3,-2,0,3,4,0,0,1,8,0),la(0,2,4,-1,0,4,5,0,0,1,10,0),la(0,3,5,-1,0,5,8,0,0,1,14,0),la(0,3,5,-1,0,6,10,0,0,1,18,0),la(0,4,5,-2,0,7,10,1,0,2,16,1),la(0,5,5,-3,0,8,10,1,0,3,14,2),la(0,5,6,-3,0,9,12,1,0,3,16,2),la(0,6,6,-3,0,10,14,1,0,4,18,3),la(0,6,7,-4,0,11,15,1,0,4,20,3),la(0,7,8,-4,0,12,17,2,0,5,22,4),la(0,7,8,-4,0,13,19,2,0,5,24,4),la(0,7,9,-4,0,14,21,2,0,5,26,4),la(0,8,9,-5,0,15,22,2,0,6,28,5),la(0,8,10,-5,0,16,24,2,0,6,30,5),la(0,8,11,-5,0,17,26,2,0,6,32,5),la(0,9,11,-5,0,18,28,2,0,7,34,6),la(0,9,12,-6,0,19,29,2,0,7,36,6),la(0,10,13,-6,0,20,31,3,0,8,38,7),la(0,10,13,-6,0,21,33,3,0,8,40,7),la(0,10,14,-6,0,22,35,3,0,8,42,7),la(0,11,14,-7,0,23,36,3,0,9,44,8),la(0,11,15,-7,0,24,38,3,0,9,46,8)],da=["duration","easing","delay"],ua={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)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ha(e){return`${Math.round(e)}ms`}function fa(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ma(e){const t=$({},ua,e.easing),r=$({},pa,e.duration);return $({getAutoHeightDuration:fa,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return z(n,da),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ha(o)} ${i} ${"string"==typeof a?a:ha(a)}`).join(",")}},e,{easing:t,duration:r})}const ba={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ga=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function va(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=z(e,ga);if(e.vars&&void 0===e.generateCssVars)throw new Error(M(18));const s=na(n),l=On(e);let c=Rr(l,{mixins:(d=l.breakpoints,u=r,$({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ca.slice(),typography:sa(s,i),transitions:ma(o),zIndex:$({},ba)});var d,u;return c=Rr(c,a),c=t.reduce((e,t)=>Rr(e,t),c),c.unstable_sxConfig=$({},An,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return In({sx:e,theme:this})},c}const ya=va();function xa(){const e=Nn(ya);return e[N]||e}var Ea,Sa={},Ca={exports:{}};var wa,Ra={exports:{}};var ka,Aa=Ke(Sr),_a=Ke(kr),Ia=Ke(Nr),Ta=Ke(so),La=Ke(Pn),Oa=Ke(Fn);function Pa(){if(ka)return Sa;ka=1;var e=pi();Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,r.default)({},e,{theme:b((0,r.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,S=(0,n.default)(s,d),C=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let k=p;"Root"===f||"root"===f?k=l:f?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const A=(0,o.default)(e,(0,r.default)({shouldForwardProp:k,label:void 0},S)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?n=>{const o=b({theme:n.theme,defaultTheme:a,themeId:t});return v(e,(0,r.default)({},n,{theme:o}),o.modularCssLayers?C:void 0)}:e,I=(n,...o)=>{let i=_(n);const s=o?o.map(_):[];h&&E&&s.push(e=>{const n=b((0,r.default)({},e,{defaultTheme:a,themeId:t}));if(!n.components||!n.components[h]||!n.components[h].styleOverrides)return null;const o=n.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,r.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var n;const o=b((0,r.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(n=o.components)||null==(n=n[h])?void 0:n.variants},(0,r.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const c=A(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(I.withConfig=A.withConfig),I}},Sa.shouldForwardProp=p,Sa.systemDefaultTheme=void 0;var t,r=e((Ea||(Ea=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}(Ca)),Ca.exports)),n=e((wa||(wa=1,(t=Ra).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},t.exports.__esModule=!0,t.exports.default=t.exports),Ra.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(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}(Aa),i=_a;e(Ia),e(Ta);var a=e(La),s=e(Oa);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Sa.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function g(e){return e?(t,r)=>r[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,n.default)(t,l);const d="function"==typeof e?e((0,r.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,r.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,n.default)(d,c);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,r.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(t)||(t=[t]);const n="function"==typeof e.style?e.style((0,r.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(n),i):n)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Sa}const Ma=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ja=qe(Pa())({themeId:N,defaultTheme:ya,rootShouldForwardProp:Ma}),Na=["theme"];function $a(e){let{theme:t}=e,r=z(e,Na);const n=t[N];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=$({},n,{vars:null}):t&&!t.vars&&(o=$({},t,{vars:null}))),br.jsx(li,$({},r,{themeId:n?N:void 0,theme:o}))}const za=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Da={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)"},Ba=12,Fa=14,Ga=16,Ha=24,Wa=3,Ya=300,Va=400,Ua=600,qa=700,Ka={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Xa(e){return ii(e)}function Za(e){return qn("MuiSvgIcon",e)}Kn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ja=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qa=ja("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${jr(r.color)}`],t[`fontSize${jr(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,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==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,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]}}),es=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=r,p=z(r,Ja),h=y.isValidElement(n)&&"svg"===n.type,f=$({},r,{color:i,component:a,fontSize:s,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 Go({root:["root","inherit"!==t&&`color${jr(t)}`,`fontSize${jr(r)}`]},Za,n)})(f);return br.jsxs(Qa,$({as:a,className:Yn(b.root,o),focusable:"false",color:l,"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 ts(e,t){function r(r,n){return br.jsx(es,$({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=es.muiName,y.memo(y.forwardRef(r))}function rs(e,t){return rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rs(e,t)}function ns(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rs(e,t)}es.muiName="SvgIcon";var os=!1,is=S.createContext(null),as="unmounted",ss="exited",ls="entering",cs="entered",ds="exiting",us=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=ss,n.appearStatus=ls):o=cs:o=t.unmountOnExit||t.mountOnEnter?as:ss,n.state={status:o},n.nextCallback=null,n}ns(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===as?{status:ss}: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!==ls&&r!==cs&&(t=ls):r!==ls&&r!==cs||(t=ds)}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===ls){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===ss&&this.setState({status:as})},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],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||os?this.safeSetState({status:cs},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ls},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:cs},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&&!os?(this.props.onExit(n),this.safeSetState({status:ds},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:ss},function(){e.props.onExited(n)})})})):this.safeSetState({status:ss},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===as)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 S.createElement(is.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function ps(){}function hs(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 fs(e,t,r){return null!=r[t]?r[t]:e.props[t]}function ms(e,t,r){var n=hs(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 s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var c=o[l][n];s[o[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=w(a,{onExited:r.bind(null,a),in:c.props.in,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:r.bind(null,a),in:!0,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})}}),o}us.contextType=is,us.propTypes={},us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps},us.UNMOUNTED=as,us.EXITED=ss,us.ENTERING=ls,us.ENTERED=cs,us.EXITING=ds;var bs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gs=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}ns(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,hs(r.children,function(e){return w(e,{onExited:n.bind(null,e),in:!0,appear:fs(e,"appear",r),enter:fs(e,"enter",r),exit:fs(e,"exit",r)})})):ms(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=hs(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=bs(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(is.Provider,{value:o},i):S.createElement(is.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);gs.propTypes={},gs.defaultProps={component:"div",childFactory:function(e){return e}};const vs=e=>e.scrollTop;function ys(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 xs(e){return qn("MuiPaper",e)}Kn("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 Es=["className","component","elevation","square","variant"],Ss=ja("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.alpha("#fff",za(t.elevation))}, ${gi.alpha("#fff",za(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Cs=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=z(r,Es),c=$({},r,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Go({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},xs,o)})(c);return br.jsx(Ss,$({as:o,ownerState:c,className:Yn(d.root,n),ref:t},l))});const ws=Kn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rs=["center","classes","className"];let ks,As,_s,Is,Ts=e=>e;const Ls=Xt(ks||(ks=Ts`
14
+ */function xn(e,t){return pn(e,t)}const En=[];function Sn(e){return En[0]=e,Rt(En)}var Cn=Object.freeze({__proto__:null,GlobalStyles:yn,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,o=y.useMemo(()=>{const e=`${t}-${n}`;if("object"==typeof document&&vn.has(e))return vn.get(e);const r=function(e,t){const n=Ve({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,n);return vn.set(e,r),r},[t,n]);return t||n?gn.jsx(Tt,{value:o,children:r}):r},ThemeContext:Ot,css:Kt,default:xn,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Sn,keyframes:Xt});function wn(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 Rn(e){if(y.isValidElement(e)||!wn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Rn(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return wn(e)&&wn(t)&&Object.keys(t).forEach(o=>{y.isValidElement(t[o])?r[o]=t[o]:wn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wn(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=wn(t[o])?Rn(t[o]):t[o]:r[o]=t[o]}),r}var An=Object.freeze({__proto__:null,default:kn,isPlainObject:wn});const _n=["values","unit","step"];function In(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=z(e,_n),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 s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return $({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Tn={borderRadius:4};function Ln(e,t){return t?kn(e,t,{clone:!1}):e}const On={xs:0,sm:600,md:900,lg:1200,xl:1536},Pn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${On[e]}px)`};function Mn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pn;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||Pn;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||On).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function jn(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Nn(e){if("string"!=typeof e)throw new Error(M(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $n=Object.freeze({__proto__:null,default:Nn});function zn(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Dn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:zn(e,n)||r,t&&(o=t(o,r,e)),o}function Bn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=zn(e.theme,r)||{};return Mn(e,i,e=>{let r=Dn(a,o,e);return e===r&&"string"==typeof e&&(r=Dn(a,o,`${t}${"default"===e?"":Nn(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const Fn={m:"margin",p:"padding"},Gn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Hn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Hn[e])return[e];e=Hn[e]}const[t,n]=e.split(""),r=Fn[t],o=Gn[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),Yn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Un=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Vn(e,t,n,r){var o;const i=null!=(o=zn(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function qn(e){return Vn(e,"spacing",8)}function Kn(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Xn(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Kn(t,n),e),{})}(Wn(n),r);return Mn(e,e[n],o)}function Zn(e,t){const n=qn(e.theme);return Object.keys(e).map(r=>Xn(e,t,r,n)).reduce(Ln,{})}function Jn(e){return Zn(e,Yn)}function Qn(e){return Zn(e,Un)}function er(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?Ln(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function tr(e){return"number"!=typeof e?e:`${e}px solid`}function nr(e,t){return Bn({prop:e,themeKey:"borders",transform:t})}Jn.propTypes={},Jn.filterProps=Yn,Qn.propTypes={},Qn.filterProps=Un;const rr=nr("border",tr),or=nr("borderTop",tr),ir=nr("borderRight",tr),ar=nr("borderBottom",tr),sr=nr("borderLeft",tr),lr=nr("borderColor"),cr=nr("borderTopColor"),dr=nr("borderRightColor"),ur=nr("borderBottomColor"),pr=nr("borderLeftColor"),hr=nr("outline",tr),fr=nr("outlineColor"),mr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Vn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Kn(t,e)});return Mn(e,e.borderRadius,n)}return null};mr.propTypes={},mr.filterProps=["borderRadius"],er(rr,or,ir,ar,sr,lr,cr,dr,ur,pr,mr,hr,fr);const br=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Vn(e.theme,"spacing",8),n=e=>({gap:Kn(t,e)});return Mn(e,e.gap,n)}return null};br.propTypes={},br.filterProps=["gap"];const gr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Vn(e.theme,"spacing",8),n=e=>({columnGap:Kn(t,e)});return Mn(e,e.columnGap,n)}return null};gr.propTypes={},gr.filterProps=["columnGap"];const vr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Vn(e.theme,"spacing",8),n=e=>({rowGap:Kn(t,e)});return Mn(e,e.rowGap,n)}return null};vr.propTypes={},vr.filterProps=["rowGap"];function yr(e,t){return"grey"===t?t:e}er(br,gr,vr,Bn({prop:"gridColumn"}),Bn({prop:"gridRow"}),Bn({prop:"gridAutoFlow"}),Bn({prop:"gridAutoColumns"}),Bn({prop:"gridAutoRows"}),Bn({prop:"gridTemplateColumns"}),Bn({prop:"gridTemplateRows"}),Bn({prop:"gridTemplateAreas"}),Bn({prop:"gridArea"}));function xr(e){return e<=1&&0!==e?100*e+"%":e}er(Bn({prop:"color",themeKey:"palette",transform:yr}),Bn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yr}),Bn({prop:"backgroundColor",themeKey:"palette",transform:yr}));const Er=Bn({prop:"width",transform:xr}),Sr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||On[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:xr(t)}};return Mn(e,e.maxWidth,t)}return null};Sr.filterProps=["maxWidth"];const Cr=Bn({prop:"minWidth",transform:xr}),wr=Bn({prop:"height",transform:xr}),Rr=Bn({prop:"maxHeight",transform:xr}),kr=Bn({prop:"minHeight",transform:xr});Bn({prop:"size",cssProperty:"width",transform:xr}),Bn({prop:"size",cssProperty:"height",transform:xr});er(Er,Sr,Cr,wr,Rr,kr,Bn({prop:"boxSizing"}));const Ar={border:{themeKey:"borders",transform:tr},borderTop:{themeKey:"borders",transform:tr},borderRight:{themeKey:"borders",transform:tr},borderBottom:{themeKey:"borders",transform:tr},borderLeft:{themeKey:"borders",transform:tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:mr},color:{themeKey:"palette",transform:yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yr},backgroundColor:{themeKey:"palette",transform:yr},p:{style:Qn},pt:{style:Qn},pr:{style:Qn},pb:{style:Qn},pl:{style:Qn},px:{style:Qn},py:{style:Qn},padding:{style:Qn},paddingTop:{style:Qn},paddingRight:{style:Qn},paddingBottom:{style:Qn},paddingLeft:{style:Qn},paddingX:{style:Qn},paddingY:{style:Qn},paddingInline:{style:Qn},paddingInlineStart:{style:Qn},paddingInlineEnd:{style:Qn},paddingBlock:{style:Qn},paddingBlockStart:{style:Qn},paddingBlockEnd:{style:Qn},m:{style:Jn},mt:{style:Jn},mr:{style:Jn},mb:{style:Jn},ml:{style:Jn},mx:{style:Jn},my:{style:Jn},margin:{style:Jn},marginTop:{style:Jn},marginRight:{style:Jn},marginBottom:{style:Jn},marginLeft:{style:Jn},marginX:{style:Jn},marginY:{style:Jn},marginInline:{style:Jn},marginInlineStart:{style:Jn},marginInlineEnd:{style:Jn},marginBlock:{style:Jn},marginBlockStart:{style:Jn},marginBlockEnd:{style:Jn},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:br},rowGap:{style:vr},columnGap:{style:gr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xr},maxWidth:{style:Sr},minWidth:{transform:xr},height:{transform:xr},maxHeight:{transform:xr},minHeight:{transform:xr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function _r(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const d=zn(n,s)||{};if(c)return c(o);return Mn(o,t,t=>{let n=Dn(d,l,t);return t===n&&"string"==typeof t&&(n=Dn(d,l,`${e}${"default"===t?"":Nn(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:Ar;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=Ln(c,e(n,o,i,s));else{const e=Mn({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=Ln(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=Ln(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":jn(l,c)}:jn(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const Ir=_r();function Tr(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Ir.filterProps=["sx"];const Lr=["breakpoints","palette","spacing","shape"];function Or(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=z(e,Lr),s=In(n),l=function(e=8){if(e.mui)return e;const t=qn({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=kn({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:l,shape:$({},Tn,i)},a);return c.applyStyles=Tr,c=t.reduce((e,t)=>kn(e,t),c),c.unstable_sxConfig=$({},Ar,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ir({sx:e,theme:this})},c}var Pr=Object.freeze({__proto__:null,default:Or,private_createBreakpoints:In,unstable_applyStyles:Tr});function Mr(e=null){const t=y.useContext(Ot);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const jr=Or();function Nr(e=jr){return Mr(e)}function $r(e){const t=Sn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function zr({styles:e,themeId:t,defaultTheme:n={}}){const r=Nr(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>$r("function"==typeof e?e(o):e)):$r(i)),gn.jsx(yn,{styles:i})}const Dr=["sx"];function Br(e){const{sx:t}=e,n=z(e,Dr),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ar;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return wn(n)?$({},r,n):r}:$({},r,t),$({},o,{sx:i})}var Fr=Object.freeze({__proto__:null,default:Ir,extendSxProp:Br,unstable_createStyleFunctionSx:_r,unstable_defaultSxConfig:Ar});const Gr=e=>e,Hr=(()=>{let e=Gr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Gr}}})();function Wr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Wr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Wr(e))&&(r&&(r+=" "),r+=t);return r}const Ur=["className","component"];const Vr={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 qr(e,t,n="Mui"){const r=Vr[t];return r?`${n}-${r}`:`${Hr.generate(e)}-${t}`}function Kr(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=qr(e,t,n)}),r}var Xr,Zr,Jr={exports:{}},Qr={};function eo(){if(Xr)return Qr;Xr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var f=h.$$typeof;switch(f){case e:switch(h=h.type){case n:case o:case r:case l:case c:case p:return h;default:switch(h=h&&h.$$typeof){case a:case s:case u:case d:case i:return h;default:return f}}case t:return f}}}return Qr.ContextConsumer=i,Qr.ContextProvider=a,Qr.Element=e,Qr.ForwardRef=s,Qr.Fragment=n,Qr.Lazy=u,Qr.Memo=d,Qr.Portal=t,Qr.Profiler=o,Qr.StrictMode=r,Qr.Suspense=l,Qr.SuspenseList=c,Qr.isContextConsumer=function(e){return f(e)===i},Qr.isContextProvider=function(e){return f(e)===a},Qr.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qr.isForwardRef=function(e){return f(e)===s},Qr.isFragment=function(e){return f(e)===n},Qr.isLazy=function(e){return f(e)===u},Qr.isMemo=function(e){return f(e)===d},Qr.isPortal=function(e){return f(e)===t},Qr.isProfiler=function(e){return f(e)===o},Qr.isStrictMode=function(e){return f(e)===r},Qr.isSuspense=function(e){return f(e)===l},Qr.isSuspenseList=function(e){return f(e)===c},Qr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Qr.typeOf=f,Qr}function to(){return Zr||(Zr=1,Jr.exports=eo()),Jr.exports}var no=to();const ro=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oo(e){const t=`${e}`.match(ro);return t&&t[1]||""}function io(e,t=""){return e.displayName||e.name||oo(e)||t}function ao(e,t,n){const r=io(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var so=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return io(e,"Component");if("object"==typeof e)switch(e.$$typeof){case no.ForwardRef:return ao(e,e.render,"ForwardRef");case no.Memo:return ao(e,e.type,"memo");default:return}}},getFunctionName:oo});function lo(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=$({},i),Object.keys(o).forEach(e=>{n[r][e]=lo(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const co="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function uo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var po=Object.freeze({__proto__:null,default:uo});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 n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(M(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(M(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function fo(e,t){return e=ho(e),t=function(e,t=0,n=1){return uo(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function mo(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function bo(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function go(e){return e&&e.ownerDocument||document}function vo(e){return go(e).defaultView||window}function yo(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let xo=0;const Eo=y["useId".toString()];function So(e){if(void 0!==Eo){return Eo()}return function(e){const[t,n]=y.useState(e),r=e||t;return y.useEffect(()=>{null==t&&(xo+=1,n(`mui-${xo}`))},[t]),r}(e)}function Co(e){const t=y.useRef(e);return co(()=>{t.current=e}),y.useRef((...e)=>(0,t.current)(...e)).current}function wo(...e){return y.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{yo(e,t)})},e)}const Ro={};const ko=[];class Ao{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ao}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function _o(){const e=function(e,t){const n=y.useRef(Ro);return n.current===Ro&&(n.current=e(t)),n}(Ao.create).current;return function(e){y.useEffect(e,ko)}(e.disposeEffect),e}let Io=!0,To=!1;const Lo=new Ao,Oo={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 Po(e){e.metaKey||e.altKey||e.ctrlKey||(Io=!0)}function Mo(){Io=!1}function jo(){"hidden"===this.visibilityState&&To&&(Io=!0)}function No(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Io||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Oo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function $o(){const e=y.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Po,!0),t.addEventListener("mousedown",Mo,!0),t.addEventListener("pointerdown",Mo,!0),t.addEventListener("touchstart",Mo,!0),t.addEventListener("visibilitychange",jo,!0))},[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!No(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(To=!0,Lo.start(100,()=>{To=!1}),t.current=!1,!0)},ref:e}}function zo(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Do;function Bo(){if(Do)return Do;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),Do="reverse",e.scrollLeft>0?Do="default":(e.scrollLeft=1,0===e.scrollLeft&&(Do="negative")),document.body.removeChild(e),Do}function Fo(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Bo()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Go(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function Ho(e){return"string"==typeof e}function Wo(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Yo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const Uo=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Vo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=z(e,Uo),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Yr(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=$({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=$({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Wo($({},o,r)),s=Yo(r),l=Yo(o),c=t(a),d=Yr(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),u=$({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=$({},c,n,l,s);return d.length>0&&(p.className=d),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:c.ref}}($({},a,{externalSlotProps:s})),d=function(e,t,n){return void 0===e||Ho(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}(n,$({},l,{ref:wo(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return d}function qo(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 Ko=y.createContext(null);function Xo(){return y.useContext(Ko)}var Zo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Jo(e){const{children:t,theme:n}=e,r=Xo(),o=y.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return $({},e,t)}(r,n);return null!=e&&(e[Zo]=null!==r),e},[n,r]);return gn.jsx(Ko.Provider,{value:o,children:t})}const Qo=["value"],ei=y.createContext();function ti(e){let{value:t}=e,n=z(e,Qo);return gn.jsx(ei.Provider,$({value:null==t||t},n))}const ni=()=>{const e=y.useContext(ei);return null!=e&&e},ri=y.createContext(void 0);function oi({value:e,children:t}){return gn.jsx(ri.Provider,{value:e,children:t})}function ii({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?lo(o.defaultProps,r):o.styleOverrides||o.variants?r:lo(o,r)}({props:e,name:t,theme:{components:y.useContext(ri)}})}const ai={};function si(e,t,n,r=!1){return y.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?$({},t,{[e]:i}):i;return r?()=>a:a}return $({},t,e?{[e]:n}:n)},[e,t,n,r])}function li(e){const{children:t,theme:n,themeId:r}=e,o=Mr(ai),i=Xo()||ai,a=si(r,o,n),s=si(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=Mr(),n=So()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",co(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?gn.jsx(zr,{styles:o}):null}(a);return gn.jsx(Jo,{theme:s,children:gn.jsx(Ot.Provider,{value:a,children:gn.jsx(ti,{value:l,children:gn.jsxs(oi,{value:null==a?void 0:a.components,children:[c,t]})})})})}var ci,di={},ui={exports:{}};function pi(){return ci||(ci=1,(e=ui).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ui.exports;var e}var hi,fi=Ke(j),mi=Ke(po);function bi(){if(hi)return di;hi=1;var e=pi();Object.defineProperty(di,"__esModule",{value:!0}),di.alpha=d,di.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},di.colorChannel=void 0,di.darken=u,di.decomposeColor=i,di.emphasize=h,di.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},di.getLuminance=c,di.hexToRgb=o,di.hslToRgb=l,di.lighten=p,di.private_safeAlpha=function(e,t,n){try{return d(e,t)}catch(t){return e}},di.private_safeColorChannel=void 0,di.private_safeDarken=function(e,t,n){try{return u(e,t)}catch(t){return e}},di.private_safeEmphasize=function(e,t,n){try{return h(e,t)}catch(t){return e}},di.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},di.recomposeColor=s,di.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var t=e(fi),n=e(mi);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};di.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const d=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",d.push(t[3])),s({type:c,values:d})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function h(e,t=.15){return c(e)>.5?u(e,t):p(e,t)}return di.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},di}var gi=bi();const yi={black:"#000",white:"#fff"},xi={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"},Ei="#f3e5f5",Si="#ce93d8",Ci="#ba68c8",wi="#ab47bc",Ri="#9c27b0",ki="#7b1fa2",Ai="#e57373",_i="#ef5350",Ii="#f44336",Ti="#d32f2f",Li="#c62828",Oi="#ffb74d",Pi="#ffa726",Mi="#ff9800",ji="#f57c00",Ni="#e65100",$i="#e3f2fd",zi="#90caf9",Di="#42a5f5",Bi="#1976d2",Fi="#1565c0",Gi="#4fc3f7",Hi="#29b6f6",Wi="#03a9f4",Yi="#0288d1",Ui="#01579b",Vi="#81c784",qi="#66bb6a",Ki="#4caf50",Xi="#388e3c",Zi="#2e7d32",Ji="#1b5e20",Qi=["mode","contrastThreshold","tonalOffset"],ea={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:yi.white,default:yi.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}},ta={text:{primary:yi.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:yi.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 na(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=gi.lighten(e.main,o):"dark"===t&&(e.dark=gi.darken(e.main,i)))}function ra(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=z(e,Qi),i=e.primary||function(e="light"){return"dark"===e?{main:zi,light:$i,dark:Di}:{main:Bi,light:Di,dark:Fi}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Si,light:Ei,dark:wi}:{main:Ri,light:Ci,dark:ki}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ii,light:Ai,dark:Ti}:{main:Ti,light:_i,dark:Li}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Hi,light:Gi,dark:Yi}:{main:Yi,light:Wi,dark:Ui}}(t),c=e.success||function(e="light"){return"dark"===e?{main:qi,light:Vi,dark:Xi}:{main:Zi,light:Ki,dark:Ji}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:Pi,light:Oi,dark:ji}:{main:"#ed6c02",light:Mi,dark:Ni}}(t);function u(e){return gi.getContrastRatio(e,ta.text.primary)>=n?ta.text.primary:ea.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=$({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(M(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(M(12,t?` (${t})`:"",JSON.stringify(e.main)));return na(e,"light",o,r),na(e,"dark",i,r),e.contrastText||(e.contrastText=u(e.main)),e},h={dark:ta,light:ea};return kn($({common:$({},yi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:xi,contrastThreshold:n,getContrastText:u,augmentColor:p,tonalOffset:r},h[t]),o)}const oa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ia={textTransform:"uppercase"},aa='"Roboto", "Helvetica", "Arial", sans-serif';function sa(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=aa,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,p=z(n,oa),h=o/14,f=u||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return $({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===aa?{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(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ia),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ia),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn($({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},b),p,{clone:!1})}function la(...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 ca=["none",la(0,2,1,-1,0,1,1,0,0,1,3,0),la(0,3,1,-2,0,2,2,0,0,1,5,0),la(0,3,3,-2,0,3,4,0,0,1,8,0),la(0,2,4,-1,0,4,5,0,0,1,10,0),la(0,3,5,-1,0,5,8,0,0,1,14,0),la(0,3,5,-1,0,6,10,0,0,1,18,0),la(0,4,5,-2,0,7,10,1,0,2,16,1),la(0,5,5,-3,0,8,10,1,0,3,14,2),la(0,5,6,-3,0,9,12,1,0,3,16,2),la(0,6,6,-3,0,10,14,1,0,4,18,3),la(0,6,7,-4,0,11,15,1,0,4,20,3),la(0,7,8,-4,0,12,17,2,0,5,22,4),la(0,7,8,-4,0,13,19,2,0,5,24,4),la(0,7,9,-4,0,14,21,2,0,5,26,4),la(0,8,9,-5,0,15,22,2,0,6,28,5),la(0,8,10,-5,0,16,24,2,0,6,30,5),la(0,8,11,-5,0,17,26,2,0,6,32,5),la(0,9,11,-5,0,18,28,2,0,7,34,6),la(0,9,12,-6,0,19,29,2,0,7,36,6),la(0,10,13,-6,0,20,31,3,0,8,38,7),la(0,10,13,-6,0,21,33,3,0,8,40,7),la(0,10,14,-6,0,22,35,3,0,8,42,7),la(0,11,14,-7,0,23,36,3,0,9,44,8),la(0,11,15,-7,0,24,38,3,0,9,46,8)],da=["duration","easing","delay"],ua={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)"},pa={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ha(e){return`${Math.round(e)}ms`}function fa(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ma(e){const t=$({},ua,e.easing),n=$({},pa,e.duration);return $({getAutoHeightDuration:fa,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return z(r,da),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:ha(o)} ${i} ${"string"==typeof a?a:ha(a)}`).join(",")}},e,{easing:t,duration:n})}const ba={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ga=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function va(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=z(e,ga);if(e.vars&&void 0===e.generateCssVars)throw new Error(M(18));const s=ra(r),l=Or(e);let c=kn(l,{mixins:(d=l.breakpoints,u=n,$({toolbar:{minHeight:56,[d.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[d.up("sm")]:{minHeight:64}}},u)),palette:s,shadows:ca.slice(),typography:sa(s,i),transitions:ma(o),zIndex:$({},ba)});var d,u;return c=kn(c,a),c=t.reduce((e,t)=>kn(e,t),c),c.unstable_sxConfig=$({},Ar,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ir({sx:e,theme:this})},c}const ya=va();function xa(){const e=Nr(ya);return e[N]||e}var Ea,Sa={},Ca={exports:{}};var wa,Ra={exports:{}};var ka,Aa=Ke(Cn),_a=Ke(An),Ia=Ke($n),Ta=Ke(so),La=Ke(Pr),Oa=Ke(Fr);function Pa(){if(ka)return Sa;ka=1;var e=pi();Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.default=function(e={}){const{themeId:t,defaultTheme:a=f,rootShouldForwardProp:l=p,slotShouldForwardProp:c=p}=e,u=e=>(0,s.default)((0,n.default)({},e,{theme:b((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return u.__mui_systemSx=!0,(e,s={})=>{(0,o.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:h,slot:f,skipVariantsResolver:y,skipSx:x,overridesResolver:E=g(m(f))}=s,S=(0,r.default)(s,d),C=h&&h.startsWith("Mui")||f?"components":"custom",w=void 0!==y?y:f&&"Root"!==f&&"root"!==f||!1,R=x||!1;let k=p;"Root"===f||"root"===f?k=l:f?k=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const A=(0,o.default)(e,(0,n.default)({shouldForwardProp:k,label:void 0},S)),_=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?r=>{const o=b({theme:r.theme,defaultTheme:a,themeId:t});return v(e,(0,n.default)({},r,{theme:o}),o.modularCssLayers?C:void 0)}:e,I=(r,...o)=>{let i=_(r);const s=o?o.map(_):[];h&&E&&s.push(e=>{const r=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[h]||!r.components[h].styleOverrides)return null;const o=r.components[h].styleOverrides,i={};return Object.entries(o).forEach(([t,o])=>{i[t]=v(o,(0,n.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),E(e,i)}),h&&!w&&s.push(e=>{var r;const o=b((0,n.default)({},e,{defaultTheme:a,themeId:t}));return v({variants:null==o||null==(r=o.components)||null==(r=r[h])?void 0:r.variants},(0,n.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),R||s.push(u);const l=s.length-o.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const c=A(i,...s);return e.muiName&&(c.muiName=e.muiName),c};return A.withConfig&&(I.withConfig=A.withConfig),I}},Sa.shouldForwardProp=p,Sa.systemDefaultTheme=void 0;var t,n=e((Ea||(Ea=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ca)),Ca.exports)),r=e((wa||(wa=1,(t=Ra).exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},t.exports.__esModule=!0,t.exports.default=t.exports),Ra.exports)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Aa),i=_a;e(Ia),e(Ta);var a=e(La),s=e(Oa);const l=["ownerState"],c=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function h(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=Sa.systemDefaultTheme=(0,a.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,t,i){let{ownerState:a}=t,s=(0,r.default)(t,l);const d="function"==typeof e?e((0,n.default)({ownerState:a},s)):e;if(Array.isArray(d))return d.flatMap(e=>v(e,(0,n.default)({ownerState:a},s),i));if(d&&"object"==typeof d&&Array.isArray(d.variants)){const{variants:e=[]}=d;let t=(0,r.default)(d,c);return e.forEach(e=>{let r=!0;if("function"==typeof e.props?r=e.props((0,n.default)({ownerState:a},s,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&s[t]!==e.props[t]&&(r=!1)}),r){Array.isArray(t)||(t=[t]);const r="function"==typeof e.style?e.style((0,n.default)({ownerState:a},s,a)):e.style;t.push(i?h((0,o.internal_serializeStyles)(r),i):r)}}),t}return i?h((0,o.internal_serializeStyles)(d),i):d}return Sa}const Ma=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,ja=qe(Pa())({themeId:N,defaultTheme:ya,rootShouldForwardProp:Ma}),Na=["theme"];function $a(e){let{theme:t}=e,n=z(e,Na);const r=t[N];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=$({},r,{vars:null}):t&&!t.vars&&(o=$({},t,{vars:null}))),gn.jsx(li,$({},n,{themeId:r?N:void 0,theme:o}))}const za=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Da={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)"},Ba=12,Fa=14,Ga=16,Ha=24,Wa=3,Ya=300,Ua=400,Va=600,qa=700,Ka={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Xa(e){return ii(e)}function Za(e){return qr("MuiSvgIcon",e)}Kr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ja=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Qa=ja("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Nn(n.color)}`],t[`fontSize${Nn(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(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]}}),es=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:u="0 0 24 24"}=n,p=z(n,Ja),h=y.isValidElement(r)&&"svg"===r.type,f=$({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:u,hasSvgAsChild:h}),m={};c||(m.viewBox=u);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return Go({root:["root","inherit"!==t&&`color${Nn(t)}`,`fontSize${Nn(n)}`]},Za,r)})(f);return gn.jsxs(Qa,$({as:a,className:Yr(b.root,o),focusable:"false",color:l,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},m,p,h&&r.props,{ownerState:f,children:[h?r.props.children:r,d?gn.jsx("title",{children:d}):null]}))});function ts(e,t){function n(n,r){return gn.jsx(es,$({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=es.muiName,y.memo(y.forwardRef(n))}function ns(e,t){return ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ns(e,t)}function rs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ns(e,t)}es.muiName="SvgIcon";var os=!1,is=S.createContext(null),as="unmounted",ss="exited",ls="entering",cs="entered",ds="exiting",us=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ss,r.appearStatus=ls):o=cs:o=t.unmountOnExit||t.mountOnEnter?as:ss,r.state={status:o},r.nextCallback=null,r}rs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===as?{status:ss}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ls&&n!==cs&&(t=ls):n!==ls&&n!==cs||(t=ds)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ls){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ss&&this.setState({status:as})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[L.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||os?this.safeSetState({status:cs},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:ls},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:cs},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:L.findDOMNode(this);t&&!os?(this.props.onExit(r),this.safeSetState({status:ds},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:ss},function(){e.props.onExited(r)})})})):this.safeSetState({status:ss},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:L.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===as)return null;var t=this.props,n=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 r=z(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(is.Provider,{value:null},"function"==typeof n?n(e,r):S.cloneElement(S.Children.only(n),r))},t}(S.Component);function ps(){}function hs(e,t){var n=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),n}function fs(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ms(e,t,n){var r=hs(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in r,c=t[i],d=C(c)&&!c.props.in;!l||s&&!d?l||!s||d?l&&s&&C(c)&&(o[i]=w(a,{onExited:n.bind(null,a),in:c.props.in,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})):o[i]=w(a,{in:!1}):o[i]=w(a,{onExited:n.bind(null,a),in:!0,exit:fs(a,"exit",e),enter:fs(a,"enter",e)})}}),o}us.contextType=is,us.propTypes={},us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps},us.UNMOUNTED=as,us.EXITED=ss,us.ENTERING=ls,us.ENTERED=cs,us.EXITING=ds;var bs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},gs=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}rs(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,hs(n.children,function(e){return w(e,{onExited:r.bind(null,e),in:!0,appear:fs(e,"appear",n),enter:fs(e,"enter",n),exit:fs(e,"exit",n)})})):ms(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=hs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=$({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=z(e,["component","childFactory"]),o=this.state.contextValue,i=bs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?S.createElement(is.Provider,{value:o},i):S.createElement(is.Provider,{value:o},S.createElement(t,r,i))},t}(S.Component);gs.propTypes={},gs.defaultProps={component:"div",childFactory:function(e){return e}};const vs=e=>e.scrollTop;function ys(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xs(e){return qr("MuiPaper",e)}Kr("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 Es=["className","component","elevation","square","variant"],Ss=ja("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return $({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.alpha("#fff",za(t.elevation))}, ${gi.alpha("#fff",za(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),Cs=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=z(n,Es),c=$({},n,{component:o,elevation:i,square:a,variant:s}),d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Go({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},xs,o)})(c);return gn.jsx(Ss,$({as:o,ownerState:c,className:Yr(d.root,r),ref:t},l))});const ws=Kr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Rs=["center","classes","className"];let ks,As,_s,Is,Ts=e=>e;const Ls=Xt(ks||(ks=Ts`
15
15
  0% {
16
16
  transform: scale(0);
17
17
  opacity: 0.1;
@@ -41,7 +41,7 @@ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use str
41
41
  100% {
42
42
  transform: scale(1);
43
43
  }
44
- `)),Ms=ja("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),js=ja(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,u]=y.useState(!1),p=Yn(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},f=Yn(r.child,d&&r.childLeaving,n&&r.childPulsate);return s||d||u(!0),y.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),br.jsx("span",{className:p,style:h,children:br.jsx("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})(Is||(Is=Ts`
44
+ `)),Ms=ja("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),js=ja(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[d,u]=y.useState(!1),p=Yr(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},f=Yr(n.child,d&&n.childLeaving,r&&n.childPulsate);return s||d||u(!0),y.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}},[l,s,c]),gn.jsx("span",{className:p,style:h,children:gn.jsx("span",{className:f})})},{name:"MuiTouchRipple",slot:"Ripple"})(Is||(Is=Ts`
45
45
  opacity: 0;
46
46
  position: absolute;
47
47
 
@@ -84,6 +84,6 @@ System.register(["@nebula.js/stardust","react","react-dom"],function(e){"use str
84
84
  animation-iteration-count: infinite;
85
85
  animation-delay: 200ms;
86
86
  }
87
- `),ws.rippleVisible,Ls,550,({theme:e})=>e.transitions.easing.easeInOut,ws.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ws.child,ws.childLeaving,Os,550,({theme:e})=>e.transitions.easing.easeInOut,ws.childPulsate,Ps,({theme:e})=>e.transitions.easing.easeInOut),Ns=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=z(r,Rs),[s,l]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=y.useRef(!1),p=_o(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,br.jsx(js,{classes:{ripple:Yn(o.ripple,ws.ripple),rippleVisible:Yn(o.rippleVisible,ws.rippleVisible),ripplePulsate:Yn(o.ripplePulsate,ws.ripplePulsate),child:Yn(o.child,ws.child),childLeaving:Yn(o.childLeaving,ws.childLeaving),childPulsate:Yn(o.childPulsate,ws.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 s=a?null:f.current,l=s?s.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(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(r-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.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,l(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(Ms,$({className:Yn(ws.root,o.root,i),ref:f},a,{children:br.jsx(gs,{component:null,exit:!0,children:s})}))});function $s(e){return qn("MuiButtonBase",e)}const zs=Kn("MuiButtonBase",["root","disabled","focusVisible"]),Ds=["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"],Bs=ja("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"},[`&.${zs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fs=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!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=z(r,Ds),P=y.useRef(null),M=y.useRef(null),j=wo(M,T),{isFocusVisibleRef:N,onFocus:D,onBlur:B,ref:F}=$o(),[G,H]=y.useState(!1);l&&G&&H(!1),y.useImperativeHandle(n,()=>({focusVisible:()=>{H(!0),P.current.focus()}}),[]);const[W,Y]=y.useState(!1);y.useEffect(()=>{Y(!0)},[]);const V=W&&!c&&!l;function U(e,t,r=d){return Co(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=U("start",S),K=U("stop",m),X=U("stop",b),Z=U("stop",w),J=U("stop",e=>{G&&e.preventDefault(),C&&C(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=Co(e=>{P.current||(P.current=e.currentTarget),D(e),!0===N.current&&(H(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Co(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&&!l&&(e.preventDefault(),f&&f(e))}),se=Co(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 le=s;"button"===le&&(O.href||O.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===L?"button":L,ce.disabled=l):(O.href||O.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=wo(t,F,P),ue=$({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:_,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Go({root:["root",t&&"disabled",r&&"focusVisible"]},$s,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return br.jsxs(Bs,$({as:le,className:Yn(pe.root,a),ownerState:ue,onBlur:re,onClick:f,onContextMenu:K,onFocus:ne,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:_,type:L},ce,O,{children:[i,V?br.jsx(Ns,$({ref:j,center:o},I)):null]}))});function Gs(e){return qn("MuiTypography",e)}Kn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hs=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ws=ja("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${jr(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})),Ys={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Us=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiTypography"}),n=(e=>Vs[e]||e)(r.color),o=Bn($({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ys}=o,h=z(o,Hs),f=$({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||Ys[u])||"span",b=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Go({root:["root",i,"inherit"!==e.align&&`align${jr(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Gs,a)})(f);return br.jsx(Ws,$({as:m,ref:t,ownerState:f,className:Yn(b.root,a)},h))});const qs=y.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=wo(y.isValidElement(r)?qo(r):null,t);if(co(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),co(()=>{if(i&&!o)return yo(t,i),()=>{yo(t,null)}},[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return br.jsx(y.Fragment,{children:r})}return br.jsx(y.Fragment,{children:i?O.createPortal(r,i):i})}),Ks=["onChange","maxRows","minRows","style","value"];function Xs(e){return parseInt(e,10)||0}const Zs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Js(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Qs=y.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=z(e,Ks),{current:l}=y.useRef(null!=a),c=y.useRef(null),d=wo(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=vo(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,s=Xs(i.paddingBottom)+Xs(i.paddingTop),l=Xs(i.borderBottomWidth)+Xs(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?s+l:0),overflowing:Math.abs(h-d)<=1}},[n,o,e.placeholder]),f=Co(()=>{const e=c.current,t=h();if(!e||!t||Js(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||Js(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);co(()=>{const e=bo(m),t=null==c?void 0:c.current;if(!t)return;const r=vo(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]),co(()=>{m()});return br.jsxs(y.Fragment,{children:[br.jsx("textarea",$({value:a,onChange:e=>{l||m(),r&&r(e)},ref:d,rows:o,style:i},s)),br.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},Zs,i,{paddingTop:0,paddingBottom:0})})]})});const el=y.createContext(void 0);function tl(){return y.useContext(el)}function rl(e){return br.jsx(zn,$({},e,{defaultTheme:ya,themeId:N}))}function nl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ol(e){return qn("MuiInputBase",e)}const il=Kn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),al=["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"],sl=ja("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${jr(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",[`&.${il.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%"})),ll=ja("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] + .${il.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},[`&.${il.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"})}),cl=br.jsx(rl,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dl=y.forwardRef(function(e,t){var r;const n=Xa({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},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:j={},slots:N={},startAdornment:D,type:B="text",value:F}=n,G=z(n,al),H=null!=g.value?g.value:F,{current:W}=y.useRef(null!=H),Y=y.useRef(),V=y.useCallback(e=>{},[]),U=wo(Y,v,g.ref,V),[q,K]=y.useState(!1),X=tl(),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&&(nl(e.value)&&""!==e.value||t&&nl(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);co(()=>{W&&ee({value:H})},[H,ee,W]);y.useEffect(()=>{ee(Y.current)},[]);let te=b,re=g;S&&"input"===te&&(re=$(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},re),te=Qs);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:S,size:Z.size,startAdornment:D,type:B}),oe=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Go({root:["root",`color${jr(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${jr(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"]},ol,t)})(ne),ie=N.root||l.Root||sl,ae=j.root||c.root||{},se=N.input||l.Input||ll;return re=$({},re,null!=(r=j.input)?r:c.input),br.jsxs(y.Fragment,{children:[!p&&cl,br.jsxs(ie,$({},ae,!Ho(ie)&&{ownerState:$({},ne,ae.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),k&&k(e)}},G,{className:Yn(oe.root,ae.className,s,L&&"MuiInputBase-readOnly"),children:[D,br.jsx(el.Provider,{value:null,children:br.jsx(se,$({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:B},re,!Ho(se)&&{as:te,ownerState:$({},ne,re.ownerState)},{ref:U,className:Yn(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(M(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,{startAdornment:D})):null]}))]})}),ul=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pl={entering:{opacity:1},entered:{opacity:1}},hl=y.forwardRef(function(e,t){const r=xa(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=n,TransitionComponent:g=us}=e,v=z(e,ul),x=y.useRef(null),E=wo(x,qo(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)=>{vs(e);const n=ys({style:m,timeout:b,easing:s},{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=ys({style:m,timeout:b,easing:s},{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,$({appear:i,in:l,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,$({style:$({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},pl[e],m,a.props.style),ref:E},t))}))});function fl(e){return qn("MuiBackdrop",e)}Kn("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bl=ja("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"})),gl=y.forwardRef(function(e,t){var r,n,o;const i=Xa({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=hl,transitionDuration:b}=i,g=z(i,ml),v=$({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:r}=e;return Go({root:["root",r&&"invisible"]},fl,t)})(v),x=null!=(r=h.root)?r:d.root;return br.jsx(m,$({in:p,timeout:b},g,{children:br.jsx(bl,$({"aria-hidden":!0},x,{as:null!=(n=null!=(o=f.root)?o:c.Root)?n:l,className:Yn(y.root,s,null==x?void 0:x.className),ownerState:$({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),vl=Kn("MuiBox",["root"]),yl=va(),xl=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=yr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(In);return y.forwardRef(function(e,a){const s=Nn(r),l=Bn(e),{className:c,component:d="div"}=l,u=z(l,Vn);return br.jsx(i,$({as:d,ref:a,className:Yn(c,o?o(n):n),theme:t&&s[t]||s},u))})}({themeId:N,defaultTheme:yl,defaultClassName:vl.root,generateClassName:Hn.generate});function El(e){return qn("MuiButton",e)}const Sl=Kn("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"]),Cl=y.createContext({}),wl=y.createContext(void 0),Rl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kl=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}}),Al=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${jr(r.color)}`],t[`size${jr(r.size)}`],t[`${r.variant}Size${jr(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.alpha(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.alpha(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.alpha(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]}),[`&.${Sl.focusVisible}`]:$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sl.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.alpha(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"},[`&.${Sl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sl.disabled}`]:{boxShadow:"none"}}),_l=ja("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${jr(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kl(e))),Il=ja("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${jr(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kl(e))),Tl=y.forwardRef(function(e,t){const r=y.useContext(Cl),n=y.useContext(wl),o=Xa({props:lo(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,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=z(o,Rl),E=$({},o,{color:a,component:s,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 $({},a,Go({root:["root",i,`${i}${jr(t)}`,`size${jr(o)}`,`${i}Size${jr(o)}`,`color${jr(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${jr(o)}`],endIcon:["icon","endIcon",`iconSize${jr(o)}`]},El,a))})(E),C=b&&br.jsx(_l,{className:S.startIcon,ownerState:E,children:b}),w=p&&br.jsx(Il,{className:S.endIcon,ownerState:E,children:p}),R=n||"";return br.jsxs(Al,$({ownerState:E,className:Yn(r.className,S.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:Yn(S.focusVisible,h),ref:t,type:g},x,{classes:S,children:[C,i,w]}))});function Ll(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ol(e){return parseInt(vo(e).getComputedStyle(e).paddingRight,10)||0}function Pl(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&&Ll(e,o)})}function Ml(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function jl(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=go(e);return t.body===e?vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=zo(go(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ol(n)+e}px`;const t=go(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ol(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=go(n).body;else{const t=n.parentElement,r=vo(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 Nl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $l(e){const t=[],r=[];return Array.from(e.querySelectorAll(Nl)).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 zl(){return!0}function Dl(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=$l,isEnabled:a=zl,open:s}=e,l=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=wo(qo(t),f),b=y.useRef(null);y.useEffect(()=>{s&&f.current&&(h.current=!r)},[r,s]),y.useEffect(()=>{if(!s||!f.current)return;const e=go(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&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),y.useEffect(()=>{if(!s||!f.current)return;const e=go(f.current),t=t=>{b.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},r=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.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,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.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,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return br.jsxs(y.Fragment,{children:[br.jsx("div",{tabIndex:s?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:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Bl=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&&Ll(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);Pl(t,e.mount,e.modalRef,n,!0);const o=Ml(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=Ml(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=jl(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Ml(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&&Ll(e.modalRef,t),Pl(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&&Ll(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fl(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Bl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=wo(f,u),[b,g]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);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=Co(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||go(h.current).body;o.add(E(),e),f.current&&S()}),w=y.useCallback(()=>o.isTopModal(E()),[o]),R=Co(e=>{h.current=e,e&&(d&&w()?S():f.current&&Ll(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=Wo(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:_(e),open:d}),getTransitionProps:()=>({onEnter:mo(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:mo(()=>{g(!0),s&&s(),i&&k()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function Gl(e){return qn("MuiModal",e)}Kn("MuiModal",["root","hidden","backdrop"]);const Hl=["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"],Wl=ja("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"})),Yl=ja(gl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vl=y.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Xa({name:"MuiModal",props:e}),{BackdropComponent:c=Yl,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}=l,L=z(l,Hl),O=$({},l,{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:D,exited:B,hasTransition:F}=Fl($({},O,{rootRef:t})),G=$({},O,{exited:B}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Go({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Gl,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:Wl,V=null!=(o=null!=(i=null==T?void 0:T.backdrop)?i:b.Backdrop)?o:c,U=null!=(a=null==I?void 0:I.root)?a:g.root,q=null!=(s=null==I?void 0:I.backdrop)?s:g.backdrop,K=Uo({elementType:Y,externalSlotProps:U,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:G,className:Yn(u,null==U?void 0:U.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=Uo({elementType:V,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M($({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Yn(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return k||_||F&&!B?br.jsx(qs,{ref:N,container:f,disablePortal:S,children:br.jsxs(Y,$({},K,{children:[!R&&c?br.jsx(V,$({},X)):null,br.jsx(Dl,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:D,open:_,children:y.cloneElement(h,W)})]}))}):null});function Ul(e){return qn("MuiDivider",e)}const ql=Kn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Kl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xl=ja("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.alpha(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%"}})),Zl=ja("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)`})),Jl=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=r,h=z(r,Kl),f=$({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Go({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Ul,n)})(f);return br.jsx(Xl,$({as:a,className:Yn(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?br.jsx(Zl,{className:m.wrapper,ownerState:f,children:o}):null}))});Jl.muiSkipListHighlight=!0;const Ql=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ec(e){return`scale(${e}, ${e**2})`}const tc={entering:{opacity:1,transform:ec(1)},entered:{opacity:1,transform:"none"}},rc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nc=y.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=us}=e,b=z(e,Ql),g=_o(),v=y.useRef(),x=xa(),E=y.useRef(null),S=wo(E,qo(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)=>{vs(e);const{duration:r,delay:n,easing:o}=ys({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:rc?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),k=C(l),A=C(p),_=C(e=>{const{duration:t,delay:r,easing:n}=ys({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:rc?o:.666*o,delay:rc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=ec(.75),d&&d(e)}),I=C(u);return br.jsx(m,$({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,$({style:$({opacity:0,transform:ec(.75),visibility:"exited"!==e||a?void 0:"hidden"},tc[e],h,o.props.style),ref:S},t))}))});function oc(e){return qn("MuiInputAdornment",e)}nc.muiSupportAuto=!0;const ic=Kn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ac;const sc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lc=ja("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${jr(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&&{[`&.${ic.positionStart}&:not(.${ic.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),cc=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,d=z(r,sc),u=tl()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=$({},r,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Go({root:["root",r&&"disablePointerEvents",o&&`position${jr(o)}`,a,n&&"hiddenLabel",i&&`size${jr(i)}`]},oc,t)})(h);return br.jsx(el.Provider,{value:null,children:br.jsx(lc,$({as:i,ownerState:h,className:Yn(f.root,o),ref:t},d,{children:"string"!=typeof n||s?br.jsxs(y.Fragment,{children:["start"===l?ac||(ac=br.jsx("span",{className:"notranslate",children:"​"})):null,n]}):br.jsx(Us,{color:"text.secondary",children:n})}))})}),dc=y.createContext({});function uc(e){return qn("MuiList",e)}Kn("MuiList",["root","padding","dense","subheader"]);const pc=["children","className","component","dense","disablePadding","subheader"],hc=ja("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})),fc=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=z(r,pc),d=y.useMemo(()=>({dense:a}),[a]),u=$({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Go({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},uc,t)})(u);return br.jsx(dc.Provider,{value:d,children:br.jsxs(hc,$({as:i,className:Yn(p.root,o),ref:t,ownerState:u},c,{children:[l,n]}))})});function mc(e){return qn("MuiListItem",e)}const bc=Kn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function gc(e){return qn("MuiListItemButton",e)}const vc=Kn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),yc=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xc=ja(Fs,{shouldForwardProp:e=>Ma(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"}},[`&.${vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vc.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})),Ec=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=r,h=z(r,yc),f=y.useContext(dc),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:n,disableGutters:l}),[n,f.dense,s,l]),b=y.useRef(null);co(()=>{o&&b.current&&b.current.focus()},[o]);const g=$({},r,{alignItems:n,dense:m.dense,disableGutters:l,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:i,divider:a,selected:s}=e;return $({},r,Go({root:["root",n&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},gc,r))})(g),x=wo(b,t);return br.jsx(dc.Provider,{value:m,children:br.jsx(xc,$({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Yn(v.focusVisible,d),ownerState:g,className:Yn(v.root,p)},h,{classes:v,children:a}))})});function Sc(e){return qn("MuiListItemSecondaryAction",e)}Kn("MuiListItemSecondaryAction",["root","disableGutters"]);const Cc=["className"],wc=ja("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})),Rc=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=z(r,Cc),i=$({},r,{disableGutters:y.useContext(dc).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Go({root:["root",t&&"disableGutters"]},Sc,r)})(i);return br.jsx(wc,$({className:Yn(a.root,n),ownerState:i,ref:t},o))});Rc.muiName="ListItemSecondaryAction";const kc=["className"],Ac=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],_c=ja("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&&{[`& > .${vc.root}`]:{paddingRight:48}},{[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.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"}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Ic=ja("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Tc=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,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=z(r.ContainerProps,kc),R=z(r,Ac),k=y.useContext(dc),A=y.useMemo(()=>({dense:h||k.dense||!1,alignItems:n,disableGutters:m}),[n,k.dense,h,m]),_=y.useRef(null);co(()=>{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=$({},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:s,divider:l,hasSecondaryAction:c,selected:d}=e;return Go({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},mc,n)})(j),D=wo(_,t),B=C.root||c.Root||_c,F=S.root||d.root||{},G=$({className:Yn(N.root,F.className,s),disabled:f},R);let H=l||"li";return i&&(G.component=l||"div",G.focusVisibleClassName=Yn(bc.focusVisible,v),H=Fs),T?(H=G.component||l?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),br.jsx(dc.Provider,{value:A,children:br.jsxs(Ic,$({as:u,className:Yn(N.container,p),ref:D,ownerState:j},w,{children:[br.jsx(B,$({},F,!Ho(B)&&{as:H,ownerState:$({},j,F.ownerState)},G,{children:I})),I.pop()]}))})):br.jsx(dc.Provider,{value:A,children:br.jsxs(B,$({},F,{as:H,ref:D},!Ho(B)&&{ownerState:$({},j,F.ownerState)},G,{children:[I,x&&br.jsx(Rc,{children:x})]}))})});function Lc(e){return qn("MuiListItemIcon",e)}const Oc=Kn("MuiListItemIcon",["root","alignItemsFlexStart"]),Pc=["className"],Mc=ja("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})),jc=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=z(r,Pc),i=$({},r,{alignItems:y.useContext(dc).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Go({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Lc,r)})(i);return br.jsx(Mc,$({className:Yn(a.root,n),ownerState:i,ref:t},o))}),Nc=Kn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$c=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Dc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Bc(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 Fc(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Bc(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Gc=y.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=z(e,$c),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});co(()=>{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=`${zo(go(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const f=wo(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(fc,$({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=go(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Fc(t,n,l,s,zc);else if("ArrowUp"===r)e.preventDefault(),Fc(t,n,l,s,Dc);else if("Home"===r)e.preventDefault(),Fc(t,null,l,s,zc);else if("End"===r)e.preventDefault(),Fc(t,null,l,s,Dc);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 l=n&&!o.repeating&&Bc(n,o);o.previousKeyMatched&&(l||Fc(t,n,!1,s,zc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},u,{children:b}))});function Hc(e){return qn("MuiPopover",e)}Kn("MuiPopover",["root","paper"]);const Wc=["onEntering"],Yc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vc=["slotProps"];function Uc(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function qc(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Kc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Xc(e){return"function"==typeof e?e():e}const Zc=ja(Vl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jc=ja(Cs,{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}),Qc=y.forwardRef(function(e,t){var r,n,o;const i=Xa({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={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=nc,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=z(i.TransitionProps,Wc),A=z(i,Yc),_=null!=(r=null==x?void 0:x.paper)?r:g,I=y.useRef(),T=wo(I,_.ref),L=$({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:k}),O=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"]},Hc,t)})(L),P=y.useCallback(()=>{if("anchorPosition"===d)return c;const e=Xc(s),t=(e&&1===e.nodeType?e:go(I.current).body).getBoundingClientRect();return{top:t.top+Uc(t,l.vertical),left:t.left+qc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),M=y.useCallback(e=>({vertical:Uc(e,E.vertical),horizontal:qc(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:Kc(r)};const n=P();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=vo(Xc(s)),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(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Kc(r)}},[s,d,P,M,m]),[N,D]=y.useState(b),B=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,D(!0)},[j]);y.useEffect(()=>(R&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[s,R,B]);y.useEffect(()=>{b&&B()}),y.useImperativeHandle(a,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),y.useEffect(()=>{if(!b)return;const e=bo(()=>{B()}),t=vo(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,B]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(s?go(Xc(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Zc,W=null!=(o=null==v?void 0:v.paper)?o:Jc,Y=Uo({elementType:W,externalSlotProps:$({},_,{style:N?_.style:$({},_.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:L,className:Yn(O.paper,null==_?void 0:_.className)}),V=Uo({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:Yn(O.root,p)}),{slotProps:U}=V,q=z(V,Vc);return br.jsx(H,$({},q,!Ho(H)&&{slotProps:U,disableScrollLock:R},{children:br.jsx(S,$({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),B()},onExited:()=>{D(!1)},timeout:F},k,{children:br.jsx(W,$({},Y,{children:u}))}))}))});function ed(e){return qn("MuiMenu",e)}Kn("MuiMenu",["root","paper","list"]);const td=["onEntering"],rd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],nd={vertical:"top",horizontal:"right"},od={vertical:"top",horizontal:"left"},id=ja(Qc,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ad=ja(Jc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sd=ja(Gc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ld=y.forwardRef(function(e,t){var r,n;const o=Xa({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!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=z(o.TransitionProps,td),E=z(o,rd),S=ri(),C=$({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"],list:["list"]},ed,t)})(C),R=i&&!l&&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:ad,I=null!=(n=v.paper)?n:p,T=Uo({elementType:g.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),L=Uo({elementType:_,externalSlotProps:I,ownerState:C,className:w.paper});return br.jsx(id,$({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?nd:od,slots:{paper:_,root:g.root},slotProps:{root:T,paper:L},open:u,ref:t,transitionDuration:f,TransitionProps:$({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(sd,$({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:b},c,{className:Yn(w.list,c.className),children:a}))}))});function cd(e){return qn("MuiMenuItem",e)}const dd=Kn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ud=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pd=ja(Fs,{shouldForwardProp:e=>Ma(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"}},[`&.${dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ql.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ql.inset}`]:{marginLeft:52},[`& .${Nc.root}`]:{marginTop:0,marginBottom:0},[`& .${Nc.inset}`]:{paddingLeft:36},[`& .${Oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Oc.root} svg`]:{fontSize:"1.25rem"}}))),hd=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=r,p=z(r,ud),h=y.useContext(dc),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);co(()=>{n&&m.current&&m.current.focus()},[n]);const b=$({},r,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $({},a,Go({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},cd,a))})(r),v=wo(m,t);let x;return r.disabled||(x=void 0!==d?d:-1),br.jsx(dc.Provider,{value:f,children:br.jsx(pd,$({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:Yn(g.focusVisible,l),className:Yn(g.root,u)},p,{ownerState:b,classes:g}))})});function fd(e){return qn("MuiTab",e)}const md=Kn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bd=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],gd=ja(Fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${jr(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${md.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,[`& > .${md.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,[`&.${md.selected}`]:{opacity:1},[`&.${md.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${md.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)})),vd=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="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=z(r,bd),E=$({},r,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:v}),S=(e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Go({root:["root",i&&a&&"labelIcon",`textColor${jr(r)}`,n&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},fd,t)})(E),C=s&&d&&y.isValidElement(s)?y.cloneElement(s,{className:Yn(S.iconWrapper,s.props.className)}):s;return br.jsxs(gd,$({focusRipple:!i,className:Yn(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"===l||"start"===l?br.jsxs(y.Fragment,{children:[C,d]}):br.jsxs(y.Fragment,{children:[d,C]}),c]}))});var yd=ts(br.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),xd=ts(br.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ed(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Sd=["onChange"],Cd={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function wd(e){return qn("MuiTabScrollButton",e)}const Rd=Kn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kd=["className","slots","slotProps","direction","orientation","disabled"],Ad=ja(Fs,{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,[`&.${Rd.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),_d=y.forwardRef(function(e,t){var r,n;const o=Xa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=z(o,kd),d=$({isRtl:ri()},o),u=(e=>{const{classes:t,orientation:r,disabled:n}=e;return Go({root:["root",r,n&&"disabled"]},wd,t)})(d),p=null!=(r=a.StartScrollButtonIcon)?r:yd,h=null!=(n=a.EndScrollButtonIcon)?n:xd,f=Uo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Uo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return br.jsx(Ad,$({component:"div",className:Yn(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?br.jsx(p,$({},f)):br.jsx(h,$({},m))}))});function Id(e){return qn("MuiTabs",e)}const Td=Kn("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ld=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Od=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Pd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Md=(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)}},jd=ja("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Td.scrollButtons}`]:t.scrollButtons},{[`& .${Td.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&&{[`& .${Td.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nd=ja("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"})),$d=ja("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"})),zd=ja("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})),Dd=ja(function(e){const{onChange:t}=e,r=z(e,Sd),n=y.useRef(),o=y.useRef(null),i=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return co(()=>{const e=bo(()=>{const e=n.current;i(),e!==n.current&&t(n.current)}),r=vo(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),y.useEffect(()=>{i(),t(n.current)},[t]),br.jsx("div",$({style:Cd},r,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Bd={},Fd=y.forwardRef(function(e,t){const r=Xa({props:e,name:"MuiTabs"}),n=xa(),o=ri(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=_d,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,_=z(r,Ld),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=$({},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:l&&!I,scrollButtonsHideMobile:!p}),D=(e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Go({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Id,l)})(N),B=Uo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=Uo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[G,H]=y.useState(!1),[W,Y]=y.useState(Bd),[V,U]=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:Fo(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=Co(()=>{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=Ed,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=n=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=n);const d=Math.min(1,(n-s)/a);t[e]=i(d)*(r-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===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"===Bo()?-1:1),ie(t)},se=()=>{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},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Co(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=Co(()=>{I&&!1!==g&&Z(!X)});y.useEffect(()=>{const e=bo(()=>{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=vo(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=>{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()}}},[I,g,X,null==c?void 0:c.length]),y.useEffect(()=>{H(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{ue(Bd!==W)},[ue,W]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=br.jsx(zd,$({},S,{className:Yn(D.indicator,S.className),ownerState:N,style:$({},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,$({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(Dd,{onChange:de,className:Yn(D.scrollableX,D.hideScrollbar)}):null;const t=I&&("auto"===g&&(V||q)||!0===g);return e.scrollButtonStart=t?br.jsx(b,$({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:B},orientation:m,direction:o?"right":"left",onClick:le,disabled:!V},C,{className:Yn(D.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?br.jsx(b,$({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},C,{className:Yn(D.scrollButtons,C.className)})):null,e})();return br.jsxs(jd,$({className:Yn(D.root,d),ownerState:N,ref:t,as:u},_,{children:[be.scrollButtonStart,be.scrollbarSizeListener,br.jsxs(Nd,{className:D.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[br.jsx($d,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:D.flexContainer,ownerState:N,onKeyDown:e=>{const t=re.current,r=go(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(),Md(t,r,Pd);break;case i:e.preventDefault(),Md(t,r,Od);break;case"Home":e.preventDefault(),Md(t,null,Od);break;case"End":e.preventDefault(),Md(t,null,Pd)}},ref:re,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))});function Gd(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"})})}function Hd({fontSize:e="medium",children:t=null,className:r=""}={}){return br.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function Wd(e={}){return br.jsx(Hd,{...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 Yd(e={}){return br.jsx(Hd,{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 Vd(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 Ud(e={}){return br.jsx(Hd,{...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 qd(e={}){return br.jsx(Hd,{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 Kd({className:e}){return br.jsx(Hd,{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 Xd(e={}){return br.jsx(Hd,{...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:Da.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const Zd={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:Wa,"& > 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 Jd=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Da.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Da.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:br.jsx(Gd,{"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 ${Da.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,borderRadius:Wa,backgroundColor:Da.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 ${Da.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Da.WHITE,color:Da.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:Wa},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Da.GREYSCALE_0_15,backgroundColor:Da.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Da.GREEN_PALE},"&:active":{backgroundColor:Da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Da.BLUE_PALE},"&:active":{backgroundColor:Da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.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:Wa,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Da.GREYSCALE_0_42,backgroundColor:Da.GREYSCALE_100_60,"&:active":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Da.PURPLE,"&.Mui-focusVisible":{borderColor:Da.PURPLE,boxShadow:`0 0 0 3px ${fo(Da.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Da.GREEN,"&.Mui-focusVisible":{borderColor:Da.GREEN,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Da.BLUE,"&.Mui-focusVisible":{borderColor:Da.BLUE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Da.ORANGE,"&.Mui-focusVisible":{borderColor:Da.ORANGE,boxShadow:`0 0 0 3px ${fo(Da.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Da.RED,"&.Mui-focusVisible":{borderColor:Da.RED,boxShadow:`0 0 0 3px ${fo(Da.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Da.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Da.PURPLE_PALE},"&:active":{backgroundColor:Da.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Da.PURPLE_PALE,boxShadow:`0 0 0 3px ${fo(Da.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Da.GREEN_PALE},"&:active":{backgroundColor:Da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Da.BLUE_PALE},"&:active":{backgroundColor:Da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Da.ORANGE_PALE},"&:active":{backgroundColor:Da.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Da.ORANGE_PALE,boxShadow:`0 0 0 3px ${fo(Da.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Da.RED_PALE},"&:active":{backgroundColor:Da.RED_DARK},"&.Mui-focusVisible":{borderColor:Da.RED_PALE,boxShadow:`0 0 0 3px ${fo(Da.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:Da.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Da.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wa,boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:br.jsx(Vd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ba,borderRadius:Wa,color:Da.TEXT_PRIMARY,backgroundColor:Da.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Da.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Da.GREYSCALE_0_05,color:Da.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Da.GREEN,borderColor:Da.GREEN},"&.MuiChip-outlinedInfo":{color:Da.BLUE,borderColor:Da.BLUE},"&.MuiChip-outlinedWarning":{color:Da.ORANGE,borderColor:Da.ORANGE},"&.MuiChip-outlinedError":{color:Da.RED,borderColor:Da.RED}},outlined:{border:`solid 1px ${Da.GREYSCALE_0_15}`,backgroundColor:Da.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wa,boxShadow:"none",backgroundColor:Da.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Da.GREEN,borderColor:Da.GREEN},outlinedSecondary:{color:Da.BLUE,borderColor:Da.BLUE},label:{fontFamily:Ka.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:br.jsx(Vd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:br.jsx(Gd,{"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:Wa},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wa,fontSize:Fa,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Da.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Da.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Da.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Da.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Da.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wa,border:`solid 1px ${Da.GREYSCALE_0_15}`,color:Da.GREYSCALE_0_60,marginRight:0,width:Ha,height:Ha},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Da.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wa,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Da.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Fa}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ba,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Da.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Da.GREYSCALE_25,fontSize:Ba,fontFamily:Ka.FONT_FAMILY,fontWeight:Ua,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Da.TEXT_PRIMARY},"&.Mui-error":{color:Da.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Da.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Va,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Da.TEXT_SECONDARY,content:"'(required)'",fontWeight:Va,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Fa,lineHeight:"16px",backgroundColor:Da.WHITE,borderRadius:Wa,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.GREYSCALE_0_05}`,borderColor:Da.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.RED}`,boxShadow:`0px 0px 0px 1px ${Da.RED}, inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.GREYSCALE_0_10}`,borderColor:Da.GREYSCALE_0_10,backgroundColor:Da.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Da.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Da.GREYSCALE_0_15,borderRadius:Wa,boxShadow:`inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>br.jsx(Gd,{...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:Da.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Da.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Da.GREYSCALE_0_03},"&:active":{backgroundColor:Da.GREYSCALE_0_10},"&:focus":{backgroundColor:Da.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Da.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Da.GREYSCALE_0_30,"&:hover":{backgroundColor:Da.GREYSCALE_0_0,borderColor:Da.GREYSCALE_0_15},"& ~svg":{color:Da.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Da.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wa}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Da.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Fa,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ba,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ba,fontWeight:Ua,color:Da.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ua}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Da.GREYSCALE_0_15}, 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:br.jsx(qd,{}),checkedIcon:br.jsx(Yd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Da.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Da.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Da.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:br.jsx(Xd,{}),checkedIcon:br.jsx(Wd,{}),indeterminateIcon:br.jsx(Ud,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wa,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Da.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Da.GREYSCALE_0_55,color:Da.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:Da.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Da.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Da.GREYSCALE_0_55,"&:hover":{color:Da.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:Da.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Da.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Fa,color:Da.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ua},secondary:{fontSize:Ba,color:Da.GREYSCALE_45,fontWeight:Va,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Fa,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Fa,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Da.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ba,borderBottom:`solid 1px ${Da.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Fa,color:Da.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Da.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Da.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:Da.RED}}},"&.Mui-focusVisible":{backgroundColor:Da.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:Da.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:Da.GREEN,height:"24px","&.Mui-disabled":{color:Da.GREYSCALE_0_15}},rail:{backgroundColor:Da.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Da.GREYSCALE_0_05}`,borderRadius:Wa,boxShadow:`inset 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Da.GREYSCALE_0_05}`,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Da.WHITE,boxShadow:`0px 1px 2px 0px ${Da.GREYSCALE_0_15}, 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wa,boxShadow:`0 2px 4px 0 ${Da.GREYSCALE_0_30}, 0 0 0 1px ${Da.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Da.GREYSCALE_0_15}, 0 0 0 1px ${Da.GREYSCALE_0_06}, 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Da.GREYSCALE_0_15}, 0 0 0 1px ${Da.GREYSCALE_0_06}, 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Da.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Da.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Da.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Da.GREYSCALE_0_15},markLabel:{color:Da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Da.WHITE,color:Da.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:Da.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:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Da.GREYSCALE_0_15,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Da.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:Fa,fontWeight:Ua,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Da.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,backgroundColor:Da.GREYSCALE_0_03,borderRadius:Wa},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Da.GREYSCALE_25,"&.Mui-selected":{color:Da.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Fa,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wa,"&:hover":{backgroundColor:Da.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 ${Da.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Da.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wa,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Da.GREYSCALE_0_05},"&:hover":{backgroundColor:Da.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Da.GREYSCALE_85}`,borderRight:`1px solid ${Da.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ua,backgroundColor:Da.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:Da.GREYSCALE_98,borderBottom:`1px solid ${Da.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Da.GREYSCALE_85}`,borderTop:`1px solid ${Da.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Da.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Da.GREYSCALE_0_05,"&:hover":{backgroundColor:Da.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Da.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>br.jsx(Kd,{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 ${Da.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Fa,borderRadius:Wa,padding:"7px 16px",border:`1px solid ${Da.GREYSCALE_0_15}`,backgroundColor:Da.GREYSCALE_100_60,color:Da.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Da.GREYSCALE_0_10,border:`1px solid ${Da.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Da.GREYSCALE_0_03,border:`1px solid ${Da.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Da.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`,border:`1px solid ${Da.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Da.GREYSCALE_25,backgroundColor:Da.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Da.GREYSCALE_0_10,border:`1px solid ${Da.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ba,height:24,width:24,padding:7},sizeLarge:{fontSize:Ga,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Fa,borderRadius:Wa}}},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:Da.GREYSCALE_20},tooltip:{backgroundColor:Da.GREYSCALE_20,fontSize:Ba,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...Zd}:{}}))(t);const Qd=e=>({mode:"light",primary:{ultraLight:Da.GREEN_ULTRA_LIGHT,light:Da.GREEN_PALE,main:Da.GREEN,dark:Da.GREEN_DARK,extraDark:Da.GREEN_EXTRA_DARK,contrastText:Da.WHITE},secondary:{ultraLight:Da.BLUE_ULTRA_LIGHT,light:Da.BLUE_PALE,main:Da.BLUE,dark:Da.BLUE_DARK,extraDark:Da.BLUE_EXTRA_DARK,contrastText:Da.WHITE},error:{ultraLight:Da.RED_ULTRA_LIGHT,light:Da.RED_PALE,main:Da.RED,dark:Da.RED_DARK,extraDark:Da.RED_EXTRA_DARK,contrastText:Da.WHITE},warning:{ultraLight:Da.ORANGE_ULTRA_LIGHT,light:Da.ORANGE_PALE,main:Da.ORANGE,dark:Da.ORANGE_DARK,extraDark:Da.ORANGE_EXTRA_DARK,contrastText:Da.WHITE},success:{ultraLight:Da.GREEN_ULTRA_LIGHT,light:Da.GREEN_PALE,main:Da.GREEN,dark:Da.GREEN_DARK,extraDark:Da.GREEN_EXTRA_DARK,contrastText:Da.WHITE},info:{ultraLight:Da.BLUE_ULTRA_LIGHT,light:Da.BLUE_PALE,main:Da.BLUE,dark:Da.BLUE_DARK,extraDark:Da.BLUE_EXTRA_DARK,contrastText:Da.WHITE},text:{primary:Da.TEXT_PRIMARY,secondary:Da.TEXT_SECONDARY,disabled:Da.GREYSCALE_0_30},action:{hover:Da.GREYSCALE_0_03,hoverOpacity:.03,selected:Da.GREYSCALE_0_05,selectedOpacity:.05,focus:Da.MISC_FOCUS_BORDER},amethyst:{ultraLight:Da.WHITE,main:Da.PURPLE,light:Da.PURPLE_PALE,dark:Da.PURPLE_DARK,extraDark:Da.GREYSCALE_0_0,contrastText:Da.WHITE},background:{paper:Da.WHITE,default:Da.GREYSCALE_95},divider:Da.GREYSCALE_0_15}),eu=(e,t=!1)=>({components:Jd(0,t),palette:Qd(),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:Fa,fontWeightLight:Ya,fontWeightRegular:Va,fontWeightMedium:Ua,fontWeightBold:qa,htmlFontSize:Fa,fontFamily:Ka.FONT_FAMILY,button:{fontWeight:Ua,fontSize:Fa,textTransform:"none"},body1:{fontSize:Ga,lineHeight:"24px"},body2:{fontSize:Fa,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ha,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ga,fontWeight:Ua,lineHeight:"16px"},h6:{fontSize:Fa,fontWeight:Ua,lineHeight:"16px"},caption:{color:Da.TEXT_SECONDARY},subtitle1:{fontSize:Fa,color:Da.TEXT_SECONDARY},subtitle2:{fontSize:Ba,color:Da.TEXT_SECONDARY}},shape:{borderRadius:Wa}});function tu(e){return va({...eu(),direction:e})}class ru{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}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}};setMuiTheme=e=>{this.muiTheme=tu(e)};destroy=e=>{delete this.containers[e]}}const nu=["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 ou{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()).reduce((e,t)=>{if(!nu.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const r=t;r.libraryInfo?.translationKey&&(r.libraryInfo.translation=this.translator.get(r.libraryInfo.translationKey)),e[t.id||t.type]=r}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var iu,au={};var su=function(){if(iu)return au;iu=1;var e=L;return au.createRoot=e.createRoot,au.hydrateRoot=e.hydrateRoot,au}();const lu=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"})})),cu="rgb(89, 89, 89)",du=ur(xl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),uu=ur(xl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),pu=ur(fc,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),hu=ur(Us)({color:cu,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),fu=ur(jc)({"&.MuiListItemIcon-root":{minWidth:32,color:cu,marginRight:"0px"}}),mu=ur(Jl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),bu=ur(Tl)({"&.MuiButton-contained":{backgroundColor:cu,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:cu,color:cu,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${cu}`}}}),gu=ur(es)({width:"1em",height:"1em",paddingBottom:"8px"}),vu=ur(es)({width:"16px",height:"16px"}),yu=({name:e,items:t,onSelect:r})=>br.jsxs(br.Fragment,{children:[br.jsx(Tc,{dense:!0,children:br.jsx(hu,{noWrap:!0,fontWeight:"bold",children:e})},e),br.jsx(mu,{}),t.map(e=>br.jsx(Tc,{divider:!0,disablePadding:!0,disableGutters:!0,children:br.jsxs(Ec,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{r(e)},disableRipple:!0,dense:!0,children:[e.iconPath?br.jsx(fu,{children:e.IconDefinition?br.jsx(e.IconDefinition,{}):br.jsx(vu,{viewBox:"0 0 16 16",children:br.jsx("path",{d:e.iconPath})})}):null,br.jsx(hu,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),xu=({categories:e,anchorEl:t,onClose:r,onSelect:n,width:o})=>{const[i,a]=k(""),s=!!t;return br.jsxs(Qc,{open:s,anchorEl:t,onClose:()=>{a(""),r()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[br.jsx(dl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:br.jsx(cc,{position:"start",children:br.jsx(lu,{})})}),br.jsx(mu,{}),br.jsx(pu,{width:o,children:e.map(e=>{const t=e.items.filter(e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1});return t.length>0&&br.jsx(yu,{name:e.name,items:t,onSelect:n},e.name)})})]})},Eu=({anchorEl:e,onClose:t,dataHandler:r,translator:n,sharedContainerUtilities:o,width:i})=>{const[a,s]=k([]),[l,c]=k({});A(()=>{if(e&&r){(async()=>{const e=await r.getMasterVizList();s(e),c(r.getCharts())})().catch(()=>{})}},[e,r]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.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=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.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=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.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=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.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 br.jsx(xu,{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=>{e?.id&&o?.setSelected([e.id])}).catch(e=>{console.warn(e)}).finally(()=>{t()})},onClose:t,width:i})},Su=e=>{const t=wu(e);return e.objects?.map(e=>{const{childRefId:r}=e;if(!r)return e;const n=t[r];return n?{...e,id:n}:e})??[]},Cu=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),wu=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const r=t?.qData?.childRefId;return e[r]=t?.qInfo?.qId,e},{});var Ru=Cu,ku=e=>{const t={...e};return t.objects=Su(t),t},Au=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const r=t?.qInfo?.qId;return e[r]=t.qData?.childRefId,e},{}),_u=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Iu=(e,t)=>{if(!e)return t;const r=Cu(e,t);return r?.qInfo?.qId};class Tu{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:r})=>{if(!this.activeContainer)return;const{dataHandler:n}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return n?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:r})}return n?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:r})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...r}=e,n=this.getEngineId(t);if(!n)return;const o=await(this.app?.getObject(n));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),n=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:n,children:i,objectInitProps:r});a&&e?.setSelected([a.id])}};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],su.createRoot(n)})(this.activeContainer.element,"add-child-popover"),r=()=>{t.unmount()};t?.render(br.jsx($a,{theme:this.data.muiTheme,children:br.jsx(Eu,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:r,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Iu(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}function Lu(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 Ou(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 Pu(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,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ju(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 Mu(e){return function(e){if(Array.isArray(e))return Lu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ju(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 ju(e,t){if(e){if("string"==typeof e)return Lu(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)?Lu(e,t):void 0}}var Nu,$u="top",zu="top-right",Du="right",Bu="bottom-right",Fu="bottom",Gu="bottom-left",Hu="left",Wu="top-left";Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Nu={},"equal-equal",[$u,Fu]),"equal-higher",[Fu,Bu]),"equal-lower",[$u,zu]),"equal-void",[$u,Fu]),"higher-equal",[Hu,Gu,$u,zu]),"higher-higher-acute",[Fu,Gu,Hu,zu]),"higher-higher-obtuse",[Fu,$u]),"higher-lower-negative",[$u,zu,Du]),"higher-lower-positive",[Fu,Gu,Hu]),"higher-void",[$u]),Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Ou(Nu,"lower-equal",[$u]),"lower-higher-negative",[$u,Wu]),"lower-higher-positive",[Bu]),"lower-lower-acute",[$u,Wu,Hu,zu,Du]),"lower-lower-obtuse",[$u,Fu]),"lower-void",[$u]),"void-equal",[$u]),"void-higher",[$u,Fu]),"void-lower",[$u,Fu,Hu]),"void-void",[$u]),Ou(Nu,"unclassified",[$u,Fu,Du,Hu,zu,Bu,Gu,Wu]);var Yu=["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"],Vu=["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 Uu=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function qu(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,Mu(new Set([n].concat(Mu(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(Mu(i.map(function(e){return Uu(e)})),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],Mu(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Vu:Yu}(o).map(function(e){return Uu(e)})))}function Ku(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 qu({theme:t,translator:r,defaultValue:a(),flags:i})}}}var Xu=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Zu=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function Ju(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,Mu(new Set([r].concat(Mu(o))))):n.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Mu(n.map(function(e){return Zu(e)})),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Mu(Xu.map(function(e){return Zu(e)})))}({theme:t,translator:r,defaultValue:i()})}}}function Qu(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:Ku({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:Ju({theme:t,translator:r,id:n,path:o})}}var ep,tp,rp=["__proto__","constructor"],np=function(e){if(rp.some(function(t){return e.includes(t)}))throw new Error("font-resolver: Forbidden property.")};var op,ip=function(){if(tp)return ep;tp=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},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ep=function e(){var t,r,n,l,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=s(u,r),u!==(l=s(t,r))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:r,newValue:l}));return u},ep}();function ap(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function sp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function lp(){}(op=ip)&&op.__esModule&&Object.prototype.hasOwnProperty.call(op,"default")&&op.default;var cp=1/.7,dp="\\s*([+-]?\\d+)\\s*",up="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hp=/^#([0-9a-f]{3,8})$/,fp=new RegExp(`^rgb\\(${dp},${dp},${dp}\\)$`),mp=new RegExp(`^rgb\\(${pp},${pp},${pp}\\)$`),bp=new RegExp(`^rgba\\(${dp},${dp},${dp},${up}\\)$`),gp=new RegExp(`^rgba\\(${pp},${pp},${pp},${up}\\)$`),vp=new RegExp(`^hsl\\(${up},${pp},${pp}\\)$`),yp=new RegExp(`^hsla\\(${up},${pp},${pp},${up}\\)$`),xp={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 Ep(){return this.rgb().formatHex()}function Sp(){return this.rgb().formatRgb()}function Cp(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=hp.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?wp(t):3===r?new _p(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Rp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Rp(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=fp.exec(e))?new _p(t[1],t[2],t[3],1):(t=mp.exec(e))?new _p(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bp.exec(e))?Rp(t[1],t[2],t[3],t[4]):(t=gp.exec(e))?Rp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vp.exec(e))?Mp(t[1],t[2]/100,t[3]/100,1):(t=yp.exec(e))?Mp(t[1],t[2]/100,t[3]/100,t[4]):xp.hasOwnProperty(e)?wp(xp[e]):"transparent"===e?new _p(NaN,NaN,NaN,0):null}function wp(e){return new _p(e>>16&255,e>>8&255,255&e,1)}function Rp(e,t,r,n){return n<=0&&(e=t=r=NaN),new _p(e,t,r,n)}function kp(e){return e instanceof lp||(e=Cp(e)),e?new _p((e=e.rgb()).r,e.g,e.b,e.opacity):new _p}function Ap(e,t,r,n){return 1===arguments.length?kp(e):new _p(e,t,r,null==n?1:n)}function _p(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ip(){return`#${Pp(this.r)}${Pp(this.g)}${Pp(this.b)}`}function Tp(){const e=Lp(this.opacity);return`${1===e?"rgb(":"rgba("}${Op(this.r)}, ${Op(this.g)}, ${Op(this.b)}${1===e?")":`, ${e})`}`}function Lp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Op(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pp(e){return((e=Op(e))<16?"0":"")+e.toString(16)}function Mp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Np(e,t,r,n)}function jp(e){if(e instanceof Np)return new Np(e.h,e.s,e.l,e.opacity);if(e instanceof lp||(e=Cp(e)),!e)return new Np;if(e instanceof Np)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,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Np(a,s,l,e.opacity)}function Np(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function $p(e){return(e=(e||0)%360)<0?e+360:e}function zp(e){return Math.max(0,Math.min(1,e||0))}function Dp(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ap(lp,Cp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ep,formatHex:Ep,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jp(this).formatHsl()},formatRgb:Sp,toString:Sp}),ap(_p,Ap,sp(lp,{brighter(e){return e=null==e?cp:Math.pow(cp,e),new _p(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _p(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _p(Op(this.r),Op(this.g),Op(this.b),Lp(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:Ip,formatHex:Ip,formatHex8:function(){return`#${Pp(this.r)}${Pp(this.g)}${Pp(this.b)}${Pp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tp,toString:Tp})),ap(Np,function(e,t,r,n){return 1===arguments.length?jp(e):new Np(e,t,r,null==n?1:n)},sp(lp,{brighter(e){return e=null==e?cp:Math.pow(cp,e),new Np(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Np(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 _p(Dp(e>=240?e-240:e+120,o,n),Dp(e,o,n),Dp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Np($p(this.h),zp(this.s),zp(this.l),Lp(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=Lp(this.opacity);return`${1===e?"hsl(":"hsla("}${$p(this.h)}, ${100*zp(this.s)}%, ${100*zp(this.l)}%${1===e?")":`, ${e})`}`}}));const Bp=Math.PI/180,Fp=180/Math.PI,Gp=4/29,Hp=6/29,Wp=3*Hp*Hp;function Yp(e){if(e instanceof Vp)return new Vp(e.l,e.a,e.b,e.opacity);if(e instanceof Zp)return Jp(e);e instanceof _p||(e=kp(e));var t,r,n=Xp(e.r),o=Xp(e.g),i=Xp(e.b),a=Up((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Up((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Up((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Vp(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Vp(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Up(e){return e>.008856451679035631?Math.pow(e,1/3):e/Wp+Gp}function qp(e){return e>Hp?e*e*e:Wp*(e-Gp)}function Kp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Zp(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Jp(e){if(isNaN(e.h))return new Vp(e.l,0,0,e.opacity);var t=e.h*Bp;return new Vp(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ap(Vp,function(e,t,r,n){return 1===arguments.length?Yp(e):new Vp(e,t,r,null==n?1:n)},sp(lp,{brighter(e){return new Vp(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Vp(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 _p(Kp(3.1338561*(t=.96422*qp(t))-1.6168667*(e=1*qp(e))-.4906146*(r=.82521*qp(r))),Kp(-.9787684*t+1.9161415*e+.033454*r),Kp(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ap(Zp,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Zp)return new Zp(e.h,e.c,e.l,e.opacity);if(e instanceof Vp||(e=Yp(e)),0===e.a&&0===e.b)return new Zp(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fp;return new Zp(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Zp(e,t,r,null==n?1:n)},sp(lp,{brighter(e){return new Zp(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Zp(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Jp(this).rgb()}}));var Qp=e=>()=>e;function eh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Qp(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?eh: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):Qp(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ap(e)).r,(t=Ap(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=eh(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 th="center",rh="bottom";function nh(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:th,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:th,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:th,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:th},{key:"DataRangeIncludingZero",alignment:rh},{key:"LimitedData",alignment:rh},{key:"NegativeOrZeroValues",alignment:rh}].reduce(function(e,t){return e[t.key]=t,e},{});var oh,ih=["__proto__","constructor"];function ah(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!ih.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function sh(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 lh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dh)):void 0===t&&(t=ch);for(var r,n,o,i,a,s=new hh(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new hh(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ph)}function ch(e){return e.children}function dh(e){return Array.isArray(e)?e[1]:null}function uh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ph(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function hh(e){this.data=e,this.depth=this.height=0,this.parent=null}hh.prototype=lh.prototype={constructor:hh,count:function(){return this.eachAfter(sh)},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],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,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 lh(this).eachBefore(uh)},[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)}},oh=function(e){
87
+ `),ws.rippleVisible,Ls,550,({theme:e})=>e.transitions.easing.easeInOut,ws.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ws.child,ws.childLeaving,Os,550,({theme:e})=>e.transitions.easing.easeInOut,ws.childPulsate,Ps,({theme:e})=>e.transitions.easing.easeInOut),Ns=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=z(n,Rs),[s,l]=y.useState([]),c=y.useRef(0),d=y.useRef(null);y.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const u=y.useRef(!1),p=_o(),h=y.useRef(null),f=y.useRef(null),m=y.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l(e=>[...e,gn.jsx(js,{classes:{ripple:Yr(o.ripple,ws.ripple),rippleVisible:Yr(o.rippleVisible,ws.rippleVisible),ripplePulsate:Yr(o.ripplePulsate,ws.ripplePulsate),child:Yr(o.child,ws.child),childLeaving:Yr(o.childLeaving,ws.childLeaving),childPulsate:Yr(o.childPulsate,ws.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),b=y.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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 s=a?null:f.current,l=s?s.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(l.width/2),d=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),d=Math.round(n-l.top)}if(i)b=Math.sqrt((2*l.width**2+l.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.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:n})},p.start(80,()=>{h.current&&(h.current(),h.current=null)})):m({pulsate:o,rippleX:c,rippleY:d,rippleSize:b,cb:n})},[r,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,l(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]),gn.jsx(Ms,$({className:Yr(ws.root,o.root,i),ref:f},a,{children:gn.jsx(gs,{component:null,exit:!0,children:s})}))});function $s(e){return qr("MuiButtonBase",e)}const zs=Kr("MuiButtonBase",["root","disabled","focusVisible"]),Ds=["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"],Bs=ja("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"},[`&.${zs.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fs=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!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}=n,O=z(n,Ds),P=y.useRef(null),M=y.useRef(null),j=wo(M,T),{isFocusVisibleRef:N,onFocus:D,onBlur:B,ref:F}=$o(),[G,H]=y.useState(!1);l&&G&&H(!1),y.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),P.current.focus()}}),[]);const[W,Y]=y.useState(!1);y.useEffect(()=>{Y(!0)},[]);const U=W&&!c&&!l;function V(e,t,n=d){return Co(r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!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),ne=V("stop",e=>{B(e),!1===N.current&&H(!1),h&&h(e)},!1),re=Co(e=>{P.current||(P.current=e.currentTarget),D(e),!0===N.current&&(H(!0),v&&v(e)),g&&g(e)}),oe=()=>{const e=P.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=Co(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&&!l&&(e.preventDefault(),f&&f(e))}),se=Co(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 le=s;"button"===le&&(O.href||O.to)&&(le=p);const ce={};"button"===le?(ce.type=void 0===L?"button":L,ce.disabled=l):(O.href||O.to||(ce.role="button"),l&&(ce["aria-disabled"]=l));const de=wo(t,F,P),ue=$({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:_,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Go({root:["root",t&&"disabled",n&&"focusVisible"]},$s,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return gn.jsxs(Bs,$({as:le,className:Yr(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:q,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:de,tabIndex:l?-1:_,type:L},ce,O,{children:[i,U?gn.jsx(Ns,$({ref:j,center:o},I)):null]}))});function Gs(e){return qr("MuiTypography",e)}Kr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Hs=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ws=ja("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Nn(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.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})),Ys={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Us={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vs=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiTypography"}),r=(e=>Us[e]||e)(n.color),o=Br($({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ys}=o,h=z(o,Hs),f=$({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=s||(d?"p":p[u]||Ys[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Go({root:["root",i,"inherit"!==e.align&&`align${Nn(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Gs,a)})(f);return gn.jsx(Ws,$({as:m,ref:t,ownerState:f,className:Yr(b.root,a)},h))});const qs=y.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=wo(y.isValidElement(n)?qo(n):null,t);if(co(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),co(()=>{if(i&&!o)return yo(t,i),()=>{yo(t,null)}},[t,i,o]),o){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return gn.jsx(y.Fragment,{children:n})}return gn.jsx(y.Fragment,{children:i?O.createPortal(n,i):i})}),Ks=["onChange","maxRows","minRows","style","value"];function Xs(e){return parseInt(e,10)||0}const Zs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Js(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Qs=y.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=z(e,Ks),{current:l}=y.useRef(null!=a),c=y.useRef(null),d=wo(t,c),u=y.useRef(null),p=y.useRef(null),h=y.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=vo(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,s=Xs(i.paddingBottom)+Xs(i.paddingTop),l=Xs(i.borderBottomWidth)+Xs(i.borderTopWidth),d=n.scrollHeight;n.value="x";const u=n.scrollHeight;let h=d;o&&(h=Math.max(Number(o)*u,h)),r&&(h=Math.min(Number(r)*u,h)),h=Math.max(h,u);return{outerHeightStyle:h+("border-box"===a?s+l:0),overflowing:Math.abs(h-d)<=1}},[r,o,e.placeholder]),f=Co(()=>{const e=c.current,t=h();if(!e||!t||Js(t))return!1;const n=t.outerHeightStyle;return null!=u.current&&u.current!==n}),m=y.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Js(t))return;const n=t.outerHeightStyle;u.current!==n&&(u.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),b=y.useRef(-1);co(()=>{const e=bo(m),t=null==c?void 0:c.current;if(!t)return;const n=vo(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{f()&&(r.unobserve(t),cancelAnimationFrame(b.current),m(),b.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(b.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,m,f]),co(()=>{m()});return gn.jsxs(y.Fragment,{children:[gn.jsx("textarea",$({value:a,onChange:e=>{l||m(),n&&n(e)},ref:d,rows:o,style:i},s)),gn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},Zs,i,{paddingTop:0,paddingBottom:0})})]})});const el=y.createContext(void 0);function tl(){return y.useContext(el)}function nl(e){return gn.jsx(zr,$({},e,{defaultTheme:ya,themeId:N}))}function rl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ol(e){return qr("MuiInputBase",e)}const il=Kr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),al=["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"],sl=ja("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Nn(n.color)}`],n.fullWidth&&t.fullWidth,n.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",[`&.${il.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%"})),ll=ja("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${il.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},[`&.${il.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"})}),cl=gn.jsx(nl,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dl=y.forwardRef(function(e,t){var n;const r=Xa({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},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:j={},slots:N={},startAdornment:D,type:B="text",value:F}=r,G=z(r,al),H=null!=g.value?g.value:F,{current:W}=y.useRef(null!=H),Y=y.useRef(),U=y.useCallback(e=>{},[]),V=wo(Y,v,g.ref,U),[q,K]=y.useState(!1),X=tl(),Z=function({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}({props:r,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&&(rl(e.value)&&""!==e.value||t&&rl(e.defaultValue)&&""!==e.defaultValue)}(e)?Q&&Q():J&&J()},[J,Q]);co(()=>{W&&ee({value:H})},[H,ee,W]);y.useEffect(()=>{ee(Y.current)},[]);let te=b,ne=g;S&&"input"===te&&(ne=$(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:x,minRows:E},ne),te=Qs);y.useEffect(()=>{X&&X.setAdornedStart(Boolean(D))},[X,D]);const re=$({},r,{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:D,type:B}),oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Go({root:["root",`color${Nn(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Nn(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},ol,t)})(re),ie=N.root||l.Root||sl,ae=j.root||c.root||{},se=N.input||l.Input||ll;return ne=$({},ne,null!=(n=j.input)?n:c.input),gn.jsxs(y.Fragment,{children:[!p&&cl,gn.jsxs(ie,$({},ae,!Ho(ie)&&{ownerState:$({},re,ae.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),k&&k(e)}},G,{className:Yr(oe.root,ae.className,s,L&&"MuiInputBase-readOnly"),children:[D,gn.jsx(el.Provider,{value:null,children:gn.jsx(se,$({ownerState:re,"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:B},ne,!Ho(se)&&{as:te,ownerState:$({},re,ne.ownerState)},{ref:V,className:Yr(oe.input,ne.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(M(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,{startAdornment:D})):null]}))]})}),ul=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pl={entering:{opacity:1},entered:{opacity:1}},hl=y.forwardRef(function(e,t){const n=xa(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=r,TransitionComponent:g=us}=e,v=z(e,ul),x=y.useRef(null),E=wo(x,qo(a),t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=S(u),w=S((e,t)=>{vs(e);const r=ys({style:m,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),R=S(d),k=S(f),A=S(e=>{const t=ys({style:m,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),_=S(h);return gn.jsx(g,$({appear:i,in:l,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,$({style:$({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},pl[e],m,a.props.style),ref:E},t))}))});function fl(e){return qr("MuiBackdrop",e)}Kr("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bl=ja("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.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"})),gl=y.forwardRef(function(e,t){var n,r,o;const i=Xa({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=hl,transitionDuration:b}=i,g=z(i,ml),v=$({},i,{component:l,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return Go({root:["root",n&&"invisible"]},fl,t)})(v),x=null!=(n=h.root)?n:d.root;return gn.jsx(m,$({in:p,timeout:b},g,{children:gn.jsx(bl,$({"aria-hidden":!0},x,{as:null!=(r=null!=(o=f.root)?o:c.Root)?r:l,className:Yr(y.root,s,null==x?void 0:x.className),ownerState:$({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),vl=Kr("MuiBox",["root"]),yl=va(),xl=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ir);return y.forwardRef(function(e,a){const s=Nr(n),l=Br(e),{className:c,component:d="div"}=l,u=z(l,Ur);return gn.jsx(i,$({as:d,ref:a,className:Yr(c,o?o(r):r),theme:t&&s[t]||s},u))})}({themeId:N,defaultTheme:yl,defaultClassName:vl.root,generateClassName:Hr.generate});function El(e){return qr("MuiButton",e)}const Sl=Kr("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"]),Cl=y.createContext({}),wl=y.createContext(void 0),Rl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kl=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}}),Al=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Nn(n.color)}`],t[`size${Nn(n.size)}`],t[`${n.variant}Size${Nn(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;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.alpha(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.alpha(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.alpha(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]}),[`&.${Sl.focusVisible}`]:$({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sl.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.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${Sl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sl.disabled}`]:{boxShadow:"none"}}),_l=ja("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Nn(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kl(e))),Il=ja("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Nn(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kl(e))),Tl=y.forwardRef(function(e,t){const n=y.useContext(Cl),r=y.useContext(wl),o=Xa({props:lo(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,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=z(o,Rl),E=$({},o,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return $({},a,Go({root:["root",i,`${i}${Nn(t)}`,`size${Nn(o)}`,`${i}Size${Nn(o)}`,`color${Nn(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Nn(o)}`],endIcon:["icon","endIcon",`iconSize${Nn(o)}`]},El,a))})(E),C=b&&gn.jsx(_l,{className:S.startIcon,ownerState:E,children:b}),w=p&&gn.jsx(Il,{className:S.endIcon,ownerState:E,children:p}),R=r||"";return gn.jsxs(Al,$({ownerState:E,className:Yr(n.className,S.root,l,R),component:s,disabled:c,focusRipple:!u,focusVisibleClassName:Yr(S.focusVisible,h),ref:t,type:g},x,{classes:S,children:[C,i,w]}))});function Ll(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ol(e){return parseInt(vo(e).getComputedStyle(e).paddingRight,10)||0}function Pl(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ll(e,o)})}function Ml(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function jl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=go(e);return t.body===e?vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=zo(go(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ol(r)+e}px`;const t=go(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ol(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=go(r).body;else{const t=r.parentElement,n=vo(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Nl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $l(e){const t=[],n=[];return Array.from(e.querySelectorAll(Nl)).forEach((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function zl(){return!0}function Dl(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=$l,isEnabled:a=zl,open:s}=e,l=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=wo(qo(t),f),b=y.useRef(null);y.useEffect(()=>{s&&f.current&&(h.current=!n)},[n,s]),y.useEffect(()=>{if(!s||!f.current)return;const e=go(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&&(l.current=!0,u.current.focus()),u.current=null)}},[s]),y.useEffect(()=>{if(!s||!f.current)return;const e=go(f.current),t=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(l.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var o,s;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=b.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,o,a,s,i]);const g=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return gn.jsxs(y.Fragment,{children:[gn.jsx("div",{tabIndex:s?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 n=t.props.onFocus;n&&n(e)}}),gn.jsx("div",{tabIndex:s?0:-1,onFocus:g,ref:d,"data-testid":"sentinelEnd"})]})}const Bl=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ll(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Pl(t,e.mount,e.modalRef,r,!0);const o=Ml(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ml(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=jl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ml(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ll(e.modalRef,t),Pl(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ll(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fl(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Bl,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:d,rootRef:u}=e,p=y.useRef({}),h=y.useRef(null),f=y.useRef(null),m=wo(f,u),[b,g]=y.useState(!d),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);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:r}),f.current&&(f.current.scrollTop=0)},C=Co(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||go(h.current).body;o.add(E(),e),f.current&&S()}),w=y.useCallback(()=>o.isTopModal(E()),[o]),R=Co(e=>{h.current=e,e&&(d&&w()?S():f.current&&Ll(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 r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},_=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Wo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=$({},n,t);return $({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>$({"aria-hidden":!0},e,{onClick:_(e),open:d}),getTransitionProps:()=>({onEnter:mo(()=>{g(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:mo(()=>{g(!0),s&&s(),i&&k()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:v}}function Gl(e){return qr("MuiModal",e)}Kr("MuiModal",["root","hidden","backdrop"]);const Hl=["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"],Wl=ja("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Yl=ja(gl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ul=y.forwardRef(function(e,t){var n,r,o,i,a,s;const l=Xa({name:"MuiModal",props:e}),{BackdropComponent:c=Yl,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}=l,L=z(l,Hl),O=$({},l,{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:D,exited:B,hasTransition:F}=Fl($({},O,{rootRef:t})),G=$({},O,{exited:B}),H=(e=>{const{open:t,exited:n,classes:r}=e;return Go({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Gl,r)})(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!=(n=null!=(r=null==T?void 0:T.root)?r:b.Root)?n:Wl,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!=(s=null==I?void 0:I.backdrop)?s:g.backdrop,K=Vo({elementType:Y,externalSlotProps:V,externalForwardedProps:L,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:G,className:Yr(u,null==V?void 0:V.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=Vo({elementType:U,externalSlotProps:q,additionalProps:d,getSlotProps:e=>M($({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Yr(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return k||_||F&&!B?gn.jsx(qs,{ref:N,container:f,disablePortal:S,children:gn.jsxs(Y,$({},K,{children:[!R&&c?gn.jsx(U,$({},X)):null,gn.jsx(Dl,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:D,open:_,children:y.cloneElement(h,W)})]}))}):null});function Vl(e){return qr("MuiDivider",e)}const ql=Kr("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Kl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Xl=ja("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({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.alpha(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%"}})),Zl=ja("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.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)`})),Jl=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=z(n,Kl),f=$({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Go({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vl,r)})(f);return gn.jsx(Xl,$({as:a,className:Yr(m.root,i),role:d,ref:t,ownerState:f},h,{children:o?gn.jsx(Zl,{className:m.wrapper,ownerState:f,children:o}):null}))});Jl.muiSkipListHighlight=!0;const Ql=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ec(e){return`scale(${e}, ${e**2})`}const tc={entering:{opacity:1,transform:ec(1)},entered:{opacity:1,transform:"none"}},nc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rc=y.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=us}=e,b=z(e,Ql),g=_o(),v=y.useRef(),x=xa(),E=y.useRef(null),S=wo(E,qo(o),t),C=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=C(c),R=C((e,t)=>{vs(e);const{duration:n,delay:r,easing:o}=ys({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:nc?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)}),k=C(l),A=C(p),_=C(e=>{const{duration:t,delay:n,easing:r}=ys({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:n}),x.transitions.create("transform",{duration:nc?o:.666*o,delay:nc?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ec(.75),d&&d(e)}),I=C(u);return gn.jsx(m,$({appear:r,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),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>y.cloneElement(o,$({style:$({opacity:0,transform:ec(.75),visibility:"exited"!==e||a?void 0:"hidden"},tc[e],h,o.props.style),ref:S},t))}))});function oc(e){return qr("MuiInputAdornment",e)}rc.muiSupportAuto=!0;const ic=Kr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ac;const sc=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lc=ja("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Nn(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.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&&{[`&.${ic.positionStart}&:not(.${ic.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),cc=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=n,d=z(n,sc),u=tl()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=$({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:l,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Go({root:["root",n&&"disablePointerEvents",o&&`position${Nn(o)}`,a,r&&"hiddenLabel",i&&`size${Nn(i)}`]},oc,t)})(h);return gn.jsx(el.Provider,{value:null,children:gn.jsx(lc,$({as:i,ownerState:h,className:Yr(f.root,o),ref:t},d,{children:"string"!=typeof r||s?gn.jsxs(y.Fragment,{children:["start"===l?ac||(ac=gn.jsx("span",{className:"notranslate",children:"​"})):null,r]}):gn.jsx(Vs,{color:"text.secondary",children:r})}))})}),dc=y.createContext({});function uc(e){return qr("MuiList",e)}Kr("MuiList",["root","padding","dense","subheader"]);const pc=["children","className","component","dense","disablePadding","subheader"],hc=ja("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),fc=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=z(n,pc),d=y.useMemo(()=>({dense:a}),[a]),u=$({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Go({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},uc,t)})(u);return gn.jsx(dc.Provider,{value:d,children:gn.jsxs(hc,$({as:i,className:Yr(p.root,o),ref:t,ownerState:u},c,{children:[l,r]}))})});function mc(e){return qr("MuiListItem",e)}const bc=Kr("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function gc(e){return qr("MuiListItemButton",e)}const vc=Kr("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),yc=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],xc=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.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"}},[`&.${vc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${vc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vc.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})),Ec=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=z(n,yc),f=y.useContext(dc),m=y.useMemo(()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l}),[r,f.dense,s,l]),b=y.useRef(null);co(()=>{o&&b.current&&b.current.focus()},[o]);const g=$({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:u}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return $({},n,Go({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},gc,n))})(g),x=wo(b,t);return gn.jsx(dc.Provider,{value:m,children:gn.jsx(xc,$({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Yr(v.focusVisible,d),ownerState:g,className:Yr(v.root,p)},h,{classes:v,children:a}))})});function Sc(e){return qr("MuiListItemSecondaryAction",e)}Kr("MuiListItemSecondaryAction",["root","disableGutters"]);const Cc=["className"],wc=ja("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Rc=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=z(n,Cc),i=$({},n,{disableGutters:y.useContext(dc).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Go({root:["root",t&&"disableGutters"]},Sc,n)})(i);return gn.jsx(wc,$({className:Yr(a.root,r),ownerState:i,ref:t},o))});Rc.muiName="ListItemSecondaryAction";const kc=["className"],Ac=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],_c=ja("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.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&&{[`& > .${vc.root}`]:{paddingRight:48}},{[`&.${bc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bc.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"}},[`&.${bc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Ic=ja("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Tc=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,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={}}=n,w=z(n.ContainerProps,kc),R=z(n,Ac),k=y.useContext(dc),A=y.useMemo(()=>({dense:h||k.dense||!1,alignItems:r,disableGutters:m}),[r,k.dense,h,m]),_=y.useRef(null);co(()=>{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=$({},n,{alignItems:r,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:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:d}=e;return Go({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},mc,r)})(j),D=wo(_,t),B=C.root||c.Root||_c,F=S.root||d.root||{},G=$({className:Yr(N.root,F.className,s),disabled:f},R);let H=l||"li";return i&&(G.component=l||"div",G.focusVisibleClassName=Yr(bc.focusVisible,v),H=Fs),T?(H=G.component||l?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),gn.jsx(dc.Provider,{value:A,children:gn.jsxs(Ic,$({as:u,className:Yr(N.container,p),ref:D,ownerState:j},w,{children:[gn.jsx(B,$({},F,!Ho(B)&&{as:H,ownerState:$({},j,F.ownerState)},G,{children:I})),I.pop()]}))})):gn.jsx(dc.Provider,{value:A,children:gn.jsxs(B,$({},F,{as:H,ref:D},!Ho(B)&&{ownerState:$({},j,F.ownerState)},G,{children:[I,x&&gn.jsx(Rc,{children:x})]}))})});function Lc(e){return qr("MuiListItemIcon",e)}const Oc=Kr("MuiListItemIcon",["root","alignItemsFlexStart"]),Pc=["className"],Mc=ja("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),jc=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=z(n,Pc),i=$({},n,{alignItems:y.useContext(dc).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Go({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Lc,n)})(i);return gn.jsx(Mc,$({className:Yr(a.root,r),ownerState:i,ref:t},o))}),Nc=Kr("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$c=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function zc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Dc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Bc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Fc(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Bc(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Gc=y.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=z(e,$c),p=y.useRef(null),h=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});co(()=>{r&&p.current.focus()},[r]),y.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${zo(go(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const f=wo(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 gn.jsx(fc,$({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=go(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Fc(t,r,l,s,zc);else if("ArrowUp"===n)e.preventDefault(),Fc(t,r,l,s,Dc);else if("Home"===n)e.preventDefault(),Fc(t,null,l,s,zc);else if("End"===n)e.preventDefault(),Fc(t,null,l,s,Dc);else if(1===n.length){const o=h.current,i=n.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 l=r&&!o.repeating&&Bc(r,o);o.previousKeyMatched&&(l||Fc(t,r,!1,s,zc,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},u,{children:b}))});function Hc(e){return qr("MuiPopover",e)}Kr("MuiPopover",["root","paper"]);const Wc=["onEntering"],Yc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Uc=["slotProps"];function Vc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function qc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Kc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Xc(e){return"function"==typeof e?e():e}const Zc=ja(Ul,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jc=ja(Cs,{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}),Qc=y.forwardRef(function(e,t){var n,r,o;const i=Xa({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={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=rc,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,k=z(i.TransitionProps,Wc),A=z(i,Yc),_=null!=(n=null==x?void 0:x.paper)?n:g,I=y.useRef(),T=wo(I,_.ref),L=$({},i,{anchorOrigin:l,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:_,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:k}),O=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"]},Hc,t)})(L),P=y.useCallback(()=>{if("anchorPosition"===d)return c;const e=Xc(s),t=(e&&1===e.nodeType?e:go(I.current).body).getBoundingClientRect();return{top:t.top+Vc(t,l.vertical),left:t.left+qc(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),M=y.useCallback(e=>({vertical:Vc(e,E.vertical),horizontal:qc(e,E.horizontal)}),[E.horizontal,E.vertical]),j=y.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===d)return{top:null,left:null,transformOrigin:Kc(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=vo(Xc(s)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Kc(n)}},[s,d,P,M,m]),[N,D]=y.useState(b),B=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,D(!0)},[j]);y.useEffect(()=>(R&&window.addEventListener("scroll",B),()=>window.removeEventListener("scroll",B)),[s,R,B]);y.useEffect(()=>{b&&B()}),y.useImperativeHandle(a,()=>b?{updatePosition:()=>{B()}}:null,[b,B]),y.useEffect(()=>{if(!b)return;const e=bo(()=>{B()}),t=vo(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,b,B]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(s?go(Xc(s)).body:void 0),H=null!=(r=null==v?void 0:v.root)?r:Zc,W=null!=(o=null==v?void 0:v.paper)?o:Jc,Y=Vo({elementType:W,externalSlotProps:$({},_,{style:N?_.style:$({},_.style,{opacity:0})}),additionalProps:{elevation:f,ref:T},ownerState:L,className:Yr(O.paper,null==_?void 0:_.className)}),U=Vo({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:Yr(O.root,p)}),{slotProps:V}=U,q=z(U,Uc);return gn.jsx(H,$({},q,!Ho(H)&&{slotProps:V,disableScrollLock:R},{children:gn.jsx(S,$({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),B()},onExited:()=>{D(!1)},timeout:F},k,{children:gn.jsx(W,$({},Y,{children:u}))}))}))});function ed(e){return qr("MuiMenu",e)}Kr("MuiMenu",["root","paper","list"]);const td=["onEntering"],nd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rd={vertical:"top",horizontal:"right"},od={vertical:"top",horizontal:"left"},id=ja(Qc,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ad=ja(Jc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sd=ja(Gc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),ld=y.forwardRef(function(e,t){var n,r;const o=Xa({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!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=z(o.TransitionProps,td),E=z(o,nd),S=ni(),C=$({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Go({root:["root"],paper:["paper"],list:["list"]},ed,t)})(C),R=i&&!l&&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!=(n=g.paper)?n:ad,I=null!=(r=v.paper)?r:p,T=Vo({elementType:g.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),L=Vo({elementType:_,externalSlotProps:I,ownerState:C,className:w.paper});return gn.jsx(id,$({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?rd:od,slots:{paper:_,root:g.root},slotProps:{root:T,paper:L},open:u,ref:t,transitionDuration:f,TransitionProps:$({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},E,{classes:h,children:gn.jsx(sd,$({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:b},c,{className:Yr(w.list,c.className),children:a}))}))});function cd(e){return qr("MuiMenuItem",e)}const dd=Kr("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ud=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pd=ja(Fs,{shouldForwardProp:e=>Ma(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>$({},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"}},[`&.${dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:gi.alpha(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.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ql.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ql.inset}`]:{marginLeft:52},[`& .${Nc.root}`]:{marginTop:0,marginBottom:0},[`& .${Nc.inset}`]:{paddingLeft:36},[`& .${Oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Oc.root} svg`]:{fontSize:"1.25rem"}}))),hd=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:u}=n,p=z(n,ud),h=y.useContext(dc),f=y.useMemo(()=>({dense:i||h.dense||!1,disableGutters:s}),[h.dense,i,s]),m=y.useRef(null);co(()=>{r&&m.current&&m.current.focus()},[r]);const b=$({},n,{dense:f.dense,divider:a,disableGutters:s}),g=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return $({},a,Go({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},cd,a))})(n),v=wo(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),gn.jsx(dc.Provider,{value:f,children:gn.jsx(pd,$({ref:v,role:c,tabIndex:x,component:o,focusVisibleClassName:Yr(g.focusVisible,l),className:Yr(g.root,u)},p,{ownerState:b,classes:g}))})});function fd(e){return qr("MuiTab",e)}const md=Kr("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),bd=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],gd=ja(Fs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Nn(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${md.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,[`& > .${md.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,[`&.${md.selected}`]:{opacity:1},[`&.${md.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${md.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${md.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)})),vd=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:i=!1,fullWidth:a,icon:s,iconPosition:l="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:g,wrapped:v=!1}=n,x=z(n,bd),E=$({},n,{disabled:o,disableFocusRipple:i,selected:f,icon:!!s,iconPosition:l,label:!!d,fullWidth:a,textColor:b,wrapped:v}),S=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e;return Go({root:["root",i&&a&&"labelIcon",`textColor${Nn(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]},fd,t)})(E),C=s&&d&&y.isValidElement(s)?y.cloneElement(s,{className:Yr(S.iconWrapper,s.props.className)}):s;return gn.jsxs(gd,$({focusRipple:!i,className:Yr(S.root,r),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"===l||"start"===l?gn.jsxs(y.Fragment,{children:[C,d]}):gn.jsxs(y.Fragment,{children:[d,C]}),c]}))});var yd=ts(gn.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),xd=ts(gn.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Ed(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Sd=["onChange"],Cd={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function wd(e){return qr("MuiTabScrollButton",e)}const Rd=Kr("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kd=["className","slots","slotProps","direction","orientation","disabled"],Ad=ja(Fs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Rd.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),_d=y.forwardRef(function(e,t){var n,r;const o=Xa({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=z(o,kd),d=$({isRtl:ni()},o),u=(e=>{const{classes:t,orientation:n,disabled:r}=e;return Go({root:["root",n,r&&"disabled"]},wd,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:yd,h=null!=(r=a.EndScrollButtonIcon)?r:xd,f=Vo({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=Vo({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return gn.jsx(Ad,$({component:"div",className:Yr(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?gn.jsx(p,$({},f)):gn.jsx(h,$({},m))}))});function Id(e){return qr("MuiTabs",e)}const Td=Kr("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ld=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Od=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Pd=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Md=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},jd=ja("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Td.scrollButtons}`]:t.scrollButtons},{[`& .${Td.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Td.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Nd=ja("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.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"})),$d=ja("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zd=ja("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})),Dd=ja(function(e){const{onChange:t}=e,n=z(e,Sd),r=y.useRef(),o=y.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return co(()=>{const e=bo(()=>{const e=r.current;i(),e!==r.current&&t(r.current)}),n=vo(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}},[t]),y.useEffect(()=>{i(),t(r.current)},[t]),gn.jsx("div",$({style:Cd},n,{ref:o}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Bd={},Fd=y.forwardRef(function(e,t){const n=Xa({props:e,name:"MuiTabs"}),r=xa(),o=ni(),{"aria-label":i,"aria-labelledby":a,action:s,centered:l=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=_d,scrollButtons:g="auto",selectionFollowsFocus:v,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:k="standard",visibleScrollbar:A=!1}=n,_=z(n,Ld),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=$({},n,{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:l&&!I,scrollButtonsHideMobile:!p}),D=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Go({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Id,l)})(N),B=Vo({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:N}),F=Vo({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:N}),[G,H]=y.useState(!1),[W,Y]=y.useState(Bd),[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),ne=y.useRef(null),re=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Fo(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},oe=Co(()=>{const{tabsMeta:e,tabMeta:t}=re();let n,r=0;if(T)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[j]:t?t[j]:0};if(isNaN(W[n])||isNaN(W[j]))Y(i);else{const e=Math.abs(W[n]-i[n]),t=Math.abs(W[j]-i[j]);(e>=1||t>=1)&&Y(i)}}),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,r={},o=()=>{}){const{ease:i=Ed,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const d=()=>{c=!0},u=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const d=Math.min(1,(r-s)/a);t[e]=i(d)*(n-l)+l,d>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(u)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(u)}(L,te.current,e,{duration:r.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"===Bo()?-1:1),ie(t)},se=()=>{const e=te.current[M];let t=0;const n=Array.from(ne.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[M]>e){0===r&&(t=e);break}t+=o[M]}return t},le=()=>{ae(-1*se())},ce=()=>{ae(se())},de=y.useCallback(e=>{Q({overflow:null,scrollbarWidth:e})},[]),ue=Co(e=>{const{tabsMeta:t,tabMeta:n}=re();if(n&&t)if(n[O]<t[O]){const r=t[L]+(n[O]-t[O]);ie(r,{animation:e})}else if(n[P]>t[P]){const r=t[L]+(n[P]-t[P]);ie(r,{animation:e})}}),pe=Co(()=>{I&&!1!==g&&Z(!X)});y.useEffect(()=>{const e=bo(()=>{te.current&&oe()});let t;const n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{var n;null==(n=t)||n.unobserve(e)}),e.addedNodes.forEach(e=>{var n;null==(n=t)||n.observe(e)})}),e(),pe()},r=vo(te.current);let o;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach(e=>{t.observe(e)})),"undefined"!=typeof MutationObserver&&(o=new MutationObserver(n),o.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}},[oe,pe]),y.useEffect(()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&I&&!1!==g){const n=e[0],r=e[t-1],o={root:te.current,threshold:.99},i=new IntersectionObserver(e=>{V(!e[0].isIntersecting)},o);i.observe(n);const a=new IntersectionObserver(e=>{K(!e[0].isIntersecting)},o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}},[I,g,X,null==c?void 0:c.length]),y.useEffect(()=>{H(!0)},[]),y.useEffect(()=>{oe()}),y.useEffect(()=>{ue(Bd!==W)},[ue,W]),y.useImperativeHandle(s,()=>({updateIndicator:oe,updateScrollButtons:pe}),[oe,pe]);const he=gn.jsx(zd,$({},S,{className:Yr(D.indicator,S.className),ownerState:N,style:$({},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 n=t===R;return fe+=1,y.cloneElement(e,$({fullWidth:"fullWidth"===k,indicator:n&&!G&&he,selected:n,selectionFollowsFocus:v,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))}),be=(()=>{const e={};e.scrollbarSizeListener=I?gn.jsx(Dd,{onChange:de,className:Yr(D.scrollableX,D.hideScrollbar)}):null;const t=I&&("auto"===g&&(U||q)||!0===g);return e.scrollButtonStart=t?gn.jsx(b,$({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:B},orientation:m,direction:o?"right":"left",onClick:le,disabled:!U},C,{className:Yr(D.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?gn.jsx(b,$({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:o?"left":"right",onClick:ce,disabled:!q},C,{className:Yr(D.scrollButtons,C.className)})):null,e})();return gn.jsxs(jd,$({className:Yr(D.root,d),ownerState:N,ref:t,as:u},_,{children:[be.scrollButtonStart,be.scrollbarSizeListener,gn.jsxs(Nd,{className:D.scroller,ownerState:N,style:{overflow:J.overflow,[T?"margin"+(o?"Left":"Right"):"marginBottom"]:A?void 0:-J.scrollbarWidth},ref:te,children:[gn.jsx($d,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:D.flexContainer,ownerState:N,onKeyDown:e=>{const t=ne.current,n=go(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),Md(t,n,Pd);break;case i:e.preventDefault(),Md(t,n,Od);break;case"Home":e.preventDefault(),Md(t,null,Od);break;case"End":e.preventDefault(),Md(t,null,Pd)}},ref:ne,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))});function Gd(e){return gn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:gn.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Hd({fontSize:e="medium",children:t=null,className:n=""}={}){return gn.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n,children:t})}function Wd(e={}){return gn.jsx(Hd,{...e,children:gn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[gn.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),gn.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 Yd(e={}){return gn.jsx(Hd,{fontSize:"medium",...e,children:gn.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[gn.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),gn.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 Ud(e){return gn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:gn.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 Vd(e={}){return gn.jsx(Hd,{...e,children:gn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:gn.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[gn.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),gn.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function qd(e={}){return gn.jsx(Hd,{fontSize:"medium",...e,children:gn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:gn.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:gn.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Kd({className:e}){return gn.jsx(Hd,{fontSize:"small",className:e,children:gn.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:gn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:gn.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:gn.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[gn.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"}),gn.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 Xd(e={}){return gn.jsx(Hd,{...e,children:gn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:gn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:gn.jsx("rect",{stroke:Da.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Zd=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Da.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Da.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:gn.jsx(Gd,{"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 ${Da.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,borderRadius:Wa,backgroundColor:Da.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 ${Da.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Da.WHITE,color:Da.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:Wa},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Da.GREYSCALE_0_15,backgroundColor:Da.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Da.GREEN_PALE},"&:active":{backgroundColor:Da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Da.BLUE_PALE},"&:active":{backgroundColor:Da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.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:Wa,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Da.GREYSCALE_0_42,backgroundColor:Da.GREYSCALE_100_60,"&:active":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Da.PURPLE,"&.Mui-focusVisible":{borderColor:Da.PURPLE,boxShadow:`0 0 0 3px ${fo(Da.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Da.GREEN,"&.Mui-focusVisible":{borderColor:Da.GREEN,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Da.BLUE,"&.Mui-focusVisible":{borderColor:Da.BLUE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Da.ORANGE,"&.Mui-focusVisible":{borderColor:Da.ORANGE,boxShadow:`0 0 0 3px ${fo(Da.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Da.RED,"&.Mui-focusVisible":{borderColor:Da.RED,boxShadow:`0 0 0 3px ${fo(Da.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Da.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Da.PURPLE_PALE},"&:active":{backgroundColor:Da.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Da.PURPLE_PALE,boxShadow:`0 0 0 3px ${fo(Da.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Da.GREEN_PALE},"&:active":{backgroundColor:Da.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Da.BLUE_PALE},"&:active":{backgroundColor:Da.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Da.ORANGE_PALE},"&:active":{backgroundColor:Da.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Da.ORANGE_PALE,boxShadow:`0 0 0 3px ${fo(Da.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Da.RED_PALE},"&:active":{backgroundColor:Da.RED_DARK},"&.Mui-focusVisible":{borderColor:Da.RED_PALE,boxShadow:`0 0 0 3px ${fo(Da.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:Da.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Da.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wa,boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:gn.jsx(Ud,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ba,borderRadius:Wa,color:Da.TEXT_PRIMARY,backgroundColor:Da.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Da.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Da.GREYSCALE_0_05,color:Da.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Da.GREEN,borderColor:Da.GREEN},"&.MuiChip-outlinedInfo":{color:Da.BLUE,borderColor:Da.BLUE},"&.MuiChip-outlinedWarning":{color:Da.ORANGE,borderColor:Da.ORANGE},"&.MuiChip-outlinedError":{color:Da.RED,borderColor:Da.RED}},outlined:{border:`solid 1px ${Da.GREYSCALE_0_15}`,backgroundColor:Da.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wa,boxShadow:"none",backgroundColor:Da.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Da.GREEN,borderColor:Da.GREEN},outlinedSecondary:{color:Da.BLUE,borderColor:Da.BLUE},label:{fontFamily:Ka.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:gn.jsx(Ud,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:gn.jsx(Gd,{"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:Wa},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wa,fontSize:Fa,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Da.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Da.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Da.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Da.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Da.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wa,border:`solid 1px ${Da.GREYSCALE_0_15}`,color:Da.GREYSCALE_0_60,marginRight:0,width:Ha,height:Ha},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Da.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wa,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Da.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Fa}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ba,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Da.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Da.GREYSCALE_25,fontSize:Ba,fontFamily:Ka.FONT_FAMILY,fontWeight:Va,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Da.TEXT_PRIMARY},"&.Mui-error":{color:Da.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Da.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ua,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Da.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ua,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Fa,lineHeight:"16px",backgroundColor:Da.WHITE,borderRadius:Wa,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.GREYSCALE_0_05}`,borderColor:Da.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.RED}`,boxShadow:`0px 0px 0px 1px ${Da.RED}, inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Da.GREYSCALE_0_10}`,borderColor:Da.GREYSCALE_0_10,backgroundColor:Da.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Da.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Da.GREYSCALE_0_15,borderRadius:Wa,boxShadow:`inset 0 2px 0 0 ${Da.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>gn.jsx(Gd,{...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:Da.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Da.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Da.GREYSCALE_0_03},"&:active":{backgroundColor:Da.GREYSCALE_0_10},"&:focus":{backgroundColor:Da.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Da.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Da.GREYSCALE_0_30,"&:hover":{backgroundColor:Da.GREYSCALE_0_0,borderColor:Da.GREYSCALE_0_15},"& ~svg":{color:Da.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Da.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wa}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Da.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Da.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Fa,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ba,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ba,fontWeight:Va,color:Da.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Va}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Da.GREYSCALE_0_15}, 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:gn.jsx(qd,{}),checkedIcon:gn.jsx(Yd,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Da.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Da.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Da.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:gn.jsx(Xd,{}),checkedIcon:gn.jsx(Wd,{}),indeterminateIcon:gn.jsx(Vd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wa,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Da.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Da.GREYSCALE_0_55,color:Da.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:Da.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Da.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Da.GREYSCALE_0_55,"&:hover":{color:Da.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:Da.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Da.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Fa,color:Da.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Va},secondary:{fontSize:Ba,color:Da.GREYSCALE_45,fontWeight:Ua,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Fa,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Fa,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Da.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ba,borderBottom:`solid 1px ${Da.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Fa,color:Da.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Da.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Da.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Da.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:Da.RED}}},"&.Mui-focusVisible":{backgroundColor:Da.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:Da.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:Da.GREEN,height:"24px","&.Mui-disabled":{color:Da.GREYSCALE_0_15}},rail:{backgroundColor:Da.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Da.GREYSCALE_0_05}`,borderRadius:Wa,boxShadow:`inset 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Da.GREYSCALE_0_05}`,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Da.WHITE,boxShadow:`0px 1px 2px 0px ${Da.GREYSCALE_0_15}, 0px 0px 0px 1px ${Da.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wa,boxShadow:`0 2px 4px 0 ${Da.GREYSCALE_0_30}, 0 0 0 1px ${Da.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Da.GREYSCALE_0_15}, 0 0 0 1px ${Da.GREYSCALE_0_06}, 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Da.GREYSCALE_0_15}, 0 0 0 1px ${Da.GREYSCALE_0_06}, 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Da.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Da.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Da.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Da.GREYSCALE_0_15},markLabel:{color:Da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Da.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Da.WHITE,color:Da.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:Da.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:Da.GREEN_PALE,boxShadow:`0 0 0 3px ${fo(Da.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Da.BLUE_PALE,boxShadow:`0 0 0 3px ${fo(Da.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Da.GREYSCALE_0_15,borderRadius:Wa},thumb:{height:"16px",width:"16px",borderRadius:Wa,backgroundColor:Da.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:Fa,fontWeight:Va,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Da.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Da.MISC_FOCUS_BORDER}`,backgroundColor:Da.GREYSCALE_0_03,borderRadius:Wa},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Da.GREYSCALE_25,"&.Mui-selected":{color:Da.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Fa,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wa,"&:hover":{backgroundColor:Da.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 ${Da.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Da.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wa,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Da.GREYSCALE_0_05},"&:hover":{backgroundColor:Da.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Da.GREYSCALE_85}`,borderRight:`1px solid ${Da.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Va,backgroundColor:Da.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:Da.GREYSCALE_98,borderBottom:`1px solid ${Da.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Da.GREYSCALE_85}`,borderTop:`1px solid ${Da.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Da.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Da.GREYSCALE_0_05,"&:hover":{backgroundColor:Da.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Da.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>gn.jsx(Kd,{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 ${Da.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Fa,borderRadius:Wa,padding:"7px 16px",border:`1px solid ${Da.GREYSCALE_0_15}`,backgroundColor:Da.GREYSCALE_100_60,color:Da.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Da.GREYSCALE_0_10,border:`1px solid ${Da.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Da.GREYSCALE_0_03,border:`1px solid ${Da.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Da.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Da.MISC_FOCUS_BORDER}`,border:`1px solid ${Da.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Da.GREYSCALE_25,backgroundColor:Da.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Da.GREYSCALE_0_10,border:`1px solid ${Da.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ba,height:24,width:24,padding:7},sizeLarge:{fontSize:Ga,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Fa,borderRadius:Wa}}},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:Da.GREYSCALE_20},tooltip:{backgroundColor:Da.GREYSCALE_20,fontSize:Ba,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Jd=e=>({mode:"light",primary:{ultraLight:Da.GREEN_ULTRA_LIGHT,light:Da.GREEN_PALE,main:Da.GREEN,dark:Da.GREEN_DARK,extraDark:Da.GREEN_EXTRA_DARK,contrastText:Da.WHITE},secondary:{ultraLight:Da.BLUE_ULTRA_LIGHT,light:Da.BLUE_PALE,main:Da.BLUE,dark:Da.BLUE_DARK,extraDark:Da.BLUE_EXTRA_DARK,contrastText:Da.WHITE},error:{ultraLight:Da.RED_ULTRA_LIGHT,light:Da.RED_PALE,main:Da.RED,dark:Da.RED_DARK,extraDark:Da.RED_EXTRA_DARK,contrastText:Da.WHITE},warning:{ultraLight:Da.ORANGE_ULTRA_LIGHT,light:Da.ORANGE_PALE,main:Da.ORANGE,dark:Da.ORANGE_DARK,extraDark:Da.ORANGE_EXTRA_DARK,contrastText:Da.WHITE},success:{ultraLight:Da.GREEN_ULTRA_LIGHT,light:Da.GREEN_PALE,main:Da.GREEN,dark:Da.GREEN_DARK,extraDark:Da.GREEN_EXTRA_DARK,contrastText:Da.WHITE},info:{ultraLight:Da.BLUE_ULTRA_LIGHT,light:Da.BLUE_PALE,main:Da.BLUE,dark:Da.BLUE_DARK,extraDark:Da.BLUE_EXTRA_DARK,contrastText:Da.WHITE},text:{primary:Da.TEXT_PRIMARY,secondary:Da.TEXT_SECONDARY,disabled:Da.GREYSCALE_0_30},action:{hover:Da.GREYSCALE_0_03,hoverOpacity:.03,selected:Da.GREYSCALE_0_05,selectedOpacity:.05,focus:Da.MISC_FOCUS_BORDER},amethyst:{ultraLight:Da.WHITE,main:Da.PURPLE,light:Da.PURPLE_PALE,dark:Da.PURPLE_DARK,extraDark:Da.GREYSCALE_0_0,contrastText:Da.WHITE},background:{paper:Da.WHITE,default:Da.GREYSCALE_95},divider:Da.GREYSCALE_0_15});function Qd(e){return va({components:Zd(),palette:Jd(),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:Fa,fontWeightLight:Ya,fontWeightRegular:Ua,fontWeightMedium:Va,fontWeightBold:qa,htmlFontSize:Fa,fontFamily:Ka.FONT_FAMILY,button:{fontWeight:Va,fontSize:Fa,textTransform:"none"},body1:{fontSize:Ga,lineHeight:"24px"},body2:{fontSize:Fa,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Ha,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ga,fontWeight:Va,lineHeight:"16px"},h6:{fontSize:Fa,fontWeight:Va,lineHeight:"16px"},caption:{color:Da.TEXT_SECONDARY},subtitle1:{fontSize:Fa,color:Da.TEXT_SECONDARY},subtitle2:{fontSize:Ba,color:Da.TEXT_SECONDARY}},shape:{borderRadius:Wa},direction:e})}class eu{translator;muiTheme;containers={};constructor({translator:e}){this.translator=e}sync=({element:e,sharedContainerUtilities:t,translator:n,containerId:r,dataHandler:o,renderHelper:i})=>{this.translator=n,this.containers[r]={element:e,sharedContainerUtilities:t,dataHandler:o,renderHelper:i}};setMuiTheme=e=>{this.muiTheme=Qd(e)};destroy=e=>{delete this.containers[e]}}const tu=["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 nu{embed;translator;charts={};constructor(e,t){this.embed=e,this.translator=t}getCharts=()=>(this.charts=(this.embed?.getRegisteredTypes()).reduce((e,t)=>{if(!tu.includes(t.id)&&!1!==t.libraryInfo?.isLibraryItem&&!t.libraryInfo?.deprecated){const n=t;n.libraryInfo?.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e},{}),this.charts);getChart=e=>(this.charts[e]||this.getCharts(),this.charts[e])}var ru,ou={};var iu=function(){if(ru)return ou;ru=1;var e=L;return ou.createRoot=e.createRoot,ou.hydrateRoot=e.hydrateRoot,ou}();const au=x((e,t)=>gn.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:gn.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"})})),su="rgb(89, 89, 89)",lu=pn(xl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),cu=pn(xl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),du=pn(fc,{shouldForwardProp:e=>"width"!==e})(({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}})),uu=pn(Vs)({color:su,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),pu=pn(jc)({"&.MuiListItemIcon-root":{minWidth:32,color:su,marginRight:"0px"}}),hu=pn(Jl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),fu=pn(Tl)({"&.MuiButton-contained":{backgroundColor:su,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:su,color:su,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${su}`}}}),mu=pn(es)({width:"1em",height:"1em",paddingBottom:"8px"}),bu=pn(es)({width:"16px",height:"16px"}),gu=({name:e,items:t,onSelect:n})=>gn.jsxs(gn.Fragment,{children:[gn.jsx(Tc,{dense:!0,children:gn.jsx(uu,{noWrap:!0,fontWeight:"bold",children:e})},e),gn.jsx(hu,{}),t.map(e=>gn.jsx(Tc,{divider:!0,disablePadding:!0,disableGutters:!0,children:gn.jsxs(Ec,{sx:{minHeight:"32px",height:"auto"},onClick:()=>{n(e)},disableRipple:!0,dense:!0,children:[e.iconPath?gn.jsx(pu,{children:e.IconDefinition?gn.jsx(e.IconDefinition,{}):gn.jsx(bu,{viewBox:"0 0 16 16",children:gn.jsx("path",{d:e.iconPath})})}):null,gn.jsx(uu,{noWrap:!0,title:e.translation||e.name,children:e.translation||e.name})]})},e.qExtendsId??e.name))]}),vu=({categories:e,anchorEl:t,onClose:n,onSelect:r,width:o})=>{const[i,a]=k(""),s=!!t;return gn.jsxs(Qc,{open:s,anchorEl:t,onClose:()=>{a(""),n()},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"},children:[gn.jsx(dl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:gn.jsx(cc,{position:"start",children:gn.jsx(au,{})})}),gn.jsx(hu,{}),gn.jsx(du,{width:o,children:e.map(e=>{const t=e.items.filter(e=>{const t=e.translation||e.name;return t?.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1});return t.length>0&&gn.jsx(gu,{name:e.name,items:t,onSelect:r},e.name)})})]})},yu=({anchorEl:e,onClose:t,dataHandler:n,translator:r,sharedContainerUtilities:o,width:i})=>{const[a,s]=k([]),[l,c]=k({});A(()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();s(e),c(n.getCharts())})().catch(()=>{})}},[e,n]);const d=[],u=[],p=new Map,h=Object.values(l);if(0===h.length&&0===a.length)return null;h.forEach(e=>{if(!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible)d.push(e);else if(e.libraryInfo.visible)if(e.libraryInfo.bundle?.name){const t=e.libraryInfo.bundle.name,n=p.get(t);n?n.push(e):p.set(t,[e])}else u.push(e)});const f=e=>e.map(e=>({iconPath:e.libraryInfo?.iconPath,IconDefinition:e.libraryInfo?.IconDefinition,name:e.id,translation:e.libraryInfo?.translation||e.libraryInfo?.name||e.id||"",type:e.id})).sort((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name)),m=[{name:r.get("LayoutContainer.Object.MasterItems"),items:a.map(e=>({qExtendsId:e.qExtendsId,iconPath:l[e.visualization]?.libraryInfo?.iconPath,IconDefinition:l[e.visualization]?.libraryInfo?.IconDefinition,name:e.name,type:e.visualization})).sort((e,t)=>e.name.localeCompare(t.name))},{name:r.get("LayoutContainer.Object.Charts"),items:d.map(e=>({iconPath:e.libraryInfo?.iconPath||"",IconDefinition:e.libraryInfo?.IconDefinition,name:e.libraryInfo?.name||e.id,type:e.libraryInfo?.template||e.id,translation:e.libraryInfo?.translation||e.id||""})).sort((e,t)=>e.translation.localeCompare(t.translation))},{name:r.get("LayoutContainer.Object.CustomObjects"),items:f(u)}];for(const[e,t]of p)m.push({name:e,items:f(t)});return gn.jsx(vu,{categories:m,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:r}=e;(r?n.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then(e=>{e?.id&&o?.setSelected([e.id])}).catch(e=>{console.warn(e)}).finally(()=>{t()})},onClose:t,width:i})},xu=e=>{const t=Su(e);return e.objects?.map(e=>{const{childRefId:n}=e;if(!n)return e;const r=t[n];return r?{...e,id:r}:e})??[]},Eu=(e,t)=>e?.qChildList?.qItems?.find(e=>e?.qData?.childRefId===t),Su=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qData?.childRefId;return e[n]=t?.qInfo?.qId,e},{});var Cu=Eu,wu=e=>{const t={...e};return t.objects=xu(t),t},Ru=e=>e?.qChildList?.qItems?.reduce((e,t)=>{const n=t?.qInfo?.qId;return e[n]=t.qData?.childRefId,e},{}),ku=e=>e.objects.reduce((e,t)=>(e[t.childRefId]=t,e),{}),Au=(e,t)=>{if(!e)return t;const n=Eu(e,t);return n?.qInfo?.qId};class _u{layout;app;activeId="";data;properties=void 0;constructor({app:e,data:t}){this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}setSelectedChild=e=>{this.activeContainer?.sharedContainerUtilities?.setSelected(e)};addChild=({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:r}=this.activeContainer;if(e?.qExtendsId){const{qExtendsId:o,qInfo:i}=e;return r?.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:i},objectInitProps:t,children:n})}return r?.addVizAsChild({type:e?.visualization,initProps:e,objectInitProps:t,children:n})};deleteChild=async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(t?.deleteChildren([e]))};duplicateChild=async e=>{const{childRefId:t,...n}=e,r=this.getEngineId(t);if(!r)return;const o=await(this.app?.getObject(r));if(o&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await o.getFullPropertyTree(),r=t.qProperty,i=t.qChildren,a=await this.addChild({initProps:r,children:i,objectInitProps:n});a&&e?.setSelected([a.id])}};openAddChildPopover=e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let r;return 0===n.length?(r=document.createElement("div"),r.className=t,e.appendChild(r)):r=n[0],iu.createRoot(r)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};t?.render(gn.jsx($a,{theme:this.data.muiTheme,children:gn.jsx(yu,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})}))}};getObject(e){const t=this.getEngineId(e);if(t)return this.activeContainer?.renderHelper.objectMap.get(t)}setModel=e=>{this.activeId=e.id};setLayout=e=>{this.layout=e};getLayout=()=>this.layout;getEngineId=e=>Au(this.layout,e);setProperties=e=>{this.properties=e};canAddDimension=()=>!1;canAddMeasure=()=>!1;canColorBy=()=>!1;getDimensions=()=>[];getMeasures=()=>[];minDimensions=()=>0;minMeasures=()=>0;maxDimensions=()=>0;maxMeasures=()=>0}function Iu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Pu(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 Ou(e){return function(e){if(Array.isArray(e))return Iu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pu(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 Pu(e,t){if(e){if("string"==typeof e)return Iu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iu(e,t):void 0}}var Mu,ju="top",Nu="top-right",$u="right",zu="bottom-right",Du="bottom",Bu="bottom-left",Fu="left",Gu="top-left";Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Mu={},"equal-equal",[ju,Du]),"equal-higher",[Du,zu]),"equal-lower",[ju,Nu]),"equal-void",[ju,Du]),"higher-equal",[Fu,Bu,ju,Nu]),"higher-higher-acute",[Du,Bu,Fu,Nu]),"higher-higher-obtuse",[Du,ju]),"higher-lower-negative",[ju,Nu,$u]),"higher-lower-positive",[Du,Bu,Fu]),"higher-void",[ju]),Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Tu(Mu,"lower-equal",[ju]),"lower-higher-negative",[ju,Gu]),"lower-higher-positive",[zu]),"lower-lower-acute",[ju,Gu,Fu,Nu,$u]),"lower-lower-obtuse",[ju,Du]),"lower-void",[ju]),"void-equal",[ju]),"void-higher",[ju,Du]),"void-lower",[ju,Du,Fu]),"void-void",[ju]),Tu(Mu,"unclassified",[ju,Du,$u,Fu,Nu,zu,Bu,Gu]);var Hu="object",Wu=["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"],Yu=["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 Uu=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function Vu(e){var t=e.theme,n=e.translator,r=e.defaultValue,o=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,Ou(new Set([r].concat(Ou(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(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(Ou(i.map(function(e){return Uu(e)})),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],Ou(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Yu:Wu}(o).map(function(e){return Uu(e)})))}function qu(e){var t=e.theme,n=e.translator,r=e.id,o=e.path,i=e.flags,a=function(){return t.getStyle(r,o,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return Vu({theme:t,translator:n,defaultValue:a(),flags:i})}}}var Ku=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Xu=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function Zu(e){var t=e.theme,n=e.translator,r=e.id,o=e.path,i=function(){return t.getStyle(r,o,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],o=e.theme.getStyle("","","fontSizes");return Array.isArray(o)&&o.length?r.push.apply(r,Ou(new Set([n].concat(Ou(o))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Ou(r.map(function(e){return Xu(e)})),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Ou(Ku.map(function(e){return Xu(e)})))}({theme:t,translator:n,defaultValue:i()})}}}function Ju(e){var t=e.theme,n=e.translator,r=e.id,o=e.path;return{fontFamily:qu({theme:t,translator:n,id:r,path:o,flags:e.flags}),fontSize:Zu({theme:t,translator:n,id:r,path:o})}}var Qu,ep,tp=["__proto__","constructor"],np=function(e){if(tp.some(function(t){return e.includes(t)}))throw new Error("font-resolver: Forbidden property.")};var rp,op=function(){if(ep)return Qu;ep=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Qu=function e(){var t,n,r,l,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(n in t)r=s(u,n),u!==(l=s(t,n))&&(f&&l&&(i(l)||(c=o(l)))?(c?(c=!1,d=r&&o(r)?r:[]):d=r&&i(r)?r:{},a(u,{name:n,newValue:e(f,d,l)})):void 0!==l&&a(u,{name:n,newValue:l}));return u},Qu}();function ip(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ap(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sp(){}(rp=op)&&rp.__esModule&&Object.prototype.hasOwnProperty.call(rp,"default")&&rp.default;var lp=.7,cp=1/lp,dp="\\s*([+-]?\\d+)\\s*",up="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hp=/^#([0-9a-f]{3,8})$/,fp=new RegExp(`^rgb\\(${dp},${dp},${dp}\\)$`),mp=new RegExp(`^rgb\\(${pp},${pp},${pp}\\)$`),bp=new RegExp(`^rgba\\(${dp},${dp},${dp},${up}\\)$`),gp=new RegExp(`^rgba\\(${pp},${pp},${pp},${up}\\)$`),vp=new RegExp(`^hsl\\(${up},${pp},${pp}\\)$`),yp=new RegExp(`^hsla\\(${up},${pp},${pp},${up}\\)$`),xp={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 Ep(){return this.rgb().formatHex()}function Sp(){return this.rgb().formatRgb()}function Cp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=hp.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?wp(t):3===n?new _p(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Rp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Rp(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=fp.exec(e))?new _p(t[1],t[2],t[3],1):(t=mp.exec(e))?new _p(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bp.exec(e))?Rp(t[1],t[2],t[3],t[4]):(t=gp.exec(e))?Rp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=vp.exec(e))?Mp(t[1],t[2]/100,t[3]/100,1):(t=yp.exec(e))?Mp(t[1],t[2]/100,t[3]/100,t[4]):xp.hasOwnProperty(e)?wp(xp[e]):"transparent"===e?new _p(NaN,NaN,NaN,0):null}function wp(e){return new _p(e>>16&255,e>>8&255,255&e,1)}function Rp(e,t,n,r){return r<=0&&(e=t=n=NaN),new _p(e,t,n,r)}function kp(e){return e instanceof sp||(e=Cp(e)),e?new _p((e=e.rgb()).r,e.g,e.b,e.opacity):new _p}function Ap(e,t,n,r){return 1===arguments.length?kp(e):new _p(e,t,n,null==r?1:r)}function _p(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ip(){return`#${Pp(this.r)}${Pp(this.g)}${Pp(this.b)}`}function Tp(){const e=Lp(this.opacity);return`${1===e?"rgb(":"rgba("}${Op(this.r)}, ${Op(this.g)}, ${Op(this.b)}${1===e?")":`, ${e})`}`}function Lp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Op(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pp(e){return((e=Op(e))<16?"0":"")+e.toString(16)}function Mp(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Np(e,t,n,r)}function jp(e){if(e instanceof Np)return new Np(e.h,e.s,e.l,e.opacity);if(e instanceof sp||(e=Cp(e)),!e)return new Np;if(e instanceof Np)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Np(a,s,l,e.opacity)}function Np(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $p(e){return(e=(e||0)%360)<0?e+360:e}function zp(e){return Math.max(0,Math.min(1,e||0))}function Dp(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ip(sp,Cp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ep,formatHex:Ep,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return jp(this).formatHsl()},formatRgb:Sp,toString:Sp}),ip(_p,Ap,ap(sp,{brighter(e){return e=null==e?cp:Math.pow(cp,e),new _p(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?lp:Math.pow(lp,e),new _p(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _p(Op(this.r),Op(this.g),Op(this.b),Lp(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:Ip,formatHex:Ip,formatHex8:function(){return`#${Pp(this.r)}${Pp(this.g)}${Pp(this.b)}${Pp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Tp,toString:Tp})),ip(Np,function(e,t,n,r){return 1===arguments.length?jp(e):new Np(e,t,n,null==r?1:r)},ap(sp,{brighter(e){return e=null==e?cp:Math.pow(cp,e),new Np(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?lp:Math.pow(lp,e),new Np(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new _p(Dp(e>=240?e-240:e+120,o,r),Dp(e,o,r),Dp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Np($p(this.h),zp(this.s),zp(this.l),Lp(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=Lp(this.opacity);return`${1===e?"hsl(":"hsla("}${$p(this.h)}, ${100*zp(this.s)}%, ${100*zp(this.l)}%${1===e?")":`, ${e})`}`}}));const Bp=Math.PI/180,Fp=180/Math.PI,Gp=.96422,Hp=.82521,Wp=4/29,Yp=6/29,Up=3*Yp*Yp,Vp=Yp*Yp*Yp;function qp(e){if(e instanceof Kp)return new Kp(e.l,e.a,e.b,e.opacity);if(e instanceof eh)return th(e);e instanceof _p||(e=kp(e));var t,n,r=Qp(e.r),o=Qp(e.g),i=Qp(e.b),a=Xp((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Xp((.4360747*r+.3850649*o+.1430804*i)/Gp),n=Xp((.0139322*r+.0971045*o+.7141733*i)/Hp)),new Kp(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Kp(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Xp(e){return e>Vp?Math.pow(e,1/3):e/Up+Wp}function Zp(e){return e>Yp?e*e*e:Up*(e-Wp)}function Jp(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eh(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function th(e){if(isNaN(e.h))return new Kp(e.l,0,0,e.opacity);var t=e.h*Bp;return new Kp(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ip(Kp,function(e,t,n,r){return 1===arguments.length?qp(e):new Kp(e,t,n,null==r?1:r)},ap(sp,{brighter(e){return new Kp(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Kp(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new _p(Jp(3.1338561*(t=Gp*Zp(t))-1.6168667*(e=1*Zp(e))-.4906146*(n=Hp*Zp(n))),Jp(-.9787684*t+1.9161415*e+.033454*n),Jp(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ip(eh,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof eh)return new eh(e.h,e.c,e.l,e.opacity);if(e instanceof Kp||(e=qp(e)),0===e.a&&0===e.b)return new eh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Fp;return new eh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new eh(e,t,n,null==r?1:r)},ap(sp,{brighter(e){return new eh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new eh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return th(this).rgb()}}));var nh=e=>()=>e;function rh(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):nh(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?rh:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):nh(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ap(e)).r,(t=Ap(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=rh(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var oh="center",ih="bottom";function ah(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(void 0===o[a])return n;o=o[a]}return o}[{key:"NoDataExist",alignment:oh,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:oh,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:oh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:oh},{key:"DataRangeIncludingZero",alignment:ih},{key:"LimitedData",alignment:ih},{key:"NegativeOrZeroValues",alignment:ih}].reduce(function(e,t){return e[t.key]=t,e},{});var sh,lh=["__proto__","constructor"];function ch(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!lh.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function dh(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function uh(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=hh)):void 0===t&&(t=ph);for(var n,r,o,i,a,s=new bh(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new bh(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(mh)}function ph(e){return e.children}function hh(e){return Array.isArray(e)?e[1]:null}function fh(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function mh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bh(e){this.data=e,this.depth=this.height=0,this.parent=null}bh.prototype=uh.prototype={constructor:bh,count:function(){return this.eachAfter(dh)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return uh(this).eachBefore(fh)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},sh=function(e){
88
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,s,l,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))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+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],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(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}},oh({exports:{}});var fh="'Source Sans Pro', 'Arial', 'sans-serif'",mh="#333333",bh="#595959",gh="#737373",vh="#cccccc",yh="#e6e6e6";function xh(e){var t={};return[].concat(Mu(e),Mu([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",bh],["object","axis.label.name","fontFamily",fh],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",vh],["object","axis.line.minor","color",yh],["object","axis.title","color"],["object","axis.title","fontFamily",fh],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",yh],["object","grid.line.major","color",vh],["object","grid.line.minor","color",yh],["object","label.value","color",bh],["object","label.value","fontFamily",fh],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",bh],[!1,"label.value","lightColor",yh],["object","outOfRange","color","#999"],["object","legend.title","color",mh],["object","legend.title","fontFamily",fh],["object","legend.title","fontSize","15px"],["object","legend.label","color",bh],["object","legend.label","fontFamily",fh],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",mh],["object","referenceLine.label.name","fontFamily",fh],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",yh],["object","referenceLine.outOfBounds","fontFamily",fh],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",gh,function(e){return"transparent"===e?gh: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 Eh=function(e){return e};function Sh(e){var t=e.theme,r=e.id,n=e.transform,o=e.extend,i=e.matrix,a={},s=n.reduce(function(e,t){var r=Pu(t,2),n=r[0],o=r[1];return e[n]=o,e},{});return i.forEach(function(e){var n=Pu(e,5),o=n[0],i=n[1],l=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 s=t.getStyle(r,n,o);return void 0===s?a:s}({theme:t,base:"object"===o&&r?"".concat("object",".").concat(r):o,path:i,attribute:l,defaultValue:c}),h=(s["".concat(i,".").concat(l)]||Eh)(u(p));ah(a,[i,l].filter(Boolean).join("."),h)}),o.forEach(function(e){var t=Pu(e,2),r=t[0],n=t[1];ah(a,r,n)}),a}const Ch={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function wh(e){if(!e.objects)return{};const t=_u(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(r=>({chart_type:r.qData.visualization,chart_id:r.qInfo.qId,chart_isMaster:!!r.qData.qExtendsId,tab_isVisible:0!==t[r.qData.childRefId]?.condition,tab_isActive:r.qData.childRefId===e.cachedTabId}))}}const Rh=({ref:e,theme:t,change:r})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(nh(t,`${e}.color`)||nh(t,`${e}.colorExpression`))&&(ah(t,`${e}.color`,void 0),ah(t,`${e}.colorExpression`,void 0)),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:3,show:t=>!nh(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{r?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>nh(t,`${e}.useColorExpression`)}}}),kh=({theme:e})=>({bgColorAllWrapper:Rh({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Rh({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Rh({ref:"background.hover",theme:e,change:e=>{ah(e,"indicator.hover.color",nh(e,"background.hover.color")),ah(e,"indicator.hover.useColorExpression",nh(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Ah=({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=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:r.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.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}}},_h=({theme:e})=>({colorWrapper:Rh({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Rh({ref:"indicator.hover",theme:e,change:e=>{ah(e,"background.hover.color",nh(e,"indicator.hover.color")),ah(e,"background.hover.useColorExpression",nh(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Ih=({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)=>{const n=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const r=e.components?.find(e=>"tab"===e.key),n=r?.label?.fontFamily;n&&-1===t.indexOf(n)&&t.push(n)}),t})(r);n&&-1===o.indexOf(n)&&o.push(n),r.fontsUsed=o}},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}}},Th=({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:Ih({paths:{ref:"label",theme:"label.value"},fontResolver:r,theme:n})}}}),Lh=({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=>{if(void 0!==e.width?.value&&"%"===e.width?.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=>"px"===e.width?.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=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Oh=({theme:e,ref:t,key:r})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:r,items:_h({theme:e})}}}),Ph=({ref:e,key:t,fontResolver:r,theme:n})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Ah({paths:{ref:"icon",theme:"icon.value"},fontResolver:r,theme:n})}},show:(e,{layout:t})=>!!t.showIcons}),Mh=({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:Rh({ref:"background"})}:kh({theme:e})}}}),jh=({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:Th({ref:r,key:n,fontResolver:e,theme:t}),width:{...Lh({ref:r,key:n}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Ph({ref:r,key:n,fontResolver:e,theme:t}),background:Mh({ref:r,key:n,theme:t})}}},Nh={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},$h={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},zh=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Dh=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const r=t.getLayout(),n=Ru(r,e.childRefId)?.qMeta;return!n?.privileges?.includes("update")||!r.permissions?.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:zh(t,r.getLayout())}),r.setSelectedChild([i]))}}),Bh=e=>{const{sense:t}=e.env.anything;return{label:Nh,condition:$h,styling:jh({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Dh(e)}},Fh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Gh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Hh=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:Bh(e)}),Wh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Fh,chartsLabel:Gh,chartList:Hh(e)}}),Yh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Vh={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},Uh={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},qh={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},Kh={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=Iu(t.getLayout(),e.defaultTabId);r&&t.setSelectedChild([r])},show:e=>e.objects.length>0},Xh={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},Zh=({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:Th({ref:r,key:n,fontResolver:e,theme:t}),width:Lh({ref:r,key:n}),indicator:Oh({ref:r,key:n,theme:t}),icon:Ph({ref:r,key:n,fontResolver:e,theme:t}),background:Mh({ref:r,key:n,theme:t})}}},Jh={items:{details:{show:e=>!0===e.showDetails}}},Qh=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:Zh({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:Yh,useDropdown:Vh,useScrollButton:Uh,showIcons:qh,orientation:Xh,defaultTabId:Kh}}}}},ef=e=>({uses:"settings",items:{general:Jh,presentation:Qh(e)}}),tf=e=>({type:"items",component:"accordion",items:{content:Wh(e),settings:ef(e)}}),rf=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}),s=a.id,l=a.paths,c={};l.forEach(function(e){var n=e.split(".");np(n);for(var o=c,a=0;a<n.length;a++){var l=n[a];a===n.length-1?o[l]=Qu({theme:t,translator:r,id:s,path:e,flags:i}):void 0===o[l]&&(o[l]={}),o=o[l]}});var d=function(e){var t=e.split(".");np(t);for(var 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: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){const n=await e.model.getProperties();return o.setProperties(n),o.setLayout(e.model?.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(){o.addChild({initProps:{qExtendsId:n.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void r();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",n.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),r()},async addChild(t,r){const{model:n}=this,o=new Tu({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&&nu.includes(t.template))return!1;if("visualization"===t.type&&nu.includes(t.visualization))return!1}return"gridcell"!==e.type||!nu.includes(e.cell.model.layout.visualization)}}}(e);return{definition:tf({...e,fontResolver:r}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Tu({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(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&r){const l=[];s.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}}};l.push(n(r.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:r,defaultTabId:n??"",components:o,qChildListDef:Ch,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,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:wh}},nf=({propertyHandlerData:e,element:n,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l})=>{const c=t();a&&e.sync({containerId:a,element:n,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l}),r(()=>{e.setMuiTheme(c.direction)},[c.direction,e]),r(()=>()=>{a&&e.destroy(a)},[a,e,c.direction])},of=e=>e.reduce((e,{id:t,data:r})=>(r&&(e[t]=r),e),{}),af=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:of(r)}},sf=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 of(r)},lf=(e,t)=>(n(async r=>{const n=r,{snapshotData:o}=n;if(o){const r=ku(n),i=t(e.objectMap,r),[a,s]=await Promise.all([sf(i.objectMap),af(i.objectMap)]);o.objectsData={layouts:a},n.objects=i.objects,o.viewState=s}return r}),{getViewState:()=>af(e.objectMap)});let cf=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),df=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),uf=function(e){return 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",e}({});const pf=`& .${uf.TAB}.${uf.TAB_EXTRA_PRIO}, .${uf.TAB}.${uf.ACTIVE_TAB}`,hf=`& .${uf.TAB}.${uf.TAB_EXTRA_PRIO}:hover`,ff=`& .${uf.TAB_LABEL}`,mf=`& .${uf.TABS_ICON} svg`,bf=`& .${uf.TAB_WRAPPER}`,gf=`& .${uf.TAB_INDICATOR}`,vf=e=>e.getElementsByClassName(uf.ACTIVE_TAB)?.[0],yf=e=>e.getElementsByClassName(uf.ACTIVE_TAB_PANEL)?.[0],xf=({element:e,setAccessibility:t,accessibility:n,renderHelper:s,interactions:l,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=o(),g=i(()=>()=>{t(!1),b.enabled&&b.blur?.(!0)},[b,t]),v=i(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case cf.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case cf.ENTER:case cf.SPACE:{t.stopPropagation();const r=t.target;r?.classList.contains(uf.ACTIVE_TAB)&&yf(e)?.focus();break}}},[e,b]),y=i(()=>t=>{const r=t.shiftKey?`shift+${t.key}`:t.key,n=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(r){case cf.ESCAPE:{const r=vf(e);m?(({event:e,objectApi:t,activeTab:r})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():r?.focus()})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():r?.focus()})({event:t,objectApi:n,activeTab:r});break}case cf.ENTER:case cf.SPACE:{const r=yf(e);m?(({event:e,objectApi:t,activeTab:r})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{r?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:r}):(({event:e,objectApi:t,activeTab:r})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{r?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:n,activeTab:r});break}case cf.OPEN_CONTEXT_MENU:t.stopPropagation(),n?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=i(()=>e=>{const t=e.target;t?.classList.contains(uf.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);r(()=>(n&&e.addEventListener(df.KEY_DOWN,x),()=>{e.removeEventListener(df.KEY_DOWN,x)}),[e,n,x]);const[E,S]=a(!1);r(()=>{E&&(S(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(uf.TAB_MENU)?.[0])(e)??vf(e))?.focus(),0))},[e,E]),r(()=>{t(!1)},[l.edit,t]),r(()=>{const r=t=>{const r=t.relatedTarget;e?.contains(r)||r?.classList.contains(uf.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),S(!0),e.addEventListener(df.FOCUS_OUT,r)),()=>{e.removeEventListener(df.FOCUS_OUT,r)}},[b])},Ef=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},Sf=({isContainerActive:e,activeTabId:t,modifiedLayout:n,renderHelper:o})=>{const a={modifiedLayout:n,activeTabId:t,renderHelper:o,isContainerActive:e},[s,l]=Ef(a);l(a);const c=i(()=>()=>{const e=Au(s.modifiedLayout);for(const[t,r]of s.renderHelper.objectMap.entries()){const n=s.isContainerActive&&s.activeTabId===e[t];"setIsActive"in r&&r.setIsActive(n)}},[s]);r(()=>{s.isContainerActive&&c()},[o.objectMap,c,s]),r(()=>{c()},[e,c])},Cf={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 wf={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class Rf{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=wf.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(wf))};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=>!nu.includes(e.visualization))}catch{return[]}}}let kf=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 Af{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:r,translator:n,mutex:o}){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 Rf(r)),e&&n&&(this.chartList=new ou(e,n)),this.mutex=o}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};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,r){if(this.model&&!nu.includes(e.visualization))try{await this.mutex.lock();const{model:n}=this,o=async()=>{e.childRefId=Cf.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{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:r,children:n})=>{try{const o=await this.generateProperties(e,t);let i=r?.label||t?.title;if(!i){const r=this.getChart(t?.visualization),n=r?.libraryInfo;i=n?.translation||n?.name||e}const a={...r,label:i};return await this.addChild(o,n,a)}catch{return}};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=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,r,s)}catch{return}};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{return!1}finally{this.mutex.unlock()}};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 kf.TOP:{if(0===o)break;const e=n.splice(o,1)[0];n.unshift(e),i=!0;break}case kf.BOTTOM:{if(o===n.length-1)break;const e=n.splice(o,1)[0];n.push(e),i=!0;break}case kf.UP:{if(0===o)break;const e=n.splice(o,1)[0];n.splice(o-1,0,e),i=!0;break}case kf.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()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const r=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!r)return"";const{visualization:n,title:o}=r.qData;if(o)return o;const i=this.getChart(n);return i?.libraryInfo?.translation||n}}class _f{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const If={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}},Tf={index:-1,color:"none",alpha:1},Lf=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}},Of=(e,t,r,n,o=1)=>{let i,a,s,l=[];switch(r=Math.floor(r)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+n,a=l[1]+n,s=l[2]+n,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},Pf=e=>{const{h:t,s:r,l:n}=Lf(e),o=e.length>7?parseFloat(e[7]):1,i=n<=.5?2*n*r:(2-2*n)*r,a=t/60,s=i*(1-Math.abs(a%2-1));return Of(i,s,a,n-.5*i,o)},Mf={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 Pf(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 Pf(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}=Lf(e),o=n*r,i=t/60,a=o*(1-Math.abs(i%2-1));return Of(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&&If[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=e?.color||Tf;let o;return o=e?.useColorExpression?Mf.resolveExpression(e):"string"==typeof n?n:r?.getColorPickerColor(n)||"",o&&"none"!==o?o:t}},jf=()=>br.jsx(gu,{viewBox:"0 0 16 16",children:br.jsx("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"})}),Nf=({libraryInfo:e,style:t,id:r})=>br.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:r,className:uf.TABS_ICON,children:br.jsx(e.IconDefinition,{})}),$f=({style:e,id:t})=>br.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:br.jsx(vu,{viewBox:"0 0 16 16",children:br.jsx("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"})})}),zf=()=>br.jsx(vu,{viewBox:"0 0 16 16",children:br.jsx("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"})}),Df=ja(_d)({width:28,overflow:"hidden"}),Bf=ja(_d)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Ff=(e,t)=>e.find(e=>e.childRefId===t),Gf=(e,t)=>!t.edit&&0===e.condition,Hf=e=>{const{objects:t,defaultTabId:r,cachedTabId:n}=e;return n||(r&&t.some(e=>e.childRefId===r)?r:t[0]?.childRefId||"")};class Wf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Hf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=_u(this.modifiedLayout),this.style=this.createStyleClasses()}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}`}};getTabWidth=e=>{const t=e?.value,r=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${r}`,maxWidth:`${t[1]}${r}`}};getColorStyle=(e,t=e)=>{const r=this.resolveComponentStyle({compPath:e,themePath:t});return Mf.getColor({style:r,theme:this.theme})??r};getTabBackgroundStyle=(e,t)=>{let r;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});r=Mf.getColor({style:e,theme:this.theme})}return r??Mf.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const r=t?.childRefId,n=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${r}`]={textAlign:nh(n,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(r,n?.background),...this.getTabWidth(n?.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${r}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${r}`]={fontSize:nh(n,"label.fontSize"),fontFamily:nh(n,"label.fontFamily"),color:Mf.getColor({style:nh(n,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${r} svg`]={height:nh(n,"icon.size"),color:Mf.getColor({style:nh(n,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[ff]:{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"})},[mf]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[pf]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[hf]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[bf]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[gf]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:r=t,defaultValue:n})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return nh(o,t)??nh(this.themeStyle,r)??n};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const Yf=()=>{const e=s(),r=l(),n=c(),o=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,s=n.transform,l=void 0===s?[]:s,c=n.extend,d=void 0===c?[]:c,u={theme:t,matrix:xh(a),styles:void 0};return u.styles=Sh({theme:t,id:o,transform:l,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=Sh({theme:e,id:o,transform:l,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=i(()=>new ou(o,g),[o,g]),[C]=a(()=>new _f(b.id)),[w,R]=a(!1),k=i(()=>o&&b&&r?new Af({embed:o,model:b,app:r,translator:g,mutex:C}):void 0,[o,b,r,g,C]),A=i(()=>ku(n),[n]),_=i(()=>new Wf({modifiedLayout:A,themeService:E}),[A,E]);return i(()=>({app:r,modifiedLayout:A,embed:o,model:b,emitter:y,interactions:x,dataHandler:k,chartList:S,styleModel:_,mutex:C,options:v,accessibility:w,setAccessibility:R,translator:g,element:e}),[A,o,b,r,y,x,k,S,_,C,v,w,g,e])},Vf=({dataHandler:e,modifiedLayout:t,translator:r,sharedContainerUtilities:n,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return br.jsx(uu,{children:br.jsxs(du,{children:[br.jsx(o,{}),s?br.jsxs(br.Fragment,{children:[br.jsx(bu,{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,children:r.get("LayoutContainer.EmptyList.AddContent")}),br.jsx(Eu,{translator:r,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:n})]}):br.jsx(Us,{variant:"inherit",children:r.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class Uf{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){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}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};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every(e=>this.rendered.has(e.id)))&&this.doResolve()}};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=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.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){const{viewState:t,modifiedLayout:r,options:n}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l}=n;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!r?.qExtendsId,isSnapshot:!!r.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:!1,fallbackToClient:n.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const qf=({chartObject:e,embed:t,renderHelper:r,direction:n,interactions:o,env:i})=>{const a=_(null),{id:s}=e;A(()=>{if(s&&a.current){const e=r.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:a.current,options:e}).then(e=>{r.saveObjectApi(s,e)}).catch(e=>{const t=r.getChildLayout(s)?.qInfo?.qType;console.error("Could not render chart with id",s,t,e)})}},[s,t,r,n]);const l=I(()=>()=>{if(e?.id&&i.anything){const t=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=a?.current;return e&&o?.edit&&e.addEventListener("dblclick",l),()=>{e?.removeEventListener("dblclick",l)}},[a,l,o]),br.jsx("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let Kf=function(e){return e.TABS_HEIGHT="36px",e}({});const Xf=({charts:e,handleChangeTab:t,activeTabId:r,element:n,translator:o,accessibility:i,disabled:a})=>{const[s,l]=S.useState(null),c=Boolean(s),d=()=>{l(null)},u=T(e=>{e?.focus()},[]);return br.jsxs(br.Fragment,{children:[br.jsx(Tl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:uf.TAB_MENU,sx:{m:"2px"},children:br.jsx(zf,{})}),br.jsx(ld,{anchorEl:s,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"}}},children:e.map(e=>br.jsx(hd,{className:uf.TAB_MENU_ITEM,ref:r===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{n.getElementsByClassName(uf.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:{...r===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label,children:br.jsx(Us,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},Zf=({label:e,id:t})=>br.jsx(xl,{className:uf.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:br.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),Jf=({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?br.jsx($f,{id:`${uf.TABS_ICON}-${n}`,style:o}):e?br.jsx(Nf,{id:`${uf.TABS_ICON}-${n}`,libraryInfo:e,style:o}):null},Qf=({models:e,activeTabId:t,handleChangeTab:r})=>{const{modifiedLayout:n,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=n.objects.filter(e=>!Gf(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:Bf}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Df})(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 br.jsxs(xl,{className:uf.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[n.useDropdown&&h?br.jsx(Xf,{charts:l,handleChangeTab:r,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,br.jsx(Fd,{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:Kf.TABS_HEIGHT},children:l.map(r=>{const o=Ru(n,r.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(r.childRefId),d=0===r.condition||n.showIcons&&i&&!1!==l?.icon?.show,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=r.label&&(l?.label?.show??!1!==f),b=`${n.qInfo.qId}-${r.childRefId}`;return br.jsx(vd,{className:`${uf.TAB} ${t===r.childRefId?uf.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:r.childRefId,title:r.label,label:m?br.jsx(Zf,{label:r.label,id:b}):void 0,icon:d?br.jsx(Jf,{libraryInfo:i,chart:r,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${r.childRefId}`,sx:{textAlign:"vertical"!==c||n.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Kf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":r.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===r.childRefId?0:-1},r.childRefId)})})]})},em=({models:e,renderHelper:t,activeTabId:r,handleChangeTab:n,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d}=e,u=i.objects,p=s.edit||!!u.find(e=>0!==e.condition),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return br.jsxs(xl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:l.direction,...m},children:[h?br.jsx(Qf,{models:e,activeTabId:r,handleChangeTab:n}):null,u.map(e=>{const n=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=r===e.childRefId&&!Gf(e,s);return br.jsx(xl,{role:"tabpanel",id:n,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:uf.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?br.jsx(qf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o}):null},n)})]})};let tm=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),rm=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",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.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 nm=[rm.PASTE_AND_REPLACE,rm.ZOOM_IN,rm.VISUAL_EXPLORATION],om=[rm.VISUAL_EXPLORATION,rm.ALERT_GROUP,rm.SHOW_DETAILS,rm.EXPLAIN_KEY_DRIVERS,rm.EXPLAIN_KEY_DRIVERS_OLD_ID],im=[rm.DELETE,rm.CUT,rm.ADD_TO_MASTER_ITEMS,rm.UNLINK_VISUALIZATION],am=[rm.PASTE_AND_REPLACE],sm=(e,t)=>{const{childRefId:r}=e.model.layout,n=t.objects.find(e=>e.childRefId===r);return{...e,additionalData:{label:n?.label}}},lm=(e,t,r,n,o)=>{const i=t.getSupportFunction(rm.COPY);if(!i)return void e.deleteItem(rm.COPY);const a=()=>{i(sm(r,n)).catch(()=>{})},s=e.items.find(e=>e.id===rm.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===rm.CUT),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:rm.COPY,id:rm.COPY,icon:"copy",select:a,items:[]},r)}},cm=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,dm=async(e,t,r,n,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:rm.CONTAINER_HEADER,id:rm.CONTAINER_HEADER,bold:!0,items:[]},0);const s=cm(r);a.items.forEach(e=>{(om.includes(e.id)||!s&&am.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,r)=>{const n=t.getSupportFunction(tm.PASTE),o=await(n?.()?.catch(()=>{}));if(!o||nu.includes(o.template))return void e.deleteItem(rm.PASTE_AND_REPLACE);const i=()=>{r()},a=e.items.find(e=>e.id===rm.PASTE_AND_REPLACE||e.id===rm.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===rm.COPY||e.id===rm.DEVELOPER||e.id===rm.CONTAINER_HEADER),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:rm.PASTE_AND_REPLACE,id:rm.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},r)}})(a,t,n),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(rm.CONTAINER_HEADER)},um=e=>{const t={[rm.MONITOR_IN_HUB]:!0,[rm.SUBSCRIBE]:!0,[rm.NOTES_GROUP]:!0,[rm.DOWNLOAD]:!0,[rm.SHARE_IMAGE]:!0};e.items.forEach(r=>{t[r.id]?e.deleteItem(r.id):r.items&&um(r)})},pm=(e,t,r,n,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=n;if(cm(n)){r.isInvalid||(((e,t,r,n)=>{const{model:o,modifiedLayout:i}=r,a=e.items.findLastIndex(e=>e.id===rm.CHART_HEADER||e.id===rm.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:rm.EDIT_PROPERTIES,id:rm.EDIT_PROPERTIES,icon:rm.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,r=i.objects.find(t=>t.childRefId===e),a=r?.label,{sense:s}=n.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,r,n,o),((e,t,r,n,o,i)=>{const a=n.getSupportFunction(rm.COPY);if(!a)return void e.deleteItem(rm.CUT);const s=()=>{o&&a(sm(r,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===rm.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===rm.ADD_TO_MASTER_ITEMS||e.id===rm.UNLINK_VISUALIZATION||e.id===rm.EDIT_PROPERTIES||e.id===rm.REORDER_LAYERS_GROUP||e.id===rm.DEVELOPER),r=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:rm.CUT,id:rm.CUT,icon:"cut",select:s,items:[]},r)}})(a,t,r,e,s,l),lm(a,e,r,l,!0),((e,t,r,n,o)=>{const i=t.getSupportFunction(tm.COPY),a=t.getSupportFunction(tm.PASTE);if(!i||!a)return void e.deleteItem(rm.DUPLICATE);const s=()=>{i(sm(r,n)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===rm.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===rm.COPY),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:rm.DUPLICATE,id:rm.DUPLICATE,icon:rm.DUPLICATE,items:[],select:s},r)}})(a,e,r,l,i)),((e,t,r)=>{const n=()=>{r&&r.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===rm.DELETE);if(o)o.updateItem({select:n});else{const t=e.items.findLastIndex(e=>e.id===rm.DUPLICATE||e.id===rm.ADD_TO_MASTER_ITEMS||e.id===rm.UNLINK_VISUALIZATION||e.id===rm.REORDER_LAYERS_GROUP||e.id===rm.DEVELOPER),r=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:rm.DELETE,id:rm.DELETE,icon:"bin",items:[],select:n},r)}})(a,t,s)}else lm(a,e,r,l,!1)},hm=(e,t,r,n)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const r=t.getSupportFunction(tm.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(tm.RESET_COPY_BUFFER)})})(r.dataHandler,a);if(await dm(o,a,r,s,n),um(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let r=e;for(;r;){if(r.classList?.contains(t))return r;r=r.parentNode}return null})(t,uf.ACTIVE_TAB_PANEL)})(i))return!0;const l=r.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=pm(a,e,c,r,n,s),u=await(async(e,t,r,n)=>{const o=cm(r),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:rm.CHART_HEADER,id:rm.CHART_HEADER,bold:!0,items:[]},0),n(a),a.items.forEach(e=>{(nm.includes(e.id)||!o&&im.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(rm.CHART_HEADER),a})(a,c,r,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},fm=({element:e,models:n,env:o})=>{const s=((e,t)=>{const[n,o]=a(void 0);return r(()=>{if(0===e.getElementsByClassName(t).length){const r=document.createElement("div");r.className=t,e.appendChild(r);const n=su.createRoot(r);o(n)}return()=>{n?.unmount()}},[e,t,n]),n})(e,"init-component"),{options:l,modifiedLayout:c,interactions:d,model:u}=n,{qChildList:p}=c,h=tu(l.direction),f=(e=>{const{viewState:r}=t(),{snapshotData:n}=e;if(n){const{layouts:e}=n.objectsData,t=n.viewState?.viewStates;return{layouts:e,viewStates:t}}if(r){const{viewStates:e}=r;return{viewStates:e}}})(c),m=i(()=>Hf(c),[c]),g={modifiedLayout:c,activeTabId:m,env:o},[v,y]=Ef(g);y(g);const x=i(()=>c.objects.filter(e=>m===e.childRefId),[m,c.objects]),{renderHelper:E}=(e=>{const{visibleLayoutObjects:t,options:n}=e,[o]=a(()=>new Uf(e)),[,i]=a(n);return o.dependencyData=e,b(async()=>(i(e=>(e!==n&&t.forEach(e=>o.recreateMap.set(e.id,!0)),n)),o.syncObjects(t)?o.createTimerForRendering()?.promise:o.resolver?.promise),[t,n]),r(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:c,visibleLayoutObjects:x,viewState:f,options:l});hm(m,E,n,o);const[S]=a({current:void 0}),C=i(()=>e=>{(async({model:e,patchList:t})=>{if(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:JSON.stringify(t)}):"Replace"===i&&n.push({qPath:`/${o}`,qOp:"Remove"})}),n.length>0&&await e.applyPatches(n,!0)}})({model:u,patchList:[{newValue:e,propertyName:"cachedTabId"}]})},[u]),w=i(()=>({setSelected:e=>{const t=v.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?C(t):S.current=e[0]}}),[C,v,S]);r(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Ff(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId});if(e!==v.activeTabId)C(e);else if(S.current){const e=v.modifiedLayout.objects.find(e=>e.id===S.current)?.childRefId;e&&C(e)}S.current=void 0},[c?.objects.length,v,S,C]),r(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:r})=>{const n=Ff(e,t);if(!n||Gf(n,r)){const r=e.find(e=>0!==e.condition);return r?.childRefId||t}return t})({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId,interactions:d});e!==v.activeTabId&&C(e)},[d,c?.objects,v,C]);const R=0===p.qItems.length&&d.edit;return r(()=>{s?.render(br.jsxs($a,{theme:h,children:[R?br.jsx(Vf,{Icon:jf,dataHandler:n.dataHandler,modifiedLayout:n.modifiedLayout,translator:n.translator,sharedContainerUtilities:w}):null,!R&&br.jsx(em,{models:n,renderHelper:E,activeTabId:m,handleChangeTab:C,env:o})]}))},[s,n,h,R,E,m,w,C,o]),{renderHelper:E,sharedContainerUtilities:w,activeTabId:m}};var mm={targets:[]};const bm={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 gm=e=>e.map(e=>{if("canReceive"in e){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}),vm=(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}}}});
89
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,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(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),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],l=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%l,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),f+(n?"-":"")+r+x}},sh({exports:{}});var gh="'Source Sans Pro', 'Arial', 'sans-serif'",vh="#333333",yh="#595959",xh="#737373",Eh="#cccccc",Sh="#e6e6e6";function Ch(e){var t={};return[].concat(Ou(e),Ou([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",yh],["object","axis.label.name","fontFamily",gh],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Eh],["object","axis.line.minor","color",Sh],["object","axis.title","color"],["object","axis.title","fontFamily",gh],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",Sh],["object","grid.line.major","color",Eh],["object","grid.line.minor","color",Sh],["object","label.value","color",yh],["object","label.value","fontFamily",gh],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",yh],[!1,"label.value","lightColor",Sh],["object","outOfRange","color","#999"],["object","legend.title","color",vh],["object","legend.title","fontFamily",gh],["object","legend.title","fontSize","15px"],["object","legend.label","color",yh],["object","legend.label","fontFamily",gh],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",vh],["object","referenceLine.label.name","fontFamily",gh],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",Sh],["object","referenceLine.outOfBounds","fontFamily",gh],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",xh,function(e){return"transparent"===e?xh:e}]])).reduce(function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e},[]).sort(function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)})}var wh="object",Rh=function(e){return e};function kh(e){var t=e.theme,n=e.id,r=e.transform,o=e.extend,i=e.matrix,a={},s=r.reduce(function(e,t){var n=Lu(t,2),r=n[0],o=n[1];return e[r]=o,e},{});return i.forEach(function(e){var r=Lu(e,5),o=r[0],i=r[1],l=r[2],c=r[3],d=r[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,n=e.base,r=e.path,o=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===n)return a;var s=t.getStyle(n,r,o);return void 0===s?a:s}({theme:t,base:o===wh&&n?"".concat(wh,".").concat(n):o,path:i,attribute:l,defaultValue:c}),h=(s["".concat(i,".").concat(l)]||Rh)(u(p));ch(a,[i,l].filter(Boolean).join("."),h)}),o.forEach(function(e){var t=Lu(e,2),n=t[0],r=t[1];ch(a,n,r)}),a}const Ah={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function _h(e){if(!e.objects)return{};const t=ku(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map(n=>({chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==t[n.qData.childRefId]?.condition,tab_isActive:n.qData.childRefId===e.cachedTabId}))}}const Ih=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9,component:"dropdown",change(t){(ah(t,`${e}.color`)||ah(t,`${e}.colorExpression`))&&(ch(t,`${e}.color`,void 0),ch(t,`${e}.colorExpression`,void 0)),n?.(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:3,show:t=>!ah(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>({color:t?.getStyle("object.tabbedContainer",e,"color")??"none"}),showAlpha:!0,change:e=>{n?.(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>ah(t,`${e}.useColorExpression`)}}}),Th=({theme:e})=>({bgColorAllWrapper:Ih({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Ih({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Ih({ref:"background.hover",theme:e,change:e=>{ch(e,"indicator.hover.color",ah(e,"background.hover.color")),ch(e,"indicator.hover.useColorExpression",ah(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),Lh=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),show:e=>!1!==e.icon?.show},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>!1!==e.icon?.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}}},Oh=({theme:e})=>({colorWrapper:Ih({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Ih({ref:"indicator.hover",theme:e,change:e=>{ch(e,"background.hover.color",ah(e,"indicator.hover.color")),ch(e,"background.hover.useColorExpression",ah(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Ph=({paths:e,fontResolver:t,theme:n})=>{const r=`${e.theme}.fontFamily`,o=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r),change:(e,t,n)=>{const r=e.label?.fontFamily,o=(e=>{const t=[];return e.objects.forEach(e=>{const n=e.components?.find(e=>"tab"===e.key),r=n?.label?.fontFamily;r&&-1===t.indexOf(r)&&t.push(r)}),t})(n);r&&-1===o.indexOf(r)&&o.push(r),n.fontsUsed=o}},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:n.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}}},Mh=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Ph({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:r})}}}),jh=({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=>{if(void 0!==e.width?.value&&"%"===e.width?.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=>"px"===e.width?.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=>!e.width?.unit||"px"!==e.width?.unit,defaultValue:[5,20]}}}}}),Nh=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Oh({theme:e})}}}),$h=({ref:e,key:t,fontResolver:n,theme:r})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:Lh({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:r})}},show:(e,{layout:t})=>!!t.showIcons}),zh=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:Ih({ref:"background"})}:Th({theme:e})}}}),Dh=({fontResolver:e,theme:t})=>{const n="components",r="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:Mh({ref:n,key:r,fontResolver:e,theme:t}),width:{...jh({ref:n,key:r}),show:(e,{layout:t})=>"left"!==t.orientation},icon:$h({ref:n,key:r,fontResolver:e,theme:t}),background:zh({ref:n,key:r,theme:t})}}},Bh={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Fh={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Gh=(e,t)=>"object"==typeof e.label?t.objects.find(t=>t.childRefId===e.childRefId)?.label||e.label.qValueExpression.qExpr:e.label,Hh=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{const n=t.getLayout(),r=Cu(n,e.childRefId)?.qMeta;return!r?.privileges?.includes("update")||!n.permissions?.update},action(t,n,{app:r}){const{sense:o}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(o.propertyPanel.show({id:i,app:r,parent:"current",headerLabel:Gh(t,n.getLayout())}),n.setSelectedChild([i]))}}),Wh=e=>{const{sense:t}=e.env.anything;return{label:Bh,condition:Fh,styling:Dh({fontResolver:e.fontResolver,theme:t?.theme}),editProperties:Hh(e)}},Yh={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Uh={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Vh=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,n){const r=document.querySelector(".pp-toplist-add-button");null!==r&&n.openAddChildPopover(r)},remove(e,t,n){n.deleteChild(e.childRefId).catch(()=>{})},items:Wh(e)}),qh=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:Yh,chartsLabel:Uh,chartList:Vh(e)}}),Kh={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Xh={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},Zh={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},Jh={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},Qh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map(e=>({translation:e.label,value:e.childRefId})):[]},change(e,t){const n=Au(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},ef={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},tf=({fontResolver:e,theme:t})=>{const n="components",r="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:Mh({ref:n,key:r,fontResolver:e,theme:t}),width:jh({ref:n,key:r}),indicator:Nh({ref:n,key:r,theme:t}),icon:$h({ref:n,key:r,fontResolver:e,theme:t}),background:zh({ref:n,key:r,theme:t})}}},nf={items:{details:{show:e=>!0===e.showDetails}}},rf=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:tf({fontResolver:e.fontResolver,theme:t?.theme}),container:{type:"items",items:{showTabs:Kh,useDropdown:Xh,useScrollButton:Zh,showIcons:Jh,orientation:ef,defaultTabId:Qh}}}}},of=e=>({uses:"settings",items:{general:nf,presentation:rf(e)}}),af=e=>({type:"items",component:"accordion",items:{content:qh(e),settings:of(e)}}),sf=e=>{const{sense:t}=e.env.anything,n=function(e){var t=e.theme,n=e.translator,r=e.config,o=void 0===r?{}:r,i=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,o=n.paths;return{id:void 0===r?Hu:"".concat(Hu,".").concat(r),paths:Array.isArray(o)?o:[]}}({config:o}),s=a.id,l=a.paths,c={};l.forEach(function(e){var r=e.split(".");np(r);for(var o=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?o[l]=Ju({theme:t,translator:n,id:s,path:e,flags:i}):void 0===o[l]&&(o[l]={}),o=o[l]}});var d=function(e){var t=e.split(".");np(t);for(var n=c,r=0;r<t.length;r++){var o=t[r];if(void 0===n[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[o]}return n};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:t?.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),r=function(e){return{async getDropOptions(e,t,n){const{item:r}=t,o=e.getCreatePropertyHandler();if(o.setModel(e.model),"state"===t.item.type){const r=await e.model.getProperties();return o.setProperties(r),o.setLayout(e.model?.layout),this.getDropStateOptions(t,o,e.model,n)}if("visualization"===r.type)return t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"addvisualization",select(){o.addChild({initProps:{qExtendsId:r.id,qInfo:{qType:"undefined"}}})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),void n();const i=await t.item.getDropOption(t.item);"newObject"===i?.id&&t.menu.addItem({translation:["Object.Container.DropItem",r.name],tid:"createvisualization",select(){o.addChild({initProps:{...i.args.init,visualization:i.args.template},children:i.args.children?.map(e=>({qProperty:e}))})?.then(e=>{e&&o.setSelectedChild([e.id])})}}),n()},async addChild(t,n){const{model:r}=this,o=new _u({app:r.app,data:e.propertyHandlerData});return o.setModel(r),{childModel:await o.addChild({initProps:t,children:n}),handler:o}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&tu.includes(t.template))return!1;if("visualization"===t.type&&tu.includes(t.visualization))return!1}return"gridcell"!==e.type||!tu.includes(e.cell.model.layout.visualization)}}}(e);return{definition:af({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new _u({app:t,data:e.propertyHandlerData}),...r,addChild:async function(e,t){const{childModel:n,handler:o}=await r.addChild.apply(this,[e,t]);n&&o.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:r,components:o,orientation:i,showDetails:a}=await t.getEffectiveProperties(),s=await t.getFullPropertyTree();if(!s.qProperty.objects&&n){const l=[];s.qChildren.forEach(e=>{const n=e.qProperty;if(n.qInfo.qId){const r=async r=>{const o=await t.getChild(r),i=await o.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};l.push(r(n.qInfo.qId))}});const c=await Promise.all(l),d={...e,objects:n,defaultTabId:r??"",components:o,qChildListDef:Ah,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...s,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:_h}},lf=({propertyHandlerData:e,element:r,sharedContainerUtilities:o,translator:i,containerId:a,dataHandler:s,renderHelper:l})=>{const c=t();a&&e.sync({containerId:a,element:r,sharedContainerUtilities:o,translator:i,dataHandler:s,renderHelper:l}),n(()=>{e.setMuiTheme(c.direction)},[c.direction,e]),n(()=>()=>{a&&e.destroy(a)},[a,e,c.direction])},cf=e=>e.reduce((e,{id:t,data:n})=>(n&&(e[t]=n),e),{}),df=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getViewState().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return{viewStates:cf(n)}},uf=async e=>{const t=[];for(const[n,r]of e){const e={id:n,data:void 0},o=r;t.push(o.getSnapshotLayout().then(e=>({id:n,data:e})).catch(()=>e))}const n=await Promise.all(t);return cf(n)},pf=(e,t)=>(r(async n=>{const r=n,{snapshotData:o}=r;if(o){const n=wu(r),i=t(e.objectMap,n),[a,s]=await Promise.all([uf(i.objectMap),df(i.objectMap)]);o.objectsData={layouts:a},r.objects=i.objects,o.viewState=s}return n}),{getViewState:()=>df(e.objectMap)});let hf=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e}({}),ff=function(e){return e.KEY_DOWN="keydown",e.FOCUS_OUT="focusout",e}({}),mf=function(e){return 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",e}({});const bf=`& .${mf.TAB}.${mf.TAB_EXTRA_PRIO}, .${mf.TAB}.${mf.ACTIVE_TAB}`,gf=`& .${mf.TAB}.${mf.TAB_EXTRA_PRIO}:hover`,vf=`& .${mf.TAB_LABEL}`,yf=`& .${mf.TABS_ICON} svg`,xf=`& .${mf.TAB_WRAPPER}`,Ef=`& .${mf.TAB_INDICATOR}`,Sf=e=>e.getElementsByClassName(mf.ACTIVE_TAB)?.[0],Cf=e=>e.getElementsByClassName(mf.ACTIVE_TAB_PANEL)?.[0],wf=({element:e,setAccessibility:t,accessibility:r,renderHelper:s,interactions:l,env:c,models:d})=>{const{modifiedLayout:{showTabs:u,objects:p,orientation:h},translator:f}=d;n(()=>{(()=>{const t="top"===h?f.get("TabContainer.Navigation.Horizontal"):f.get("TabContainer.Navigation.Vertical"),n=((e,t)=>e.map(e=>e.label||t.get("TabContainer.Object.Untitled")).join(", "))(p,f);e.setAttribute("aria-label",f.get("TabContainer.Object.Description",[n,u?t:""]))})()},[e,u,p,f,h]);const m=c.flags.isEnabled("VIZ-7_NEW_SHEET"),b=o(),g=i(()=>()=>{t(!1),b.enabled&&b.blur?.(!0)},[b,t]),v=i(()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case hf.ESCAPE:t.stopPropagation(),b.blur?.(!0);break;case hf.ENTER:case hf.SPACE:{t.stopPropagation();const n=t.target;n?.classList.contains(mf.ACTIVE_TAB)&&Cf(e)?.focus();break}}},[e,b]),y=i(()=>t=>{const n=t.shiftKey?`shift+${t.key}`:t.key,r=s.objectMap.values().next().value,o=s.objectApis.values().next().value;switch(n){case hf.ESCAPE:{const n=Sf(e);m?(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():n?.focus()})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{e.stopPropagation(),t?.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():n?.focus()})({event:t,objectApi:r,activeTab:n});break}case hf.ENTER:case hf.SPACE:{const n=Cf(e);m?(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.support?.("viewData")?t.toggleDataView():t.toggleFocus?.(!0)})({event:t,objectApi:o,activeTab:n}):(({event:e,objectApi:t,activeTab:n})=>{if(!t)return;e.stopPropagation(),t.setOnBlurHandler?.(()=>{n?.focus(),t.setOnBlurHandler?.(void 0)}),!t.viewDataToggled&&t.supportViewData?.()?t.toggleDataView?.():t.viewDataToggled&&"function"==typeof t.dataViewObject?.focus?t.dataViewObject.focus():"function"==typeof t.focus&&t.focus()})({event:t,objectApi:r,activeTab:n});break}case hf.OPEN_CONTEXT_MENU:t.stopPropagation(),r?.viewDataToggled||e!==document.activeElement&&(g(),e.focus())}},[e,g,m,s]),x=i(()=>e=>{const t=e.target;t?.classList.contains(mf.ACTIVE_TAB_PANEL)?y(e):v(e)},[v,y]);n(()=>(r&&e.addEventListener(ff.KEY_DOWN,x),()=>{e.removeEventListener(ff.KEY_DOWN,x)}),[e,r,x]);const[E,S]=a(!1);n(()=>{E&&(S(!1),window.setTimeout(()=>((e=>e.getElementsByClassName(mf.TAB_MENU)?.[0])(e)??Sf(e))?.focus(),0))},[e,E]),n(()=>{t(!1)},[l.edit,t]),n(()=>{const n=t=>{const n=t.relatedTarget;e?.contains(n)||n?.classList.contains(mf.TAB_MENU_ITEM)||g?.()};return b.enabled&&b.active&&!l.edit&&(t(!0),S(!0),e.addEventListener(ff.FOCUS_OUT,n)),()=>{e.removeEventListener(ff.FOCUS_OUT,n)}},[b])},Rf=e=>{const[t]=a(e);return[t,function(e){Object.assign(t,e)}]},kf=({isContainerActive:e,activeTabId:t,modifiedLayout:r,renderHelper:o})=>{const a={modifiedLayout:r,activeTabId:t,renderHelper:o,isContainerActive:e},[s,l]=Rf(a);l(a);const c=i(()=>()=>{const e=Ru(s.modifiedLayout);for(const[t,n]of s.renderHelper.objectMap.entries()){const r=s.isContainerActive&&s.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(r)}},[s]);n(()=>{s.isContainerActive&&c()},[o.objectMap,c,s]),n(()=>{c()},[e,c])},Af={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const _f={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class If{sessionObject;constructor(e){this.getOrCreateSessionObject(e).catch(()=>{})}getOrCreateSessionObject=async e=>{const t=_f.qInfo.qId;this.sessionObject=await e.getObject(t).catch(()=>e.createSessionObject(_f))};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=>!tu.includes(e.visualization))}catch{return[]}}}let Tf=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 Lf{model;embed;app;undoRedoModel;chartList;masterVizList;mutex;constructor({embed:e,model:t,app:n,translator:r,mutex:o}){this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then(e=>{this.undoRedoModel=e}).catch(()=>{}),n&&(this.masterVizList=new If(n)),e&&r&&(this.chartList=new nu(e,r)),this.mutex=o}rememberAsGroup=async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n};generateProperties=async(e,t)=>await this.embed.generateProperties({type:e,properties:t});async addChild(e,t,n){if(this.model&&!tu.includes(e.visualization))try{await this.mutex.lock();const{model:r}=this,o=async()=>{e.childRefId=Af.id();const o=await r.createChild(e);if(o){const t=await r.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await r.setProperties(t)}return t&&o&&await Promise.all(t.map(({qProperty:e})=>o.createChild(e))),o};return await this.rememberAsGroup(o)}catch{return}finally{this.mutex.unlock()}}addVizAsChild=async({type:e,initProps:t,objectInitProps:n,children:r})=>{try{const o=await this.generateProperties(e,t);let i=n?.label||t?.title;if(!i){const n=this.getChart(t?.visualization),r=n?.libraryInfo;i=r?.translation||r?.name||e}const a={...n,label:i};return await this.addChild(o,r,a)}catch{return}};addMasterObjectAsChild=async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const r=await this.app.getObject(e.qExtendsId),o=await r.getProperties(),i=t?.label||o.title||o.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},s={...t,label:i};return await this.addChild(a,n,s)}catch{return}};deleteChildren=async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:r,qProperty:o}=n,i=new Set(e);return n.qChildren=r.filter(({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)}),n.qProperty.objects=o.objects.filter(e=>!i.has(e.childRefId)),await t.setFullPropertyTree(n),!0}catch{return!1}finally{this.mutex.unlock()}};moveChild=async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:r}=n,o=r.findIndex(e=>e.childRefId===t);let i=!1;switch(e){case Tf.TOP:{if(0===o)break;const e=r.splice(o,1)[0];r.unshift(e),i=!0;break}case Tf.BOTTOM:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.push(e),i=!0;break}case Tf.UP:{if(0===o)break;const e=r.splice(o,1)[0];r.splice(o-1,0,e),i=!0;break}case Tf.DOWN:{if(o===r.length-1)break;const e=r.splice(o,1)[0];r.splice(o+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}};getCharts=()=>this.chartList?.getCharts()||{};getMasterVizList=()=>this.masterVizList?.getMasterVisualizations()||Promise.resolve([]);getChart=e=>this.chartList?.getChart(e);getChartLabelById=(e,t)=>{const n=e?.qChildList?.qItems.find(e=>e.qInfo.qId===t);if(!n)return"";const{visualization:r,title:o}=n.qData;if(o)return o;const i=this.getChart(r);return i?.libraryInfo?.translation||r}}class Of{locked=!1;tasks=[];id;constructor(e){this.id=e}lock=async()=>this.locked?new Promise(e=>{this.tasks.push(e)}):(this.locked=!0,!0);unlock=()=>{if(this.tasks.length>0){const e=this.tasks.shift();e?.(!0)}else this.locked=!1}}const Pf={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}},Mf={index:-1,color:"none",alpha:1},jf=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),r=parseFloat(e[5]);return t%=360,n/=100,r/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),r=Math.max(0,Math.min(r,1)),{h:t,s:n,l:r,v:r}},Nf=(e,t,n,r,o=1)=>{let i,a,s,l=[];switch(n=Math.floor(n)){case 0:l=[e,t,0];break;case 1:l=[t,e,0];break;case 2:l=[0,e,t];break;case 3:l=[0,t,e];break;case 4:l=[t,0,e];break;case 5:l=[e,0,t];break;default:l=[0,0,0]}return i=l[0]+r,a=l[1]+r,s=l[2]+r,i=Math.round(255*i),a=Math.round(255*a),s=Math.round(255*s),`rgba(${i},${a},${s},${o})`},$f=e=>{const{h:t,s:n,l:r}=jf(e),o=e.length>7?parseFloat(e[7]):1,i=r<=.5?2*r*n:(2-2*r)*n,a=t/60,s=i*(1-Math.abs(a%2-1));return Nf(i,s,a,r-.5*i,o)},zf={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 $f(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 $f(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:n,v:r}=jf(e),o=r*n,i=t/60,a=o*(1-Math.abs(i%2-1));return Nf(o,a,i,r-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 n=e&&Pf[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const r=e?.color||Mf;let o;return o=e?.useColorExpression?zf.resolveExpression(e):"string"==typeof r?r:n?.getColorPickerColor(r)||"",o&&"none"!==o?o:t}},Df=()=>gn.jsx(mu,{viewBox:"0 0 16 16",children:gn.jsx("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"})}),Bf=({libraryInfo:e,style:t,id:n})=>gn.jsx("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:mf.TABS_ICON,children:gn.jsx(e.IconDefinition,{})}),Ff=({style:e,id:t})=>gn.jsx("div",{style:e,"data-testid":"tab-hidden-icon",id:t,children:gn.jsx(bu,{viewBox:"0 0 16 16",children:gn.jsx("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"})})}),Gf=()=>gn.jsx(bu,{viewBox:"0 0 16 16",children:gn.jsx("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"})}),Hf=ja(_d)({width:28,overflow:"hidden"}),Wf=ja(_d)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Yf=(e,t)=>e.find(e=>e.childRefId===t),Uf=(e,t)=>!t.edit&&0===e.condition,Vf=e=>{const{objects:t,defaultTabId:n,cachedTabId:r}=e;return r||(n&&t.some(e=>e.childRefId===n)?n:t[0]?.childRefId||"")};class qf{modifiedLayout;themeStyle;style;objectMap;activeTabId;theme;constructor({modifiedLayout:e,themeService:t}){this.modifiedLayout=e,this.activeTabId=Vf(this.modifiedLayout),this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=ku(this.modifiedLayout),this.style=this.createStyleClasses()}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 n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getTabWidth=e=>{const t=e?.value,n=e?.unit??"%";if(void 0===t||2!==t.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}};getColorStyle=(e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t});return zf.getColor({style:n,theme:this.theme})??n};getTabBackgroundStyle=(e,t)=>{let n;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});n=zf.getColor({style:e,theme:this.theme})}return n??zf.getColor({style:t,theme:this.theme})};createTabClasses=()=>this.modifiedLayout.objects?.reduce((e,t)=>{const n=t?.childRefId,r=t?.components?.find(e=>"tab"===e.key);return e[`#tab-${this.modifiedLayout.qInfo.qId}-${n}`]={textAlign:ah(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(n,r?.background),...this.getTabWidth(r?.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:ah(r,"label.fontSize"),fontFamily:ah(r,"label.fontFamily"),color:zf.getColor({style:ah(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${n} svg`]={height:ah(r,"icon.size"),color:zf.getColor({style:ah(r,"icon.color"),theme:this.theme})},e},{});createTabsClasses=()=>({[vf]:{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"})},[yf]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[bf]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[gf]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[xf]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[Ef]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}});createStyleClasses=()=>({...this.createTabsClasses(),...this.createTabClasses()});getStyleClasses(){return this.style}resolveComponentStyle=({key:e="tabs",compPath:t,themePath:n=t,defaultValue:r})=>{const o=this.modifiedLayout.components?.find(t=>t.key===e);return ah(o,t)??ah(this.themeStyle,n)??r};getTabStyle(e){return this.objectMap[e].components?.find(e=>"tab"===e.key)}}const Kf=()=>{const e=s(),n=l(),r=c(),o=d(),b=u(),g=p(),v=t(),y=h(),x=f(),E=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,o=r.id,i=r.resolve,a=void 0===i?[]:i,s=r.transform,l=void 0===s?[]:s,c=r.extend,d=void 0===c?[]:c,u={theme:t,matrix:Ch(a),styles:void 0};return u.styles=kh({theme:t,id:o,transform:l,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=kh({theme:e,id:o,transform:l,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=i(()=>new nu(o,g),[o,g]),[C]=a(()=>new Of(b.id)),[w,R]=a(!1),k=i(()=>o&&b&&n?new Lf({embed:o,model:b,app:n,translator:g,mutex:C}):void 0,[o,b,n,g,C]),A=i(()=>wu(r),[r]),_=i(()=>new qf({modifiedLayout:A,themeService:E}),[A,E]);return i(()=>({app:n,modifiedLayout:A,embed:o,model:b,emitter:y,interactions:x,dataHandler:k,chartList:S,styleModel:_,mutex:C,options:v,accessibility:w,setAccessibility:R,translator:g,element:e}),[A,o,b,n,y,x,k,S,_,C,v,w,g,e])},Xf=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:r,Icon:o})=>{const[i,a]=k(void 0);if(!e||!t)return null;const s=!t.qExtendsId;return gn.jsx(cu,{children:gn.jsxs(lu,{children:[gn.jsx(o,{}),s?gn.jsxs(gn.Fragment,{children:[gn.jsx(fu,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0,children:n.get("LayoutContainer.EmptyList.AddContent")}),gn.jsx(yu,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:r})]}):gn.jsx(Vs,{variant:"inherit",children:n.get("LayoutContainer.EmptyList.EmptyHint")})]})})};class Zf{_rendered=new Set;_objectMap=new Map;_objectApis=new Map;_resolver;_dependencyData;_recreateMap=new Map;constructor(e){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}createTimerForRendering=()=>{if(!this.resolver){let e;const t=setTimeout(()=>{this.doResolve()},9e4),n=new Promise(t=>{e=t});this._resolver={promise:n,resolve:e,timer:t}}return this._resolver};doResolve=()=>{this.resolver&&(clearTimeout(this.resolver?.timer),this.resolver.resolve?.(!0),this._resolver=void 0)};tryToResolve=()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every(e=>this.rendered.has(e.id)))&&this.doResolve()}};syncObjects(e){const t=new Set,n=new Set([...Array.from(this.objectMap.keys()),...Array.from(this.objectApis.keys()),...this.rendered]),r=new Set(n);let o=!1;return e.forEach(e=>{n.has(e.id)?(this.rendered.has(e.id)&&t.add(e.id),r.delete(e.id)):o=!0}),r.forEach(e=>{const t=this.objectMap.get(e);t&&(this.confirmPotentialSelections(t),t.destroy?.(),this.objectMap.delete(e)),this.objectApis.get(e)?.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 n=this.objectMap.get(e.id);n&&t.push(n)}),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find(t=>t.qInfo.qId===e)}getObjectOptions(e){const{viewState:t,modifiedLayout:n,options:r}=this._dependencyData,{chartAnimations:o,direction:i,progressiveRendering:a,freeResize:s,navigation:l}=r;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!!n?.qExtendsId,isSnapshot:!!n.snapshotData,...!!t?.viewStates?.[e]&&{viewState:t?.viewStates[e]},...!!t?.layouts?.[e]&&{layout:t.layouts[e]},direction:i,chartAnimations:o,progressiveRendering:a,freeResize:s,navigation:l,disableThemeBorder:!1,fallbackToClient:r.fallbackToClient}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const Jf=({chartObject:e,embed:t,renderHelper:n,direction:r,interactions:o,env:i})=>{const a=_(null),{id:s}=e;A(()=>{if(s&&a.current){const e=n.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:a.current,options:e}).then(e=>{n.saveObjectApi(s,e)}).catch(e=>{const t=n.getChildLayout(s)?.qInfo?.qType;console.error("Could not render chart with id",s,t,e)})}},[s,t,n,r]);const l=I(()=>()=>{if(e?.id&&i.anything){const t=e?.label,{sense:r}=i.anything,o="current",a=n.objectMap.get(e.id);a&&r.propertyPanel.show({model:a.model,parent:o,headerLabel:t,keepCurrentActiveCell:!0})}},[i,e,n]);return A(()=>{const e=a?.current;return e&&o?.edit&&e.addEventListener("dblclick",l),()=>{e?.removeEventListener("dblclick",l)}},[a,l,o]),gn.jsx("div",{ref:a,style:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`})};let Qf=function(e){return e.TABS_HEIGHT="36px",e}({});const em=({charts:e,handleChangeTab:t,activeTabId:n,element:r,translator:o,accessibility:i,disabled:a})=>{const[s,l]=S.useState(null),c=Boolean(s),d=()=>{l(null)},u=T(e=>{e?.focus()},[]);return gn.jsxs(gn.Fragment,{children:[gn.jsx(Tl,{onClick:e=>{l(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":o.get("Container.Label.Visualizations"),className:mf.TAB_MENU,sx:{m:"2px"},children:gn.jsx(Gf,{})}),gn.jsx(ld,{anchorEl:s,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"}}},children:e.map(e=>gn.jsx(hd,{className:mf.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,onClick:()=>{(e=>{t(e.childRefId),d(),window.setTimeout(()=>{r.getElementsByClassName(mf.ACTIVE_TAB_PANEL)?.[0]?.focus()},0)})(e)},sx:{...n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label,children:gn.jsx(Vs,{variant:"inherit",noWrap:!0,children:e.label})},`chartTabMenu-${e.childRefId}`))})]})},tm=({label:e,id:t})=>gn.jsx(xl,{className:mf.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"},children:gn.jsx("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"},children:e})}),nm=({libraryInfo:e,chart:t,iconPosition:n,id:r})=>{let o;switch(n){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?gn.jsx(Ff,{id:`${mf.TABS_ICON}-${r}`,style:o}):e?gn.jsx(Bf,{id:`${mf.TABS_ICON}-${r}`,libraryInfo:e,style:o}):null},rm=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:r,chartList:o,interactions:i,accessibility:a}=e,s=o?.getCharts(),l=r.objects.filter(e=>!Uf(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:Wf}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Hf})(r),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 gn.jsxs(xl,{className:mf.TAB_WRAPPER,sx:d,ref:e=>{m(e)},children:[r.useDropdown&&h?gn.jsx(em,{charts:l,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}):null,gn.jsx(Fd,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!r.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Qf.TABS_HEIGHT},children:l.map(n=>{const o=Cu(r,n.childRefId)?.qData?.visualization,i=o&&s?.[o]?.libraryInfo,l=e.styleModel.getTabStyle(n.childRefId),d=0===n.condition||r.showIcons&&i&&!1!==l?.icon?.show,u="vertical"===c?"top":"start",h=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:u}),f=e.styleModel.resolveComponentStyle({compPath:"label.show"}),m=n.label&&(l?.label?.show??!1!==f),b=`${r.qInfo.qId}-${n.childRefId}`;return gn.jsx(vd,{className:`${mf.TAB} ${t===n.childRefId?mf.ACTIVE_TAB:""}`,disabled:p,id:`tab-${b}`,value:n.childRefId,title:n.label,label:m?gn.jsx(tm,{label:n.label,id:b}):void 0,icon:d?gn.jsx(nm,{libraryInfo:i,chart:n,iconPosition:h,id:b}):"",iconPosition:h,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||r.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Qf.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${b}`,tabIndex:a&&t===n.childRefId?0:-1},n.childRefId)})})]})},om=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:r,env:o})=>{const{modifiedLayout:i,embed:a,interactions:s,options:l,styleModel:c,accessibility:d}=e,u=i.objects,p=s.edit||!!u.find(e=>0!==e.condition),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return gn.jsxs(xl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:l.direction,...m},children:[h?gn.jsx(rm,{models:e,activeTabId:n,handleChangeTab:r}):null,u.map(e=>{const r=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!Uf(e,s);return gn.jsx(xl,{role:"tabpanel",id:r,"aria-label":e.label,sx:{flex:"1 1 auto",minHeight:0,width:"100%",padding:"2px",boxSizing:"border-box",direction:"ltr","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200}},...c?{className:mf.ACTIVE_TAB_PANEL,tabIndex:d?0:-1}:{hidden:!0},children:c?gn.jsx(Jf,{chartObject:e,renderHelper:t,direction:l.direction,embed:a,interactions:s,env:o}):null},r)})]})};let im=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),am=function(e){return e.COPY="copy",e.PASTE_AND_REPLACE="paste-and-replace",e.PASTE="paste",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.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 sm=[am.PASTE_AND_REPLACE,am.ZOOM_IN,am.VISUAL_EXPLORATION],lm=[am.VISUAL_EXPLORATION,am.ALERT_GROUP,am.SHOW_DETAILS,am.EXPLAIN_KEY_DRIVERS,am.EXPLAIN_KEY_DRIVERS_OLD_ID],cm=[am.DELETE,am.CUT,am.ADD_TO_MASTER_ITEMS,am.UNLINK_VISUALIZATION],dm=[am.PASTE_AND_REPLACE],um=(e,t)=>{const{childRefId:n}=e.model.layout,r=t.objects.find(e=>e.childRefId===n);return{...e,additionalData:{label:r?.label}}},pm=(e,t,n,r,o)=>{const i=t.getSupportFunction(am.COPY);if(!i)return void e.deleteItem(am.COPY);const a=()=>{i(um(n,r)).catch(()=>{})},s=e.items.find(e=>e.id===am.COPY);if(s)s.updateItem({select:a});else if(o){const t=e.items.findIndex(e=>e.id===am.CUT),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:am.COPY,id:am.COPY,icon:"copy",select:a,items:[]},n)}},hm=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,fm=async(e,t,n,r,o)=>{if(o.flags.isEnabled("GVC_48_CHART_CONTEXT_MENU_ITEM_GENERATION"))return;const i=t.getBuilder("default");if(!i)return;const a=await i();a.addItem({translation:"contextMenu.containerOptionsHeader",tid:am.CONTAINER_HEADER,id:am.CONTAINER_HEADER,bold:!0,items:[]},0);const s=hm(n);a.items.forEach(e=>{(lm.includes(e.id)||!s&&dm.includes(e.id))&&a.deleteItem(e.id)}),s&&await(async(e,t,n)=>{const r=t.getSupportFunction(im.PASTE),o=await(r?.()?.catch(()=>{}));if(!o||tu.includes(o.template))return void e.deleteItem(am.PASTE_AND_REPLACE);const i=()=>{n()},a=e.items.find(e=>e.id===am.PASTE_AND_REPLACE||e.id===am.PASTE);if(a)a.updateItem({translation:"contextMenu.paste",select:i});else{const t=e.items.findLastIndex(e=>e.id===am.COPY||e.id===am.DEVELOPER||e.id===am.CONTAINER_HEADER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:am.PASTE_AND_REPLACE,id:am.PASTE_AND_REPLACE,icon:"paste",select:i,items:[]},n)}})(a,t,r),e.updateItem({items:a.items}),1===e.items.length&&e.deleteItem(am.CONTAINER_HEADER)},mm=e=>{const t={[am.MONITOR_IN_HUB]:!0,[am.SUBSCRIBE]:!0,[am.NOTES_GROUP]:!0,[am.DOWNLOAD]:!0,[am.SHARE_IMAGE]:!0};e.items.forEach(n=>{t[n.id]?e.deleteItem(n.id):n.items&&mm(n)})},bm=(e,t,n,r,o,i)=>a=>{const{dataHandler:s,modifiedLayout:l}=r;if(hm(r)){n.isInvalid||(((e,t,n,r)=>{const{model:o,modifiedLayout:i}=n,a=e.items.findLastIndex(e=>e.id===am.CHART_HEADER||e.id===am.REORDER_LAYERS_GROUP),s=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:am.EDIT_PROPERTIES,id:am.EDIT_PROPERTIES,icon:am.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find(t=>t.childRefId===e),a=n?.label,{sense:s}=r.anything,l=o;s.propertyPanel.show({model:t.model,parent:l,headerLabel:a})}},s)})(a,n,r,o),((e,t,n,r,o,i)=>{const a=r.getSupportFunction(am.COPY);if(!a)return void e.deleteItem(am.CUT);const s=()=>{o&&a(um(n,i)).then(async()=>{await(o?.deleteChildren([t]))}).catch(()=>{})},l=e.items.find(e=>e.id===am.CUT);if(l)l.updateItem({select:s});else{const t=e.items.findLastIndex(e=>e.id===am.ADD_TO_MASTER_ITEMS||e.id===am.UNLINK_VISUALIZATION||e.id===am.EDIT_PROPERTIES||e.id===am.REORDER_LAYERS_GROUP||e.id===am.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:am.CUT,id:am.CUT,icon:"cut",select:s,items:[]},n)}})(a,t,n,e,s,l),pm(a,e,n,l,!0),((e,t,n,r,o)=>{const i=t.getSupportFunction(im.COPY),a=t.getSupportFunction(im.PASTE);if(!i||!a)return void e.deleteItem(am.DUPLICATE);const s=()=>{i(um(n,r)).then(()=>{o()}).catch(()=>{})},l=e.items.find(e=>e.id===am.DUPLICATE);if(l)l.updateItem({select:s});else{const t=e.items.findIndex(e=>e.id===am.COPY),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:am.DUPLICATE,id:am.DUPLICATE,icon:am.DUPLICATE,items:[],select:s},n)}})(a,e,n,l,i)),((e,t,n)=>{const r=()=>{n&&n.deleteChildren([t]).catch(()=>{})},o=e.items.find(e=>e.id===am.DELETE);if(o)o.updateItem({select:r});else{const t=e.items.findLastIndex(e=>e.id===am.DUPLICATE||e.id===am.ADD_TO_MASTER_ITEMS||e.id===am.UNLINK_VISUALIZATION||e.id===am.REORDER_LAYERS_GROUP||e.id===am.DEVELOPER),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:am.DELETE,id:am.DELETE,icon:"bin",items:[],select:r},n)}})(a,t,s)}else pm(a,e,n,l,!1)},gm=(e,t,n,r)=>{g(async(o,i,a)=>{if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(im.PASTE);n&&n().then(async({template:t,init:n,children:r,additionalData:o})=>{const{label:i}=o,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:r,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:r,objectInitProps:a})}).catch(e=>{e&&t.getSupportFunction(im.RESET_COPY_BUFFER)})})(n.dataHandler,a);if(await fm(o,a,n,s,r),mm(o),!(e=>{let t;t="qv-radial-contextmenu"===e.type?e.touches[0]?.target:e.target;return t&&((e,t)=>{let n=e;for(;n;){if(n.classList?.contains(t))return n;n=n.parentNode}return null})(t,mf.ACTIVE_TAB_PANEL)})(i))return!0;const l=n.modifiedLayout.objects.find(t=>t.childRefId===e)?.id;if(!l)return!0;const c=t.objectMap.get(l);if(!c)return!0;const d=bm(a,e,c,n,r,s),u=await(async(e,t,n,r)=>{const o=hm(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:am.CHART_HEADER,id:am.CHART_HEADER,bold:!0,items:[]},0),r(a),a.items.forEach(e=>{(sm.includes(e.id)||!o&&cm.includes(e.id))&&a.deleteItem(e.id)}),1===a.items.length&&a.deleteItem(am.CHART_HEADER),a})(a,c,n,d);return!u||(o.items.length>0&&u.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...o.items]},u.items.length),o.updateItem({items:u.items}),!0)})},vm=({element:e,models:r,env:o})=>{const s=((e,t)=>{const[r,o]=a(void 0);return n(()=>{if(0===e.getElementsByClassName(t).length){const n=document.createElement("div");n.className=t,e.appendChild(n);const r=iu.createRoot(n);o(r)}return()=>{r?.unmount()}},[e,t,r]),r})(e,"init-component"),{options:l,modifiedLayout:c,interactions:d,model:u}=r,{qChildList:p}=c,h=Qd(l.direction),f=(e=>{const{viewState:n}=t(),{snapshotData:r}=e;if(r){const{layouts:e}=r.objectsData,t=r.viewState?.viewStates;return{layouts:e,viewStates:t}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(c),m=i(()=>Vf(c),[c]),g={modifiedLayout:c,activeTabId:m,env:o},[v,y]=Rf(g);y(g);const x=i(()=>c.objects.filter(e=>m===e.childRefId),[m,c.objects]),{renderHelper:E}=(e=>{const{visibleLayoutObjects:t,options:r}=e,[o]=a(()=>new Zf(e)),[,i]=a(r);return o.dependencyData=e,b(async()=>(i(e=>(e!==r&&t.forEach(e=>o.recreateMap.set(e.id,!0)),r)),o.syncObjects(t)?o.createTimerForRendering()?.promise:o.resolver?.promise),[t,r]),n(()=>()=>{o.destroy()},[o]),{renderHelper:o}})({modifiedLayout:c,visibleLayoutObjects:x,viewState:f,options:l});gm(m,E,r,o);const[S]=a({current:void 0}),C=i(()=>e=>{(async({model:e,patchList:t})=>{if(e?.applyPatches){const n=await e.getEffectiveProperties(),r=[];t.forEach(e=>{const{newValue:t,propertyName:o}=e,i=void 0!==n[o]?"Replace":"Add";t?r.push({qPath:`/${o}`,qOp:i,qValue:JSON.stringify(t)}):"Replace"===i&&r.push({qPath:`/${o}`,qOp:"Remove"})}),r.length>0&&await e.applyPatches(r,!0)}})({model:u,patchList:[{newValue:e,propertyName:"cachedTabId"}]})},[u]),w=i(()=>({setSelected:e=>{const t=v.modifiedLayout.objects.find(t=>t.id===e[0])?.childRefId;t?C(t):S.current=e[0]}}),[C,v,S]);n(()=>{const e=(({chartObjects:e,activeTabId:t})=>!Yf(e,t)&&e.length>0?e[0]?.childRefId:t)({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId});if(e!==v.activeTabId)C(e);else if(S.current){const e=v.modifiedLayout.objects.find(e=>e.id===S.current)?.childRefId;e&&C(e)}S.current=void 0},[c?.objects.length,v,S,C]),n(()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const r=Yf(e,t);if(!r||Uf(r,n)){const n=e.find(e=>0!==e.condition);return n?.childRefId||t}return t})({chartObjects:v.modifiedLayout.objects,activeTabId:v.activeTabId,interactions:d});e!==v.activeTabId&&C(e)},[d,c?.objects,v,C]);const R=0===p.qItems.length&&d.edit;return n(()=>{s?.render(gn.jsxs($a,{theme:h,children:[R?gn.jsx(Xf,{Icon:Df,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:w}):null,!R&&gn.jsx(om,{models:r,renderHelper:E,activeTabId:m,handleChangeTab:C,env:o})]}))},[s,r,h,R,E,m,w,C,o]),{renderHelper:E,sharedContainerUtilities:w,activeTabId:m}};var ym={targets:[]};const xm={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 n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const Em=e=>e.map(e=>{if("canReceive"in e){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e}),Sm=(e,t)=>{let n=!0;const r=t.objects.reduce((t,r)=>{const o=r.id;if(0!==r.condition){const i=e.get(o);return i&&(e=>e.supportExport())(i)&&(n=!1,t.objectMap.set(o,i)),t.objects.push(r),t}return t},{objects:[],objectMap:new Map});return n?{objects:[],objectMap:new Map}:r}}}});