@nebula.js/sn-pie-chart 1.28.2 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-pie-chart.js +11 -11
- package/dist/sn-pie-chart.systemjs.js +6 -6
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +11 -11
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.28.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.28.4
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,S,w,E,k,C,R,T,P,O,I,D,L,M,q,A,N,z,j,$,_,F,H,B,W,V,U,G,K,Y;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.disclaimerService,u=e.tooltipService,d=e.alternativeService,p=e.colorService,f=e.pluginService,h=e.themeService,m=e.debouncer,g=e.fontResolver},function(e){v=e.default,y=e,b=e.isValidElement,x=e.cloneElement,S=e.Children,w=e.forwardRef,E=e.useContext,k=e.useState,C=e.useEffect,R=e.useRef},function(e){T=e,P=e.default},function(e){O=e.useOptions,I=e.useElement,D=e.useSelections,L=e.useState,M=e.useLayout,q=e.useTranslator,A=e.useAction,N=e.useEffect,z=e.useModel,j=e.useApp,$=e.useStaleLayout,_=e.usePlugins,F=e.useConstraints,H=e.useTheme,B=e.useAppLayout,W=e.useEmbed,V=e.usePromise,U=e.useRect,G=e.onTakeSnapshot,K=e.useImperativeHandle},function(e){Y=e.default}],execute:function(){var X={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function Q(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=Z(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Z(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ne=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},de=ee(ue);const pe=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],fe={};pe.forEach((([e,{width:t,height:n}])=>{fe[e]={width:t,height:n}}));const he={getLayoutModes:()=>fe,getLayoutMode(e,t){let n;for(n=0;n<pe.length;++n)if(e>=pe[n][1].width&&t>=pe[n][1].height)return pe[n][0];return"SPARK"}};function me(e,t){return{layoutModes:he.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ge=/^[A-Z][A-z0-9_]*$/i,ve={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},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,"")}},ye={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||ge.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>ve.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function be(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const xe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Se=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),we=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ee={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>xe.test(e),isRtlChar:e=>Se.test(e)||we.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ee.isLtrChar(r))return"ltr";if(Ee.isRtlChar(r))return"rtl"}return"ltr"}},ke={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?ke.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Ee.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=Ee.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Ee.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Ee.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Ee.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,ke.getColorSymbol(e,t)]:[ke.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=Ee.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ee.detectTextDirection(e.value);let l;return l=o?r?[e.value,ke.getColorSymbol(t,n)]:[ke.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Ce(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Re=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Te(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),o=n.styleService.label.value.getStyle(),i=o.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:i&&!e.onBackground?Re(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:Ce(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Pe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Oe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var De=.7,Le=1/De,Me="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ne=/^#([0-9a-f]{3,8})$/,ze=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),je=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),$e=new RegExp(`^rgba\\(${Me},${Me},${Me},${qe}\\)$`),_e=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${qe}\\)$`),Fe=new RegExp(`^hsl\\(${qe},${Ae},${Ae}\\)$`),He=new RegExp(`^hsla\\(${qe},${Ae},${Ae},${qe}\\)$`),Be={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 We(){return this.rgb().formatHex()}function Ve(){return this.rgb().formatRgb()}function Ue(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ge(t):3===n?new Xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ke(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=ze.exec(e))?new Xe(t[1],t[2],t[3],1):(t=je.exec(e))?new Xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$e.exec(e))?Ke(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fe.exec(e))?nt(t[1],t[2]/100,t[3]/100,1):(t=He.exec(e))?nt(t[1],t[2]/100,t[3]/100,t[4]):Be.hasOwnProperty(e)?Ge(Be[e]):"transparent"===e?new Xe(NaN,NaN,NaN,0):null}function Ge(e){return new Xe(e>>16&255,e>>8&255,255&e,1)}function Ke(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xe(e,t,n,r)}function Ye(e){return e instanceof Ie||(e=Ue(e)),e?new Xe((e=e.rgb()).r,e.g,e.b,e.opacity):new Xe}function Xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Je(){return`#${tt(this.r)}${tt(this.g)}${tt(this.b)}`}function Ze(){const e=Qe(this.opacity);return`${1===e?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${1===e?")":`, ${e})`}`}function Qe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tt(e){return((e=et(e))<16?"0":"")+e.toString(16)}function nt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,n,r)}function rt(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ue(e)),!e)return new ot;if(e instanceof ot)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 ot(a,s,l,e.opacity)}function ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function it(e){return(e=(e||0)%360)<0?e+360:e}function at(e){return Math.max(0,Math.min(1,e||0))}function st(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pe(Ie,Ue,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:We,formatHex:We,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rt(this).formatHsl()},formatRgb:Ve,toString:Ve}),Pe(Xe,(function(e,t,n,r){return 1===arguments.length?Ye(e):new Xe(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return e=null==e?Le:Math.pow(Le,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xe(et(this.r),et(this.g),et(this.b),Qe(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:Je,formatHex:Je,formatHex8:function(){return`#${tt(this.r)}${tt(this.g)}${tt(this.b)}${tt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ze,toString:Ze})),Pe(ot,(function(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return e=null==e?Le:Math.pow(Le,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new ot(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 Xe(st(e>=240?e-240:e+120,o,r),st(e,o,r),st(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ot(it(this.h),at(this.s),at(this.l),Qe(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=Qe(this.opacity);return`${1===e?"hsl(":"hsla("}${it(this.h)}, ${100*at(this.s)}%, ${100*at(this.l)}%${1===e?")":`, ${e})`}`}}));const lt=Math.PI/180,ct=180/Math.PI,ut=.96422,dt=.82521,pt=4/29,ft=6/29,ht=3*ft*ft,mt=ft*ft*ft;function gt(e){if(e instanceof vt)return new vt(e.l,e.a,e.b,e.opacity);if(e instanceof Et)return kt(e);e instanceof Xe||(e=Ye(e));var t,n,r=St(e.r),o=St(e.g),i=St(e.b),a=yt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yt((.4360747*r+.3850649*o+.1430804*i)/ut),n=yt((.0139322*r+.0971045*o+.7141733*i)/dt)),new vt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yt(e){return e>mt?Math.pow(e,1/3):e/ht+pt}function bt(e){return e>ft?e*e*e:ht*(e-pt)}function xt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function St(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Et)return new Et(e.h,e.c,e.l,e.opacity);if(e instanceof vt||(e=gt(e)),0===e.a&&0===e.b)return new Et(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ct;return new Et(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Et(e,t,n,null==r?1:r)}function Et(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kt(e){if(isNaN(e.h))return new vt(e.l,0,0,e.opacity);var t=e.h*lt;return new vt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function Ct(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Pe(vt,(function(e,t,n,r){return 1===arguments.length?gt(e):new vt(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return new vt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vt(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 Xe(xt(3.1338561*(t=ut*bt(t))-1.6168667*(e=1*bt(e))-.4906146*(n=dt*bt(n))),xt(-.9787684*t+1.9161415*e+.033454*n),xt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pe(Et,wt,Oe(Ie,{brighter(e){return new Et(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Et(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return Ct(e(t),n)}}(e))}(Ct);var Rt="$";function Tt(){}function Pt(e,t){var n=new Tt;if(e instanceof Tt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Ot(){}Tt.prototype=Pt.prototype={constructor:Tt,has:function(e){return Rt+e in this},get:function(e){return this[Rt+e]},set:function(e,t){return this[Rt+e]=t,this},remove:function(e){var t=Rt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Rt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Rt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Rt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Rt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Rt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Rt)return!1;return!0},each:function(e){for(var t in this)t[0]===Rt&&e(this[t],t.slice(1),this)}};var It=Pt.prototype;Ot.prototype={constructor:Ot,has:It.has,add:function(e){return this[Rt+(e+="")]=e,this},remove:It.remove,clear:It.clear,values:It.keys,size:It.size,empty:It.empty,each:It.each};const Dt=de.bind(null,!0),Lt={},{isArray:Mt}=Array;function qt(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function At(e){return void 0===e}function Nt(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function zt(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=At(e[r||t])?i:e[t],e=e[r||t]})),e}function jt(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function $t(e,t,n){let r=!0;if(qt(e)&&qt(t))return jt(e,n)===jt(t,n)&&(Object.keys(e).forEach((o=>{$t(e[o],t[o],n)||(r=!1)})),r);if(Mt(e)&&Mt(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!$t(e[r],t[r],n))return!1;return!0}return e===t}Lt.compare=$t,Lt.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Dt({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;$t(i,a)||Nt(t,o)||(At(a)?r.push({op:"add",path:s,value:i}):qt(i)&&qt(a)?r=r.concat(Lt.generate(a,i,s)):Mt(i)&&Mt(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&At(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if($t(t,o))return r;if(!At(t[0])&&At(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Lt.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{At(t[o])&&!Nt(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Lt.apply=function(e,t){t.forEach((t=>{let n=zt(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Mt(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Mt(o)&&Mt(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(qt(o)&&qt(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Nt(a,e)&&delete a[e]})),Dt(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=zt(e,t.from);Mt(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Mt(n)?n.splice(+r,1):delete n[r]);var a}))},Lt.clone=function(e){return Dt({},e)},Lt.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Lt.updateObject=function(e,t){Object.keys(e).length?Lt.apply(e,Lt.generate(e,t)):Dt(e,t)};const _t=[[2,4,6],[2,4],[3]],Ft=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Ht(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Bt(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Ht(e[r],t,n)}!function(){let e,t;for(Bt(_t,1,10),e=0;e<Ft.length;e++)if(Ft[e])for(t=0;t<Ft[e].length;t++)Array.isArray(Ft[e][t])&&Bt(Ft[e][t])}();var Wt={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Vt(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=de(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Wt;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var Ut={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Vt(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Vt(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Gt(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Kt={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Yt={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Xt={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Jt={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},Zt="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",Qt={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},en={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},tn="N",nn="H",rn="C",on={N:void 0,H:Kt,C:Xt},an=(e,t)=>{switch(e.qGrouping){case tn:return;case nn:return{path:Kt,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case rn:return{path:t?Yt:Xt,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function sn(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Lt.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ln(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=de(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),sn(e,a,c)}))}function cn(e){return e.qGrouping===tn?e.qFallbackTitle||"":e.title||""}const un=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},dn=async(e,t,n,r,o)=>{const i=await un(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===tn&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=on[s],c=s!==tn;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){ln(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function pn({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===tn,d=l.qGrouping===nn;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case nn:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Kt,groupItem:!0,title:e.title,selected:!1,children:n}}case rn:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}}))):[];return{id:e.cId,icon:Xt,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:cn(e)}}})(l,o,a,e),n=c?await dn(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function fn(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===nn?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:an(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===tn?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:cn(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function hn({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await un(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){ln(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function mn(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(null,arguments)}var vn={exports:{}};function yn(){}function bn(){}bn.resetWarningCache=yn;vn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:bn,resetWarningCache:yn};return n.PropTypes=n,n}();var xn=ee(vn.exports),Sn={black:"#000",white:"#fff"},wn="#e57373",En="#f44336",kn="#d32f2f",Cn="#ff4081",Rn="#f50057",Tn="#c51162",Pn="#7986cb",On="#3f51b5",In="#303f9f",Dn="#64b5f6",Ln="#2196f3",Mn="#1976d2",qn="#81c784",An="#4caf50",Nn="#388e3c",zn="#ffb74d",jn="#ff9800",$n="#f57c00",_n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Fn(){return Fn=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},Fn.apply(null,arguments)}function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Bn(e){return e&&"object"===Hn(e)&&e.constructor===Object}function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Fn({},e):e;return Bn(e)&&Bn(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Bn(t[o])&&o in e?r[o]=Wn(e[o],t[o],n):r[o]=t[o])})),r}function Vn(e){var t=function(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hn(t)?t:t+""}function Un(e,t,n){return(t=Vn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Yn(e){if(e.type)return e;if("#"===e.charAt(0))return Yn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Gn(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Xn(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Jn(e){var t="hsl"===(e=Yn(e)).type?Yn(function(e){var t=(e=Yn(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Xn({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Zn(e,t){return e=Yn(e),t=Kn(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Xn(e)}function Qn(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}function er(e,t){if(null==e)return{};var n,r,o=Qn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tr=["xs","sm","md","lg","xl"];function nr(e,t,n){var r;return Fn({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Fn({paddingLeft:t(2),paddingRight:t(2)},n,Un({},e.up("sm"),Fn({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Un(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Un(r,e.up("sm"),{minHeight:64}),r)},n)}var rr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sn.white,default:_n[50]},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}},or={text:{primary:Sn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:_n[800],default:"#303030"},action:{active:Sn.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 ir(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Yn(e),t=Kn(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Xn(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Yn(e),t=Kn(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Xn(e)}(e.main,i)))}function ar(e){var t=e.primary,n=void 0===t?{light:Pn,main:On,dark:In}:t,r=e.secondary,o=void 0===r?{light:Cn,main:Rn,dark:Tn}:r,i=e.error,a=void 0===i?{light:wn,main:En,dark:kn}:i,s=e.warning,l=void 0===s?{light:zn,main:jn,dark:$n}:s,c=e.info,u=void 0===c?{light:Dn,main:Ln,dark:Mn}:c,d=e.success,p=void 0===d?{light:qn,main:An,dark:Nn}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=er(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Jn(e),r=Jn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,or.text.primary)>=g?or.text.primary:rr.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Fn({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Gn(4,t));if("string"!=typeof e.main)throw new Error(Gn(5,JSON.stringify(e.main)));return ir(e,"light",n,y),ir(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:or,light:rr};return Wn(Fn({common:Sn,type:h,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:_n,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:y},w[h]),b)}function sr(e){return Math.round(1e5*e)/1e5}function lr(e){return sr(e)}var cr={textTransform:"uppercase"},ur='"Roboto", "Helvetica", "Arial", sans-serif';function dr(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ur:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=er(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Fn({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ur?{letterSpacing:"".concat(sr(r/t),"em")}:{},i,v)},E={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(p,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(p,14,1.75,.4,cr),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,cr)};return Wn(Fn({htmlFontSize:g,pxToRem:S,round:lr,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},E),b,{clone:!1})}function pr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var fr=["none",pr(0,2,1,-1,0,1,1,0,0,1,3,0),pr(0,3,1,-2,0,2,2,0,0,1,5,0),pr(0,3,3,-2,0,3,4,0,0,1,8,0),pr(0,2,4,-1,0,4,5,0,0,1,10,0),pr(0,3,5,-1,0,5,8,0,0,1,14,0),pr(0,3,5,-1,0,6,10,0,0,1,18,0),pr(0,4,5,-2,0,7,10,1,0,2,16,1),pr(0,5,5,-3,0,8,10,1,0,3,14,2),pr(0,5,6,-3,0,9,12,1,0,3,16,2),pr(0,6,6,-3,0,10,14,1,0,4,18,3),pr(0,6,7,-4,0,11,15,1,0,4,20,3),pr(0,7,8,-4,0,12,17,2,0,5,22,4),pr(0,7,8,-4,0,13,19,2,0,5,24,4),pr(0,7,9,-4,0,14,21,2,0,5,26,4),pr(0,8,9,-5,0,15,22,2,0,6,28,5),pr(0,8,10,-5,0,16,24,2,0,6,30,5),pr(0,8,11,-5,0,17,26,2,0,6,32,5),pr(0,9,11,-5,0,18,28,2,0,7,34,6),pr(0,9,12,-6,0,19,29,2,0,7,36,6),pr(0,10,13,-6,0,20,31,3,0,8,38,7),pr(0,10,13,-6,0,21,33,3,0,8,40,7),pr(0,10,14,-6,0,22,35,3,0,8,42,7),pr(0,11,14,-7,0,23,36,3,0,9,44,8),pr(0,11,15,-7,0,24,38,3,0,9,46,8)],hr={borderRadius:4};function mr(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 gr(e,t){if(e){if("string"==typeof e)return mr(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)?mr(e,t):void 0}}function vr(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gr(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 yr(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);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)||gr(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 br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var xr={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)"},Sr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wr(e){return"".concat(Math.round(e),"ms")}var Er={easing:xr,duration:Sr,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Sr.standard:n,o=t.easing,i=void 0===o?xr.easeInOut:o,a=t.delay,s=void 0===a?0:a;return er(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:wr(r)," ").concat(i," ").concat("string"==typeof s?s:wr(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},kr={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cr(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=er(e,["breakpoints","mixins","palette","spacing","typography"]),d=ar(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=er(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=tr.indexOf(t);return r===tr.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[tr[r+1]]?n[tr[r+1]]:t)-a/100).concat(o,")")}return Fn({keys:tr,values:n,up:l,down:function(e){var t=tr.indexOf(e)+1,r=n[tr[t]];return t===tr.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=br(s),h=Wn({breakpoints:p,direction:"ltr",mixins:nr(p,f,o),overrides:{},palette:d,props:{},shadows:fr,typography:dr(d,c),spacing:f,shape:hr,transitions:Er,zIndex:kr},u),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h=g.reduce((function(e,t){return Wn(e,t)}),h)}var Rr="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Tr=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Tr.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Rr]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function Or(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr="object"===("undefined"==typeof window?"undefined":Ir(window))&&"object"===("undefined"==typeof document?"undefined":Ir(document))&&9===document.nodeType;function Lr(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vn(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mr(e,t){return Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mr(e,t)}function qr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mr(e,t)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Nr={}.constructor;function zr(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(zr);if(e.constructor!==Nr)return e;var t={};for(var n in e)t[n]=zr(e[n]);return t}function jr(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=zr(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var $r=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},_r=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=$r(e[n]," ");else t=$r(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Fr(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Hr(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Br(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=Fr(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Hr(p+":"+c+_r(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Hr(h+":"+c+_r(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Hr(g+":"+c+_r(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Hr(""+e+c+"{"+r,--i)+Hr("}",i)):r}var Wr=/([[\].#*$><+~=|^:(),"'`\s])/g,Vr="undefined"!=typeof CSS&&CSS.escape,Ur=function(e){return Vr?Vr(e):e.replace(Wr,"\\$1")},Gr=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Kr=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ar(Ar(o)),s),o.selectorText="."+Ur(o.id)),o}qr(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=_r(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Fn({},e,{allowEmpty:!0}):e;return Br(this.selectorText,this.style,n)},Lr(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Gr),Yr={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Kr(e,t,n)}},Xr={indent:1,children:!0},Jr=/@([\w-]+)/,Zr=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Jr);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Eo(Fn({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Xr);var t=Fr(e).linebreak;if(null==e.indent&&(e.indent=Xr.indent),null==e.children&&(e.children=Xr.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Qr=/@container|@media|@supports\s+/,eo={onCreateRule:function(e,t,n){return Qr.test(e)?new Zr(e,t,n):null}},to={indent:1,children:!0},no=/@keyframes\s+([\w-]+)/,ro=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(no);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Ur(a(this,i)),this.rules=new Eo(Fn({},n,{parent:this})),t)this.rules.add(s,t[s],Fn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=to);var t=Fr(e).linebreak;if(null==e.indent&&(e.indent=to.indent),null==e.children&&(e.children=to.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),oo=/@keyframes\s+/,io=/\$([\w-]+)/g,ao=function(e,t){return"string"==typeof e?e.replace(io,(function(e,n){return n in t?t[n]:e})):e},so=function(e,t,n){var r=e[t],o=ao(r,n);o!==r&&(e[t]=o)},lo={onCreateRule:function(e,t,n){return"string"==typeof e&&oo.test(e)?new ro(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&so(e,"animation-name",n.keyframes),"animation"in e&&so(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return ao(e,r.keyframes);default:return e}}},co=function(e){function t(){return e.apply(this,arguments)||this}return qr(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Fn({},e,{allowEmpty:!0}):e;return Br(this.key,this.style,n)},t}(Gr),uo={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new co(e,t,n):null}},po=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Fr(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Br(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Br(this.at,this.style,e)},e}(),fo=/@font-face/,ho={onCreateRule:function(e,t,n){return fo.test(e)?new po(e,t,n):null}},mo=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Br(this.key,this.style,e)},e}(),go={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mo(e,t,n):null}},vo=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),yo={"@charset":!0,"@import":!0,"@namespace":!0},bo={onCreateRule:function(e,t,n){return e in yo?new vo(e,t,n):null}},xo=[Yr,eo,lo,uo,ho,go,bo],So={process:!0},wo={force:!0,process:!0},Eo=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Fn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Ur(this.classes[d]));var p=jr(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Fn({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Kr?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ro&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Kr?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ro&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=So);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,wo)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,wo)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Fr(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),ko=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Fn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Eo(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Co=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ro=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Qn(t,["attached"]),o=Fr(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Lr(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),To=new Ro,Po="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Oo="2f1acc6c3a606b082e5eef5e54414ffb";null==Po[Oo]&&(Po[Oo]=0);var Io=Po[Oo]++,Do=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Io+o+t:i+n.key+"-"+Io+(o?"-"+o:"")+"-"+t}},Lo=function(e){var t;return function(){return t||(t=e()),t}},Mo=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},qo=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=_r(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ao=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},No=function(e,t){return e.selectorText=t,e.selectorText===t},zo=Lo((function(){return document.querySelector("head")}));function jo(e){var t=To.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=zo(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var $o=Lo((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),_o=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Fo=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ho=function(){function e(e){this.getPropertyValue=Mo,this.setProperty=qo,this.removeProperty=Ao,this.setSelector=No,this.hasInsertedRules=!1,this.cssRules=[],e&&To.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=$o();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=jo(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else zo().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Fo(n,t);if(!1===(o=_o(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Fo(n,t),l=_o(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof ko&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Bo=0,Wo=function(){function e(e){this.id=Bo++,this.version="10.10.0",this.plugins=new Co,this.options={id:{minify:!1},createGenerateId:Do,Renderer:Dr?Ho:null,plugins:[]},this.generateId=Do({minify:!1});for(var t=0;t<xo.length;t++)this.plugins.use(xo[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Fn({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===To.index?0:To.index+1);var r=new ko(e,Fn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),To.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Fn({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=jr(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Vo=function(e){return new Wo(e)},Uo="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Go(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Go(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
7
|
+
System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x,S,w,k,E,C,R,T,P,O,I,D,L,M,q,A,N,z,j,$,_,F,H,B,W,V,U,G,K,Y;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,c=e.disclaimerService,u=e.tooltipService,d=e.alternativeService,p=e.colorService,f=e.pluginService,h=e.themeService,m=e.debouncer,g=e.fontResolver},function(e){v=e.default,y=e,b=e.isValidElement,x=e.cloneElement,S=e.Children,w=e.forwardRef,k=e.useContext,E=e.useState,C=e.useEffect,R=e.useRef},function(e){T=e,P=e.default},function(e){O=e.useOptions,I=e.useElement,D=e.useSelections,L=e.useState,M=e.useLayout,q=e.useTranslator,A=e.useAction,N=e.useEffect,z=e.useModel,j=e.useApp,$=e.useStaleLayout,_=e.usePlugins,F=e.useConstraints,H=e.useTheme,B=e.useAppLayout,W=e.useEmbed,V=e.usePromise,U=e.useRect,G=e.onTakeSnapshot,K=e.useImperativeHandle},function(e){Y=e.default}],execute:function(){var X={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function Q(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=Z(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Z(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ne=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},de=ee(ue);const pe=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],fe={};pe.forEach((([e,{width:t,height:n}])=>{fe[e]={width:t,height:n}}));const he={getLayoutModes:()=>fe,getLayoutMode(e,t){let n;for(n=0;n<pe.length;++n)if(e>=pe[n][1].width&&t>=pe[n][1].height)return pe[n][0];return"SPARK"}};function me(e,t){return{layoutModes:he.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ge=/^[A-Z][A-z0-9_]*$/i,ve={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},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,"")}},ye={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},getValue:(e,t,n)=>{const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||ge.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>ve.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function be(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const xe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Se=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),we=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ke={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>xe.test(e),isRtlChar:e=>Se.test(e)||we.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ke.isLtrChar(r))return"ltr";if(ke.isRtlChar(r))return"rtl"}return"ltr"}},Ee={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Ee.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=ke.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getDescriptionRow(e,t){const n=ke.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n,"white-space":"pre-wrap"},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:ke.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=ke.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=ke.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Ee.getColorSymbol(e,t)]:[Ee.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=ke.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ke.detectTextDirection(e.value);let l;return l=o?r?[e.value,Ee.getColorSymbol(t,n)]:[Ee.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Ce(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Re=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Te(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),o=n.styleService.label.value.getStyle(),i=o.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:i&&!e.onBackground?Re(t):o.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:Ce(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Pe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Oe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var De=.7,Le=1/De,Me="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ne=/^#([0-9a-f]{3,8})$/,ze=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),je=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),$e=new RegExp(`^rgba\\(${Me},${Me},${Me},${qe}\\)$`),_e=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${qe}\\)$`),Fe=new RegExp(`^hsl\\(${qe},${Ae},${Ae}\\)$`),He=new RegExp(`^hsla\\(${qe},${Ae},${Ae},${qe}\\)$`),Be={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 We(){return this.rgb().formatHex()}function Ve(){return this.rgb().formatRgb()}function Ue(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ne.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ge(t):3===n?new Xe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ke(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=ze.exec(e))?new Xe(t[1],t[2],t[3],1):(t=je.exec(e))?new Xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$e.exec(e))?Ke(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fe.exec(e))?nt(t[1],t[2]/100,t[3]/100,1):(t=He.exec(e))?nt(t[1],t[2]/100,t[3]/100,t[4]):Be.hasOwnProperty(e)?Ge(Be[e]):"transparent"===e?new Xe(NaN,NaN,NaN,0):null}function Ge(e){return new Xe(e>>16&255,e>>8&255,255&e,1)}function Ke(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xe(e,t,n,r)}function Ye(e){return e instanceof Ie||(e=Ue(e)),e?new Xe((e=e.rgb()).r,e.g,e.b,e.opacity):new Xe}function Xe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Je(){return`#${tt(this.r)}${tt(this.g)}${tt(this.b)}`}function Ze(){const e=Qe(this.opacity);return`${1===e?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${1===e?")":`, ${e})`}`}function Qe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tt(e){return((e=et(e))<16?"0":"")+e.toString(16)}function nt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ot(e,t,n,r)}function rt(e){if(e instanceof ot)return new ot(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ue(e)),!e)return new ot;if(e instanceof ot)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 ot(a,s,l,e.opacity)}function ot(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function it(e){return(e=(e||0)%360)<0?e+360:e}function at(e){return Math.max(0,Math.min(1,e||0))}function st(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pe(Ie,Ue,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:We,formatHex:We,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rt(this).formatHsl()},formatRgb:Ve,toString:Ve}),Pe(Xe,(function(e,t,n,r){return 1===arguments.length?Ye(e):new Xe(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return e=null==e?Le:Math.pow(Le,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new Xe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xe(et(this.r),et(this.g),et(this.b),Qe(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:Je,formatHex:Je,formatHex8:function(){return`#${tt(this.r)}${tt(this.g)}${tt(this.b)}${tt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ze,toString:Ze})),Pe(ot,(function(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return e=null==e?Le:Math.pow(Le,e),new ot(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new ot(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 Xe(st(e>=240?e-240:e+120,o,r),st(e,o,r),st(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ot(it(this.h),at(this.s),at(this.l),Qe(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=Qe(this.opacity);return`${1===e?"hsl(":"hsla("}${it(this.h)}, ${100*at(this.s)}%, ${100*at(this.l)}%${1===e?")":`, ${e})`}`}}));const lt=Math.PI/180,ct=180/Math.PI,ut=.96422,dt=.82521,pt=4/29,ft=6/29,ht=3*ft*ft,mt=ft*ft*ft;function gt(e){if(e instanceof vt)return new vt(e.l,e.a,e.b,e.opacity);if(e instanceof kt)return Et(e);e instanceof Xe||(e=Ye(e));var t,n,r=St(e.r),o=St(e.g),i=St(e.b),a=yt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=yt((.4360747*r+.3850649*o+.1430804*i)/ut),n=yt((.0139322*r+.0971045*o+.7141733*i)/dt)),new vt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function vt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yt(e){return e>mt?Math.pow(e,1/3):e/ht+pt}function bt(e){return e>ft?e*e*e:ht*(e-pt)}function xt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function St(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kt)return new kt(e.h,e.c,e.l,e.opacity);if(e instanceof vt||(e=gt(e)),0===e.a&&0===e.b)return new kt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ct;return new kt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kt(e,t,n,null==r?1:r)}function kt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Et(e){if(isNaN(e.h))return new vt(e.l,0,0,e.opacity);var t=e.h*lt;return new vt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function Ct(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Pe(vt,(function(e,t,n,r){return 1===arguments.length?gt(e):new vt(e,t,n,null==r?1:r)}),Oe(Ie,{brighter(e){return new vt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new vt(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 Xe(xt(3.1338561*(t=ut*bt(t))-1.6168667*(e=1*bt(e))-.4906146*(n=dt*bt(n))),xt(-.9787684*t+1.9161415*e+.033454*n),xt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pe(kt,wt,Oe(Ie,{brighter(e){return new kt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Et(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return Ct(e(t),n)}}(e))}(Ct);var Rt="$";function Tt(){}function Pt(e,t){var n=new Tt;if(e instanceof Tt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Ot(){}Tt.prototype=Pt.prototype={constructor:Tt,has:function(e){return Rt+e in this},get:function(e){return this[Rt+e]},set:function(e,t){return this[Rt+e]=t,this},remove:function(e){var t=Rt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Rt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Rt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Rt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Rt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Rt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Rt)return!1;return!0},each:function(e){for(var t in this)t[0]===Rt&&e(this[t],t.slice(1),this)}};var It=Pt.prototype;Ot.prototype={constructor:Ot,has:It.has,add:function(e){return this[Rt+(e+="")]=e,this},remove:It.remove,clear:It.clear,values:It.keys,size:It.size,empty:It.empty,each:It.each};const Dt=de.bind(null,!0),Lt={},{isArray:Mt}=Array;function qt(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function At(e){return void 0===e}function Nt(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function zt(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=At(e[r||t])?i:e[t],e=e[r||t]})),e}function jt(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function $t(e,t,n){let r=!0;if(qt(e)&&qt(t))return jt(e,n)===jt(t,n)&&(Object.keys(e).forEach((o=>{$t(e[o],t[o],n)||(r=!1)})),r);if(Mt(e)&&Mt(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!$t(e[r],t[r],n))return!1;return!0}return e===t}Lt.compare=$t,Lt.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Dt({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;$t(i,a)||Nt(t,o)||(At(a)?r.push({op:"add",path:s,value:i}):qt(i)&&qt(a)?r=r.concat(Lt.generate(a,i,s)):Mt(i)&&Mt(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&At(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if($t(t,o))return r;if(!At(t[0])&&At(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Lt.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{At(t[o])&&!Nt(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Lt.apply=function(e,t){t.forEach((t=>{let n=zt(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Mt(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Mt(o)&&Mt(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(qt(o)&&qt(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Nt(a,e)&&delete a[e]})),Dt(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=zt(e,t.from);Mt(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Mt(n)?n.splice(+r,1):delete n[r]);var a}))},Lt.clone=function(e){return Dt({},e)},Lt.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Lt.updateObject=function(e,t){Object.keys(e).length?Lt.apply(e,Lt.generate(e,t)):Dt(e,t)};const _t=[[2,4,6],[2,4],[3]],Ft=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Ht(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Bt(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Ht(e[r],t,n)}!function(){let e,t;for(Bt(_t,1,10),e=0;e<Ft.length;e++)if(Ft[e])for(t=0;t<Ft[e].length;t++)Array.isArray(Ft[e][t])&&Bt(Ft[e][t])}();var Wt={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Vt(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=de(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Wt;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var Ut={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Vt(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Vt(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Gt(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Kt={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Yt={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Xt={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Jt={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},Zt="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",Qt={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},en={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},tn="N",nn="H",rn="C",on={N:void 0,H:Kt,C:Xt},an=(e,t)=>{switch(e.qGrouping){case tn:return;case nn:return{path:Kt,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case rn:return{path:t?Yt:Xt,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function sn(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Lt.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ln(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=de(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),sn(e,a,c)}))}function cn(e){return e.qGrouping===tn?e.qFallbackTitle||"":e.title||""}const un=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},dn=async(e,t,n,r,o)=>{const i=await un(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===tn&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=on[s],c=s!==tn;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){ln(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function pn({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===tn,d=l.qGrouping===nn;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await(async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case nn:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Kt,groupItem:!0,title:e.title,selected:!1,children:n}}case rn:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=null!=t&&t.setActiveField?e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}}))):[];return{id:e.cId,icon:Xt,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:cn(e)}}})(l,o,a,e),n=c?await dn(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function fn(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===nn?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:an(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===tn?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:cn(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function hn({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await un(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){ln(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function mn(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(null,arguments)}var vn={exports:{}};function yn(){}function bn(){}bn.resetWarningCache=yn;vn.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:bn,resetWarningCache:yn};return n.PropTypes=n,n}();var xn=ee(vn.exports),Sn={black:"#000",white:"#fff"},wn="#e57373",kn="#f44336",En="#d32f2f",Cn="#ff4081",Rn="#f50057",Tn="#c51162",Pn="#7986cb",On="#3f51b5",In="#303f9f",Dn="#64b5f6",Ln="#2196f3",Mn="#1976d2",qn="#81c784",An="#4caf50",Nn="#388e3c",zn="#ffb74d",jn="#ff9800",$n="#f57c00",_n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Fn(){return Fn=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},Fn.apply(null,arguments)}function Hn(e){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Bn(e){return e&&"object"===Hn(e)&&e.constructor===Object}function Wn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Fn({},e):e;return Bn(e)&&Bn(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Bn(t[o])&&o in e?r[o]=Wn(e[o],t[o],n):r[o]=t[o])})),r}function Vn(e){var t=function(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hn(t)?t:t+""}function Un(e,t,n){return(t=Vn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Yn(e){if(e.type)return e;if("#"===e.charAt(0))return Yn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Gn(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Xn(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Jn(e){var t="hsl"===(e=Yn(e)).type?Yn(function(e){var t=(e=Yn(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Xn({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Zn(e,t){return e=Yn(e),t=Kn(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Xn(e)}function Qn(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}function er(e,t){if(null==e)return{};var n,r,o=Qn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tr=["xs","sm","md","lg","xl"];function nr(e,t,n){var r;return Fn({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Fn({paddingLeft:t(2),paddingRight:t(2)},n,Un({},e.up("sm"),Fn({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Un(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Un(r,e.up("sm"),{minHeight:64}),r)},n)}var rr={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sn.white,default:_n[50]},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}},or={text:{primary:Sn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:_n[800],default:"#303030"},action:{active:Sn.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 ir(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Yn(e),t=Kn(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Xn(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Yn(e),t=Kn(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Xn(e)}(e.main,i)))}function ar(e){var t=e.primary,n=void 0===t?{light:Pn,main:On,dark:In}:t,r=e.secondary,o=void 0===r?{light:Cn,main:Rn,dark:Tn}:r,i=e.error,a=void 0===i?{light:wn,main:kn,dark:En}:i,s=e.warning,l=void 0===s?{light:zn,main:jn,dark:$n}:s,c=e.info,u=void 0===c?{light:Dn,main:Ln,dark:Mn}:c,d=e.success,p=void 0===d?{light:qn,main:An,dark:Nn}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=er(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Jn(e),r=Jn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,or.text.primary)>=g?or.text.primary:rr.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Fn({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Gn(4,t));if("string"!=typeof e.main)throw new Error(Gn(5,JSON.stringify(e.main)));return ir(e,"light",n,y),ir(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:or,light:rr};return Wn(Fn({common:Sn,type:h,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:_n,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:y},w[h]),b)}function sr(e){return Math.round(1e5*e)/1e5}function lr(e){return sr(e)}var cr={textTransform:"uppercase"},ur='"Roboto", "Helvetica", "Arial", sans-serif';function dr(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?ur:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=er(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Fn({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===ur?{letterSpacing:"".concat(sr(r/t),"em")}:{},i,v)},k={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(u,48,1.167,0),h4:w(u,34,1.235,.25),h5:w(u,24,1.334,0),h6:w(p,20,1.6,.15),subtitle1:w(u,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(u,16,1.5,.15),body2:w(u,14,1.43,.15),button:w(p,14,1.75,.4,cr),caption:w(u,12,1.66,.4),overline:w(u,12,2.66,1,cr)};return Wn(Fn({htmlFontSize:g,pxToRem:S,round:lr,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:h},k),b,{clone:!1})}function pr(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var fr=["none",pr(0,2,1,-1,0,1,1,0,0,1,3,0),pr(0,3,1,-2,0,2,2,0,0,1,5,0),pr(0,3,3,-2,0,3,4,0,0,1,8,0),pr(0,2,4,-1,0,4,5,0,0,1,10,0),pr(0,3,5,-1,0,5,8,0,0,1,14,0),pr(0,3,5,-1,0,6,10,0,0,1,18,0),pr(0,4,5,-2,0,7,10,1,0,2,16,1),pr(0,5,5,-3,0,8,10,1,0,3,14,2),pr(0,5,6,-3,0,9,12,1,0,3,16,2),pr(0,6,6,-3,0,10,14,1,0,4,18,3),pr(0,6,7,-4,0,11,15,1,0,4,20,3),pr(0,7,8,-4,0,12,17,2,0,5,22,4),pr(0,7,8,-4,0,13,19,2,0,5,24,4),pr(0,7,9,-4,0,14,21,2,0,5,26,4),pr(0,8,9,-5,0,15,22,2,0,6,28,5),pr(0,8,10,-5,0,16,24,2,0,6,30,5),pr(0,8,11,-5,0,17,26,2,0,6,32,5),pr(0,9,11,-5,0,18,28,2,0,7,34,6),pr(0,9,12,-6,0,19,29,2,0,7,36,6),pr(0,10,13,-6,0,20,31,3,0,8,38,7),pr(0,10,13,-6,0,21,33,3,0,8,40,7),pr(0,10,14,-6,0,22,35,3,0,8,42,7),pr(0,11,14,-7,0,23,36,3,0,9,44,8),pr(0,11,15,-7,0,24,38,3,0,9,46,8)],hr={borderRadius:4};function mr(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 gr(e,t){if(e){if("string"==typeof e)return mr(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)?mr(e,t):void 0}}function vr(e){return function(e){if(Array.isArray(e))return mr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gr(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 yr(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);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)||gr(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 br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var xr={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)"},Sr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wr(e){return"".concat(Math.round(e),"ms")}var kr={easing:xr,duration:Sr,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Sr.standard:n,o=t.easing,i=void 0===o?xr.easeInOut:o,a=t.delay,s=void 0===a?0:a;return er(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:wr(r)," ").concat(i," ").concat("string"==typeof s?s:wr(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Er={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Cr(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=er(e,["breakpoints","mixins","palette","spacing","typography"]),d=ar(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=er(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=tr.indexOf(t);return r===tr.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[tr[r+1]]?n[tr[r+1]]:t)-a/100).concat(o,")")}return Fn({keys:tr,values:n,up:l,down:function(e){var t=tr.indexOf(e)+1,r=n[tr[t]];return t===tr.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=br(s),h=Wn({breakpoints:p,direction:"ltr",mixins:nr(p,f,o),overrides:{},palette:d,props:{},shadows:fr,typography:dr(d,c),spacing:f,shape:hr,transitions:kr,zIndex:Er},u),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h=g.reduce((function(e,t){return Wn(e,t)}),h)}var Rr="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Tr=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Pr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Tr.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Rr]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function Or(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr="object"===("undefined"==typeof window?"undefined":Ir(window))&&"object"===("undefined"==typeof document?"undefined":Ir(document))&&9===document.nodeType;function Lr(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vn(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mr(e,t){return Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mr(e,t)}function qr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mr(e,t)}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Nr={}.constructor;function zr(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(zr);if(e.constructor!==Nr)return e;var t={};for(var n in e)t[n]=zr(e[n]);return t}function jr(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=zr(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var $r=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},_r=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=$r(e[n]," ");else t=$r(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Fr(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Hr(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Br(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=Fr(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Hr(p+":"+c+_r(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=Hr(h+":"+c+_r(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=Hr(g+":"+c+_r(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Hr(""+e+c+"{"+r,--i)+Hr("}",i)):r}var Wr=/([[\].#*$><+~=|^:(),"'`\s])/g,Vr="undefined"!=typeof CSS&&CSS.escape,Ur=function(e){return Vr?Vr(e):e.replace(Wr,"\\$1")},Gr=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Kr=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Ar(Ar(o)),s),o.selectorText="."+Ur(o.id)),o}qr(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=_r(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Fn({},e,{allowEmpty:!0}):e;return Br(this.selectorText,this.style,n)},Lr(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Gr),Yr={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Kr(e,t,n)}},Xr={indent:1,children:!0},Jr=/@([\w-]+)/,Zr=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Jr);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new ko(Fn({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Xr);var t=Fr(e).linebreak;if(null==e.indent&&(e.indent=Xr.indent),null==e.children&&(e.children=Xr.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Qr=/@container|@media|@supports\s+/,eo={onCreateRule:function(e,t,n){return Qr.test(e)?new Zr(e,t,n):null}},to={indent:1,children:!0},no=/@keyframes\s+([\w-]+)/,ro=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(no);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Ur(a(this,i)),this.rules=new ko(Fn({},n,{parent:this})),t)this.rules.add(s,t[s],Fn({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=to);var t=Fr(e).linebreak;if(null==e.indent&&(e.indent=to.indent),null==e.children&&(e.children=to.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),oo=/@keyframes\s+/,io=/\$([\w-]+)/g,ao=function(e,t){return"string"==typeof e?e.replace(io,(function(e,n){return n in t?t[n]:e})):e},so=function(e,t,n){var r=e[t],o=ao(r,n);o!==r&&(e[t]=o)},lo={onCreateRule:function(e,t,n){return"string"==typeof e&&oo.test(e)?new ro(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&so(e,"animation-name",n.keyframes),"animation"in e&&so(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return ao(e,r.keyframes);default:return e}}},co=function(e){function t(){return e.apply(this,arguments)||this}return qr(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Fn({},e,{allowEmpty:!0}):e;return Br(this.key,this.style,n)},t}(Gr),uo={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new co(e,t,n):null}},po=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Fr(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Br(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Br(this.at,this.style,e)},e}(),fo=/@font-face/,ho={onCreateRule:function(e,t,n){return fo.test(e)?new po(e,t,n):null}},mo=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Br(this.key,this.style,e)},e}(),go={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new mo(e,t,n):null}},vo=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),yo={"@charset":!0,"@import":!0,"@namespace":!0},bo={onCreateRule:function(e,t,n){return e in yo?new vo(e,t,n):null}},xo=[Yr,eo,lo,uo,ho,go,bo],So={process:!0},wo={force:!0,process:!0},ko=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Fn({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Ur(this.classes[d]));var p=jr(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Fn({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Kr?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ro&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Kr?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ro&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=So);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,wo)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,wo)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Fr(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),Eo=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Fn({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ko(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Co=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Ro=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Qn(t,["attached"]),o=Fr(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Lr(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),To=new Ro,Po="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Oo="2f1acc6c3a606b082e5eef5e54414ffb";null==Po[Oo]&&(Po[Oo]=0);var Io=Po[Oo]++,Do=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Io+o+t:i+n.key+"-"+Io+(o?"-"+o:"")+"-"+t}},Lo=function(e){var t;return function(){return t||(t=e()),t}},Mo=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},qo=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=_r(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ao=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},No=function(e,t){return e.selectorText=t,e.selectorText===t},zo=Lo((function(){return document.querySelector("head")}));function jo(e){var t=To.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=zo(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var $o=Lo((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),_o=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Fo=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ho=function(){function e(e){this.getPropertyValue=Mo,this.setProperty=qo,this.removeProperty=Ao,this.setSelector=No,this.hasInsertedRules=!1,this.cssRules=[],e&&To.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=$o();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=jo(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else zo().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Fo(n,t);if(!1===(o=_o(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Fo(n,t),l=_o(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Eo&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Bo=0,Wo=function(){function e(e){this.id=Bo++,this.version="10.10.0",this.plugins=new Co,this.options={id:{minify:!1},createGenerateId:Do,Renderer:Dr?Ho:null,plugins:[]},this.generateId=Do({minify:!1});for(var t=0;t<xo.length;t++)this.plugins.use(xo[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Fn({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===To.index?0:To.index+1);var r=new Eo(e,Fn({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),To.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Fn({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=jr(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Vo=function(e){return new Wo(e)},Uo="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Go(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Go(r);i&&(t||(t={}),t[n]=i)}}return t}
|
|
8
8
|
/**
|
|
9
9
|
* A better abstraction over CSS.
|
|
10
10
|
*
|
|
11
11
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
12
12
|
* @website https://github.com/cssinjs/jss
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/Vo();var Ko=Date.now(),Yo="fnValues"+Ko,Xo="fnStyle"+ ++Ko,Jo="@global",Zo="@global ",Qo=function(){function e(e,t,n){for(var r in this.type="global",this.at=Jo,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Eo(Fn({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),ei=function(){function e(e,t,n){this.type="global",this.at=Jo,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Fn({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ti=/\s*,\s*/g;function ni(e,t){for(var n=e.split(ti),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function ri(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Jo)return new Qo(e,t,n);if("@"===e[0]&&e.substr(0,8)===Zo)return new ei(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Jo]:null;if(o){for(var i in o)t.addRule(i,o[i],Fn({},n,{selector:ni(i,e.selector)}));delete r[Jo]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Jo){var i=ni(o.substr(7),e.selector);t.addRule(i,r[o],Fn({},n,{selector:i})),delete r[o]}}(e,t))}}}var oi=/\s*,\s*/g,ii=/&/g,ai=/\$([\w-]+)/g;function si(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(oi),r=e.split(oi),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(ii,a):a+" "+l}return o}function n(e,t,n){if(n)return Fn({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Fn({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(ai,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Fn({},a,{selector:f})):c.addRule(h,r[u],Fn({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var li=/[A-Z]/g,ci=/^ms-/,ui={};function di(e){return"-"+e.toLowerCase()}function pi(e){if(ui.hasOwnProperty(e))return ui[e];var t=e.replace(li,di);return ui[e]=ci.test(t)?"-"+t:t}function fi(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:pi(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(fi):t.fallbacks=fi(e.fallbacks)),t}var hi=Uo&&CSS?CSS.px:"px",mi=Uo&&CSS?CSS.ms:"ms",gi=Uo&&CSS?CSS.percent:"%";function vi(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var yi=vi({"animation-delay":mi,"animation-duration":mi,"background-position":hi,"background-position-x":hi,"background-position-y":hi,"background-size":hi,border:hi,"border-bottom":hi,"border-bottom-left-radius":hi,"border-bottom-right-radius":hi,"border-bottom-width":hi,"border-left":hi,"border-left-width":hi,"border-radius":hi,"border-right":hi,"border-right-width":hi,"border-top":hi,"border-top-left-radius":hi,"border-top-right-radius":hi,"border-top-width":hi,"border-width":hi,"border-block":hi,"border-block-end":hi,"border-block-end-width":hi,"border-block-start":hi,"border-block-start-width":hi,"border-block-width":hi,"border-inline":hi,"border-inline-end":hi,"border-inline-end-width":hi,"border-inline-start":hi,"border-inline-start-width":hi,"border-inline-width":hi,"border-start-start-radius":hi,"border-start-end-radius":hi,"border-end-start-radius":hi,"border-end-end-radius":hi,margin:hi,"margin-bottom":hi,"margin-left":hi,"margin-right":hi,"margin-top":hi,"margin-block":hi,"margin-block-end":hi,"margin-block-start":hi,"margin-inline":hi,"margin-inline-end":hi,"margin-inline-start":hi,padding:hi,"padding-bottom":hi,"padding-left":hi,"padding-right":hi,"padding-top":hi,"padding-block":hi,"padding-block-end":hi,"padding-block-start":hi,"padding-inline":hi,"padding-inline-end":hi,"padding-inline-start":hi,"mask-position-x":hi,"mask-position-y":hi,"mask-size":hi,height:hi,width:hi,"min-height":hi,"max-height":hi,"min-width":hi,"max-width":hi,bottom:hi,left:hi,top:hi,right:hi,inset:hi,"inset-block":hi,"inset-block-end":hi,"inset-block-start":hi,"inset-inline":hi,"inset-inline-end":hi,"inset-inline-start":hi,"box-shadow":hi,"text-shadow":hi,"column-gap":hi,"column-rule":hi,"column-rule-width":hi,"column-width":hi,"font-size":hi,"font-size-delta":hi,"letter-spacing":hi,"text-decoration-thickness":hi,"text-indent":hi,"text-stroke":hi,"text-stroke-width":hi,"word-spacing":hi,motion:hi,"motion-offset":hi,outline:hi,"outline-offset":hi,"outline-width":hi,perspective:hi,"perspective-origin-x":gi,"perspective-origin-y":gi,"transform-origin":gi,"transform-origin-x":gi,"transform-origin-y":gi,"transform-origin-z":gi,"transition-delay":mi,"transition-duration":mi,"vertical-align":hi,"flex-basis":hi,"shape-margin":hi,size:hi,gap:hi,grid:hi,"grid-gap":hi,"row-gap":hi,"grid-row-gap":hi,"grid-column-gap":hi,"grid-template-rows":hi,"grid-template-columns":hi,"grid-auto-rows":hi,"grid-auto-columns":hi,"box-shadow-x":hi,"box-shadow-y":hi,"box-shadow-blur":hi,"box-shadow-spread":hi,"font-line-height":hi,"text-shadow-x":hi,"text-shadow-y":hi,"text-shadow-blur":hi});function bi(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=bi(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=bi(o,t[o],n);else for(var i in t)t[i]=bi(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||yi[e];return!a||0===t&&a===hi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function xi(e){void 0===e&&(e={});var t=vi(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=bi(r,e[r],t);return e},onChangeValue:function(e,n){return bi(n,e,t)}}}var Si="",wi="",Ei="",ki="",Ci=Dr&&"ontouchstart"in document.documentElement;if(Dr){var Ri={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ti=document.createElement("p").style;for(var Pi in Ri)if(Pi+"Transform"in Ti){Si=Pi,wi=Ri[Pi];break}"Webkit"===Si&&"msHyphens"in Ti&&(Si="ms",wi=Ri.ms,ki="edge"),"Webkit"===Si&&"-apple-trailing-word"in Ti&&(Ei="apple")}var Oi=Si,Ii=wi,Di=Ei,Li=ki,Mi=Ci;var qi={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Oi?"-webkit-"+e:Ii+e)}},Ai={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Oi?Ii+"print-"+e:e)}},Ni=/[-\s]+(.)?/g;function zi(e,t){return t?t.toUpperCase():""}function ji(e){return e.replace(Ni,zi)}function $i(e){return ji("-"+e)}var _i,Fi={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Oi){var n="mask-image";if(ji(n)in t)return e;if(Oi+$i(n)in t)return Ii+e}return e}},Hi={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Di||Mi?e:Ii+e)}},Bi={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ii+e)}},Wi={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ii+e)}},Vi={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Oi||"ms"===Oi&&"edge"!==Li?Ii+e:e)}},Ui={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Oi||"ms"===Oi||"apple"===Di?Ii+e:e)}},Gi={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Oi?"WebkitColumn"+$i(e)in t&&Ii+"column-"+e:"Moz"===Oi&&("page"+$i(e)in t&&"page-"+e))}},Ki={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Oi)return e;var n=e.replace("-inline","");return Oi+$i(n)in t&&Ii+n}},Yi={supportedProperty:function(e,t){return ji(e)in t&&e}},Xi={supportedProperty:function(e,t){var n=$i(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Oi+n in t?Ii+e:"Webkit"!==Oi&&"Webkit"+n in t&&"-webkit-"+e}},Ji={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Oi?""+Ii+e:e)}},Zi={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Oi?Ii+"scroll-chaining":e)}},Qi={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ea={supportedProperty:function(e,t){var n=Qi[e];return!!n&&(Oi+$i(n)in t&&Ii+n)}},ta={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},na=Object.keys(ta),ra=function(e){return Ii+e},oa={supportedProperty:function(e,t,n){var r=n.multiple;if(na.indexOf(e)>-1){var o=ta[e];if(!Array.isArray(o))return Oi+$i(o)in t&&Ii+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Oi+$i(o[0])in t))return!1;return o.map(ra)}return!1}},ia=[qi,Ai,Fi,Hi,Bi,Wi,Vi,Ui,Gi,Ki,Yi,Xi,Ji,Zi,ea,oa],aa=ia.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),sa=ia.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,vr(t.noPrefill)),e}),[]),la={};if(Dr){_i=document.createElement("p");var ca=window.getComputedStyle(document.documentElement,"");for(var ua in ca)isNaN(ua)||(la[ca[ua]]=ca[ua]);sa.forEach((function(e){return delete la[e]}))}function da(e,t){if(void 0===t&&(t={}),!_i)return e;if(null!=la[e])return la[e];"transition"!==e&&"transform"!==e||(t[e]=e in _i.style);for(var n=0;n<aa.length&&(la[e]=aa[n](e,_i.style,t),!la[e]);n++);try{_i.style[e]=""}catch(e){return!1}return la[e]}var pa,fa={},ha={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ma=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ga(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?da(t):", "+da(n);return r||(t||n)}function va(e,t){var n=t;if(!pa||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fa[r])return fa[r];try{pa.style[e]=n}catch(e){return fa[r]=!1,!1}if(ha[e])n=n.replace(ma,ga);else if(""===pa.style[e]&&("-ms-flex"===(n=Ii+n)&&(pa.style[e]="-ms-flexbox"),pa.style[e]=n,""===pa.style[e]))return fa[r]=!1,!1;return pa.style[e]="",fa[r]=n,fa[r]}function ya(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=da(n);i&&i!==n&&(o=!0);var a=!1,s=va(i,_r(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Oi?e:"@"+Ii+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return va(t,_r(e))||e}}}function ba(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=jr(e,{},n);return r[Xo]=t,r},onProcessStyle:function(e,t){if(Yo in t||Xo in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Yo]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Xo];i&&(o.style=i(e)||{});var a=o[Yo];if(a)for(var s in a)o.prop(s,a[s](e),r)}},ri(),si(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=fi(e[t]);return e}return fi(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=pi(t);return t===r?e:(n.prop(r,e),null)}},xi(),"undefined"==typeof window?null:ya(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function xa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Fn({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Dr&&(pa=document.createElement("p"));var Sa=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},wa=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},Ea=function(e,t,n){e.get(t).delete(n)},ka=v.createContext(null);function Ca(){return v.useContext(ka)}var Ra,Ta=Vo(ba()),Pa={disableGeneration:!1,generateClassName:Pr(),jss:Ta,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Oa=v.createContext(Pa);function Ia(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=er(e,["children","injectFirst","disableGeneration"]),s=Fn({},v.useContext(Oa),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Ra){var l=document.head;Ra=document.createComment("mui-inject-first"),l.insertBefore(Ra,l.firstChild)}s.jss=Vo({plugins:ba().plugins,insertionPoint:Ra})}return v.createElement(Oa.Provider,{value:s},t)}var Da=-1e9;var La={};function Ma(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=wa(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Sa(o.sheetsManager,i,r,s));var l=Fn({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=wa(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Fn({link:!1},l))).attach(),o.sheetsCache&&Sa(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Go(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Fn({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xa({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?La:i,s=er(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Fn({},o);return Object.keys(i).forEach((function(e){a[e]=Wn(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Da+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ca()||a,r=Fn({},v.useContext(Oa),s),i=v.useRef(),c=v.useRef();!function(e,t){var n,r=v.useRef([]),o=v.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),v.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Ma(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=wa(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Ea(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),v.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=xa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Aa(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Aa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Na(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}var za={exports:{}},ja={},$a="function"==typeof Symbol&&Symbol.for,_a=$a?Symbol.for("react.element"):60103,Fa=$a?Symbol.for("react.portal"):60106,Ha=$a?Symbol.for("react.fragment"):60107,Ba=$a?Symbol.for("react.strict_mode"):60108,Wa=$a?Symbol.for("react.profiler"):60114,Va=$a?Symbol.for("react.provider"):60109,Ua=$a?Symbol.for("react.context"):60110,Ga=$a?Symbol.for("react.async_mode"):60111,Ka=$a?Symbol.for("react.concurrent_mode"):60111,Ya=$a?Symbol.for("react.forward_ref"):60112,Xa=$a?Symbol.for("react.suspense"):60113,Ja=$a?Symbol.for("react.suspense_list"):60120,Za=$a?Symbol.for("react.memo"):60115,Qa=$a?Symbol.for("react.lazy"):60116,es=$a?Symbol.for("react.block"):60121,ts=$a?Symbol.for("react.fundamental"):60117,ns=$a?Symbol.for("react.responder"):60118,rs=$a?Symbol.for("react.scope"):60119;function os(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _a:switch(e=e.type){case Ga:case Ka:case Ha:case Wa:case Ba:case Xa:return e;default:switch(e=e&&e.$$typeof){case Ua:case Ya:case Qa:case Za:case Va:return e;default:return t}}case Fa:return t}}}function is(e){return os(e)===Ka}ja.AsyncMode=Ga,ja.ConcurrentMode=Ka,ja.ContextConsumer=Ua,ja.ContextProvider=Va,ja.Element=_a,ja.ForwardRef=Ya,ja.Fragment=Ha,ja.Lazy=Qa,ja.Memo=Za,ja.Portal=Fa,ja.Profiler=Wa,ja.StrictMode=Ba,ja.Suspense=Xa,ja.isAsyncMode=function(e){return is(e)||os(e)===Ga},ja.isConcurrentMode=is,ja.isContextConsumer=function(e){return os(e)===Ua},ja.isContextProvider=function(e){return os(e)===Va},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_a},ja.isForwardRef=function(e){return os(e)===Ya},ja.isFragment=function(e){return os(e)===Ha},ja.isLazy=function(e){return os(e)===Qa},ja.isMemo=function(e){return os(e)===Za},ja.isPortal=function(e){return os(e)===Fa},ja.isProfiler=function(e){return os(e)===Wa},ja.isStrictMode=function(e){return os(e)===Ba},ja.isSuspense=function(e){return os(e)===Xa},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ha||e===Ka||e===Wa||e===Ba||e===Xa||e===Ja||"object"==typeof e&&null!==e&&(e.$$typeof===Qa||e.$$typeof===Za||e.$$typeof===Va||e.$$typeof===Ua||e.$$typeof===Ya||e.$$typeof===ts||e.$$typeof===ns||e.$$typeof===rs||e.$$typeof===es)},ja.typeOf=os,za.exports=ja;var as=za.exports,ss={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ls={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},us={};function ds(e){return as.isMemo(e)?cs:us[e.$$typeof]||ss}us[as.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},us[as.Memo]=cs;var ps=Object.defineProperty,fs=Object.getOwnPropertyNames,hs=Object.getOwnPropertySymbols,ms=Object.getOwnPropertyDescriptor,gs=Object.getPrototypeOf,vs=Object.prototype;var ys=function e(t,n,r){if("string"!=typeof n){if(vs){var o=gs(n);o&&o!==vs&&e(t,o,r)}var i=fs(n);hs&&(i=i.concat(hs(n)));for(var a=ds(t),s=ds(n),l=0;l<i.length;++l){var c=i[l];if(!(ls[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=ms(n,c);try{ps(t,c,u)}catch(e){}}}}return t},bs=ee(ys);function xs(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=er(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Fn({theme:e},n))}}}:{root:t},l=qa(s,Fn({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=v.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=er(t,["children","className","clone","component"]),f=Na(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return v.cloneElement(s,Fn({className:Na(s.props.className,f)},h));if("function"==typeof s)return s(Fn({className:f},h));var m=d||e;return v.createElement(m,Fn({ref:r,className:f},h),s)}));return bs(c,e),c}}function Ss(e){var t=e.children,n=e.theme,r=Ca(),o=v.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Fn({},e,t)}(r,n);return null!=e&&(e[Rr]=null!==r),e}),[n,r]);return v.createElement(ka.Provider,{value:o},t)}var ws=Cr(),Es=function(e){var t=xs(e);return function(e,n){return t(e,Fn({defaultTheme:ws},n))}};function ks(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=er(t,["defaultTheme","withTheme","name"]),l=a,c=qa(e,Fn({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=v.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=er(e,["classes","innerRef"]),u=c(Fn({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Ca()||r,a&&(d=Or({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),v.createElement(n,Fn({ref:s||t,classes:u},d))}));return bs(u,n),u}}(e,Fn({defaultTheme:ws},t))}function Cs(e){if("string"!=typeof e)throw new Error(Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Ts(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ts(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ps(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ts(e))&&(r&&(r+=" "),r+=t);return r}function Os(e){return e&&e.ownerDocument||document}function Is(e){return Os(e).defaultView||window}function Ds(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ls="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ms(e){var t=y.useRef(e);return Ls((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function qs(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){Ds(e,n),Ds(t,n)}}),[e,t])}var As=!0,Ns=!1,zs=null,js={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 $s(e){e.metaKey||e.altKey||e.ctrlKey||(As=!0)}function _s(){As=!1}function Fs(){"hidden"===this.visibilityState&&Ns&&(As=!0)}function Hs(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return As||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!js[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Bs(){Ns=!0,window.clearTimeout(zs),zs=window.setTimeout((function(){Ns=!1}),100)}function Ws(){var e=y.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",$s,!0),t.addEventListener("mousedown",_s,!0),t.addEventListener("pointerdown",_s,!0),t.addEventListener("touchstart",_s,!0),t.addEventListener("visibilitychange",Fs,!0))}),[]);return{isFocusVisible:Hs,onBlurVisible:Bs,ref:e}}var Vs=!1,Us=v.createContext(null),Gs="unmounted",Ks="exited",Ys="entering",Xs="entered",Js="exiting",Zs=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=Ks,r.appearStatus=Ys):o=Xs:o=t.unmountOnExit||t.mountOnEnter?Gs:Ks,r.state={status:o},r.nextCallback=null,r}qr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gs?{status:Ks}: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!==Ys&&n!==Xs&&(t=Ys):n!==Ys&&n!==Xs||(t=Js)}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===Ys){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:P.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ks&&this.setState({status:Gs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[P.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Vs?this.safeSetState({status:Xs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ys},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xs},(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:P.findDOMNode(this);t&&!Vs?(this.props.onExit(r),this.safeSetState({status:Js},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ks},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ks},(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:P.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===Gs)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=Qn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Us.Provider,{value:null},"function"==typeof n?n(e,r):v.cloneElement(v.Children.only(n),r))},t}(v.Component);function Qs(){}function el(e,t){var n=Object.create(null);return e&&S.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function tl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function nl(e,t,n){var r=el(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:tl(a,"exit",e),enter:tl(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:tl(a,"exit",e),enter:tl(a,"enter",e)})}})),o}Zs.contextType=Us,Zs.propTypes={},Zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qs,onEntering:Qs,onEntered:Qs,onExit:Qs,onExiting:Qs,onExited:Qs},Zs.UNMOUNTED=Gs,Zs.EXITED=Ks,Zs.ENTERING=Ys,Zs.ENTERED=Xs,Zs.EXITING=Js;var rl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ol=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ar(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}qr(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,el(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:tl(e,"appear",n),enter:tl(e,"enter",n),exit:tl(e,"exit",n)})}))):nl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=el(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Fn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Qn(e,["component","childFactory"]),o=this.state.contextValue,i=rl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?v.createElement(Us.Provider,{value:o},i):v.createElement(Us.Provider,{value:o},v.createElement(t,r,i))},t}(v.Component);ol.propTypes={},ol.defaultProps={component:"div",childFactory:function(e){return e}};function il(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var al=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=er(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Fn({className:Ps(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),sl=ks((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Fn({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(al),ll="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function cl(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=y.useState(!1),p=d[0],f=d[1],h=Ps(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Ps(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Ms(c);return ll((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var ul=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=er(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(vr(e),[y.createElement(cl,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,v,y=c?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(v+=1);else{var E=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;v=Math.sqrt(Math.pow(E,2)+Math.pow(k,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:v,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:v,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Fn({className:Ps(o.root,i),ref:m},a),y.createElement(ol,{component:null,exit:!0},l))})),dl=ks((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(y.memo(ul)),pl=y.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,S=e.onBlur,w=e.onClick,E=e.onFocus,k=e.onFocusVisible,C=e.onKeyDown,R=e.onKeyUp,P=e.onMouseDown,O=e.onMouseLeave,I=e.onMouseUp,D=e.onTouchEnd,L=e.onTouchMove,M=e.onTouchStart,q=e.onDragLeave,A=e.tabIndex,N=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=er(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),W=B[0],V=B[1];p&&W&&V(!1);var U=Ws(),G=U.isFocusVisible,K=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Ms((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),y.useEffect((function(){W&&b&&!h&&H.current.pulsate()}),[h,b,W]);var J=X("start",P),Z=X("stop",q),Q=X("stop",I),ee=X("stop",(function(e){W&&e.preventDefault(),O&&O(e)})),te=X("start",M),ne=X("stop",D),re=X("stop",L),oe=X("stop",(function(e){W&&(K(e),V(!1)),S&&S(e)}),!1),ie=Ms((function(e){F.current||(F.current=e.currentTarget),G(e)&&(V(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=T.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=Ms((function(e){b&&!se.current&&W&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),w&&w(e))})),ce=Ms((function(e){b&&" "===e.key&&H.current&&W&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),w&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=qs(r,t),fe=qs(Y,F),he=qs(pe,fe),me=y.useState(!1),ge=me[0],ve=me[1];y.useEffect((function(){ve(!0)}),[]);var ye=ge&&!h&&!p;return y.createElement(ue,Fn({className:Ps(s.root,l,W&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:w,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:N},de,_),a,ye?y.createElement(dl,Fn({ref:H,center:i},z)):null)})),fl=ks({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(pl),hl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ml=y.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,S=void 0===x?hl:x,w=er(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":S[b]||hl[b])||"span";return y.createElement(E,Fn({className:Ps(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Cs(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Cs(r))],"initial"!==u&&o["display".concat(Cs(u))]),ref:t},w))})),gl=ks((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ml),vl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,S=void 0===x?"medium":x,w=e.startIcon,E=e.type,k=void 0===E?"button":E,C=e.variant,R=void 0===C?"text":C,T=er(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=w&&y.createElement("span",{className:Ps(r.startIcon,r["iconSize".concat(Cs(S))])},w),O=m&&y.createElement("span",{className:Ps(r.endIcon,r["iconSize".concat(Cs(S))])},m);return y.createElement(fl,Fn({className:Ps(r.root,r[R],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(R).concat(Cs(a))],"medium"!==S&&[r["".concat(R,"Size").concat(Cs(S))],r["size".concat(Cs(S))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:Ps(r.focusVisible,g),ref:t,type:k},T),y.createElement("span",{className:r.label},P,n,O))})),yl=ks((function(e){return{root:Fn({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Zn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Zn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Zn(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Zn(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Zn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Zn(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Zn(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(vl);var bl="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,xl=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=qs(y.isValidElement(n)?n.ref:null,t);return bl((function(){i||c(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),bl((function(){if(l&&!i)return Ds(t,l),function(){Ds(t,null)}}),[t,l,i]),bl((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?T.createPortal(n,l):l}));function Sl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wl(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function El(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(vr(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Sl(e,r)}))}function kl(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Cl(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Os(e);return t.body===e?Is(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(wl(i)+a,"px"),n=Os(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(wl(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Rl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Lr(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Sl(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);El(t,e.mountNode,e.modalRef,r,!0);var o=kl(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=kl(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Cl(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=kl(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Sl(e.modalRef,!0),El(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Sl(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Tl(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=T.findDOMNode(e)}),[]),v=qs(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=Os(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Pl={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ol=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=er(e,["invisible","open"]);return o?y.createElement("div",Fn({"aria-hidden":!0,ref:t},i,{style:Fn({},Pl.root,r?Pl.invisible:{},i.style)})):null}));var Il=new Rl,Dl=y.forwardRef((function(e,t){var n=Ca(),r=Or({name:"MuiModal",props:Fn({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Ol:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,S=void 0!==x&&x,w=r.disableRestoreFocus,E=void 0!==w&&w,k=r.disableScrollLock,C=void 0!==k&&k,R=r.hideBackdrop,P=void 0!==R&&R,O=r.keepMounted,I=void 0!==O&&O,D=r.manager,L=void 0===D?Il:D,M=r.onBackdropClick,q=r.onClose,A=r.onEscapeKeyDown,N=r.onRendered,z=r.open,j=er(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),W=y.useRef(null),V=qs(W,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return Os(B.current)},K=function(){return H.current.modalRef=W.current,H.current.mountNode=B.current,H.current},Y=function(){L.mount(K(),{disableScrollLock:C}),W.current.scrollTop=0},X=Ms((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(u)||G().body;L.add(K(),e),W.current&&Y()})),J=y.useCallback((function(){return L.isTopModal(K())}),[L]),Z=Ms((function(e){B.current=e,e&&(N&&N(),z&&J()?Y():Sl(W.current,!0))})),Q=y.useCallback((function(){L.remove(K())}),[L]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!I&&!z&&(!U||_))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:kr}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Rs((function(){F(!1)}),s.props.onEnter),te.onExited=Rs((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(xl,{ref:Z,container:u,disablePortal:S},y.createElement("div",Fn({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(A&&A(e),b||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},j,{style:Fn({},ee.root,!z&&_?ee.hidden:{},j.style)}),P?null:y.createElement(i,Fn({open:z,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),!h&&q&&q(e,"backdropClick"))}},a)),y.createElement(Tl,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:E,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Ll=y.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=er(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Fn({className:Ps(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ml=ks((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Zn(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Ll);function ql(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Al={entering:{opacity:1,transform:ql(1)},entered:{opacity:1,transform:"none"}},Nl=y.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Zs:m,v=er(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),S=Ca()||ws,w=S.unstable_strictMode&&!o,E=y.useRef(null),k=qs(n.ref,t),C=qs(w?E:void 0,k),R=function(e){return function(t,n){if(e){var r=yr(w?[E.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=R(l),P=R((function(e,t){!function(e){e.scrollTop}(e);var n,r=il({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),O=R(s),I=R(d),D=R((function(e){var t,n=il({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=ql(.75),c&&c(e)})),L=R(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Fn({appear:!0,in:i,nodeRef:w?E:void 0,onEnter:P,onEntered:O,onEntering:T,onExit:D,onExited:L,onExiting:I,addEndListener:function(e,t){var n=w?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Fn({style:Fn({opacity:0,transform:ql(.75),visibility:"exited"!==e||i?void 0:"hidden"},Al[e],p,n.props.style),ref:C},t))}))}));Nl.muiSupportAuto=!0;var zl=y.createContext({}),jl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=er(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(zl.Provider,{value:f},y.createElement(a,Fn({className:Ps(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),$l=ks({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(jl),_l="undefined"==typeof window?y.useEffect:y.useLayoutEffect,Fl=y.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=er(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,E=void 0!==w&&w,k=e.divider,C=void 0!==k&&k,R=e.focusVisibleClassName,P=e.selected,O=void 0!==P&&P,I=er(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=y.useContext(zl),L={dense:b||D.dense||!1,alignItems:r},M=y.useRef(null);_l((function(){i&&M.current&&M.current.focus()}),[i]);var q,A,N=y.Children.toArray(l),z=N.length&&(q=N[N.length-1],A=["ListItemSecondaryAction"],y.isValidElement(q)&&-1!==A.indexOf(q.type.muiName)),j=qs(y.useCallback((function(e){M.current=T.findDOMNode(e)}),[]),t),$=Fn({className:Ps(c.root,u,L.dense&&c.dense,!E&&c.gutters,C&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,O&&c.selected),disabled:S},I),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=Ps(c.focusVisible,R),_=fl),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(zl.Provider,{value:L},y.createElement(f,Fn({className:Ps(c.container,m),ref:j},g),y.createElement(_,$,N),N.pop()))):y.createElement(zl.Provider,{value:L},y.createElement(_,Fn({ref:j},$),N))})),Hl=ks((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Fl),Bl=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=er(e,["classes","className"]),i=y.useContext(zl);return y.createElement("div",Fn({className:Ps(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Wl=ks((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Bl),Vl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=er(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(zl).dense,m=null!=c?c:n;null==m||m.type===gl||a||(m=y.createElement(gl,Fn({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===gl||a||(g=y.createElement(gl,Fn({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Fn({className:Ps(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),Ul=ks({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Vl);function Gl(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kl(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yl(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Xl(e){return"function"==typeof e?e():e}var Jl=y.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onExit,E=e.onExited,k=e.onExiting,C=e.open,R=e.PaperProps,P=void 0===R?{}:R,O=e.transformOrigin,I=void 0===O?{vertical:"top",horizontal:"left"}:O,D=e.TransitionComponent,L=void 0===D?Nl:D,M=e.transitionDuration,q=void 0===M?"auto":M,A=e.TransitionProps,N=void 0===A?{}:A,z=er(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Xl(r),n=(t&&1===t.nodeType?t:Os(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Gl(n,o),left:n.left+Kl(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Gl(e,I.vertical)+t,horizontal:Kl(e,I.horizontal)}}),[I.horizontal,I.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Yl(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Is(Xl(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Yl(o)}}),[r,l,$,_,F,v]),B=y.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),W=y.useCallback((function(e){j.current=T.findDOMNode(e)}),[]);y.useEffect((function(){C&&B()})),y.useImperativeHandle(n,(function(){return C?{updatePosition:function(){B()}}:null}),[C,B]),y.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,B]);var V=q;"auto"!==q||L.muiSupportAuto||(V=void 0);var U=p||(r?Os(Xl(r)).body:void 0);return y.createElement(Dl,Fn({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:Ps(u.root,d)},z),y.createElement(L,Fn({appear:!0,in:C,onEnter:b,onEntered:x,onExit:w,onExited:E,onExiting:k,timeout:V},N,{onEntering:Rs((function(e,t){S&&S(e,t),B()}),N.onEntering)}),y.createElement(sl,Fn({elevation:h,ref:W},P,{className:Ps(u.paper,P.className)}),c)))})),Zl=ks({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Jl);function Ql(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ec({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Ql(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return v.createElement("i",{style:o},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},v.createElement("path",{d:e})))}const tc="alternative-menu-item",nc=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>qa((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return v.createElement(Hl,gn({className:`${o.root} ${n}`},r))},rc=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${tc}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function oc({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Ee.detectTextDirection(e);return v.createElement(nc,{nested:r,role:"menuitem",button:!0,onClick:n,className:tc,onKeyDown:rc,dir:a,autoFocus:t},v.createElement(Ul,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),v.createElement(Wl,{style:{minWidth:16}},v.createElement(ec,{d:t?Zt:""})),o&&v.createElement(Wl,{style:{minWidth:16}},v.createElement(ec,{d:o.d})))}oc.propTypes={title:xn.string.isRequired,selected:xn.bool,onClick:xn.func.isRequired,nested:xn.bool,icon:xn.shape({d:xn.string.isRequired}),bold:xn.bool,dir:xn.string.isRequired},oc.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},nc.propTypes={nested:xn.bool,className:xn.string},nc.defaultProps={nested:!1,className:tc};const ic={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function ac({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return v.createElement(v.Fragment,{key:t.id},v.createElement(oc,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&v.createElement($l,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>v.createElement(oc,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&v.createElement(Ml,{key:`divider-${t.id}`}))}));return v.createElement(Zl,gn({anchorEl:t,open:s,onClose:a},ic[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),v.createElement($l,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}ac.propTypes={chartId:xn.string.isRequired,alignTo:xn.any,currentId:xn.string.isRequired,dir:xn.string.isRequired,dock:xn.string.isRequired,list:xn.array,onClose:xn.func.isRequired,show:xn.bool.isRequired,instruction:xn.string.isRequired},ac.defaultProps={list:[],alignTo:null};const sc="title-button",lc="active-title-button",cc=Es((({children:e,...t})=>v.createElement(yl,gn({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),uc=Es(yl)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class dc extends v.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=v.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:o}=this.props;n&&(r||o)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${sc}`);t&&(t.focus(),t.classList.add(lc))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${sc}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${lc}`);e&&(e.classList.remove(lc),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,h=t.breadcrumbs.map(((e,n)=>v.createElement(cc,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},v.createElement("span",{style:d},e),v.createElement(ec,gn({},en,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=Ee.detectTextDirection(t.text),w=v.createElement(cc,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${sc} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&v.createElement(ec,gn({},Jt,{size:"small",title:r.get("Tooltip.selections.locked")})),v.createElement("span",{style:d,dir:S},t.text),n&&m&&v.createElement(ec,gn({},Qt,{size:"small",style:{margin:"0 8px"}})));return v.createElement(v.Fragment,null,t.icon&&t.icon.onClick&&v.createElement(uc,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},v.createElement(ec,gn({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&v.createElement(ec,gn({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,v.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&v.createElement(ac,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function pc(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function fc(e){function t(e){return!e.isDimension&&ye.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],w=r||o[a?"qDimensionInfo":"qMeasureInfo"],E=a?pn:hn,k=a?fn:mn,C=Boolean(l&&l.colorSupport&&l.modifiers),R=C&&((T=this.settings.settings).isDimension&&ye.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const P=w.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,y=k(t,i,l,e),b=r===w.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,T=C||x?E({column:i,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:pc(g),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:C}):void 0;return v.createElement(v.Fragment,{key:t.cId},v.createElement(dc,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:T,titleData:y,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:R,supportConditional:m}),!b&&v.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return v.createElement("div",{style:b,dir:y},P)}}}dc.propTypes={chartId:xn.string.isRequired,disabled:xn.bool.isRequired,padding:xn.string,minWidth:xn.string,titleData:xn.shape({breadcrumbs:xn.arrayOf(xn.string).isRequired,icon:xn.shape({path:xn.shape({d:xn.string.isRequired}),tooltip:xn.string.isRequired,onClick:xn.func}),index:xn.number.isRequired,locked:xn.bool.isRequired,text:xn.string.isRequired,popoverText:xn.string.isRequired,drillUp:xn.func,id:xn.string.isRequired}).isRequired,popover:xn.shape({dir:xn.string.isRequired,dock:xn.string.isRequired,getPopoverOptions:xn.func.isRequired}),translator:xn.shape({get:xn.func.isRequired}).isRequired,selections:xn.shape({isActive:xn.func,addListener:xn.func,removeListener:xn.func}),style:xn.shape({fontSize:xn.string,color:xn.string,fontFamily:xn.string}).isRequired,isDimension:xn.bool.isRequired,hasAlternative:xn.bool.isRequired,supportConditional:xn.bool.isRequired,showGroupDimOptions:xn.bool.isRequired},dc.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const hc=Cr({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const mc=Pr({productionPrefix:"q29d5",disableGlobal:!0,seed:""});function gc(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",P.render(function(e,t){return v.createElement(Ia,{generateClassName:t},v.createElement(Ss,{theme:hc},e))}(e,mc),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&P.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(P.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}const vc={black:"#000",white:"#fff"},yc="#e57373",bc="#ef5350",xc="#f44336",Sc="#d32f2f",wc="#c62828",Ec="#f3e5f5",kc="#ce93d8",Cc="#ba68c8",Rc="#ab47bc",Tc="#9c27b0",Pc="#7b1fa2",Oc="#e3f2fd",Ic="#90caf9",Dc="#42a5f5",Lc="#1976d2",Mc="#1565c0",qc="#4fc3f7",Ac="#29b6f6",Nc="#03a9f4",zc="#0288d1",jc="#01579b",$c="#81c784",_c="#66bb6a",Fc="#4caf50",Hc="#388e3c",Bc="#2e7d32",Wc="#1b5e20",Vc="#ffb74d",Uc="#ffa726",Gc="#ff9800",Kc="#f57c00",Yc="#e65100",Xc={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"};function Jc(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 Zc=Object.freeze({__proto__:null,default:Jc}),Qc="$$material";var eu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),tu="-ms-",nu="-moz-",ru="-webkit-",ou="comm",iu="rule",au="decl",su="@keyframes",lu=Math.abs,cu=String.fromCharCode,uu=Object.assign;function du(e){return e.trim()}function pu(e,t,n){return e.replace(t,n)}function fu(e,t){return e.indexOf(t)}function hu(e,t){return 0|e.charCodeAt(t)}function mu(e,t,n){return e.slice(t,n)}function gu(e){return e.length}function vu(e){return e.length}function yu(e,t){return t.push(e),e}var bu=1,xu=1,Su=0,wu=0,Eu=0,ku="";function Cu(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bu,column:xu,length:a,return:""}}function Ru(e,t){return uu(Cu("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tu(){return Eu=wu>0?hu(ku,--wu):0,xu--,10===Eu&&(xu=1,bu--),Eu}function Pu(){return Eu=wu<Su?hu(ku,wu++):0,xu++,10===Eu&&(xu=1,bu++),Eu}function Ou(){return hu(ku,wu)}function Iu(){return wu}function Du(e,t){return mu(ku,e,t)}function Lu(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 Mu(e){return bu=xu=1,Su=gu(ku=e),wu=0,[]}function qu(e){return ku="",e}function Au(e){return du(Du(wu-1,ju(91===e?e+2:40===e?e+1:e)))}function Nu(e){for(;(Eu=Ou())&&Eu<33;)Pu();return Lu(e)>2||Lu(Eu)>3?"":" "}function zu(e,t){for(;--t&&Pu()&&!(Eu<48||Eu>102||Eu>57&&Eu<65||Eu>70&&Eu<97););return Du(e,Iu()+(t<6&&32==Ou()&&32==Pu()))}function ju(e){for(;Pu();)switch(Eu){case e:return wu;case 34:case 39:34!==e&&39!==e&&ju(Eu);break;case 40:41===e&&ju(e);break;case 92:Pu()}return wu}function $u(e,t){for(;Pu()&&e+Eu!==57&&(e+Eu!==84||47!==Ou()););return"/*"+Du(t,wu-1)+"*"+cu(47===e?e:Pu())}function _u(e){for(;!Lu(Ou());)Pu();return Du(e,wu)}function Fu(e){return qu(Hu("",null,null,null,[""],e=Mu(e),0,[0],e))}function Hu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,S=i,w=r,E=b;g;)switch(h=y,y=Pu()){case 40:if(108!=h&&58==hu(E,d-1)){-1!=fu(E+=pu(Au(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=Au(y);break;case 9:case 10:case 13:case 32:E+=Nu(h);break;case 92:E+=zu(Iu()-1,7);continue;case 47:switch(Ou()){case 42:case 47:yu(Wu($u(Pu(),Iu()),t,n),l);break;default:E+="/"}break;case 123*m:s[c++]=gu(E)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(E=pu(E,/\f/g,"")),f>0&&gu(E)-d&&yu(f>32?Vu(E+";",r,n,d-1):Vu(pu(E," ","")+";",r,n,d-2),l);break;case 59:E+=";";default:if(yu(w=Bu(E,t,n,c,u,o,s,b,x=[],S=[],d),i),123===y)if(0===u)Hu(E,t,w,w,x,i,d,s,S);else switch(99===p&&110===hu(E,3)?100:p){case 100:case 108:case 109:case 115:Hu(e,w,w,r&&yu(Bu(e,w,w,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:Hu(E,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=v=1,b=E="",d=a;break;case 58:d=1+gu(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Tu())continue;switch(E+=cu(y),y*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(gu(E)-1)*v,v=1;break;case 64:45===Ou()&&(E+=Au(Pu())),p=Ou(),u=d=gu(b=E+=_u(Iu())),y++;break;case 45:45===h&&2==gu(E)&&(m=0)}}return i}function Bu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=vu(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=mu(e,d+1,d=lu(m=a[h])),b=e;v<f;++v)(b=du(m>0?p[v]+" "+y:pu(y,/&\f/g,p[v])))&&(l[g++]=b);return Cu(e,t,n,0===o?iu:s,l,c,u)}function Wu(e,t,n){return Cu(e,t,n,ou,cu(Eu),mu(e,2,-2),0)}function Vu(e,t,n,r){return Cu(e,t,n,au,mu(e,0,r),mu(e,r+1,-1),r)}function Uu(e,t){for(var n="",r=vu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Gu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case au:return e.return=e.return||e.value;case ou:return"";case su:return e.return=e.value+"{"+Uu(e.children,r)+"}";case iu:e.value=e.props.join(",")}return gu(n=Uu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ku(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Yu=function(e,t,n){for(var r=0,o=0;r=o,o=Ou(),38===r&&12===o&&(t[n]=1),!Lu(o);)Pu();return Du(e,wu)},Xu=function(e,t){return qu(function(e,t){var n=-1,r=44;do{switch(Lu(r)){case 0:38===r&&12===Ou()&&(t[n]=1),e[n]+=Yu(wu-1,t,n);break;case 2:e[n]+=Au(r);break;case 4:if(44===r){e[++n]=58===Ou()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cu(r)}}while(r=Pu());return e}(Mu(e),t))},Ju=new WeakMap,Zu=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)||Ju.get(n))&&!r){Ju.set(e,!0);for(var o=[],i=Xu(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]}}},Qu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ed(e,t){switch(function(e,t){return 45^hu(e,0)?(((t<<2^hu(e,0))<<2^hu(e,1))<<2^hu(e,2))<<2^hu(e,3):0}(e,t)){case 5103:return ru+"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 ru+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ru+e+nu+e+tu+e+e;case 6828:case 4268:return ru+e+tu+e+e;case 6165:return ru+e+tu+"flex-"+e+e;case 5187:return ru+e+pu(e,/(\w+).+(:[^]+)/,ru+"box-$1$2"+tu+"flex-$1$2")+e;case 5443:return ru+e+tu+"flex-item-"+pu(e,/flex-|-self/,"")+e;case 4675:return ru+e+tu+"flex-line-pack"+pu(e,/align-content|flex-|-self/,"")+e;case 5548:return ru+e+tu+pu(e,"shrink","negative")+e;case 5292:return ru+e+tu+pu(e,"basis","preferred-size")+e;case 6060:return ru+"box-"+pu(e,"-grow","")+ru+e+tu+pu(e,"grow","positive")+e;case 4554:return ru+pu(e,/([^-])(transform)/g,"$1"+ru+"$2")+e;case 6187:return pu(pu(pu(e,/(zoom-|grab)/,ru+"$1"),/(image-set)/,ru+"$1"),e,"")+e;case 5495:case 3959:return pu(e,/(image-set\([^]*)/,ru+"$1$`$1");case 4968:return pu(pu(e,/(.+:)(flex-)?(.*)/,ru+"box-pack:$3"+tu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ru+e+e;case 4095:case 3583:case 4068:case 2532:return pu(e,/(.+)-inline(.+)/,ru+"$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(gu(e)-1-t>6)switch(hu(e,t+1)){case 109:if(45!==hu(e,t+4))break;case 102:return pu(e,/(.+:)(.+)-([^]+)/,"$1"+ru+"$2-$3$1"+nu+(108==hu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fu(e,"stretch")?ed(pu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==hu(e,t+1))break;case 6444:switch(hu(e,gu(e)-3-(~fu(e,"!important")&&10))){case 107:return pu(e,":",":"+ru)+e;case 101:return pu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ru+(45===hu(e,14)?"inline-":"")+"box$3$1"+ru+"$2$3$1"+tu+"$2box$3")+e}break;case 5936:switch(hu(e,t+11)){case 114:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ru+e+tu+e+e}return e}var td=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case au:e.return=ed(e.value,e.length);break;case su:return Uu([Ru(e,{value:pu(e.value,"@","@"+ru)})],r);case iu: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 Uu([Ru(e,{props:[pu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Uu([Ru(e,{props:[pu(t,/:(plac\w+)/,":"+ru+"input-$1")]}),Ru(e,{props:[pu(t,/:(plac\w+)/,":-moz-$1")]}),Ru(e,{props:[pu(t,/:(plac\w+)/,tu+"input-$1")]})],r)}return""}))}}],nd=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||td,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[Gu,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=vu(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Zu,Qu].concat(i,u));o=function(e,t,n,r){l=n,function(e){Uu(Fu(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new eu({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function rd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var od=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},id=function(e,t,n){od(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 ad={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},sd=/[A-Z]|^ms/g,ld=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cd=function(e){return 45===e.charCodeAt(1)},ud=function(e){return null!=e&&"boolean"!=typeof e},dd=Ku((function(e){return cd(e)?e:e.replace(sd,"-$&").toLowerCase()})),pd=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ld,(function(e,t,n){return hd={name:t,styles:n,next:hd},t}))}return 1===ad[e]||cd(e)||"number"!=typeof t||0===t?t:t+"px"};function fd(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return hd={name:o.name,styles:o.styles,next:hd},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)hd={name:a.name,styles:a.styles,next:hd},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+=fd(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]+"}":ud(s)&&(r+=dd(i)+":"+pd(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=fd(e,t,a);switch(i){case"animation":case"animationName":r+=dd(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ud(a[c])&&(r+=dd(i)+":"+pd(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=hd,l=n(e);return hd=s,fd(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var hd,md=/label:\s*([^\s;{]+)\s*(;|$)/g;function gd(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="";hd=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=fd(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=fd(n,t,e[a]),r)o+=i[a]}md.lastIndex=0;for(var s,l="";null!==(s=md.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:hd}}var vd,yd,bd=!!y.useInsertionEffect&&y.useInsertionEffect,xd=bd||function(e){return e()},Sd=bd||y.useLayoutEffect,wd=y.createContext("undefined"!=typeof HTMLElement?nd({key:"css"}):null),Ed=wd.Provider,kd=function(e){return w((function(t,n){var r=E(wd);return e(t,r,n)}))},Cd=y.createContext({}),Rd={}.hasOwnProperty,Td="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return od(t,n,r),xd((function(){return id(t,n,r)})),null},Od=kd((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Td],i=[r],a="";"string"==typeof e.className?a=rd(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=gd(i,void 0,y.useContext(Cd));a+=t.key+"-"+s.name;var l={};for(var c in e)Rd.call(e,c)&&"css"!==c&&c!==Td&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(Pd,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))})),Id=Od,Dd=function(e,t){var n=arguments;if(null==t||!Rd.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Id,o[1]=function(e,t){var n={};for(var r in t)Rd.call(t,r)&&(n[r]=t[r]);return n[Td]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};vd=Dd||(Dd={}),yd||(yd=vd.JSX||(vd.JSX={}));var Ld=kd((function(e,t){var n=gd([e.styles],void 0,y.useContext(Cd)),r=y.useRef();return Sd((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]),Sd((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&id(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 Md(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gd(t)}function qd(){var e=Md.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_"}}}var Ad=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nd=Ku((function(e){return Ad.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),zd=function(e){return"theme"!==e},jd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Nd:zd},$d=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},_d=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return od(t,n,r),xd((function(){return id(t,n,r)})),null},Fd=function e(t,n){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=$d(t,n,i),l=s||jd(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=kd((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=y.useContext(Cd)}"string"==typeof e.className?i=rd(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=gd(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?jd(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),y.createElement(y.Fragment,null,y.createElement(_d,{cache:t,serialized:h,isStringTag:"string"==typeof r}),y.createElement(r,g))}));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=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Fn({},n,r,{shouldForwardProp:$d(m,r,!0)})).apply(void 0,d)},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){Fd[e]=Fd(e)}));var Hd={exports:{}},Bd={},Wd=v,Vd=Symbol.for("react.element"),Ud=Symbol.for("react.fragment"),Gd=Object.prototype.hasOwnProperty,Kd=Wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yd={key:!0,ref:!0,__self:!0,__source:!0};function Xd(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Gd.call(t,r)&&!Yd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Vd,type:e,key:i,ref:a,props:o,_owner:Kd.current}}Bd.Fragment=Ud,Bd.jsx=Xd,Bd.jsxs=Xd,Hd.exports=Bd;var Jd=Hd.exports;let Zd;"object"==typeof document&&(Zd=nd({key:"css",prepend:!0}));var Qd=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Jd.jsx(Ld,{styles:r})}
|
|
14
|
+
*/Vo();var Ko=Date.now(),Yo="fnValues"+Ko,Xo="fnStyle"+ ++Ko,Jo="@global",Zo="@global ",Qo=function(){function e(e,t,n){for(var r in this.type="global",this.at=Jo,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ko(Fn({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),ei=function(){function e(e,t,n){this.type="global",this.at=Jo,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Fn({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ti=/\s*,\s*/g;function ni(e,t){for(var n=e.split(ti),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function ri(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Jo)return new Qo(e,t,n);if("@"===e[0]&&e.substr(0,8)===Zo)return new ei(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Jo]:null;if(o){for(var i in o)t.addRule(i,o[i],Fn({},n,{selector:ni(i,e.selector)}));delete r[Jo]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Jo){var i=ni(o.substr(7),e.selector);t.addRule(i,r[o],Fn({},n,{selector:i})),delete r[o]}}(e,t))}}}var oi=/\s*,\s*/g,ii=/&/g,ai=/\$([\w-]+)/g;function si(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(oi),r=e.split(oi),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(ii,a):a+" "+l}return o}function n(e,t,n){if(n)return Fn({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Fn({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(ai,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Fn({},a,{selector:f})):c.addRule(h,r[u],Fn({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var li=/[A-Z]/g,ci=/^ms-/,ui={};function di(e){return"-"+e.toLowerCase()}function pi(e){if(ui.hasOwnProperty(e))return ui[e];var t=e.replace(li,di);return ui[e]=ci.test(t)?"-"+t:t}function fi(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:pi(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(fi):t.fallbacks=fi(e.fallbacks)),t}var hi=Uo&&CSS?CSS.px:"px",mi=Uo&&CSS?CSS.ms:"ms",gi=Uo&&CSS?CSS.percent:"%";function vi(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var yi=vi({"animation-delay":mi,"animation-duration":mi,"background-position":hi,"background-position-x":hi,"background-position-y":hi,"background-size":hi,border:hi,"border-bottom":hi,"border-bottom-left-radius":hi,"border-bottom-right-radius":hi,"border-bottom-width":hi,"border-left":hi,"border-left-width":hi,"border-radius":hi,"border-right":hi,"border-right-width":hi,"border-top":hi,"border-top-left-radius":hi,"border-top-right-radius":hi,"border-top-width":hi,"border-width":hi,"border-block":hi,"border-block-end":hi,"border-block-end-width":hi,"border-block-start":hi,"border-block-start-width":hi,"border-block-width":hi,"border-inline":hi,"border-inline-end":hi,"border-inline-end-width":hi,"border-inline-start":hi,"border-inline-start-width":hi,"border-inline-width":hi,"border-start-start-radius":hi,"border-start-end-radius":hi,"border-end-start-radius":hi,"border-end-end-radius":hi,margin:hi,"margin-bottom":hi,"margin-left":hi,"margin-right":hi,"margin-top":hi,"margin-block":hi,"margin-block-end":hi,"margin-block-start":hi,"margin-inline":hi,"margin-inline-end":hi,"margin-inline-start":hi,padding:hi,"padding-bottom":hi,"padding-left":hi,"padding-right":hi,"padding-top":hi,"padding-block":hi,"padding-block-end":hi,"padding-block-start":hi,"padding-inline":hi,"padding-inline-end":hi,"padding-inline-start":hi,"mask-position-x":hi,"mask-position-y":hi,"mask-size":hi,height:hi,width:hi,"min-height":hi,"max-height":hi,"min-width":hi,"max-width":hi,bottom:hi,left:hi,top:hi,right:hi,inset:hi,"inset-block":hi,"inset-block-end":hi,"inset-block-start":hi,"inset-inline":hi,"inset-inline-end":hi,"inset-inline-start":hi,"box-shadow":hi,"text-shadow":hi,"column-gap":hi,"column-rule":hi,"column-rule-width":hi,"column-width":hi,"font-size":hi,"font-size-delta":hi,"letter-spacing":hi,"text-decoration-thickness":hi,"text-indent":hi,"text-stroke":hi,"text-stroke-width":hi,"word-spacing":hi,motion:hi,"motion-offset":hi,outline:hi,"outline-offset":hi,"outline-width":hi,perspective:hi,"perspective-origin-x":gi,"perspective-origin-y":gi,"transform-origin":gi,"transform-origin-x":gi,"transform-origin-y":gi,"transform-origin-z":gi,"transition-delay":mi,"transition-duration":mi,"vertical-align":hi,"flex-basis":hi,"shape-margin":hi,size:hi,gap:hi,grid:hi,"grid-gap":hi,"row-gap":hi,"grid-row-gap":hi,"grid-column-gap":hi,"grid-template-rows":hi,"grid-template-columns":hi,"grid-auto-rows":hi,"grid-auto-columns":hi,"box-shadow-x":hi,"box-shadow-y":hi,"box-shadow-blur":hi,"box-shadow-spread":hi,"font-line-height":hi,"text-shadow-x":hi,"text-shadow-y":hi,"text-shadow-blur":hi});function bi(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=bi(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=bi(o,t[o],n);else for(var i in t)t[i]=bi(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||yi[e];return!a||0===t&&a===hi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function xi(e){void 0===e&&(e={});var t=vi(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=bi(r,e[r],t);return e},onChangeValue:function(e,n){return bi(n,e,t)}}}var Si="",wi="",ki="",Ei="",Ci=Dr&&"ontouchstart"in document.documentElement;if(Dr){var Ri={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ti=document.createElement("p").style;for(var Pi in Ri)if(Pi+"Transform"in Ti){Si=Pi,wi=Ri[Pi];break}"Webkit"===Si&&"msHyphens"in Ti&&(Si="ms",wi=Ri.ms,Ei="edge"),"Webkit"===Si&&"-apple-trailing-word"in Ti&&(ki="apple")}var Oi=Si,Ii=wi,Di=ki,Li=Ei,Mi=Ci;var qi={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Oi?"-webkit-"+e:Ii+e)}},Ai={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Oi?Ii+"print-"+e:e)}},Ni=/[-\s]+(.)?/g;function zi(e,t){return t?t.toUpperCase():""}function ji(e){return e.replace(Ni,zi)}function $i(e){return ji("-"+e)}var _i,Fi={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Oi){var n="mask-image";if(ji(n)in t)return e;if(Oi+$i(n)in t)return Ii+e}return e}},Hi={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Di||Mi?e:Ii+e)}},Bi={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ii+e)}},Wi={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ii+e)}},Vi={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Oi||"ms"===Oi&&"edge"!==Li?Ii+e:e)}},Ui={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Oi||"ms"===Oi||"apple"===Di?Ii+e:e)}},Gi={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Oi?"WebkitColumn"+$i(e)in t&&Ii+"column-"+e:"Moz"===Oi&&("page"+$i(e)in t&&"page-"+e))}},Ki={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Oi)return e;var n=e.replace("-inline","");return Oi+$i(n)in t&&Ii+n}},Yi={supportedProperty:function(e,t){return ji(e)in t&&e}},Xi={supportedProperty:function(e,t){var n=$i(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Oi+n in t?Ii+e:"Webkit"!==Oi&&"Webkit"+n in t&&"-webkit-"+e}},Ji={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Oi?""+Ii+e:e)}},Zi={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Oi?Ii+"scroll-chaining":e)}},Qi={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ea={supportedProperty:function(e,t){var n=Qi[e];return!!n&&(Oi+$i(n)in t&&Ii+n)}},ta={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},na=Object.keys(ta),ra=function(e){return Ii+e},oa={supportedProperty:function(e,t,n){var r=n.multiple;if(na.indexOf(e)>-1){var o=ta[e];if(!Array.isArray(o))return Oi+$i(o)in t&&Ii+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Oi+$i(o[0])in t))return!1;return o.map(ra)}return!1}},ia=[qi,Ai,Fi,Hi,Bi,Wi,Vi,Ui,Gi,Ki,Yi,Xi,Ji,Zi,ea,oa],aa=ia.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),sa=ia.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,vr(t.noPrefill)),e}),[]),la={};if(Dr){_i=document.createElement("p");var ca=window.getComputedStyle(document.documentElement,"");for(var ua in ca)isNaN(ua)||(la[ca[ua]]=ca[ua]);sa.forEach((function(e){return delete la[e]}))}function da(e,t){if(void 0===t&&(t={}),!_i)return e;if(null!=la[e])return la[e];"transition"!==e&&"transform"!==e||(t[e]=e in _i.style);for(var n=0;n<aa.length&&(la[e]=aa[n](e,_i.style,t),!la[e]);n++);try{_i.style[e]=""}catch(e){return!1}return la[e]}var pa,fa={},ha={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ma=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ga(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?da(t):", "+da(n);return r||(t||n)}function va(e,t){var n=t;if(!pa||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fa[r])return fa[r];try{pa.style[e]=n}catch(e){return fa[r]=!1,!1}if(ha[e])n=n.replace(ma,ga);else if(""===pa.style[e]&&("-ms-flex"===(n=Ii+n)&&(pa.style[e]="-ms-flexbox"),pa.style[e]=n,""===pa.style[e]))return fa[r]=!1,!1;return pa.style[e]="",fa[r]=n,fa[r]}function ya(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=da(n);i&&i!==n&&(o=!0);var a=!1,s=va(i,_r(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Oi?e:"@"+Ii+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return va(t,_r(e))||e}}}function ba(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=jr(e,{},n);return r[Xo]=t,r},onProcessStyle:function(e,t){if(Yo in t||Xo in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Yo]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Xo];i&&(o.style=i(e)||{});var a=o[Yo];if(a)for(var s in a)o.prop(s,a[s](e),r)}},ri(),si(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=fi(e[t]);return e}return fi(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=pi(t);return t===r?e:(n.prop(r,e),null)}},xi(),"undefined"==typeof window?null:ya(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function xa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Fn({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Dr&&(pa=document.createElement("p"));var Sa=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},wa=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},ka=function(e,t,n){e.get(t).delete(n)},Ea=v.createContext(null);function Ca(){return v.useContext(Ea)}var Ra,Ta=Vo(ba()),Pa={disableGeneration:!1,generateClassName:Pr(),jss:Ta,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Oa=v.createContext(Pa);function Ia(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=er(e,["children","injectFirst","disableGeneration"]),s=Fn({},v.useContext(Oa),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Ra){var l=document.head;Ra=document.createComment("mui-inject-first"),l.insertBefore(Ra,l.firstChild)}s.jss=Vo({plugins:ba().plugins,insertionPoint:Ra})}return v.createElement(Oa.Provider,{value:s},t)}var Da=-1e9;var La={};function Ma(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=wa(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Sa(o.sheetsManager,i,r,s));var l=Fn({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=wa(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Fn({link:!1},l))).attach(),o.sheetsCache&&Sa(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Go(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Fn({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xa({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?La:i,s=er(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Fn({},o);return Object.keys(i).forEach((function(e){a[e]=Wn(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Da+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ca()||a,r=Fn({},v.useContext(Oa),s),i=v.useRef(),c=v.useRef();!function(e,t){var n,r=v.useRef([]),o=v.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),v.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Ma(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=wa(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(ka(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),v.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=xa({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Aa(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Aa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Na(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}var za={exports:{}},ja={},$a="function"==typeof Symbol&&Symbol.for,_a=$a?Symbol.for("react.element"):60103,Fa=$a?Symbol.for("react.portal"):60106,Ha=$a?Symbol.for("react.fragment"):60107,Ba=$a?Symbol.for("react.strict_mode"):60108,Wa=$a?Symbol.for("react.profiler"):60114,Va=$a?Symbol.for("react.provider"):60109,Ua=$a?Symbol.for("react.context"):60110,Ga=$a?Symbol.for("react.async_mode"):60111,Ka=$a?Symbol.for("react.concurrent_mode"):60111,Ya=$a?Symbol.for("react.forward_ref"):60112,Xa=$a?Symbol.for("react.suspense"):60113,Ja=$a?Symbol.for("react.suspense_list"):60120,Za=$a?Symbol.for("react.memo"):60115,Qa=$a?Symbol.for("react.lazy"):60116,es=$a?Symbol.for("react.block"):60121,ts=$a?Symbol.for("react.fundamental"):60117,ns=$a?Symbol.for("react.responder"):60118,rs=$a?Symbol.for("react.scope"):60119;function os(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _a:switch(e=e.type){case Ga:case Ka:case Ha:case Wa:case Ba:case Xa:return e;default:switch(e=e&&e.$$typeof){case Ua:case Ya:case Qa:case Za:case Va:return e;default:return t}}case Fa:return t}}}function is(e){return os(e)===Ka}ja.AsyncMode=Ga,ja.ConcurrentMode=Ka,ja.ContextConsumer=Ua,ja.ContextProvider=Va,ja.Element=_a,ja.ForwardRef=Ya,ja.Fragment=Ha,ja.Lazy=Qa,ja.Memo=Za,ja.Portal=Fa,ja.Profiler=Wa,ja.StrictMode=Ba,ja.Suspense=Xa,ja.isAsyncMode=function(e){return is(e)||os(e)===Ga},ja.isConcurrentMode=is,ja.isContextConsumer=function(e){return os(e)===Ua},ja.isContextProvider=function(e){return os(e)===Va},ja.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_a},ja.isForwardRef=function(e){return os(e)===Ya},ja.isFragment=function(e){return os(e)===Ha},ja.isLazy=function(e){return os(e)===Qa},ja.isMemo=function(e){return os(e)===Za},ja.isPortal=function(e){return os(e)===Fa},ja.isProfiler=function(e){return os(e)===Wa},ja.isStrictMode=function(e){return os(e)===Ba},ja.isSuspense=function(e){return os(e)===Xa},ja.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ha||e===Ka||e===Wa||e===Ba||e===Xa||e===Ja||"object"==typeof e&&null!==e&&(e.$$typeof===Qa||e.$$typeof===Za||e.$$typeof===Va||e.$$typeof===Ua||e.$$typeof===Ya||e.$$typeof===ts||e.$$typeof===ns||e.$$typeof===rs||e.$$typeof===es)},ja.typeOf=os,za.exports=ja;var as=za.exports,ss={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ls={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},us={};function ds(e){return as.isMemo(e)?cs:us[e.$$typeof]||ss}us[as.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},us[as.Memo]=cs;var ps=Object.defineProperty,fs=Object.getOwnPropertyNames,hs=Object.getOwnPropertySymbols,ms=Object.getOwnPropertyDescriptor,gs=Object.getPrototypeOf,vs=Object.prototype;var ys=function e(t,n,r){if("string"!=typeof n){if(vs){var o=gs(n);o&&o!==vs&&e(t,o,r)}var i=fs(n);hs&&(i=i.concat(hs(n)));for(var a=ds(t),s=ds(n),l=0;l<i.length;++l){var c=i[l];if(!(ls[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=ms(n,c);try{ps(t,c,u)}catch(e){}}}}return t},bs=ee(ys);function xs(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=er(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Fn({theme:e},n))}}}:{root:t},l=qa(s,Fn({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=v.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=er(t,["children","className","clone","component"]),f=Na(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return v.cloneElement(s,Fn({className:Na(s.props.className,f)},h));if("function"==typeof s)return s(Fn({className:f},h));var m=d||e;return v.createElement(m,Fn({ref:r,className:f},h),s)}));return bs(c,e),c}}function Ss(e){var t=e.children,n=e.theme,r=Ca(),o=v.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Fn({},e,t)}(r,n);return null!=e&&(e[Rr]=null!==r),e}),[n,r]);return v.createElement(Ea.Provider,{value:o},t)}var ws=Cr(),ks=function(e){var t=xs(e);return function(e,n){return t(e,Fn({defaultTheme:ws},n))}};function Es(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=er(t,["defaultTheme","withTheme","name"]),l=a,c=qa(e,Fn({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=v.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=er(e,["classes","innerRef"]),u=c(Fn({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Ca()||r,a&&(d=Or({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),v.createElement(n,Fn({ref:s||t,classes:u},d))}));return bs(u,n),u}}(e,Fn({defaultTheme:ws},t))}function Cs(e){if("string"!=typeof e)throw new Error(Gn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Ts(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ts(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ps(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ts(e))&&(r&&(r+=" "),r+=t);return r}function Os(e){return e&&e.ownerDocument||document}function Is(e){return Os(e).defaultView||window}function Ds(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ls="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ms(e){var t=y.useRef(e);return Ls((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function qs(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){Ds(e,n),Ds(t,n)}}),[e,t])}var As=!0,Ns=!1,zs=null,js={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 $s(e){e.metaKey||e.altKey||e.ctrlKey||(As=!0)}function _s(){As=!1}function Fs(){"hidden"===this.visibilityState&&Ns&&(As=!0)}function Hs(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return As||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!js[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Bs(){Ns=!0,window.clearTimeout(zs),zs=window.setTimeout((function(){Ns=!1}),100)}function Ws(){var e=y.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",$s,!0),t.addEventListener("mousedown",_s,!0),t.addEventListener("pointerdown",_s,!0),t.addEventListener("touchstart",_s,!0),t.addEventListener("visibilitychange",Fs,!0))}),[]);return{isFocusVisible:Hs,onBlurVisible:Bs,ref:e}}var Vs=!1,Us=v.createContext(null),Gs="unmounted",Ks="exited",Ys="entering",Xs="entered",Js="exiting",Zs=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=Ks,r.appearStatus=Ys):o=Xs:o=t.unmountOnExit||t.mountOnEnter?Gs:Ks,r.state={status:o},r.nextCallback=null,r}qr(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gs?{status:Ks}: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!==Ys&&n!==Xs&&(t=Ys):n!==Ys&&n!==Xs||(t=Js)}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===Ys){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:P.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ks&&this.setState({status:Gs})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[P.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Vs?this.safeSetState({status:Xs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ys},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Xs},(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:P.findDOMNode(this);t&&!Vs?(this.props.onExit(r),this.safeSetState({status:Js},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ks},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ks},(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:P.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===Gs)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=Qn(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Us.Provider,{value:null},"function"==typeof n?n(e,r):v.cloneElement(v.Children.only(n),r))},t}(v.Component);function Qs(){}function el(e,t){var n=Object.create(null);return e&&S.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function tl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function nl(e,t,n){var r=el(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:tl(a,"exit",e),enter:tl(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:tl(a,"exit",e),enter:tl(a,"enter",e)})}})),o}Zs.contextType=Us,Zs.propTypes={},Zs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qs,onEntering:Qs,onEntered:Qs,onExit:Qs,onExiting:Qs,onExited:Qs},Zs.UNMOUNTED=Gs,Zs.EXITED=Ks,Zs.ENTERING=Ys,Zs.ENTERED=Xs,Zs.EXITING=Js;var rl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ol=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ar(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}qr(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,el(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:tl(e,"appear",n),enter:tl(e,"enter",n),exit:tl(e,"exit",n)})}))):nl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=el(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Fn({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Qn(e,["component","childFactory"]),o=this.state.contextValue,i=rl(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?v.createElement(Us.Provider,{value:o},i):v.createElement(Us.Provider,{value:o},v.createElement(t,r,i))},t}(v.Component);ol.propTypes={},ol.defaultProps={component:"div",childFactory:function(e){return e}};function il(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var al=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=er(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Fn({className:Ps(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),sl=Es((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Fn({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(al),ll="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function cl(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=y.useState(!1),p=d[0],f=d[1],h=Ps(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Ps(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Ms(c);return ll((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var ul=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=er(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(vr(e),[y.createElement(cl,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,v,y=c?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,w=x.clientY;u=Math.round(S-b.left),d=Math.round(w-b.top)}if(s)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(v+=1);else{var k=2*Math.max(Math.abs((y?y.clientWidth:0)-u),u)+2,E=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;v=Math.sqrt(Math.pow(k,2)+Math.pow(E,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:v,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:v,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Fn({className:Ps(o.root,i),ref:m},a),y.createElement(ol,{component:null,exit:!0},l))})),dl=Es((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(y.memo(ul)),pl=y.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,S=e.onBlur,w=e.onClick,k=e.onFocus,E=e.onFocusVisible,C=e.onKeyDown,R=e.onKeyUp,P=e.onMouseDown,O=e.onMouseLeave,I=e.onMouseUp,D=e.onTouchEnd,L=e.onTouchMove,M=e.onTouchStart,q=e.onDragLeave,A=e.tabIndex,N=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=er(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),W=B[0],V=B[1];p&&W&&V(!1);var U=Ws(),G=U.isFocusVisible,K=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Ms((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),y.useEffect((function(){W&&b&&!h&&H.current.pulsate()}),[h,b,W]);var J=X("start",P),Z=X("stop",q),Q=X("stop",I),ee=X("stop",(function(e){W&&e.preventDefault(),O&&O(e)})),te=X("start",M),ne=X("stop",D),re=X("stop",L),oe=X("stop",(function(e){W&&(K(e),V(!1)),S&&S(e)}),!1),ie=Ms((function(e){F.current||(F.current=e.currentTarget),G(e)&&(V(!0),E&&E(e)),k&&k(e)})),ae=function(){var e=T.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=Ms((function(e){b&&!se.current&&W&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),w&&w(e))})),ce=Ms((function(e){b&&" "===e.key&&H.current&&W&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),w&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=qs(r,t),fe=qs(Y,F),he=qs(pe,fe),me=y.useState(!1),ge=me[0],ve=me[1];y.useEffect((function(){ve(!0)}),[]);var ye=ge&&!h&&!p;return y.createElement(ue,Fn({className:Ps(s.root,l,W&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:w,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:N},de,_),a,ye?y.createElement(dl,Fn({ref:H,center:i},z)):null)})),fl=Es({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(pl),hl={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},ml=y.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,S=void 0===x?hl:x,w=er(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":S[b]||hl[b])||"span";return y.createElement(k,Fn({className:Ps(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Cs(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Cs(r))],"initial"!==u&&o["display".concat(Cs(u))]),ref:t},w))})),gl=Es((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(ml),vl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,S=void 0===x?"medium":x,w=e.startIcon,k=e.type,E=void 0===k?"button":k,C=e.variant,R=void 0===C?"text":C,T=er(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=w&&y.createElement("span",{className:Ps(r.startIcon,r["iconSize".concat(Cs(S))])},w),O=m&&y.createElement("span",{className:Ps(r.endIcon,r["iconSize".concat(Cs(S))])},m);return y.createElement(fl,Fn({className:Ps(r.root,r[R],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(R).concat(Cs(a))],"medium"!==S&&[r["".concat(R,"Size").concat(Cs(S))],r["size".concat(Cs(S))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:Ps(r.focusVisible,g),ref:t,type:E},T),y.createElement("span",{className:r.label},P,n,O))})),yl=Es((function(e){return{root:Fn({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Zn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Zn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Zn(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Zn(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Zn(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Zn(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Zn(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(vl);var bl="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,xl=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=qs(y.isValidElement(n)?n.ref:null,t);return bl((function(){i||c(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),bl((function(){if(l&&!i)return Ds(t,l),function(){Ds(t,null)}}),[t,l,i]),bl((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?T.createPortal(n,l):l}));function Sl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wl(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function kl(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(vr(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Sl(e,r)}))}function El(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Cl(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Os(e);return t.body===e?Is(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(wl(i)+a,"px"),n=Os(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(wl(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Rl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Lr(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Sl(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);kl(t,e.mountNode,e.modalRef,r,!0);var o=El(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=El(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Cl(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=El(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Sl(e.modalRef,!0),kl(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Sl(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Tl(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=T.findDOMNode(e)}),[]),v=qs(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=Os(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Pl={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ol=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=er(e,["invisible","open"]);return o?y.createElement("div",Fn({"aria-hidden":!0,ref:t},i,{style:Fn({},Pl.root,r?Pl.invisible:{},i.style)})):null}));var Il=new Rl,Dl=y.forwardRef((function(e,t){var n=Ca(),r=Or({name:"MuiModal",props:Fn({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Ol:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,S=void 0!==x&&x,w=r.disableRestoreFocus,k=void 0!==w&&w,E=r.disableScrollLock,C=void 0!==E&&E,R=r.hideBackdrop,P=void 0!==R&&R,O=r.keepMounted,I=void 0!==O&&O,D=r.manager,L=void 0===D?Il:D,M=r.onBackdropClick,q=r.onClose,A=r.onEscapeKeyDown,N=r.onRendered,z=r.open,j=er(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),W=y.useRef(null),V=qs(W,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return Os(B.current)},K=function(){return H.current.modalRef=W.current,H.current.mountNode=B.current,H.current},Y=function(){L.mount(K(),{disableScrollLock:C}),W.current.scrollTop=0},X=Ms((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(u)||G().body;L.add(K(),e),W.current&&Y()})),J=y.useCallback((function(){return L.isTopModal(K())}),[L]),Z=Ms((function(e){B.current=e,e&&(N&&N(),z&&J()?Y():Sl(W.current,!0))})),Q=y.useCallback((function(){L.remove(K())}),[L]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!I&&!z&&(!U||_))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Er}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Rs((function(){F(!1)}),s.props.onEnter),te.onExited=Rs((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(xl,{ref:Z,container:u,disablePortal:S},y.createElement("div",Fn({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(A&&A(e),b||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},j,{style:Fn({},ee.root,!z&&_?ee.hidden:{},j.style)}),P?null:y.createElement(i,Fn({open:z,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),!h&&q&&q(e,"backdropClick"))}},a)),y.createElement(Tl,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:k,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Ll=y.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=er(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Fn({className:Ps(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ml=Es((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Zn(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Ll);function ql(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Al={entering:{opacity:1,transform:ql(1)},entered:{opacity:1,transform:"none"}},Nl=y.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Zs:m,v=er(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),S=Ca()||ws,w=S.unstable_strictMode&&!o,k=y.useRef(null),E=qs(n.ref,t),C=qs(w?k:void 0,E),R=function(e){return function(t,n){if(e){var r=yr(w?[k.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=R(l),P=R((function(e,t){!function(e){e.scrollTop}(e);var n,r=il({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),O=R(s),I=R(d),D=R((function(e){var t,n=il({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=S.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=ql(.75),c&&c(e)})),L=R(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Fn({appear:!0,in:i,nodeRef:w?k:void 0,onEnter:P,onEntered:O,onEntering:T,onExit:D,onExited:L,onExiting:I,addEndListener:function(e,t){var n=w?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Fn({style:Fn({opacity:0,transform:ql(.75),visibility:"exited"!==e||i?void 0:"hidden"},Al[e],p,n.props.style),ref:C},t))}))}));Nl.muiSupportAuto=!0;var zl=y.createContext({}),jl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=er(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(zl.Provider,{value:f},y.createElement(a,Fn({className:Ps(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),$l=Es({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(jl),_l="undefined"==typeof window?y.useEffect:y.useLayoutEffect,Fl=y.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=er(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,S=void 0!==x&&x,w=e.disableGutters,k=void 0!==w&&w,E=e.divider,C=void 0!==E&&E,R=e.focusVisibleClassName,P=e.selected,O=void 0!==P&&P,I=er(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),D=y.useContext(zl),L={dense:b||D.dense||!1,alignItems:r},M=y.useRef(null);_l((function(){i&&M.current&&M.current.focus()}),[i]);var q,A,N=y.Children.toArray(l),z=N.length&&(q=N[N.length-1],A=["ListItemSecondaryAction"],y.isValidElement(q)&&-1!==A.indexOf(q.type.muiName)),j=qs(y.useCallback((function(e){M.current=T.findDOMNode(e)}),[]),t),$=Fn({className:Ps(c.root,u,L.dense&&c.dense,!k&&c.gutters,C&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,O&&c.selected),disabled:S},I),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=Ps(c.focusVisible,R),_=fl),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(zl.Provider,{value:L},y.createElement(f,Fn({className:Ps(c.container,m),ref:j},g),y.createElement(_,$,N),N.pop()))):y.createElement(zl.Provider,{value:L},y.createElement(_,Fn({ref:j},$),N))})),Hl=Es((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Fl),Bl=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=er(e,["classes","className"]),i=y.useContext(zl);return y.createElement("div",Fn({className:Ps(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Wl=Es((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Bl),Vl=y.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=er(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(zl).dense,m=null!=c?c:n;null==m||m.type===gl||a||(m=y.createElement(gl,Fn({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===gl||a||(g=y.createElement(gl,Fn({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Fn({className:Ps(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),Ul=Es({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Vl);function Gl(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kl(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yl(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Xl(e){return"function"==typeof e?e():e}var Jl=y.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,S=e.onEntering,w=e.onExit,k=e.onExited,E=e.onExiting,C=e.open,R=e.PaperProps,P=void 0===R?{}:R,O=e.transformOrigin,I=void 0===O?{vertical:"top",horizontal:"left"}:O,D=e.TransitionComponent,L=void 0===D?Nl:D,M=e.transitionDuration,q=void 0===M?"auto":M,A=e.TransitionProps,N=void 0===A?{}:A,z=er(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Xl(r),n=(t&&1===t.nodeType?t:Os(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Gl(n,o),left:n.left+Kl(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Gl(e,I.vertical)+t,horizontal:Kl(e,I.horizontal)}}),[I.horizontal,I.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Yl(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Is(Xl(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Yl(o)}}),[r,l,$,_,F,v]),B=y.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),W=y.useCallback((function(e){j.current=T.findDOMNode(e)}),[]);y.useEffect((function(){C&&B()})),y.useImperativeHandle(n,(function(){return C?{updatePosition:function(){B()}}:null}),[C,B]),y.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,B]);var V=q;"auto"!==q||L.muiSupportAuto||(V=void 0);var U=p||(r?Os(Xl(r)).body:void 0);return y.createElement(Dl,Fn({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:Ps(u.root,d)},z),y.createElement(L,Fn({appear:!0,in:C,onEnter:b,onEntered:x,onExit:w,onExited:k,onExiting:E,timeout:V},N,{onEntering:Rs((function(e,t){S&&S(e,t),B()}),N.onEntering)}),y.createElement(sl,Fn({elevation:h,ref:W},P,{className:Ps(u.paper,P.className)}),c)))})),Zl=Es({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Jl);function Ql(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ec({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Ql(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return v.createElement("i",{style:o},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},v.createElement("path",{d:e})))}const tc="alternative-menu-item",nc=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>qa((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return v.createElement(Hl,gn({className:`${o.root} ${n}`},r))},rc=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${tc}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function oc({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=ke.detectTextDirection(e);return v.createElement(nc,{nested:r,role:"menuitem",button:!0,onClick:n,className:tc,onKeyDown:rc,dir:a,autoFocus:t},v.createElement(Ul,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),v.createElement(Wl,{style:{minWidth:16}},v.createElement(ec,{d:t?Zt:""})),o&&v.createElement(Wl,{style:{minWidth:16}},v.createElement(ec,{d:o.d})))}oc.propTypes={title:xn.string.isRequired,selected:xn.bool,onClick:xn.func.isRequired,nested:xn.bool,icon:xn.shape({d:xn.string.isRequired}),bold:xn.bool,dir:xn.string.isRequired},oc.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},nc.propTypes={nested:xn.bool,className:xn.string},nc.defaultProps={nested:!1,className:tc};const ic={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function ac({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return v.createElement(v.Fragment,{key:t.id},v.createElement(oc,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&v.createElement($l,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>v.createElement(oc,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&v.createElement(Ml,{key:`divider-${t.id}`}))}));return v.createElement(Zl,gn({anchorEl:t,open:s,onClose:a},ic[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),v.createElement($l,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}ac.propTypes={chartId:xn.string.isRequired,alignTo:xn.any,currentId:xn.string.isRequired,dir:xn.string.isRequired,dock:xn.string.isRequired,list:xn.array,onClose:xn.func.isRequired,show:xn.bool.isRequired,instruction:xn.string.isRequired},ac.defaultProps={list:[],alignTo:null};const sc="title-button",lc="active-title-button",cc=ks((({children:e,...t})=>v.createElement(yl,gn({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),uc=ks(yl)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class dc extends v.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=v.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:o}=this.props;n&&(r||o)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${sc}`);t&&(t.focus(),t.classList.add(lc))}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${sc}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${lc}`);e&&(e.classList.remove(lc),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,h=t.breadcrumbs.map(((e,n)=>v.createElement(cc,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},v.createElement("span",{style:d},e),v.createElement(ec,gn({},en,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=ke.detectTextDirection(t.text),w=v.createElement(cc,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${sc} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&v.createElement(ec,gn({},Jt,{size:"small",title:r.get("Tooltip.selections.locked")})),v.createElement("span",{style:d,dir:S},t.text),n&&m&&v.createElement(ec,gn({},Qt,{size:"small",style:{margin:"0 8px"}})));return v.createElement(v.Fragment,null,t.icon&&t.icon.onClick&&v.createElement(uc,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},v.createElement(ec,gn({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&v.createElement(ec,gn({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,v.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&v.createElement(ac,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function pc(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function fc(e){function t(e){return!e.isDimension&&ye.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],w=r||o[a?"qDimensionInfo":"qMeasureInfo"],k=a?pn:hn,E=a?fn:mn,C=Boolean(l&&l.colorSupport&&l.modifiers),R=C&&((T=this.settings.settings).isDimension&&ye.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const P=w.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,y=E(t,i,l,e),b=r===w.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,T=C||x?k({column:i,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:pc(g),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:C}):void 0;return v.createElement(v.Fragment,{key:t.cId},v.createElement(dc,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:T,titleData:y,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:R,supportConditional:m}),!b&&v.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return v.createElement("div",{style:b,dir:y},P)}}}dc.propTypes={chartId:xn.string.isRequired,disabled:xn.bool.isRequired,padding:xn.string,minWidth:xn.string,titleData:xn.shape({breadcrumbs:xn.arrayOf(xn.string).isRequired,icon:xn.shape({path:xn.shape({d:xn.string.isRequired}),tooltip:xn.string.isRequired,onClick:xn.func}),index:xn.number.isRequired,locked:xn.bool.isRequired,text:xn.string.isRequired,popoverText:xn.string.isRequired,drillUp:xn.func,id:xn.string.isRequired}).isRequired,popover:xn.shape({dir:xn.string.isRequired,dock:xn.string.isRequired,getPopoverOptions:xn.func.isRequired}),translator:xn.shape({get:xn.func.isRequired}).isRequired,selections:xn.shape({isActive:xn.func,addListener:xn.func,removeListener:xn.func}),style:xn.shape({fontSize:xn.string,color:xn.string,fontFamily:xn.string}).isRequired,isDimension:xn.bool.isRequired,hasAlternative:xn.bool.isRequired,supportConditional:xn.bool.isRequired,showGroupDimOptions:xn.bool.isRequired},dc.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const hc=Cr({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const mc=Pr({productionPrefix:"q6c85",disableGlobal:!0,seed:""});function gc(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",P.render(function(e,t){return v.createElement(Ia,{generateClassName:t},v.createElement(Ss,{theme:hc},e))}(e,mc),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&P.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(P.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}const vc={black:"#000",white:"#fff"},yc="#e57373",bc="#ef5350",xc="#f44336",Sc="#d32f2f",wc="#c62828",kc="#f3e5f5",Ec="#ce93d8",Cc="#ba68c8",Rc="#ab47bc",Tc="#9c27b0",Pc="#7b1fa2",Oc="#e3f2fd",Ic="#90caf9",Dc="#42a5f5",Lc="#1976d2",Mc="#1565c0",qc="#4fc3f7",Ac="#29b6f6",Nc="#03a9f4",zc="#0288d1",jc="#01579b",$c="#81c784",_c="#66bb6a",Fc="#4caf50",Hc="#388e3c",Bc="#2e7d32",Wc="#1b5e20",Vc="#ffb74d",Uc="#ffa726",Gc="#ff9800",Kc="#f57c00",Yc="#e65100",Xc={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"};function Jc(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 Zc=Object.freeze({__proto__:null,default:Jc}),Qc="$$material";var eu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),tu="-ms-",nu="-moz-",ru="-webkit-",ou="comm",iu="rule",au="decl",su="@keyframes",lu=Math.abs,cu=String.fromCharCode,uu=Object.assign;function du(e){return e.trim()}function pu(e,t,n){return e.replace(t,n)}function fu(e,t){return e.indexOf(t)}function hu(e,t){return 0|e.charCodeAt(t)}function mu(e,t,n){return e.slice(t,n)}function gu(e){return e.length}function vu(e){return e.length}function yu(e,t){return t.push(e),e}var bu=1,xu=1,Su=0,wu=0,ku=0,Eu="";function Cu(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bu,column:xu,length:a,return:""}}function Ru(e,t){return uu(Cu("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tu(){return ku=wu>0?hu(Eu,--wu):0,xu--,10===ku&&(xu=1,bu--),ku}function Pu(){return ku=wu<Su?hu(Eu,wu++):0,xu++,10===ku&&(xu=1,bu++),ku}function Ou(){return hu(Eu,wu)}function Iu(){return wu}function Du(e,t){return mu(Eu,e,t)}function Lu(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 Mu(e){return bu=xu=1,Su=gu(Eu=e),wu=0,[]}function qu(e){return Eu="",e}function Au(e){return du(Du(wu-1,ju(91===e?e+2:40===e?e+1:e)))}function Nu(e){for(;(ku=Ou())&&ku<33;)Pu();return Lu(e)>2||Lu(ku)>3?"":" "}function zu(e,t){for(;--t&&Pu()&&!(ku<48||ku>102||ku>57&&ku<65||ku>70&&ku<97););return Du(e,Iu()+(t<6&&32==Ou()&&32==Pu()))}function ju(e){for(;Pu();)switch(ku){case e:return wu;case 34:case 39:34!==e&&39!==e&&ju(ku);break;case 40:41===e&&ju(e);break;case 92:Pu()}return wu}function $u(e,t){for(;Pu()&&e+ku!==57&&(e+ku!==84||47!==Ou()););return"/*"+Du(t,wu-1)+"*"+cu(47===e?e:Pu())}function _u(e){for(;!Lu(Ou());)Pu();return Du(e,wu)}function Fu(e){return qu(Hu("",null,null,null,[""],e=Mu(e),0,[0],e))}function Hu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,S=i,w=r,k=b;g;)switch(h=y,y=Pu()){case 40:if(108!=h&&58==hu(k,d-1)){-1!=fu(k+=pu(Au(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Au(y);break;case 9:case 10:case 13:case 32:k+=Nu(h);break;case 92:k+=zu(Iu()-1,7);continue;case 47:switch(Ou()){case 42:case 47:yu(Wu($u(Pu(),Iu()),t,n),l);break;default:k+="/"}break;case 123*m:s[c++]=gu(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=pu(k,/\f/g,"")),f>0&&gu(k)-d&&yu(f>32?Vu(k+";",r,n,d-1):Vu(pu(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(yu(w=Bu(k,t,n,c,u,o,s,b,x=[],S=[],d),i),123===y)if(0===u)Hu(k,t,w,w,x,i,d,s,S);else switch(99===p&&110===hu(k,3)?100:p){case 100:case 108:case 109:case 115:Hu(e,w,w,r&&yu(Bu(e,w,w,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:Hu(k,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=v=1,b=k="",d=a;break;case 58:d=1+gu(k),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Tu())continue;switch(k+=cu(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(gu(k)-1)*v,v=1;break;case 64:45===Ou()&&(k+=Au(Pu())),p=Ou(),u=d=gu(b=k+=_u(Iu())),y++;break;case 45:45===h&&2==gu(k)&&(m=0)}}return i}function Bu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=vu(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=mu(e,d+1,d=lu(m=a[h])),b=e;v<f;++v)(b=du(m>0?p[v]+" "+y:pu(y,/&\f/g,p[v])))&&(l[g++]=b);return Cu(e,t,n,0===o?iu:s,l,c,u)}function Wu(e,t,n){return Cu(e,t,n,ou,cu(ku),mu(e,2,-2),0)}function Vu(e,t,n,r){return Cu(e,t,n,au,mu(e,0,r),mu(e,r+1,-1),r)}function Uu(e,t){for(var n="",r=vu(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Gu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case au:return e.return=e.return||e.value;case ou:return"";case su:return e.return=e.value+"{"+Uu(e.children,r)+"}";case iu:e.value=e.props.join(",")}return gu(n=Uu(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ku(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Yu=function(e,t,n){for(var r=0,o=0;r=o,o=Ou(),38===r&&12===o&&(t[n]=1),!Lu(o);)Pu();return Du(e,wu)},Xu=function(e,t){return qu(function(e,t){var n=-1,r=44;do{switch(Lu(r)){case 0:38===r&&12===Ou()&&(t[n]=1),e[n]+=Yu(wu-1,t,n);break;case 2:e[n]+=Au(r);break;case 4:if(44===r){e[++n]=58===Ou()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cu(r)}}while(r=Pu());return e}(Mu(e),t))},Ju=new WeakMap,Zu=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)||Ju.get(n))&&!r){Ju.set(e,!0);for(var o=[],i=Xu(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]}}},Qu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ed(e,t){switch(function(e,t){return 45^hu(e,0)?(((t<<2^hu(e,0))<<2^hu(e,1))<<2^hu(e,2))<<2^hu(e,3):0}(e,t)){case 5103:return ru+"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 ru+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ru+e+nu+e+tu+e+e;case 6828:case 4268:return ru+e+tu+e+e;case 6165:return ru+e+tu+"flex-"+e+e;case 5187:return ru+e+pu(e,/(\w+).+(:[^]+)/,ru+"box-$1$2"+tu+"flex-$1$2")+e;case 5443:return ru+e+tu+"flex-item-"+pu(e,/flex-|-self/,"")+e;case 4675:return ru+e+tu+"flex-line-pack"+pu(e,/align-content|flex-|-self/,"")+e;case 5548:return ru+e+tu+pu(e,"shrink","negative")+e;case 5292:return ru+e+tu+pu(e,"basis","preferred-size")+e;case 6060:return ru+"box-"+pu(e,"-grow","")+ru+e+tu+pu(e,"grow","positive")+e;case 4554:return ru+pu(e,/([^-])(transform)/g,"$1"+ru+"$2")+e;case 6187:return pu(pu(pu(e,/(zoom-|grab)/,ru+"$1"),/(image-set)/,ru+"$1"),e,"")+e;case 5495:case 3959:return pu(e,/(image-set\([^]*)/,ru+"$1$`$1");case 4968:return pu(pu(e,/(.+:)(flex-)?(.*)/,ru+"box-pack:$3"+tu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ru+e+e;case 4095:case 3583:case 4068:case 2532:return pu(e,/(.+)-inline(.+)/,ru+"$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(gu(e)-1-t>6)switch(hu(e,t+1)){case 109:if(45!==hu(e,t+4))break;case 102:return pu(e,/(.+:)(.+)-([^]+)/,"$1"+ru+"$2-$3$1"+nu+(108==hu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fu(e,"stretch")?ed(pu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==hu(e,t+1))break;case 6444:switch(hu(e,gu(e)-3-(~fu(e,"!important")&&10))){case 107:return pu(e,":",":"+ru)+e;case 101:return pu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ru+(45===hu(e,14)?"inline-":"")+"box$3$1"+ru+"$2$3$1"+tu+"$2box$3")+e}break;case 5936:switch(hu(e,t+11)){case 114:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ru+e+tu+pu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ru+e+tu+e+e}return e}var td=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case au:e.return=ed(e.value,e.length);break;case su:return Uu([Ru(e,{value:pu(e.value,"@","@"+ru)})],r);case iu: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 Uu([Ru(e,{props:[pu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Uu([Ru(e,{props:[pu(t,/:(plac\w+)/,":"+ru+"input-$1")]}),Ru(e,{props:[pu(t,/:(plac\w+)/,":-moz-$1")]}),Ru(e,{props:[pu(t,/:(plac\w+)/,tu+"input-$1")]})],r)}return""}))}}],nd=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||td,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[Gu,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=vu(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Zu,Qu].concat(i,u));o=function(e,t,n,r){l=n,function(e){Uu(Fu(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new eu({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function rd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var od=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},id=function(e,t,n){od(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 ad={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},sd=/[A-Z]|^ms/g,ld=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cd=function(e){return 45===e.charCodeAt(1)},ud=function(e){return null!=e&&"boolean"!=typeof e},dd=Ku((function(e){return cd(e)?e:e.replace(sd,"-$&").toLowerCase()})),pd=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ld,(function(e,t,n){return hd={name:t,styles:n,next:hd},t}))}return 1===ad[e]||cd(e)||"number"!=typeof t||0===t?t:t+"px"};function fd(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return hd={name:o.name,styles:o.styles,next:hd},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)hd={name:a.name,styles:a.styles,next:hd},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+=fd(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]+"}":ud(s)&&(r+=dd(i)+":"+pd(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=fd(e,t,a);switch(i){case"animation":case"animationName":r+=dd(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ud(a[c])&&(r+=dd(i)+":"+pd(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=hd,l=n(e);return hd=s,fd(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var hd,md=/label:\s*([^\s;{]+)\s*(;|$)/g;function gd(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="";hd=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=fd(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=fd(n,t,e[a]),r)o+=i[a]}md.lastIndex=0;for(var s,l="";null!==(s=md.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:hd}}var vd,yd,bd=!!y.useInsertionEffect&&y.useInsertionEffect,xd=bd||function(e){return e()},Sd=bd||y.useLayoutEffect,wd=y.createContext("undefined"!=typeof HTMLElement?nd({key:"css"}):null),kd=wd.Provider,Ed=function(e){return w((function(t,n){var r=k(wd);return e(t,r,n)}))},Cd=y.createContext({}),Rd={}.hasOwnProperty,Td="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return od(t,n,r),xd((function(){return id(t,n,r)})),null},Od=Ed((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Td],i=[r],a="";"string"==typeof e.className?a=rd(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=gd(i,void 0,y.useContext(Cd));a+=t.key+"-"+s.name;var l={};for(var c in e)Rd.call(e,c)&&"css"!==c&&c!==Td&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),y.createElement(y.Fragment,null,y.createElement(Pd,{cache:t,serialized:s,isStringTag:"string"==typeof o}),y.createElement(o,l))})),Id=Od,Dd=function(e,t){var n=arguments;if(null==t||!Rd.call(t,"css"))return y.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Id,o[1]=function(e,t){var n={};for(var r in t)Rd.call(t,r)&&(n[r]=t[r]);return n[Td]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return y.createElement.apply(null,o)};vd=Dd||(Dd={}),yd||(yd=vd.JSX||(vd.JSX={}));var Ld=Ed((function(e,t){var n=gd([e.styles],void 0,y.useContext(Cd)),r=y.useRef();return Sd((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]),Sd((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&id(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 Md(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gd(t)}function qd(){var e=Md.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_"}}}var Ad=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Nd=Ku((function(e){return Ad.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),zd=function(e){return"theme"!==e},jd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Nd:zd},$d=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},_d=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return od(t,n,r),xd((function(){return id(t,n,r)})),null},Fd=function e(t,n){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=$d(t,n,i),l=s||jd(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=Ed((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=y.useContext(Cd)}"string"==typeof e.className?i=rd(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var h=gd(d.concat(u),t.registered,p);i+=t.key+"-"+h.name,void 0!==o&&(i+=" "+o);var m=c&&void 0===s?jd(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),y.createElement(y.Fragment,null,y.createElement(_d,{cache:t,serialized:h,isStringTag:"string"==typeof r}),y.createElement(r,g))}));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=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Fn({},n,r,{shouldForwardProp:$d(m,r,!0)})).apply(void 0,d)},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){Fd[e]=Fd(e)}));var Hd={exports:{}},Bd={},Wd=v,Vd=Symbol.for("react.element"),Ud=Symbol.for("react.fragment"),Gd=Object.prototype.hasOwnProperty,Kd=Wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yd={key:!0,ref:!0,__self:!0,__source:!0};function Xd(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Gd.call(t,r)&&!Yd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Vd,type:e,key:i,ref:a,props:o,_owner:Kd.current}}Bd.Fragment=Ud,Bd.jsx=Xd,Bd.jsxs=Xd,Hd.exports=Bd;var Jd=Hd.exports;let Zd;"object"==typeof document&&(Zd=nd({key:"css",prepend:!0}));var Qd=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Jd.jsx(Ld,{styles:r})}
|
|
15
15
|
/**
|
|
16
16
|
* @mui/styled-engine v5.16.14
|
|
17
17
|
*
|
|
18
18
|
* @license MIT
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Zd?Jd.jsx(Ed,{value:Zd,children:n}):n},ThemeContext:Cd,css:Md,default:function(e,t){return Fd(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:qd});function ep(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 tp(e){if(y.isValidElement(e)||!ep(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=tp(e[n])})),t}function np(e,t,n={clone:!0}){const r=n.clone?Fn({},e):e;return ep(e)&&ep(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?r[o]=t[o]:ep(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ep(e[o])?r[o]=np(e[o],t[o],n):n.clone?r[o]=ep(t[o])?tp(t[o]):t[o]:r[o]=t[o]})),r}var rp=Object.freeze({__proto__:null,default:np,isPlainObject:ep});const op=["values","unit","step"];function ip(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Qn(e,op),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)=>Fn({},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 Fn({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 ap={borderRadius:4};function sp(e,t){return t?np(e,t,{clone:!1}):e}const lp={xs:0,sm:600,md:900,lg:1200,xl:1536},cp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lp[e]}px)`};function up(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||cp;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||cp;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||lp).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function dp(e){if("string"!=typeof e)throw new Error(Jc(7));return e.charAt(0).toUpperCase()+e.slice(1)}var pp=Object.freeze({__proto__:null,default:dp});function fp(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 hp(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fp(e,n)||r,t&&(o=t(o,r,e)),o}function mp(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=fp(e.theme,r)||{};return up(e,i,(e=>{let r=hp(a,o,e);return e===r&&"string"==typeof e&&(r=hp(a,o,`${t}${"default"===e?"":dp(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gp={m:"margin",p:"padding"},vp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bp=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!yp[e])return[e];e=yp[e]}const[t,n]=e.split(""),r=gp[t],o=vp[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function wp(e,t,n,r){var o;const i=null!=(o=fp(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 Ep(e){return wp(e,"spacing",8)}function kp(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 Cp(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=kp(t,n),e)),{})}(bp(n),r);return up(e,e[n],o)}function Rp(e,t){const n=Ep(e.theme);return Object.keys(e).map((r=>Cp(e,t,r,n))).reduce(sp,{})}function Tp(e){return Rp(e,xp)}function Pp(e){return Rp(e,Sp)}function Op(...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]?sp(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ip(e){return"number"!=typeof e?e:`${e}px solid`}function Dp(e,t){return mp({prop:e,themeKey:"borders",transform:t})}Tp.propTypes={},Tp.filterProps=xp,Pp.propTypes={},Pp.filterProps=Sp;const Lp=Dp("border",Ip),Mp=Dp("borderTop",Ip),qp=Dp("borderRight",Ip),Ap=Dp("borderBottom",Ip),Np=Dp("borderLeft",Ip),zp=Dp("borderColor"),jp=Dp("borderTopColor"),$p=Dp("borderRightColor"),_p=Dp("borderBottomColor"),Fp=Dp("borderLeftColor"),Hp=Dp("outline",Ip),Bp=Dp("outlineColor"),Wp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wp(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:kp(t,e)});return up(e,e.borderRadius,n)}return null};Wp.propTypes={},Wp.filterProps=["borderRadius"],Op(Lp,Mp,qp,Ap,Np,zp,jp,$p,_p,Fp,Wp,Hp,Bp);const Vp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wp(e.theme,"spacing",8),n=e=>({gap:kp(t,e)});return up(e,e.gap,n)}return null};Vp.propTypes={},Vp.filterProps=["gap"];const Up=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wp(e.theme,"spacing",8),n=e=>({columnGap:kp(t,e)});return up(e,e.columnGap,n)}return null};Up.propTypes={},Up.filterProps=["columnGap"];const Gp=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wp(e.theme,"spacing",8),n=e=>({rowGap:kp(t,e)});return up(e,e.rowGap,n)}return null};Gp.propTypes={},Gp.filterProps=["rowGap"];function Kp(e,t){return"grey"===t?t:e}Op(Vp,Up,Gp,mp({prop:"gridColumn"}),mp({prop:"gridRow"}),mp({prop:"gridAutoFlow"}),mp({prop:"gridAutoColumns"}),mp({prop:"gridAutoRows"}),mp({prop:"gridTemplateColumns"}),mp({prop:"gridTemplateRows"}),mp({prop:"gridTemplateAreas"}),mp({prop:"gridArea"}));function Yp(e){return e<=1&&0!==e?100*e+"%":e}Op(mp({prop:"color",themeKey:"palette",transform:Kp}),mp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kp}),mp({prop:"backgroundColor",themeKey:"palette",transform:Kp}));const Xp=mp({prop:"width",transform:Yp}),Jp=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])||lp[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:Yp(t)}};return up(e,e.maxWidth,t)}return null};Jp.filterProps=["maxWidth"];const Zp=mp({prop:"minWidth",transform:Yp}),Qp=mp({prop:"height",transform:Yp}),ef=mp({prop:"maxHeight",transform:Yp}),tf=mp({prop:"minHeight",transform:Yp});mp({prop:"size",cssProperty:"width",transform:Yp}),mp({prop:"size",cssProperty:"height",transform:Yp});Op(Xp,Jp,Zp,Qp,ef,tf,mp({prop:"boxSizing"}));const nf={border:{themeKey:"borders",transform:Ip},borderTop:{themeKey:"borders",transform:Ip},borderRight:{themeKey:"borders",transform:Ip},borderBottom:{themeKey:"borders",transform:Ip},borderLeft:{themeKey:"borders",transform:Ip},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ip},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wp},color:{themeKey:"palette",transform:Kp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kp},backgroundColor:{themeKey:"palette",transform:Kp},p:{style:Pp},pt:{style:Pp},pr:{style:Pp},pb:{style:Pp},pl:{style:Pp},px:{style:Pp},py:{style:Pp},padding:{style:Pp},paddingTop:{style:Pp},paddingRight:{style:Pp},paddingBottom:{style:Pp},paddingLeft:{style:Pp},paddingX:{style:Pp},paddingY:{style:Pp},paddingInline:{style:Pp},paddingInlineStart:{style:Pp},paddingInlineEnd:{style:Pp},paddingBlock:{style:Pp},paddingBlockStart:{style:Pp},paddingBlockEnd:{style:Pp},m:{style:Tp},mt:{style:Tp},mr:{style:Tp},mb:{style:Tp},ml:{style:Tp},mx:{style:Tp},my:{style:Tp},margin:{style:Tp},marginTop:{style:Tp},marginRight:{style:Tp},marginBottom:{style:Tp},marginLeft:{style:Tp},marginX:{style:Tp},marginY:{style:Tp},marginInline:{style:Tp},marginInlineStart:{style:Tp},marginInlineEnd:{style:Tp},marginBlock:{style:Tp},marginBlockStart:{style:Tp},marginBlockEnd:{style:Tp},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:Vp},rowGap:{style:Gp},columnGap:{style:Up},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yp},maxWidth:{style:Jp},minWidth:{transform:Yp},height:{transform:Yp},maxHeight:{transform:Yp},minHeight:{transform:Yp},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rf(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fp(n,s)||{};if(c)return c(o);return up(o,t,(t=>{let n=hp(u,l,t);return t===n&&"string"==typeof t&&(n=hp(u,l,`${e}${"default"===t?"":dp(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:nf;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=sp(l,e(n,o,i,a));else{const e=up({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=sp(l,e):l[n]=t({sx:o,theme:i})}else l=sp(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const of=rf();function af(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:{}}of.filterProps=["sx"];const sf=["breakpoints","palette","spacing","shape"];function lf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Qn(e,sf),s=ip(n),l=function(e=8){if(e.mui)return e;const t=Ep({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=np({breakpoints:s,direction:"ltr",components:{},palette:Fn({mode:"light"},r),spacing:l,shape:Fn({},ap,i)},a);return c.applyStyles=af,c=t.reduce(((e,t)=>np(e,t)),c),c.unstable_sxConfig=Fn({},nf,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return of({sx:e,theme:this})},c}var cf=Object.freeze({__proto__:null,default:lf,private_createBreakpoints:ip,unstable_applyStyles:af});function uf(e=null){const t=y.useContext(Cd);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const df=lf();function pf(e=df){return uf(e)}const ff=["sx"];function hf(e){const{sx:t}=e,n=Qn(e,ff),{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:nf;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 ep(n)?Fn({},r,n):r}:Fn({},r,t),Fn({},o,{sx:i})}var mf=Object.freeze({__proto__:null,default:of,extendSxProp:hf,unstable_createStyleFunctionSx:rf,unstable_defaultSxConfig:nf});const gf=e=>e,vf=(()=>{let e=gf;return{configure(t){e=t},generate:t=>e(t),reset(){e=gf}}})();function yf(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=yf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bf(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yf(e))&&(r&&(r+=" "),r+=t);return r}const xf={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 Sf(e,t,n="Mui"){const r=xf[t];return r?`${n}-${r}`:`${vf.generate(e)}-${t}`}function wf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Sf(e,t,n)})),r}var Ef={exports:{}},kf={},Cf=Symbol.for("react.transitional.element"),Rf=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),Pf=Symbol.for("react.strict_mode"),Of=Symbol.for("react.profiler"),If=Symbol.for("react.consumer"),Df=Symbol.for("react.context"),Lf=Symbol.for("react.forward_ref"),Mf=Symbol.for("react.suspense"),qf=Symbol.for("react.suspense_list"),Af=Symbol.for("react.memo"),Nf=Symbol.for("react.lazy"),zf=Symbol.for("react.offscreen"),jf=Symbol.for("react.client.reference");function $f(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cf:switch(e=e.type){case Tf:case Of:case Pf:case Mf:case qf:return e;default:switch(e=e&&e.$$typeof){case Df:case Lf:case Nf:case Af:case If:return e;default:return t}}case Rf:return t}}}kf.ContextConsumer=If,kf.ContextProvider=Df,kf.Element=Cf,kf.ForwardRef=Lf,kf.Fragment=Tf,kf.Lazy=Nf,kf.Memo=Af,kf.Portal=Rf,kf.Profiler=Of,kf.StrictMode=Pf,kf.Suspense=Mf,kf.SuspenseList=qf,kf.isContextConsumer=function(e){return $f(e)===If},kf.isContextProvider=function(e){return $f(e)===Df},kf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cf},kf.isForwardRef=function(e){return $f(e)===Lf},kf.isFragment=function(e){return $f(e)===Tf},kf.isLazy=function(e){return $f(e)===Nf},kf.isMemo=function(e){return $f(e)===Af},kf.isPortal=function(e){return $f(e)===Rf},kf.isProfiler=function(e){return $f(e)===Of},kf.isStrictMode=function(e){return $f(e)===Pf},kf.isSuspense=function(e){return $f(e)===Mf},kf.isSuspenseList=function(e){return $f(e)===qf},kf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tf||e===Of||e===Pf||e===Mf||e===qf||e===zf||"object"==typeof e&&null!==e&&(e.$$typeof===Nf||e.$$typeof===Af||e.$$typeof===Df||e.$$typeof===If||e.$$typeof===Lf||e.$$typeof===jf||void 0!==e.getModuleId)},kf.typeOf=$f,Ef.exports=kf;var _f=Ef.exports;const Ff=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hf(e){const t=`${e}`.match(Ff);return t&&t[1]||""}function Bf(e,t=""){return e.displayName||e.name||Hf(e)||t}function Wf(e,t,n){const r=Bf(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Vf=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bf(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _f.ForwardRef:return Wf(e,e.render,"ForwardRef");case _f.Memo:return Wf(e,e.type,"memo");default:return}}},getFunctionName:Hf});function Uf(e,t){const n=Fn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Fn({},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]=Fn({},i),Object.keys(o).forEach((e=>{n[r][e]=Uf(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Gf({props:e,name:t,defaultTheme:n,themeId:r}){let o=pf(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Uf(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Kf="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;var Yf=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Xf(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Jf(e){return e&&e.ownerDocument||document}function Zf(e){return Jf(e).defaultView||window}function Qf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eh(e){const t=y.useRef(e);return Kf((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function th(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qf(e,t)}))}),e)}const nh={};const rh=[];class oh{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new oh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ih(){const e=function(e,t){const n=y.useRef(nh);return n.current===nh&&(n.current=e(t)),n}(oh.create).current;var t;return t=e.disposeEffect,y.useEffect(t,rh),e}let ah=!0,sh=!1;const lh=new oh,ch={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 uh(e){e.metaKey||e.altKey||e.ctrlKey||(ah=!0)}function dh(){ah=!1}function ph(){"hidden"===this.visibilityState&&sh&&(ah=!0)}function fh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ah||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ch[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hh(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",uh,!0),t.addEventListener("mousedown",dh,!0),t.addEventListener("pointerdown",dh,!0),t.addEventListener("touchstart",dh,!0),t.addEventListener("visibilitychange",ph,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sh=!0,lh.start(100,(()=>{sh=!1})),t.current=!1,!0)},ref:e}}function mh(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}const gh=y.createContext(null);function vh(){return y.useContext(gh)}var yh="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bh(e){const{children:t,theme:n}=e,r=vh(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Fn({},e,t)}(r,n);return null!=e&&(e[yh]=null!==r),e}),[n,r]);return Jd.jsx(gh.Provider,{value:o,children:t})}const xh=["value"],Sh=y.createContext();function wh(e){let{value:t}=e,n=Qn(e,xh);return Jd.jsx(Sh.Provider,Fn({value:null==t||t},n))}const Eh=y.createContext(void 0);function kh({value:e,children:t}){return Jd.jsx(Eh.Provider,{value:e,children:t})}const Ch={};function Rh(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Fn({},t,{[e]:i}):i;return r?()=>a:a}return Fn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Th(e){const{children:t,theme:n,themeId:r}=e,o=uf(Ch),i=vh()||Ch,a=Rh(r,o,n),s=Rh(r,i,n,!0),l="rtl"===a.direction;return Jd.jsx(bh,{theme:s,children:Jd.jsx(Cd.Provider,{value:a,children:Jd.jsx(wh,{value:l,children:Jd.jsx(kh,{value:null==a?void 0:a.components,children:t})})})})}var Ph,Oh={},Ih={exports:{}};(Ph=Ih).exports=function(e){return e&&e.__esModule?e:{default:e}},Ph.exports.__esModule=!0,Ph.exports.default=Ph.exports;var Dh=Ih.exports,Lh=te(Zc),Mh=te(Yf),qh=Dh;Object.defineProperty(Oh,"__esModule",{value:!0});var Ah=Oh.alpha=Kh;Oh.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Bh(e),a=Bh(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Vh({type:"rgb",values:s})},Oh.colorChannel=void 0;var Nh=Oh.darken=Yh;Oh.decomposeColor=Bh,Oh.emphasize=Jh;var zh=Oh.getContrastRatio=function(e,t){const n=Gh(e),r=Gh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Oh.getLuminance=Gh,Oh.hexToRgb=Hh,Oh.hslToRgb=Uh;var jh=Oh.lighten=Xh;Oh.private_safeAlpha=function(e,t,n){try{return Kh(e,t)}catch(t){return e}},Oh.private_safeColorChannel=void 0,Oh.private_safeDarken=function(e,t,n){try{return Yh(e,t)}catch(t){return e}},Oh.private_safeEmphasize=function(e,t,n){try{return Jh(e,t)}catch(t){return e}},Oh.private_safeLighten=function(e,t,n){try{return Xh(e,t)}catch(t){return e}},Oh.recomposeColor=Vh,Oh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bh(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 $h=qh(Lh),_h=qh(Mh);function Fh(e,t=0,n=1){return(0,_h.default)(e,t,n)}function Hh(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 Bh(e){if(e.type)return e;if("#"===e.charAt(0))return Bh(Hh(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,$h.default)(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((0,$h.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Wh=e=>{const t=Bh(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Oh.colorChannel=Wh;function Vh(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 Uh(e){e=Bh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Vh({type:s,values:l})}function Gh(e){let t="hsl"===(e=Bh(e)).type||"hsla"===e.type?Bh(Uh(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 Kh(e,t){return e=Bh(e),t=Fh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Vh(e)}function Yh(e,t){if(e=Bh(e),t=Fh(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 Vh(e)}function Xh(e,t){if(e=Bh(e),t=Fh(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 Vh(e)}function Jh(e,t=.15){return Gh(e)>.5?Yh(e,t):Xh(e,t)}Oh.private_safeColorChannel=(e,t)=>{try{return Wh(e)}catch(t){return e}};const Zh=["mode","contrastThreshold","tonalOffset"],Qh={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:vc.white,default:vc.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}},em={text:{primary:vc.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:vc.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 tm(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=jh(e.main,o):"dark"===t&&(e.dark=Nh(e.main,i)))}function nm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Qn(e,Zh),i=e.primary||function(e="light"){return"dark"===e?{main:Ic,light:Oc,dark:Dc}:{main:Lc,light:Dc,dark:Mc}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:kc,light:Ec,dark:Rc}:{main:Tc,light:Cc,dark:Pc}}(t),s=e.error||function(e="light"){return"dark"===e?{main:xc,light:yc,dark:Sc}:{main:Sc,light:bc,dark:wc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ac,light:qc,dark:zc}:{main:zc,light:Nc,dark:jc}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_c,light:$c,dark:Hc}:{main:Bc,light:Fc,dark:Wc}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Uc,light:Vc,dark:Kc}:{main:"#ed6c02",light:Gc,dark:Yc}}(t);function d(e){return zh(e,em.text.primary)>=n?em.text.primary:Qh.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Fn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Jc(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Jc(12,t?` (${t})`:"",JSON.stringify(e.main)));return tm(e,"light",o,r),tm(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:em,light:Qh};return np(Fn({common:Fn({},vc),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Xc,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const rm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const om={textTransform:"uppercase"},im='"Roboto", "Helvetica", "Arial", sans-serif';function am(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=im,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Qn(n,rm),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Fn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===im?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,om),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return np(Fn({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function sm(...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 lm=["none",sm(0,2,1,-1,0,1,1,0,0,1,3,0),sm(0,3,1,-2,0,2,2,0,0,1,5,0),sm(0,3,3,-2,0,3,4,0,0,1,8,0),sm(0,2,4,-1,0,4,5,0,0,1,10,0),sm(0,3,5,-1,0,5,8,0,0,1,14,0),sm(0,3,5,-1,0,6,10,0,0,1,18,0),sm(0,4,5,-2,0,7,10,1,0,2,16,1),sm(0,5,5,-3,0,8,10,1,0,3,14,2),sm(0,5,6,-3,0,9,12,1,0,3,16,2),sm(0,6,6,-3,0,10,14,1,0,4,18,3),sm(0,6,7,-4,0,11,15,1,0,4,20,3),sm(0,7,8,-4,0,12,17,2,0,5,22,4),sm(0,7,8,-4,0,13,19,2,0,5,24,4),sm(0,7,9,-4,0,14,21,2,0,5,26,4),sm(0,8,9,-5,0,15,22,2,0,6,28,5),sm(0,8,10,-5,0,16,24,2,0,6,30,5),sm(0,8,11,-5,0,17,26,2,0,6,32,5),sm(0,9,11,-5,0,18,28,2,0,7,34,6),sm(0,9,12,-6,0,19,29,2,0,7,36,6),sm(0,10,13,-6,0,20,31,3,0,8,38,7),sm(0,10,13,-6,0,21,33,3,0,8,40,7),sm(0,10,14,-6,0,22,35,3,0,8,42,7),sm(0,11,14,-7,0,23,36,3,0,9,44,8),sm(0,11,15,-7,0,24,38,3,0,9,46,8)],cm=["duration","easing","delay"],um={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)"},dm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pm(e){return`${Math.round(e)}ms`}function fm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hm(e){const t=Fn({},um,e.easing),n=Fn({},dm,e.duration);return Fn({getAutoHeightDuration:fm,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Qn(r,cm),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:pm(o)} ${i} ${"string"==typeof a?a:pm(a)}`)).join(",")}},e,{easing:t,duration:n})}const mm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vm(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Qn(e,gm);if(e.vars)throw new Error(Jc(18));const s=nm(r),l=lf(e);let c=np(l,{mixins:(u=l.breakpoints,d=n,Fn({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:lm.slice(),typography:am(s,i),transitions:hm(o),zIndex:Fn({},mm)});var u,d;return c=np(c,a),c=t.reduce(((e,t)=>np(e,t)),c),c.unstable_sxConfig=Fn({},nf,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return of({sx:e,theme:this})},c}const ym=vm();function bm(){const e=pf(ym);return e[Qc]||e}function xm({props:e,name:t}){return Gf({props:e,name:t,defaultTheme:ym,themeId:Qc})}var Sm,wm={},Em={exports:{}};var km,Cm={exports:{}};var Rm=te(Qd),Tm=te(rp),Pm=te(pp),Om=te(Vf),Im=te(cf),Dm=te(mf),Lm=Dh;Object.defineProperty(wm,"__esModule",{value:!0});var Mm=wm.default=function(e={}){const{themeId:t,defaultTheme:n=Vm,rootShouldForwardProp:r=Wm,slotShouldForwardProp:o=Wm}=e,i=e=>(0,$m.default)((0,qm.default)({},e,{theme:Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Nm.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Km(Um(l))}=a,p=(0,Am.default)(a,Hm),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=Wm;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Nm.default)(e,(0,qm.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,zm.isPlainObject)(e)?r=>Ym(e,(0,qm.default)({},r,{theme:Gm({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let a=v(r);const l=o?o.map(v):[];s&&d&&l.push((e=>{const r=Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Ym(n,(0,qm.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}));return Ym({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,qm.default)({},e,{theme:o}))})),h||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}};wm.shouldForwardProp=Wm,wm.systemDefaultTheme=void 0;var qm=Lm((Sm||(Sm=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}(Em)),Em.exports)),Am=Lm((km||(km=1,function(e){e.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},e.exports.__esModule=!0,e.exports.default=e.exports}(Cm)),Cm.exports)),Nm=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Bm(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}(Rm),zm=Tm;Lm(Pm),Lm(Om);var jm=Lm(Im),$m=Lm(Dm);const _m=["ownerState"],Fm=["variants"],Hm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bm(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Bm=function(e){return e?n:t})(e)}function Wm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Vm=wm.systemDefaultTheme=(0,jm.default)(),Um=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gm({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Km(e){return e?(t,n)=>n[e]:null}function Ym(e,t){let{ownerState:n}=t,r=(0,Am.default)(t,_m);const o="function"==typeof e?e((0,qm.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ym(e,(0,qm.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Am.default)(o,Fm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,qm.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,qm.default)({ownerState:n},r,n)):e.style))})),t}return o}const Xm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Jm=Mm({themeId:Qc,defaultTheme:ym,rootShouldForwardProp:Xm}),Zm=["theme"];function Qm(e){let{theme:t}=e,n=Qn(e,Zm);const r=t[Qc];return Jd.jsx(Th,Fn({},n,{themeId:r?Qc:void 0,theme:r||t}))}const eg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function tg(e){return Sf("MuiSvgIcon",e)}wf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ng=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rg=Jm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dp(n.color)}`],t[`fontSize${dp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),og=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Qn(n,ng),f=y.isValidElement(r)&&"svg"===r.type,h=Fn({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return mh({root:["root","inherit"!==t&&`color${dp(t)}`,`fontSize${dp(n)}`]},tg,r)})(h);return Jd.jsxs(rg,Fn({as:a,className:bf(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Jd.jsx("title",{children:u}):null]}))}));og.muiName="SvgIcon";const ig=e=>e.scrollTop;function ag(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 sg(e){return Sf("MuiPaper",e)}wf("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 lg=["className","component","elevation","square","variant"],cg=Jm("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 Fn({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&&Fn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ah("#fff",eg(t.elevation))}, ${Ah("#fff",eg(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),ug=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Qn(n,lg),c=Fn({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return mh({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},sg,o)})(c);return Jd.jsx(cg,Fn({as:o,ownerState:c,className:bf(u.root,r),ref:t},l))}));function dg(e){return"string"==typeof e}function pg(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 fg(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 hg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mg(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Qn(e,hg),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=bf(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Fn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Fn({},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=pg(Fn({},o,r)),s=fg(r),l=fg(o),c=t(a),u=bf(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),d=Fn({},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=Fn({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Fn({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||dg(e)?t:Fn({},t,{ownerState:Fn({},t.ownerState,n)})}(n,Fn({},l,{ref:th(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}const gg=wf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vg=["center","classes","className"];let yg,bg,xg,Sg,wg=e=>e;const Eg=qd(yg||(yg=wg`
|
|
21
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Zd?Jd.jsx(kd,{value:Zd,children:n}):n},ThemeContext:Cd,css:Md,default:function(e,t){return Fd(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:qd});function ep(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 tp(e){if(y.isValidElement(e)||!ep(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=tp(e[n])})),t}function np(e,t,n={clone:!0}){const r=n.clone?Fn({},e):e;return ep(e)&&ep(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?r[o]=t[o]:ep(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ep(e[o])?r[o]=np(e[o],t[o],n):n.clone?r[o]=ep(t[o])?tp(t[o]):t[o]:r[o]=t[o]})),r}var rp=Object.freeze({__proto__:null,default:np,isPlainObject:ep});const op=["values","unit","step"];function ip(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Qn(e,op),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)=>Fn({},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 Fn({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 ap={borderRadius:4};function sp(e,t){return t?np(e,t,{clone:!1}):e}const lp={xs:0,sm:600,md:900,lg:1200,xl:1536},cp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lp[e]}px)`};function up(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||cp;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||cp;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||lp).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function dp(e){if("string"!=typeof e)throw new Error(Jc(7));return e.charAt(0).toUpperCase()+e.slice(1)}var pp=Object.freeze({__proto__:null,default:dp});function fp(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 hp(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:fp(e,n)||r,t&&(o=t(o,r,e)),o}function mp(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=fp(e.theme,r)||{};return up(e,i,(e=>{let r=hp(a,o,e);return e===r&&"string"==typeof e&&(r=hp(a,o,`${t}${"default"===e?"":dp(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const gp={m:"margin",p:"padding"},vp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bp=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!yp[e])return[e];e=yp[e]}const[t,n]=e.split(""),r=gp[t],o=vp[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),xp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Sp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function wp(e,t,n,r){var o;const i=null!=(o=fp(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 kp(e){return wp(e,"spacing",8)}function Ep(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 Cp(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Ep(t,n),e)),{})}(bp(n),r);return up(e,e[n],o)}function Rp(e,t){const n=kp(e.theme);return Object.keys(e).map((r=>Cp(e,t,r,n))).reduce(sp,{})}function Tp(e){return Rp(e,xp)}function Pp(e){return Rp(e,Sp)}function Op(...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]?sp(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Ip(e){return"number"!=typeof e?e:`${e}px solid`}function Dp(e,t){return mp({prop:e,themeKey:"borders",transform:t})}Tp.propTypes={},Tp.filterProps=xp,Pp.propTypes={},Pp.filterProps=Sp;const Lp=Dp("border",Ip),Mp=Dp("borderTop",Ip),qp=Dp("borderRight",Ip),Ap=Dp("borderBottom",Ip),Np=Dp("borderLeft",Ip),zp=Dp("borderColor"),jp=Dp("borderTopColor"),$p=Dp("borderRightColor"),_p=Dp("borderBottomColor"),Fp=Dp("borderLeftColor"),Hp=Dp("outline",Ip),Bp=Dp("outlineColor"),Wp=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wp(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ep(t,e)});return up(e,e.borderRadius,n)}return null};Wp.propTypes={},Wp.filterProps=["borderRadius"],Op(Lp,Mp,qp,Ap,Np,zp,jp,$p,_p,Fp,Wp,Hp,Bp);const Vp=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wp(e.theme,"spacing",8),n=e=>({gap:Ep(t,e)});return up(e,e.gap,n)}return null};Vp.propTypes={},Vp.filterProps=["gap"];const Up=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wp(e.theme,"spacing",8),n=e=>({columnGap:Ep(t,e)});return up(e,e.columnGap,n)}return null};Up.propTypes={},Up.filterProps=["columnGap"];const Gp=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wp(e.theme,"spacing",8),n=e=>({rowGap:Ep(t,e)});return up(e,e.rowGap,n)}return null};Gp.propTypes={},Gp.filterProps=["rowGap"];function Kp(e,t){return"grey"===t?t:e}Op(Vp,Up,Gp,mp({prop:"gridColumn"}),mp({prop:"gridRow"}),mp({prop:"gridAutoFlow"}),mp({prop:"gridAutoColumns"}),mp({prop:"gridAutoRows"}),mp({prop:"gridTemplateColumns"}),mp({prop:"gridTemplateRows"}),mp({prop:"gridTemplateAreas"}),mp({prop:"gridArea"}));function Yp(e){return e<=1&&0!==e?100*e+"%":e}Op(mp({prop:"color",themeKey:"palette",transform:Kp}),mp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kp}),mp({prop:"backgroundColor",themeKey:"palette",transform:Kp}));const Xp=mp({prop:"width",transform:Yp}),Jp=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])||lp[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:Yp(t)}};return up(e,e.maxWidth,t)}return null};Jp.filterProps=["maxWidth"];const Zp=mp({prop:"minWidth",transform:Yp}),Qp=mp({prop:"height",transform:Yp}),ef=mp({prop:"maxHeight",transform:Yp}),tf=mp({prop:"minHeight",transform:Yp});mp({prop:"size",cssProperty:"width",transform:Yp}),mp({prop:"size",cssProperty:"height",transform:Yp});Op(Xp,Jp,Zp,Qp,ef,tf,mp({prop:"boxSizing"}));const nf={border:{themeKey:"borders",transform:Ip},borderTop:{themeKey:"borders",transform:Ip},borderRight:{themeKey:"borders",transform:Ip},borderBottom:{themeKey:"borders",transform:Ip},borderLeft:{themeKey:"borders",transform:Ip},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ip},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wp},color:{themeKey:"palette",transform:Kp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kp},backgroundColor:{themeKey:"palette",transform:Kp},p:{style:Pp},pt:{style:Pp},pr:{style:Pp},pb:{style:Pp},pl:{style:Pp},px:{style:Pp},py:{style:Pp},padding:{style:Pp},paddingTop:{style:Pp},paddingRight:{style:Pp},paddingBottom:{style:Pp},paddingLeft:{style:Pp},paddingX:{style:Pp},paddingY:{style:Pp},paddingInline:{style:Pp},paddingInlineStart:{style:Pp},paddingInlineEnd:{style:Pp},paddingBlock:{style:Pp},paddingBlockStart:{style:Pp},paddingBlockEnd:{style:Pp},m:{style:Tp},mt:{style:Tp},mr:{style:Tp},mb:{style:Tp},ml:{style:Tp},mx:{style:Tp},my:{style:Tp},margin:{style:Tp},marginTop:{style:Tp},marginRight:{style:Tp},marginBottom:{style:Tp},marginLeft:{style:Tp},marginX:{style:Tp},marginY:{style:Tp},marginInline:{style:Tp},marginInlineStart:{style:Tp},marginInlineEnd:{style:Tp},marginBlock:{style:Tp},marginBlockStart:{style:Tp},marginBlockEnd:{style:Tp},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:Vp},rowGap:{style:Gp},columnGap:{style:Up},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yp},maxWidth:{style:Jp},minWidth:{transform:Yp},height:{transform:Yp},maxHeight:{transform:Yp},minHeight:{transform:Yp},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rf(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=fp(n,s)||{};if(c)return c(o);return up(o,t,(t=>{let n=hp(u,l,t);return t===n&&"string"==typeof t&&(n=hp(u,l,`${e}${"default"===t?"":dp(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:nf;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=sp(l,e(n,o,i,a));else{const e=up({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=sp(l,e):l[n]=t({sx:o,theme:i})}else l=sp(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const of=rf();function af(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:{}}of.filterProps=["sx"];const sf=["breakpoints","palette","spacing","shape"];function lf(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Qn(e,sf),s=ip(n),l=function(e=8){if(e.mui)return e;const t=kp({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=np({breakpoints:s,direction:"ltr",components:{},palette:Fn({mode:"light"},r),spacing:l,shape:Fn({},ap,i)},a);return c.applyStyles=af,c=t.reduce(((e,t)=>np(e,t)),c),c.unstable_sxConfig=Fn({},nf,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return of({sx:e,theme:this})},c}var cf=Object.freeze({__proto__:null,default:lf,private_createBreakpoints:ip,unstable_applyStyles:af});function uf(e=null){const t=y.useContext(Cd);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const df=lf();function pf(e=df){return uf(e)}const ff=["sx"];function hf(e){const{sx:t}=e,n=Qn(e,ff),{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:nf;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 ep(n)?Fn({},r,n):r}:Fn({},r,t),Fn({},o,{sx:i})}var mf=Object.freeze({__proto__:null,default:of,extendSxProp:hf,unstable_createStyleFunctionSx:rf,unstable_defaultSxConfig:nf});const gf=e=>e,vf=(()=>{let e=gf;return{configure(t){e=t},generate:t=>e(t),reset(){e=gf}}})();function yf(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=yf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bf(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yf(e))&&(r&&(r+=" "),r+=t);return r}const xf={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 Sf(e,t,n="Mui"){const r=xf[t];return r?`${n}-${r}`:`${vf.generate(e)}-${t}`}function wf(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Sf(e,t,n)})),r}var kf={exports:{}},Ef={},Cf=Symbol.for("react.transitional.element"),Rf=Symbol.for("react.portal"),Tf=Symbol.for("react.fragment"),Pf=Symbol.for("react.strict_mode"),Of=Symbol.for("react.profiler"),If=Symbol.for("react.consumer"),Df=Symbol.for("react.context"),Lf=Symbol.for("react.forward_ref"),Mf=Symbol.for("react.suspense"),qf=Symbol.for("react.suspense_list"),Af=Symbol.for("react.memo"),Nf=Symbol.for("react.lazy"),zf=Symbol.for("react.offscreen"),jf=Symbol.for("react.client.reference");function $f(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cf:switch(e=e.type){case Tf:case Of:case Pf:case Mf:case qf:return e;default:switch(e=e&&e.$$typeof){case Df:case Lf:case Nf:case Af:case If:return e;default:return t}}case Rf:return t}}}Ef.ContextConsumer=If,Ef.ContextProvider=Df,Ef.Element=Cf,Ef.ForwardRef=Lf,Ef.Fragment=Tf,Ef.Lazy=Nf,Ef.Memo=Af,Ef.Portal=Rf,Ef.Profiler=Of,Ef.StrictMode=Pf,Ef.Suspense=Mf,Ef.SuspenseList=qf,Ef.isContextConsumer=function(e){return $f(e)===If},Ef.isContextProvider=function(e){return $f(e)===Df},Ef.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cf},Ef.isForwardRef=function(e){return $f(e)===Lf},Ef.isFragment=function(e){return $f(e)===Tf},Ef.isLazy=function(e){return $f(e)===Nf},Ef.isMemo=function(e){return $f(e)===Af},Ef.isPortal=function(e){return $f(e)===Rf},Ef.isProfiler=function(e){return $f(e)===Of},Ef.isStrictMode=function(e){return $f(e)===Pf},Ef.isSuspense=function(e){return $f(e)===Mf},Ef.isSuspenseList=function(e){return $f(e)===qf},Ef.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tf||e===Of||e===Pf||e===Mf||e===qf||e===zf||"object"==typeof e&&null!==e&&(e.$$typeof===Nf||e.$$typeof===Af||e.$$typeof===Df||e.$$typeof===If||e.$$typeof===Lf||e.$$typeof===jf||void 0!==e.getModuleId)},Ef.typeOf=$f,kf.exports=Ef;var _f=kf.exports;const Ff=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hf(e){const t=`${e}`.match(Ff);return t&&t[1]||""}function Bf(e,t=""){return e.displayName||e.name||Hf(e)||t}function Wf(e,t,n){const r=Bf(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Vf=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Bf(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _f.ForwardRef:return Wf(e,e.render,"ForwardRef");case _f.Memo:return Wf(e,e.type,"memo");default:return}}},getFunctionName:Hf});function Uf(e,t){const n=Fn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Fn({},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]=Fn({},i),Object.keys(o).forEach((e=>{n[r][e]=Uf(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Gf({props:e,name:t,defaultTheme:n,themeId:r}){let o=pf(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Uf(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const Kf="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;var Yf=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Xf(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Jf(e){return e&&e.ownerDocument||document}function Zf(e){return Jf(e).defaultView||window}function Qf(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function eh(e){const t=y.useRef(e);return Kf((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function th(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Qf(e,t)}))}),e)}const nh={};const rh=[];class oh{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new oh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ih(){const e=function(e,t){const n=y.useRef(nh);return n.current===nh&&(n.current=e(t)),n}(oh.create).current;var t;return t=e.disposeEffect,y.useEffect(t,rh),e}let ah=!0,sh=!1;const lh=new oh,ch={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 uh(e){e.metaKey||e.altKey||e.ctrlKey||(ah=!0)}function dh(){ah=!1}function ph(){"hidden"===this.visibilityState&&sh&&(ah=!0)}function fh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ah||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ch[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function hh(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",uh,!0),t.addEventListener("mousedown",dh,!0),t.addEventListener("pointerdown",dh,!0),t.addEventListener("touchstart",dh,!0),t.addEventListener("visibilitychange",ph,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sh=!0,lh.start(100,(()=>{sh=!1})),t.current=!1,!0)},ref:e}}function mh(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}const gh=y.createContext(null);function vh(){return y.useContext(gh)}var yh="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function bh(e){const{children:t,theme:n}=e,r=vh(),o=y.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Fn({},e,t)}(r,n);return null!=e&&(e[yh]=null!==r),e}),[n,r]);return Jd.jsx(gh.Provider,{value:o,children:t})}const xh=["value"],Sh=y.createContext();function wh(e){let{value:t}=e,n=Qn(e,xh);return Jd.jsx(Sh.Provider,Fn({value:null==t||t},n))}const kh=y.createContext(void 0);function Eh({value:e,children:t}){return Jd.jsx(kh.Provider,{value:e,children:t})}const Ch={};function Rh(e,t,n,r=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Fn({},t,{[e]:i}):i;return r?()=>a:a}return Fn({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Th(e){const{children:t,theme:n,themeId:r}=e,o=uf(Ch),i=vh()||Ch,a=Rh(r,o,n),s=Rh(r,i,n,!0),l="rtl"===a.direction;return Jd.jsx(bh,{theme:s,children:Jd.jsx(Cd.Provider,{value:a,children:Jd.jsx(wh,{value:l,children:Jd.jsx(Eh,{value:null==a?void 0:a.components,children:t})})})})}var Ph,Oh={},Ih={exports:{}};(Ph=Ih).exports=function(e){return e&&e.__esModule?e:{default:e}},Ph.exports.__esModule=!0,Ph.exports.default=Ph.exports;var Dh=Ih.exports,Lh=te(Zc),Mh=te(Yf),qh=Dh;Object.defineProperty(Oh,"__esModule",{value:!0});var Ah=Oh.alpha=Kh;Oh.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Bh(e),a=Bh(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Vh({type:"rgb",values:s})},Oh.colorChannel=void 0;var Nh=Oh.darken=Yh;Oh.decomposeColor=Bh,Oh.emphasize=Jh;var zh=Oh.getContrastRatio=function(e,t){const n=Gh(e),r=Gh(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Oh.getLuminance=Gh,Oh.hexToRgb=Hh,Oh.hslToRgb=Uh;var jh=Oh.lighten=Xh;Oh.private_safeAlpha=function(e,t,n){try{return Kh(e,t)}catch(t){return e}},Oh.private_safeColorChannel=void 0,Oh.private_safeDarken=function(e,t,n){try{return Yh(e,t)}catch(t){return e}},Oh.private_safeEmphasize=function(e,t,n){try{return Jh(e,t)}catch(t){return e}},Oh.private_safeLighten=function(e,t,n){try{return Xh(e,t)}catch(t){return e}},Oh.recomposeColor=Vh,Oh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Bh(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 $h=qh(Lh),_h=qh(Mh);function Fh(e,t=0,n=1){return(0,_h.default)(e,t,n)}function Hh(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 Bh(e){if(e.type)return e;if("#"===e.charAt(0))return Bh(Hh(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,$h.default)(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((0,$h.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Wh=e=>{const t=Bh(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Oh.colorChannel=Wh;function Vh(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 Uh(e){e=Bh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Vh({type:s,values:l})}function Gh(e){let t="hsl"===(e=Bh(e)).type||"hsla"===e.type?Bh(Uh(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 Kh(e,t){return e=Bh(e),t=Fh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Vh(e)}function Yh(e,t){if(e=Bh(e),t=Fh(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 Vh(e)}function Xh(e,t){if(e=Bh(e),t=Fh(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 Vh(e)}function Jh(e,t=.15){return Gh(e)>.5?Yh(e,t):Xh(e,t)}Oh.private_safeColorChannel=(e,t)=>{try{return Wh(e)}catch(t){return e}};const Zh=["mode","contrastThreshold","tonalOffset"],Qh={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:vc.white,default:vc.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}},em={text:{primary:vc.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:vc.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 tm(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=jh(e.main,o):"dark"===t&&(e.dark=Nh(e.main,i)))}function nm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Qn(e,Zh),i=e.primary||function(e="light"){return"dark"===e?{main:Ic,light:Oc,dark:Dc}:{main:Lc,light:Dc,dark:Mc}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ec,light:kc,dark:Rc}:{main:Tc,light:Cc,dark:Pc}}(t),s=e.error||function(e="light"){return"dark"===e?{main:xc,light:yc,dark:Sc}:{main:Sc,light:bc,dark:wc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Ac,light:qc,dark:zc}:{main:zc,light:Nc,dark:jc}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_c,light:$c,dark:Hc}:{main:Bc,light:Fc,dark:Wc}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Uc,light:Vc,dark:Kc}:{main:"#ed6c02",light:Gc,dark:Yc}}(t);function d(e){return zh(e,em.text.primary)>=n?em.text.primary:Qh.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Fn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Jc(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Jc(12,t?` (${t})`:"",JSON.stringify(e.main)));return tm(e,"light",o,r),tm(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:em,light:Qh};return np(Fn({common:Fn({},vc),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Xc,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const rm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const om={textTransform:"uppercase"},im='"Roboto", "Helvetica", "Arial", sans-serif';function am(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=im,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Qn(n,rm),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Fn({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===im?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,om),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return np(Fn({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function sm(...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 lm=["none",sm(0,2,1,-1,0,1,1,0,0,1,3,0),sm(0,3,1,-2,0,2,2,0,0,1,5,0),sm(0,3,3,-2,0,3,4,0,0,1,8,0),sm(0,2,4,-1,0,4,5,0,0,1,10,0),sm(0,3,5,-1,0,5,8,0,0,1,14,0),sm(0,3,5,-1,0,6,10,0,0,1,18,0),sm(0,4,5,-2,0,7,10,1,0,2,16,1),sm(0,5,5,-3,0,8,10,1,0,3,14,2),sm(0,5,6,-3,0,9,12,1,0,3,16,2),sm(0,6,6,-3,0,10,14,1,0,4,18,3),sm(0,6,7,-4,0,11,15,1,0,4,20,3),sm(0,7,8,-4,0,12,17,2,0,5,22,4),sm(0,7,8,-4,0,13,19,2,0,5,24,4),sm(0,7,9,-4,0,14,21,2,0,5,26,4),sm(0,8,9,-5,0,15,22,2,0,6,28,5),sm(0,8,10,-5,0,16,24,2,0,6,30,5),sm(0,8,11,-5,0,17,26,2,0,6,32,5),sm(0,9,11,-5,0,18,28,2,0,7,34,6),sm(0,9,12,-6,0,19,29,2,0,7,36,6),sm(0,10,13,-6,0,20,31,3,0,8,38,7),sm(0,10,13,-6,0,21,33,3,0,8,40,7),sm(0,10,14,-6,0,22,35,3,0,8,42,7),sm(0,11,14,-7,0,23,36,3,0,9,44,8),sm(0,11,15,-7,0,24,38,3,0,9,46,8)],cm=["duration","easing","delay"],um={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)"},dm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function pm(e){return`${Math.round(e)}ms`}function fm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hm(e){const t=Fn({},um,e.easing),n=Fn({},dm,e.duration);return Fn({getAutoHeightDuration:fm,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Qn(r,cm),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:pm(o)} ${i} ${"string"==typeof a?a:pm(a)}`)).join(",")}},e,{easing:t,duration:n})}const mm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function vm(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Qn(e,gm);if(e.vars)throw new Error(Jc(18));const s=nm(r),l=lf(e);let c=np(l,{mixins:(u=l.breakpoints,d=n,Fn({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:lm.slice(),typography:am(s,i),transitions:hm(o),zIndex:Fn({},mm)});var u,d;return c=np(c,a),c=t.reduce(((e,t)=>np(e,t)),c),c.unstable_sxConfig=Fn({},nf,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return of({sx:e,theme:this})},c}const ym=vm();function bm(){const e=pf(ym);return e[Qc]||e}function xm({props:e,name:t}){return Gf({props:e,name:t,defaultTheme:ym,themeId:Qc})}var Sm,wm={},km={exports:{}};var Em,Cm={exports:{}};var Rm=te(Qd),Tm=te(rp),Pm=te(pp),Om=te(Vf),Im=te(cf),Dm=te(mf),Lm=Dh;Object.defineProperty(wm,"__esModule",{value:!0});var Mm=wm.default=function(e={}){const{themeId:t,defaultTheme:n=Vm,rootShouldForwardProp:r=Wm,slotShouldForwardProp:o=Wm}=e,i=e=>(0,$m.default)((0,qm.default)({},e,{theme:Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Nm.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Km(Um(l))}=a,p=(0,Am.default)(a,Hm),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=Wm;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Nm.default)(e,(0,qm.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,zm.isPlainObject)(e)?r=>Ym(e,(0,qm.default)({},r,{theme:Gm({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let a=v(r);const l=o?o.map(v):[];s&&d&&l.push((e=>{const r=Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Ym(n,(0,qm.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=Gm((0,qm.default)({},e,{defaultTheme:n,themeId:t}));return Ym({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,qm.default)({},e,{theme:o}))})),h||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}};wm.shouldForwardProp=Wm,wm.systemDefaultTheme=void 0;var qm=Lm((Sm||(Sm=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}(km)),km.exports)),Am=Lm((Em||(Em=1,function(e){e.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},e.exports.__esModule=!0,e.exports.default=e.exports}(Cm)),Cm.exports)),Nm=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Bm(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}(Rm),zm=Tm;Lm(Pm),Lm(Om);var jm=Lm(Im),$m=Lm(Dm);const _m=["ownerState"],Fm=["variants"],Hm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Bm(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Bm=function(e){return e?n:t})(e)}function Wm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Vm=wm.systemDefaultTheme=(0,jm.default)(),Um=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Gm({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Km(e){return e?(t,n)=>n[e]:null}function Ym(e,t){let{ownerState:n}=t,r=(0,Am.default)(t,_m);const o="function"==typeof e?e((0,qm.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ym(e,(0,qm.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Am.default)(o,Fm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,qm.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,qm.default)({ownerState:n},r,n)):e.style))})),t}return o}const Xm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Jm=Mm({themeId:Qc,defaultTheme:ym,rootShouldForwardProp:Xm}),Zm=["theme"];function Qm(e){let{theme:t}=e,n=Qn(e,Zm);const r=t[Qc];return Jd.jsx(Th,Fn({},n,{themeId:r?Qc:void 0,theme:r||t}))}const eg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function tg(e){return Sf("MuiSvgIcon",e)}wf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ng=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],rg=Jm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dp(n.color)}`],t[`fontSize${dp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),og=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Qn(n,ng),f=y.isValidElement(r)&&"svg"===r.type,h=Fn({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return mh({root:["root","inherit"!==t&&`color${dp(t)}`,`fontSize${dp(n)}`]},tg,r)})(h);return Jd.jsxs(rg,Fn({as:a,className:bf(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?Jd.jsx("title",{children:u}):null]}))}));og.muiName="SvgIcon";const ig=e=>e.scrollTop;function ag(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 sg(e){return Sf("MuiPaper",e)}wf("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 lg=["className","component","elevation","square","variant"],cg=Jm("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 Fn({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&&Fn({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ah("#fff",eg(t.elevation))}, ${Ah("#fff",eg(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),ug=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Qn(n,lg),c=Fn({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return mh({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},sg,o)})(c);return Jd.jsx(cg,Fn({as:o,ownerState:c,className:bf(u.root,r),ref:t},l))}));function dg(e){return"string"==typeof e}function pg(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 fg(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 hg=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mg(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Qn(e,hg),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=bf(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Fn({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Fn({},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=pg(Fn({},o,r)),s=fg(r),l=fg(o),c=t(a),u=bf(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),d=Fn({},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=Fn({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Fn({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||dg(e)?t:Fn({},t,{ownerState:Fn({},t.ownerState,n)})}(n,Fn({},l,{ref:th(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}const gg=wf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vg=["center","classes","className"];let yg,bg,xg,Sg,wg=e=>e;const kg=qd(yg||(yg=wg`
|
|
22
22
|
0% {
|
|
23
23
|
transform: scale(0);
|
|
24
24
|
opacity: 0.1;
|
|
@@ -28,7 +28,7 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
|
|
|
28
28
|
transform: scale(1);
|
|
29
29
|
opacity: 0.3;
|
|
30
30
|
}
|
|
31
|
-
`)),
|
|
31
|
+
`)),Eg=qd(bg||(bg=wg`
|
|
32
32
|
0% {
|
|
33
33
|
opacity: 1;
|
|
34
34
|
}
|
|
@@ -91,4 +91,4 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
|
|
|
91
91
|
animation-iteration-count: infinite;
|
|
92
92
|
animation-delay: 200ms;
|
|
93
93
|
}
|
|
94
|
-
`),gg.rippleVisible,Eg,550,(({theme:e})=>e.transitions.easing.easeInOut),gg.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),gg.child,gg.childLeaving,kg,550,(({theme:e})=>e.transitions.easing.easeInOut),gg.childPulsate,Cg,(({theme:e})=>e.transitions.easing.easeInOut)),Pg=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Qn(n,vg),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=ih(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Jd.jsx(Tg,{classes:{ripple:bf(o.ripple,gg.ripple),rippleVisible:bf(o.rippleVisible,gg.rippleVisible),ripplePulsate:bf(o.ripplePulsate,gg.ripplePulsate),child:bf(o.child,gg.child),childLeaving:bf(o.childLeaving,gg.childLeaving),childPulsate:bf(o.childPulsate,gg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=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),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Jd.jsx(Rg,Fn({className:bf(gg.root,o.root,i),ref:h},a,{children:Jd.jsx(ol,{component:null,exit:!0,children:s})}))}));function Og(e){return Sf("MuiButtonBase",e)}const Ig=wf("MuiButtonBase",["root","disabled","focusVisible"]),Dg=["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"],Lg=Jm("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"},[`&.${Ig.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mg=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:R,onTouchStart:T,tabIndex:P=0,TouchRippleProps:O,touchRippleRef:I,type:D}=n,L=Qn(n,Dg),M=y.useRef(null),q=y.useRef(null),A=th(q,I),{isFocusVisibleRef:N,onFocus:z,onBlur:j,ref:$}=hh(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),M.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!c&&!l;function V(e,t,n=u){return eh((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&q.current.pulsate()}),[c,d,_,H]);const U=V("start",w),G=V("stop",m),K=V("stop",g),Y=V("stop",k),X=V("stop",(e=>{_&&e.preventDefault(),E&&E(e)})),J=V("start",T),Z=V("stop",C),Q=V("stop",R),ee=V("stop",(e=>{j(e),!1===N.current&&F(!1),f&&f(e)}),!1),te=eh((e=>{M.current||(M.current=e.currentTarget),z(e),!0===N.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=eh((e=>{d&&!re.current&&_&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=eh((e=>{d&&" "===e.key&&q.current&&_&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(L.href||L.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=th(t,$,M),ce=Fn({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:P,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=mh({root:["root",t&&"disabled",n&&"focusVisible"]},Og,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Jd.jsxs(Lg,Fn({as:ae,className:bf(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:P,type:D},se,L,{children:[i,W?Jd.jsx(Pg,Fn({ref:A,center:o},O)):null]}))}));function qg(e){return Sf("MuiTypography",e)}wf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ng=Jm("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${dp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Fn({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}))),zg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},jg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$g=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiTypography"}),r=(e=>jg[e]||e)(n.color),o=hf(Fn({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=zg}=o,f=Qn(o,Ag),h=Fn({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||zg[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return mh({root:["root",i,"inherit"!==e.align&&`align${dp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},qg,a)})(h);return Jd.jsx(Ng,Fn({as:m,ref:t,ownerState:h,className:bf(g.root,a)},f))})),_g=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fg(e){const t=[],n=[];return Array.from(e.querySelectorAll(_g)).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 Hg(){return!0}function Bg(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Fg,isEnabled:a=Hg,open:s}=e,l=y.useRef(!1),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=th(t.ref,h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Jf(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Jf(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.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!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Jd.jsxs(y.Fragment,{children:[Jd.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Jd.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const Wg=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=th(y.isValidElement(n)?n.ref:null,t);if(Kf((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Kf((()=>{if(i&&!o)return Qf(t,i),()=>{Qf(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return Jd.jsx(y.Fragment,{children:n})}return Jd.jsx(y.Fragment,{children:i?T.createPortal(n,i):i})}));function Vg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ug(e){return parseInt(Zf(e).getComputedStyle(e).paddingRight,10)||0}function Gg(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&&Vg(e,o)}))}function Kg(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Yg(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Jf(e);return t.body===e?Zf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Jf(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ug(r)+e}px`;const t=Jf(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ug(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Jf(r).body;else{const t=r.parentElement,n=Zf(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 Xg=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&&Vg(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);Gg(t,e.mount,e.modalRef,r,!0);const o=Kg(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=Kg(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Yg(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Kg(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&&Vg(e.modalRef,t),Gg(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&&Vg(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jg(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Xg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=th(h,d),[g,v]=y.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=eh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Jf(f.current).body;o.add(S(),e),h.current&&w()})),k=y.useCallback((()=>o.isTopModal(S())),[o]),C=eh((e=>{f.current=e,e&&(u&&k()?w():h.current&&Vg(h.current,x))})),R=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{R()}),[R]),y.useEffect((()=>{u?E():b&&i||R()}),[u,R,b,i,E]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=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=pg(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Fn({},n,t);return Fn({role:"presentation"},r,{onKeyDown:T(r),ref:m})},getBackdropProps:(e={})=>Fn({"aria-hidden":!0},e,{onClick:P(e),open:u}),getTransitionProps:()=>({onEnter:Xf((()=>{v(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Xf((()=>{v(!0),s&&s(),i&&R()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:b}}const Zg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qg={entering:{opacity:1},entered:{opacity:1}},ev=y.forwardRef((function(e,t){const n=bm(),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:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Zs}=e,b=Qn(e,Zg),x=y.useRef(null),S=th(x,a.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{ig(e);const r=ag({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),R=w(h),T=w((e=>{const t=ag({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=w(f);return Jd.jsx(v,Fn({appear:i,in:l,nodeRef:x,onEnter:k,onEntered:C,onEntering:E,onExit:T,onExited:P,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,Fn({style:Fn({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Qg[e],m,a.props.style),ref:S},t))}))}));function tv(e){return Sf("MuiBackdrop",e)}wf("MuiBackdrop",["root","invisible"]);const nv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rv=Jm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Fn({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"}))),ov=y.forwardRef((function(e,t){var n,r,o;const i=xm({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ev,transitionDuration:g}=i,v=Qn(i,nv),y=Fn({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return mh({root:["root",n&&"invisible"]},tv,t)})(y),x=null!=(n=f.root)?n:u.root;return Jd.jsx(m,Fn({in:p,timeout:g},v,{children:Jd.jsx(rv,Fn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:bf(b.root,s,null==x?void 0:x.className),ownerState:Fn({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function iv(e){return Sf("MuiButton",e)}const av=wf("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"]),sv=y.createContext({}),lv=y.createContext(void 0),cv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uv=e=>Fn({},"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}}),dv=Jm(Mg,{shouldForwardProp:e=>Xm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dp(n.color)}`],t[`size${dp(n.size)}`],t[`${n.variant}Size${dp(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 Fn({},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":Fn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ah(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})`:Ah(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})`:Ah(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":Fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${av.focusVisible}`]:Fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${av.disabled}`]:Fn({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 ${Ah(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"},[`&.${av.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${av.disabled}`]:{boxShadow:"none"}})),pv=Jm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dp(n.size)}`]]}})((({ownerState:e})=>Fn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},uv(e)))),fv=Jm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dp(n.size)}`]]}})((({ownerState:e})=>Fn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},uv(e)))),hv=y.forwardRef((function(e,t){const n=y.useContext(sv),r=y.useContext(lv),o=xm({props:Uf(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Qn(o,cv),S=Fn({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Fn({},a,mh({root:["root",i,`${i}${dp(t)}`,`size${dp(o)}`,`${i}Size${dp(o)}`,`color${dp(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dp(o)}`],endIcon:["icon","endIcon",`iconSize${dp(o)}`]},iv,a))})(S),E=g&&Jd.jsx(pv,{className:w.startIcon,ownerState:S,children:g}),k=p&&Jd.jsx(fv,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Jd.jsxs(dv,Fn({ownerState:S,className:bf(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:bf(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[E,i,k]}))}));function mv(e){return Sf("MuiModal",e)}wf("MuiModal",["root","hidden","backdrop"]);const gv=["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"],vv=Jm("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})=>Fn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yv=Jm(ov,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bv=y.forwardRef((function(e,t){var n,r,o,i,a,s;const l=xm({name:"MuiModal",props:e}),{BackdropComponent:c=yv,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:T,open:P,slotProps:O,slots:I}=l,D=Qn(l,gv),L=Fn({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:q,getTransitionProps:A,portalRef:N,isTopModal:z,exited:j,hasTransition:$}=Jg(Fn({},L,{rootRef:t})),_=Fn({},L,{exited:j}),F=(e=>{const{open:t,exited:n,classes:r}=e;return mh({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mv,r)})(_),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),$){const{onEnter:e,onExited:t}=A();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:vv,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:c,V=null!=(a=null==O?void 0:O.root)?a:v.root,U=null!=(s=null==O?void 0:O.backdrop)?s:v.backdrop,G=mg({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:_,className:bf(d,null==V?void 0:V.className,null==F?void 0:F.root,!_.open&&_.exited&&(null==F?void 0:F.hidden))}),K=mg({elementType:W,externalSlotProps:U,additionalProps:u,getSlotProps:e=>q(Fn({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bf(null==U?void 0:U.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:_});return R||P||$&&!j?Jd.jsx(Wg,{ref:N,container:h,disablePortal:w,children:Jd.jsxs(B,Fn({},G,{children:[!C&&c?Jd.jsx(W,Fn({},K)):null,Jd.jsx(Bg,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:z,open:P,children:y.cloneElement(f,H)})]}))}):null}));function xv(e){return Sf("MuiDivider",e)}wf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Sv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wv=Jm("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})=>Fn({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)`:Ah(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})=>Fn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Fn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Fn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Fn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ev=Jm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Fn({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)`}))),kv=y.forwardRef((function(e,t){const n=xm({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:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Qn(n,Sv),h=Fn({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return mh({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"]},xv,r)})(h);return Jd.jsx(wv,Fn({as:a,className:bf(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Jd.jsx(Ev,{className:m.wrapper,ownerState:h,children:o}):null}))}));kv.muiSkipListHighlight=!0;const Cv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rv(e){return`scale(${e}, ${e**2})`}const Tv={entering:{opacity:1,transform:Rv(1)},entered:{opacity:1,transform:"none"}},Pv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ov=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Zs}=e,g=Qn(e,Cv),v=ih(),b=y.useRef(),x=bm(),S=y.useRef(null),w=th(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),C=E(((e,t)=>{ig(e);const{duration:n,delay:r,easing:o}=ag({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Pv?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=E(l),T=E(p),P=E((e=>{const{duration:t,delay:n,easing:r}=ag({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Pv?o:.666*o,delay:Pv?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Rv(.75),u&&u(e)})),O=E(d);return Jd.jsx(m,Fn({appear:r,in:a,nodeRef:S,onEnter:C,onEntered:R,onEntering:k,onExit:P,onExited:O,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Fn({style:Fn({opacity:0,transform:Rv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Tv[e],f,o.props.style),ref:w},t))}))}));Ov.muiSupportAuto=!0;const Iv=y.createContext({});function Dv(e){return Sf("MuiList",e)}wf("MuiList",["root","padding","dense","subheader"]);const Lv=["children","className","component","dense","disablePadding","subheader"],Mv=Jm("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})=>Fn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Qn(n,Lv),u=y.useMemo((()=>({dense:a})),[a]),d=Fn({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mh({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dv,t)})(d);return Jd.jsx(Iv.Provider,{value:u,children:Jd.jsxs(Mv,Fn({as:i,className:bf(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function Av(e){return Sf("MuiListItemButton",e)}const Nv=wf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zv=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],jv=Jm(Mg,{shouldForwardProp:e=>Xm(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})=>Fn({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"}},[`&.${Nv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ah(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})`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nv.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}))),$v=y.forwardRef((function(e,t){const n=xm({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:u,selected:d=!1,className:p}=n,f=Qn(n,zv),h=y.useContext(Iv),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);Kf((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Fn({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Fn({},n,mh({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Av,n))})(v),x=th(g,t);return Jd.jsx(Iv.Provider,{value:m,children:Jd.jsx(jv,Fn({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:bf(b.focusVisible,u),ownerState:v,className:bf(b.root,p)},f,{classes:b,children:a}))})}));function _v(e){return Sf("MuiListItemIcon",e)}wf("MuiListItemIcon",["root","alignItemsFlexStart"]);const Fv=["className"],Hv=Jm("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})=>Fn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Bv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Qn(n,Fv),i=Fn({},n,{alignItems:y.useContext(Iv).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return mh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_v,n)})(i);return Jd.jsx(Hv,Fn({className:bf(a.root,r),ownerState:i,ref:t},o))}));function Wv(e){return Sf("MuiListItemText",e)}const Vv=wf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Uv=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Gv=Jm("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vv.primary}`]:t.primary},{[`& .${Vv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>Fn({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Kv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=Qn(n,Uv),{dense:p}=y.useContext(Iv);let f=null!=s?s:r,h=c;const m=Fn({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!h,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return mh({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Wv,t)})(m);return null==f||f.type===$g||i||(f=Jd.jsx($g,Fn({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==h||h.type===$g||i||(h=Jd.jsx($g,Fn({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:h}))),Jd.jsxs(Gv,Fn({className:bf(g.root,o),ownerState:m,ref:t},d,{children:[f,h]}))}));function Yv(e){return Sf("MuiPopover",e)}wf("MuiPopover",["root","paper"]);const Xv=["onEntering"],Jv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zv=["slotProps"];function Qv(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ey(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ty(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ny(e){return"function"==typeof e?e():e}const ry=Jm(bv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oy=Jm(ug,{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}),iy=y.forwardRef((function(e,t){var n,r,o;const i=xm({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Ov,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:C=!1}=i,R=Qn(i.TransitionProps,Xv),T=Qn(i,Jv),P=null!=(n=null==x?void 0:x.paper)?n:v,O=y.useRef(),I=th(O,P.ref),D=Fn({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),L=(e=>{const{classes:t}=e;return mh({root:["root"],paper:["paper"]},Yv,t)})(D),M=y.useCallback((()=>{if("anchorPosition"===u)return c;const e=ny(s),t=(e&&1===e.nodeType?e:Jf(O.current).body).getBoundingClientRect();return{top:t.top+Qv(t,l.vertical),left:t.left+ey(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),q=y.useCallback((e=>({vertical:Qv(e,S.vertical),horizontal:ey(e,S.horizontal)})),[S.horizontal,S.vertical]),A=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===u)return{top:null,left:null,transformOrigin:ty(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Zf(ny(s)),d=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>d){const e=a-d;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:ty(n)}}),[s,u,M,q,m]),[N,z]=y.useState(g),j=y.useCallback((()=>{const e=O.current;if(!e)return;const t=A(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[A]);y.useEffect((()=>(C&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,C,j]);y.useEffect((()=>{g&&j()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{j()})),t=Zf(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let $=E;"auto"!==E||w.muiSupportAuto||($=void 0);const _=f||(s?Jf(ny(s)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:ry,H=null!=(o=null==b?void 0:b.paper)?o:oy,B=mg({elementType:H,externalSlotProps:Fn({},P,{style:N?P.style:Fn({},P.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:D,className:bf(L.paper,null==P?void 0:P.className)}),W=mg({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:_,open:g},ownerState:D,className:bf(L.root,p)}),{slotProps:V}=W,U=Qn(W,Zv);return Jd.jsx(F,Fn({},U,!dg(F)&&{slotProps:V,disableScrollLock:C},{children:Jd.jsx(w,Fn({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),j()},onExited:()=>{z(!1)},timeout:$},R,{children:Jd.jsx(H,Fn({},B,{children:d}))}))}))}));function ay(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 sy(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ly(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 cy(){return cy=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},cy.apply(null,arguments)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uy(Object(n),!0).forEach((function(t){ly(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function py(){py=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=y.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},E(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new k(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function fy(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);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)||gy(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 hy(e){return function(e){if(Array.isArray(e))return ay(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gy(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 my(e){return my="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},my(e)}function gy(e,t){if(e){if("string"==typeof e)return ay(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)?ay(e,t):void 0}}var vy=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return v.createElement(og,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},v.createElement("path",{d:r}),n?v.createElement("title",null,n):void 0,o?v.createElement("use",{fillRule:o}):void 0)},yy={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},by={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},xy=function(e){return by.R.test(e)||by.AL.test(e)};function Sy(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],by.L.test(n))return"ltr";if(xy(t))return"rtl"}return"ltr"}var wy,Ey,ky=Jm(hv,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),Cy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),Ry=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),Ty=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,p=l.hasMultiple,f=l.isCyclic,h=l.isLocked,m=o.resources.translator,g=o.services.focus,y=o.settings.isDisabled,b=o.state.inSelections,x=!(!c.change||!u),S=!(!c.reload||!f),w=(x||S)&&!b&&!y(),E={pointerEvents:w?"auto":"none"},k=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:x,canReload:S,direction:s,hasCyclic:d,hasMultiple:p,isLocked:h}),T=ly(ly({},"rtl"===s?"endIcon":"startIcon",h&&v.createElement(Cy,{height:12})),"rtl"===s?"startIcon":"endIcon",(x||S)&&v.createElement(Ry,{className:"".concat(b||y()?"disabled":"")})),P=R(),O=R();C((function(){t||g.get()&&(P.current.focus(),O.current.focusVisible(),g.set(!1))}));var I=Sy(a),D="Accessibility.".concat(w?"Alternative":"Normal",".Instructions");return v.createElement(ky,cy({action:O,"aria-describedby":r,"aria-label":m.get(D),color:"inherit",direction:s,disabled:!w||y()||b,onClick:function(e){w&&n(e)},padding:k,ref:P,style:E,styling:i.title,title:a},T),v.createElement("span",{dir:I,style:yy.STYLE.ELLIPSIS},a))},Py=function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},Oy=Jm(hv,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),Iy=Jm(Py,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:yy.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),Dy=Jm((function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED}}})),Ly=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=fy(k(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,p=d.allowed,f=d.isFirst,h=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return C((function(){r&&o(!1)}),[l]),p.reload?v.createElement(Oy,{direction:u,disabled:r||g||m(),isFirst:f,isLast:h,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},v.createElement(Dy,{className:"".concat(r||g||m()?"disabled":"")})):v.createElement(Iy,{direction:u,isFirst:f,isLast:h,style:{flexShrink:0},title:c})},My=function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},qy=Jm(hv,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),Ay={color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED}},Ny=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return Ay})),zy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return Ay})),jy=Jm(My,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:yy.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),$y=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,p=t.state.inSelections,f=d()||p?"disabled":null,h=ly({},"rtl"===s?"startIcon":"endIcon","rtl"===s?v.createElement(zy,{className:f}):v.createElement(Ny,{className:f})),m=i.map((function(e,t){var o=Sy(e);return v.createElement(qy,cy({disabled:d()||p,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},h),v.createElement("span",{dir:o,style:yy.STYLE.ELLIPSIS},e))}));return v.createElement(v.Fragment,null,"rtl"===s?m.reverse():void 0,v.createElement(jy,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},_y=Jm($v,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":dy({},yy.STYLE.FOCUS)}})),Fy=Jm(Bv)((function(){return{marginRight:0,justifyContent:"center"}})),Hy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY}})),By=Jm(Py)((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY}})),Wy=Jm(My)((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),Vy=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=dy({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},yy.STYLE.ELLIPSIS),d=Sy(s),p=v.createElement(Fy,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?v.createElement(Hy,{height:12}):null!=t&&t.isCyclic?v.createElement(By,{height:12}):null!=t&&t.isDrillDown?v.createElement(Wy,{height:12}):void 0}({meta:n,selected:i}));return v.createElement(v.Fragment,{key:t},v.createElement(_y,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&p,v.createElement(Kv,{dir:d,primaryTypographyProps:{style:u}},s),!c&&p))},Uy=Jm(kv)((function(){return{marginTop:"-1px"}})),Gy=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,p=u.group,f=u.id,h=u.text,m=i.data.alternatives,g=i.meta,y=g.isCyclic,b=g.isDrillDown,x=i.resources.translator,S=i.services.focus,w=y||b,E=v.createElement(Vy,{id:f,key:f,meta:i.meta,onClick:r,selected:!w,source:i,text:w?p.name:h}),k=w&&p.items.map((function(e){return v.createElement(Vy,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:i,text:e.text})})),C=m.map((function(e,t){return v.createElement(v.Fragment,{key:e.id},v.createElement(Vy,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&S.set(!0),void s({id:r});var n,r},source:i,text:e.text}),t<m.length-1&&v.createElement(Uy,{key:"divider-".concat(e.id)}))}));return v.createElement(iy,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:o,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},v.createElement(qv,{"aria-label":x.get("Accessibility.Popover.Instructions"),dense:!0},E,k,v.createElement(Uy,{key:"divider-".concat(f)}),C))},Ky=function(e){var t=e.source,n=fy(k(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=v.createElement(Ly,{source:t}),c=v.createElement($y,{source:t});return v.createElement(v.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,v.createElement(Ty,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),v.createElement(Gy,{anchor:r,id:i.id,onClose:function(){o(null)},open:i.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var Yy=function(){if(Ey)return wy;Ey=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 wy=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},wy}(),Xy=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Yy);function Jy(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function Zy(e){return Array.isArray(e)}function Qy(e){return null!=e&&!Array.isArray(e)&&"object"===my(e)}function eb(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function tb(e){return void 0===e}function nb(e,t){if(Qy(e)&&Qy(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!nb(e[n[r]],t[n[r]]))return!1;return!0}if(Zy(e)&&Zy(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!nb(e[i],t[i]))return!1;return!0}return e===t}function rb(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?Xy(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);nb(t,r)||eb(o,e)||(tb(r)?s.push({op:"add",path:i,value:t}):Qy(t)&&Qy(r)?s.push.apply(s,hy(rb({oldData:r,newData:t,basePath:i}))):Zy(t)&&Zy(r)?s.push.apply(s,hy(function(e){var t=e.newArray,n=e.basePath,r=[];return nb(t,e.oldArray.slice())||(!tb(t[0])&&tb(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){tb(o[e])&&!eb(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function ob(e){var t=e.model,n=rb({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function ib(e){return ab.apply(this,arguments)}function ab(){return(ab=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sy(i,r,o,a,s,"next",e)}function s(e){sy(i,r,o,a,s,"throw",e)}a(void 0)}))}}(py().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f;return py().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,o.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=Xy(!0,{},l),p=d.qHyperCubeDef[i][c],(f=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=p.qAttributeDimensions,p.qAttributeDimensions=[],a||(f.qAttributeExpressions=p.qAttributeExpressions,p.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=f,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=p,s({fromItem:p,toItem:f,oldProperties:l,newProperties:d,model:o}),e.next=17,Jy({model:o,properties:d});case 17:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),ob({model:o,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sb(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,p=e.qLocked,f=e.title,h="C"===r,m="H"===r,g="N"===r,v="number"==typeof e.explicitColumn?e.explicitColumn:t,y=function(t,n){h&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:h,isDrillDown:m,isLocked:!!p,isNormal:g},info:{id:n,text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:f,items:o.slice(0,m?e.qGroupPos+1:o.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(h?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return ib({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",v,t))},stepCycle:function(){return y("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return y("setActiveField",t)}}}}))}function lb(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return ib({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function cb(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,p=i.cache,f=i.model,h=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,v=a.type,y=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:p,key:o}),x=("dimension"===v?sb:lb)({callbacks:t,data:n,resources:i,settings:a});"rtl"===y&&x.reverse();var S={allowed:{change:(!(!f.modifiers||!f.colorSupport)||h)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return dy(dy({data:n,layout:{direction:y},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:dy(dy(dy({},S),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return v.createElement("div",{style:u},d.map((function(e){return v.createElement(v.Fragment,{key:e.info.id},v.createElement(Ky,{source:e}),!e.meta.isLast&&v.createElement("span",{dir:e.layout.direction,style:dy(dy({},c.title),{},{lineHeight:"normal"})},", "))})))}var ub,db='"Source Sans Pro", "Arial", "sans-serif"',pb="12px",fb=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return cb({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},hb={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:db,fontSize:pb},popover:{color:"#595959CC",fontFamily:db,fontSize:pb}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(fb(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return fb(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},mb=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return v.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},gb={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:o});return v.createElement("div",{dir:i,style:a},v.createElement(mb,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},vb={},yb=function(){if(ub)return vb;ub=1;var e=P;return vb.createRoot=e.createRoot,vb.hydrateRoot=e.hydrateRoot,vb}(),bb=vm({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function xb(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,o=n.y,i=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function Sb(){var e={rendererBox:xb(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=xb(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=yb.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return v.createElement(v.StrictMode,null,v.createElement(Qm,{theme:bb},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function wb(e){return wt(e).l<70}function Eb(e,t){const n=wt(e).l/100,r=wt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function kb(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Cb={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Eb(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=kb({r:s,a:e},n),i=kb({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:wb(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Rb(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Tb(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Rb(s)}}var Pb={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Tb({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ob(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Q(e))};e.interaction("hammer",Q(Hammer))}(t)),e.use((function(e){e.renderer("react",gc()),e.component("data-title",fc(e.renderer("svg")()))})),e.renderer("react-qcm",Sb),e.component("axis-title",hb),e.component("disclaimer",gb),e.component("pie-dividers",Cb),e.component("negative-indicators",Pb),e}var Ib={};function Db(){Db.init.call(this)}Ib.isObject=function(e){return"object"==typeof e&&null!==e},Ib.isNumber=function(e){return"number"==typeof e},Ib.isUndefined=function(e){return void 0===e},Ib.isFunction=function(e){return"function"==typeof e};var Lb=Db;Db.EventEmitter=Db,Db.prototype._events=void 0,Db.prototype._maxListeners=void 0,Db.defaultMaxListeners=10,Db.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Db.prototype.setMaxListeners=function(e){if(!Ib.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Db.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Ib.isUndefined(n))return!1;if(Ib.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Ib.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Db.prototype.addListener=function(e,t){var n;if(!Ib.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Ib.isFunction(t.listener)?t.listener:t),this._events[e]?Ib.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Ib.isObject(this._events[e])&&!this._events[e].warned)&&((n=Ib.isUndefined(this._maxListeners)?Db.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Ib.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Ib.isFunction(console.trace)&&console.trace()));return this},Db.prototype.on=Db.prototype.addListener,Db.prototype.once=function(e,t){if(!Ib.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Db.prototype.removeListener=function(e,t){var n,r,o,i;if(!Ib.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Ib.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Ib.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Db.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Ib.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Db.prototype.listeners=function(e){return this._events&&this._events[e]?Ib.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Db.listenerCount=function(e,t){return e._events&&e._events[t]?Ib.isFunction(e._events[t])?1:e._events[t].length:0};var Mb=ee(Lb);function qb(){const e={};var t;return t=e,Object.keys(Mb.prototype).forEach((e=>{t[e]=Mb.prototype[e]})),Mb.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Ab={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Nb(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const zb={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function jb(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await zb.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function $b(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return jb(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Nb(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await zb.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await zb.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Nb(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await zb.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const _b={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push($b(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},Fb={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await _b.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>_b.checkIfPromisesExist({customTooltipModel:e})};const Hb=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Ab.CHART.CHART_PARENT_TYPE,qId:Ab.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Bb=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:Ab.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Wb={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const o=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",i=Ab.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Ab.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Wb.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Ab.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Ab.CHART.STATE,a=Hb(t,i),s=await e.createSessionObject(a),l=Bb(t);if(s.id!==Ab.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Ab.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await Wb.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Wb.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Ab.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Ab.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Vb(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ub(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Ab.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Gb(e){const t=Ub();return e.filter((e=>t[e.id]))}const Kb={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=Kb.getAttrExprData(a);i.length||n.length?Fb.handlePromises({customTooltipModel:o,nodes:Kb.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&Wb.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Fb.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[Ab.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Ab.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Ab.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Gb(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[Ab.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Ab.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Vb(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Gb(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const o=Vb(e)||[];[...o,t].forEach((e=>{const t=Gb(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Ub(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Ee.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ee.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Yb(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Ab.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Ab.CUSTOM.TITLE:case Ab.CUSTOM.DESCRIPTION:case Ab.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const Xb={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Yb(t,e,r,n)}}};const Jb={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[Ab.CUSTOM.TITLE]:!0,[Ab.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=Kb.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Ab.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Ab.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>ke.getMeasure(e,t))),e,o)}};function Zb({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Jb.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Qb(e){const t=Ab.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function ex(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var tx={attrExpr:{migrateProperties(e){var t,n;const r=de(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=ex(r);return i=function(e,t){return t.concat(e.map((e=>Qb(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=Qb(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(ex(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:nx}=Ab;function rx({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Kb,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Zb({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===nx.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===nx.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>Kb.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>Kb.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=Kb.getDataNodes(a,r),{attrExps:i}=Kb.getAttrExprData(t);return Fb.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Wb.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>Kb.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>Wb.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Wb.hide({app:n,customTooltipModel:p}),destroy:()=>Wb.destroyVisualization({customTooltipModel:p})}}}function ox(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function ix({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=ye.getValue(e,"qHyperCube.qSize.qcy");return ye.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function ax({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const sx=e=>"[object Object]"===Object.prototype.toString.call(e),lx=e=>Array.isArray(e);function cx(e,t){if(e===t)return!0;if(lx(e)){if(!lx(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cx(e[n],t[n]))return!1;return!0}if(sx(e)){if(!sx(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!cx(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function ux({enable:e=!0}={}){const t=z(),n=()=>Date.now().toString()+Math.random(),[r,o]=L(n()),i={properties:void 0};return N((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=de(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=de(!0,{},e),l=de(!0,{},t);return a.exclude=!cx(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!cx(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function dx({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const px=.8,fx=.55,hx={CORNER_RADIUS:0,INNER_RADIUS:fx,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},mx=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=px,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:fx;e.donut.showAsDonut&&(i=px-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:px,gx=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:fx;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=px-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},vx=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=ye.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const v=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?Xb.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:gx({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?hx.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:hx.STROKE.WIDTH.NONE,stroke:null!==(r=null==v||null===(o=v.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:hx.STROKE.COLOR,outerRadius:mx({layout:e},t,v),cornerRadius:null!==(i=null==v||null===(a=v.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function yx({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:fx,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=px-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function bx(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function xx({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function Sx(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function wx(e){return e.node.data.num.label}function Ex(e){return e.node.data.radius.label}function kx(e,t,n){if(e.dataPoint.auto)return n?wx:Sx;if("share"===e.dataPoint.labelMode)return Sx;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Ex:wx}return null}function Cx({data:e}){return e?e.label:""}function Rx(e){const t=parseInt(e,10);if(!isNaN(t))return t}function Tx(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:fx)>.3}function Px({node:e,data:t}){return de({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Ox(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Rx(r.fontSize),fontFamily:r.fontFamily,label:Cx,linkData:({node:e,data:t})=>de({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(kx(e,t,!1)){const r=function(e,t,n){return{label:kx(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Tx(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Tx(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=Te(de(t,r),n.theme);i.linkData=Px,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Gt(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Ix({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=kx(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Gt(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Rx(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:Cx,linkData:({data:e})=>e},{fontSize:Rx(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Ox(e,n,t))}const Dx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Lx(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Mx(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Lx(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*px;return(i-r)**2+(a-o)**2<=s**2}const qx=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Lx(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Ax=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Nx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function zx(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Mx(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const jx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Mx(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),$x=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),_x=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[jx(e,{}),qx(e,t,{}),...n]:[Dx(e,{}),Nx(e,{}),jx(e,{}),Ax(e,{}),$x(e,{}),qx(e,t,{}),...n]});function Fx(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[_x(t,r,i.gestures),zx(t),i.native]}function Hx({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function Bx({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const o=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function Wx({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const o=t.alternativeService.getAlternatives(),i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:o.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:i.color,fontFamily:i.fontFamily,fontSize:i.fontSize}}}}function Vx({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return de(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&de(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[vx({layout:e},r),yx({layout:e},r),bx(r),xx({layout:e},r),Bx({layout:e},r,t),Wx({layout:e},r,t),...c.components,dx({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Ix({layout:{components:e.components,dataPoint:de({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:Fx(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Hx({settings:i},r),strategy:me(0,r)}}function Ux({instance:e,services:t,picasso:n,flags:o}){const i=O(),a=z(),s=j(),l=q(),c=H(),u=$(),d=D(),p=F(),{qLocaleInfo:f}=B(),h=ux({enable:u&&!u.snapshotData}),[g]=V((()=>{if(!t)return Promise.resolve();tx.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async n=>Promise.all([t.colorService.initialize({createConfig:e}),Promise.resolve(n),t.pluginService.initialize(),t.alternativeService.initialize({properties:n})])))}),[t,h]);N((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),N((()=>{if(!e||!g)return;const{chart:h,viewState:v,interactions:y,viewCache:b}=e,{alternativeService:x,colorService:S,disclaimerService:w,pluginService:E,themeService:k,tooltipService:C,styleService:R}=t,T=i.viewState||{};u.snapshotData||(v.preventSet("legendScrollOffset",T.legendScrollOffset||0),v.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,v),C.expando.set("properties",g[1]);const P=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),O=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...S.getData()],I={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(I.slice.outerRadius="qMeasureInfo/1"),w.initialize({args:{ds:P,encodings:I}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),I),L=d?()=>{const e=h.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},M=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>Vx({layout:u,context:{rtl:"rtl"===i.direction,theme:c,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:P,model:a,app:s,chart:h,onSelect:L,isLocked:q,interactions:y,constraints:p,translator:l,viewState:v,dataRowCount:D,encodings:I,alternativeService:x,colorService:S,disclaimerService:w,pluginService:E,themeService:k,styleService:R,tooltipService:C,debouncer:m,properties:g[1],selections:d,logicalSize:M,flags:o,viewCache:b,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Ut.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:v,options:i,layout:u,viewCache:b,chart:h})}});e.generateSettings=A;const N=A();h.update({data:O,settings:N}),b.set("chartWidth",h.element.clientWidth),b.set("chartHeight",h.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Ut.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,h,{encodings:I}):u.effectPath||h.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}function Gx({instance:e,services:t}){const n=I(),r=$();G((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:be(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),K((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:be(e.chart,"legend-cat")})})),[e])}const Kx={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},Yx={getDimensions:e=>Kx.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Kx.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Kx.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Kx.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Kx.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Kx.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const Xx={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Yx.getNumMeasures(e)>=1},showLegend:e=>{const t=Kx.getValue(e,"color.auto"),n=Kx.getValue(e,"color.expressionIsColor"),r=Kx.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Kx.getValue(e,"color.auto")&&"byDimension"===Kx.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Kx.getValue(e,"color.useDimColVal")&&Kx.setValue(e,"color.useDimColVal",!1),!Kx.getValue(e,"color.auto")&&"byDimension"===Kx.getValue(e,"color.mode")&&"libraryItem"===Kx.getValue(e,"color.byDimDef.type"))},Jx=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=Xx;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Kx.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Kx.getValue(e,"color.auto");return Kx.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Kx.getValue(e,"color.mode")&&!0===Kx.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Kx.getValue(e,"legend.show")&&o(e)}}};function Zx(e){return new Jx(e)}const Qx={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},eS=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},tS=(e,t,n,r)=>{const o=g({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:eS("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:eS("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:eS("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:eS("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:eS("legend.label",o,r)}}}:void 0}}},nS=Zx("hard");const rS=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},oS=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},iS=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:rS},colorMode:{options:oS}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:Qx,simpleLabels:l,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:tS(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:nS.color.colorMode.options},persistentColors:{show:nS.color.persistentColors.show}}},simpleColors:s,legend:{show:nS.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:nS.legend.showTitle.show},dock:{show:nS.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},aS={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},sS={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},lS={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function cS(e){return{type:"items",component:"accordion",items:{data:aS,sorting:sS,addons:lS,settings:iS(e)}}}const uS=Zx("explore"),dS=cS();var pS={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:dS.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:dS.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:uS.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&uS.color.useDimColVal.show(e))}}}}}}};const fS="slices";function hS(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function mS(e){return e.data.num.label}function gS(e){return e.data.radius.label}function vS(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?mS:hS;if("share"===e.dataPoint.labelMode)return hS;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?gS:mS;return mS}(n,r)(e,t)}function yS(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class bS{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:yS(n),label:vS(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=de(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=de(e.options,{effect:null}),n?t.getProperties().then((e=>de(e,{effectPath:null,effectProperties:null,dataPoint:de(!0,{},e.originalModelSettings.dataPoint),legend:de(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class xS extends bS{init(e,t,n,r){return e.options=de(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(fS).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class SS extends bS{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(fS).data.items.map((e=>e.value)),o=r.indexOf(n.data.value);-1!==o&&(this.selectedIndex=o,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(fS).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===fS)).map(((n,r)=>{const o=vS(n,this.chart.formatter,e,t);return{text:`${yS(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=de(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const wS="/effects/highlight-value",ES="/effects/maxmin";var kS={isCompatible:({effectPath:e})=>e===ES||e===wS,create:e=>e.effectPath===ES?new xS(e):e.effectPath===wS?new SS(e):null};function CS(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function RS(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function TS(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function PS({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){TS(e),RS(t),Kb.addCallbackCustomTooltip(t)},move(e,t){TS(e),RS(t),Kb.moveCallbackCustomTooltip(t,e)},remove(e,t){Kb.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){TS(e),RS(r),Kb.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){RS(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const OS=e=>e.qMax<=0,IS=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(OS));function DS(e){return{definition:cS(e),softDefinition:pS,support:{snapshot:IS,export:IS,exportData:!0,sharing:IS,viewData:!0,effects:!0},effects:kS,extendMetrics:CS,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Y.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:PS(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>Y.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function LS(e){return{properties:{version:"1.28.2",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:hx.STROKE.COLOR},cornerRadius:hx.CORNER_RADIUS,innerRadius:hx.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[PS(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=Y.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:PS(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>Y.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(X).forEach((t=>{e.add(X[t])}))}}(e.translator);const n=Ob();return{qae:LS(e),ext:DS(e),component(){const e=function({picasso:e}){var t;const n=O(),r=I(),o=D(),[i,c]=L(),u=qb(),d=M(),p=q(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=L(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),A((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),N((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=z(),o=j(),i=q(),a=I(),[s,l]=L(),c=$(),u=_(),m=F(),g=O(),v=H(),{qLocaleInfo:y}=B(),b=W();return N((()=>{if(!n)return;a.style.overflow="hidden";const s=d({app:o,translator:i}),x=p({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),S=f({picassoInstance:n.picasso,plugins:u,pluginArgs:ox(c)}),w=rx({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:b,options:g}),E=h({theme:v,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),k=ax({chart:n.chart,translator:i,layout:c,constraints:m,options:g,themeService:E,colorService:x,custom:w}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:E,flags:e}),R=ix({layout:c});l({alternativeService:s,colorService:x,disclaimerService:R,pluginService:S,themeService:E,tooltipService:k,styleService:C})}),[r,o,n,c,i.language(),m,g.direction,v.name()]),s}({flags:t,picasso:n,instance:e});Ux({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=$(),n=O(),r=U();N((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Gx({instance:e,services:r})}}}))}}}));
|
|
94
|
+
`),gg.rippleVisible,kg,550,(({theme:e})=>e.transitions.easing.easeInOut),gg.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),gg.child,gg.childLeaving,Eg,550,(({theme:e})=>e.transitions.easing.easeInOut),gg.childPulsate,Cg,(({theme:e})=>e.transitions.easing.easeInOut)),Pg=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Qn(n,vg),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=ih(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Jd.jsx(Tg,{classes:{ripple:bf(o.ripple,gg.ripple),rippleVisible:bf(o.rippleVisible,gg.rippleVisible),ripplePulsate:bf(o.ripplePulsate,gg.ripplePulsate),child:bf(o.child,gg.child),childLeaving:bf(o.childLeaving,gg.childLeaving),childPulsate:bf(o.childPulsate,gg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=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),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=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)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Jd.jsx(Rg,Fn({className:bf(gg.root,o.root,i),ref:h},a,{children:Jd.jsx(ol,{component:null,exit:!0,children:s})}))}));function Og(e){return Sf("MuiButtonBase",e)}const Ig=wf("MuiButtonBase",["root","disabled","focusVisible"]),Dg=["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"],Lg=Jm("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"},[`&.${Ig.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mg=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:k,onMouseUp:E,onTouchEnd:C,onTouchMove:R,onTouchStart:T,tabIndex:P=0,TouchRippleProps:O,touchRippleRef:I,type:D}=n,L=Qn(n,Dg),M=y.useRef(null),q=y.useRef(null),A=th(q,I),{isFocusVisibleRef:N,onFocus:z,onBlur:j,ref:$}=hh(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),M.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=H&&!c&&!l;function V(e,t,n=u){return eh((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&q.current.pulsate()}),[c,d,_,H]);const U=V("start",w),G=V("stop",m),K=V("stop",g),Y=V("stop",E),X=V("stop",(e=>{_&&e.preventDefault(),k&&k(e)})),J=V("start",T),Z=V("stop",C),Q=V("stop",R),ee=V("stop",(e=>{j(e),!1===N.current&&F(!1),f&&f(e)}),!1),te=eh((e=>{M.current||(M.current=e.currentTarget),z(e),!0===N.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=M.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=eh((e=>{d&&!re.current&&_&&q.current&&" "===e.key&&(re.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=eh((e=>{d&&" "===e.key&&q.current&&_&&!e.defaultPrevented&&(re.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(L.href||L.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=th(t,$,M),ce=Fn({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:P,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=mh({root:["root",t&&"disabled",n&&"focusVisible"]},Og,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Jd.jsxs(Lg,Fn({as:ae,className:bf(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:P,type:D},se,L,{children:[i,W?Jd.jsx(Pg,Fn({ref:A,center:o},O)):null]}))}));function qg(e){return Sf("MuiTypography",e)}wf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ag=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ng=Jm("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${dp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Fn({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}))),zg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},jg={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$g=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiTypography"}),r=(e=>jg[e]||e)(n.color),o=hf(Fn({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=zg}=o,f=Qn(o,Ag),h=Fn({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||zg[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return mh({root:["root",i,"inherit"!==e.align&&`align${dp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},qg,a)})(h);return Jd.jsx(Ng,Fn({as:m,ref:t,ownerState:h,className:bf(g.root,a)},f))})),_g=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Fg(e){const t=[],n=[];return Array.from(e.querySelectorAll(_g)).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 Hg(){return!0}function Bg(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Fg,isEnabled:a=Hg,open:s}=e,l=y.useRef(!1),c=y.useRef(null),u=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=th(t.ref,h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!n)}),[n,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Jf(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Jf(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.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!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(h.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Jd.jsxs(y.Fragment,{children:[Jd.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Jd.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const Wg=y.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=th(y.isValidElement(n)?n.ref:null,t);if(Kf((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Kf((()=>{if(i&&!o)return Qf(t,i),()=>{Qf(t,null)}}),[t,i,o]),o){if(y.isValidElement(n)){const e={ref:s};return y.cloneElement(n,e)}return Jd.jsx(y.Fragment,{children:n})}return Jd.jsx(y.Fragment,{children:i?T.createPortal(n,i):i})}));function Vg(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ug(e){return parseInt(Zf(e).getComputedStyle(e).paddingRight,10)||0}function Gg(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&&Vg(e,o)}))}function Kg(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Yg(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Jf(e);return t.body===e?Zf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Jf(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ug(r)+e}px`;const t=Jf(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ug(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Jf(r).body;else{const t=r.parentElement,n=Zf(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 Xg=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&&Vg(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);Gg(t,e.mount,e.modalRef,r,!0);const o=Kg(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=Kg(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Yg(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Kg(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&&Vg(e.modalRef,t),Gg(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&&Vg(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jg(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Xg,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=th(h,d),[g,v]=y.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},k=eh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Jf(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),C=eh((e=>{f.current=e,e&&(u&&E()?w():h.current&&Vg(h.current,x))})),R=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{R()}),[R]),y.useEffect((()=>{u?k():b&&i||R()}),[u,R,b,i,k]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},P=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=pg(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Fn({},n,t);return Fn({role:"presentation"},r,{onKeyDown:T(r),ref:m})},getBackdropProps:(e={})=>Fn({"aria-hidden":!0},e,{onClick:P(e),open:u}),getTransitionProps:()=>({onEnter:Xf((()=>{v(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Xf((()=>{v(!0),s&&s(),i&&R()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}const Zg=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Qg={entering:{opacity:1},entered:{opacity:1}},ev=y.forwardRef((function(e,t){const n=bm(),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:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Zs}=e,b=Qn(e,Zg),x=y.useRef(null),S=th(x,a.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},k=w(d),E=w(((e,t)=>{ig(e);const r=ag({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=w(u),R=w(h),T=w((e=>{const t=ag({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),P=w(f);return Jd.jsx(v,Fn({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:C,onEntering:k,onExit:T,onExited:P,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},b,{children:(e,t)=>y.cloneElement(a,Fn({style:Fn({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Qg[e],m,a.props.style),ref:S},t))}))}));function tv(e){return Sf("MuiBackdrop",e)}wf("MuiBackdrop",["root","invisible"]);const nv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rv=Jm("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Fn({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"}))),ov=y.forwardRef((function(e,t){var n,r,o;const i=xm({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=ev,transitionDuration:g}=i,v=Qn(i,nv),y=Fn({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return mh({root:["root",n&&"invisible"]},tv,t)})(y),x=null!=(n=f.root)?n:u.root;return Jd.jsx(m,Fn({in:p,timeout:g},v,{children:Jd.jsx(rv,Fn({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:bf(b.root,s,null==x?void 0:x.className),ownerState:Fn({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function iv(e){return Sf("MuiButton",e)}const av=wf("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"]),sv=y.createContext({}),lv=y.createContext(void 0),cv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uv=e=>Fn({},"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}}),dv=Jm(Mg,{shouldForwardProp:e=>Xm(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dp(n.color)}`],t[`size${dp(n.size)}`],t[`${n.variant}Size${dp(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 Fn({},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":Fn({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ah(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})`:Ah(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})`:Ah(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":Fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${av.focusVisible}`]:Fn({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${av.disabled}`]:Fn({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 ${Ah(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"},[`&.${av.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${av.disabled}`]:{boxShadow:"none"}})),pv=Jm("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dp(n.size)}`]]}})((({ownerState:e})=>Fn({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},uv(e)))),fv=Jm("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dp(n.size)}`]]}})((({ownerState:e})=>Fn({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},uv(e)))),hv=y.forwardRef((function(e,t){const n=y.useContext(sv),r=y.useContext(lv),o=xm({props:Uf(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Qn(o,cv),S=Fn({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Fn({},a,mh({root:["root",i,`${i}${dp(t)}`,`size${dp(o)}`,`${i}Size${dp(o)}`,`color${dp(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dp(o)}`],endIcon:["icon","endIcon",`iconSize${dp(o)}`]},iv,a))})(S),k=g&&Jd.jsx(pv,{className:w.startIcon,ownerState:S,children:g}),E=p&&Jd.jsx(fv,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Jd.jsxs(dv,Fn({ownerState:S,className:bf(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:bf(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[k,i,E]}))}));function mv(e){return Sf("MuiModal",e)}wf("MuiModal",["root","hidden","backdrop"]);const gv=["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"],vv=Jm("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})=>Fn({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),yv=Jm(ov,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bv=y.forwardRef((function(e,t){var n,r,o,i,a,s;const l=xm({name:"MuiModal",props:e}),{BackdropComponent:c=yv,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:k=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:T,open:P,slotProps:O,slots:I}=l,D=Qn(l,gv),L=Fn({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:k,disableScrollLock:E,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:q,getTransitionProps:A,portalRef:N,isTopModal:z,exited:j,hasTransition:$}=Jg(Fn({},L,{rootRef:t})),_=Fn({},L,{exited:j}),F=(e=>{const{open:t,exited:n,classes:r}=e;return mh({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mv,r)})(_),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),$){const{onEnter:e,onExited:t}=A();H.onEnter=e,H.onExited=t}const B=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:vv,W=null!=(o=null!=(i=null==I?void 0:I.backdrop)?i:g.Backdrop)?o:c,V=null!=(a=null==O?void 0:O.root)?a:v.root,U=null!=(s=null==O?void 0:O.backdrop)?s:v.backdrop,G=mg({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:_,className:bf(d,null==V?void 0:V.className,null==F?void 0:F.root,!_.open&&_.exited&&(null==F?void 0:F.hidden))}),K=mg({elementType:W,externalSlotProps:U,additionalProps:u,getSlotProps:e=>q(Fn({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:bf(null==U?void 0:U.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:_});return R||P||$&&!j?Jd.jsx(Wg,{ref:N,container:h,disablePortal:w,children:Jd.jsxs(B,Fn({},G,{children:[!C&&c?Jd.jsx(W,Fn({},K)):null,Jd.jsx(Bg,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:z,open:P,children:y.cloneElement(f,H)})]}))}):null}));function xv(e){return Sf("MuiDivider",e)}wf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Sv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wv=Jm("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})=>Fn({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)`:Ah(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})=>Fn({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Fn({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Fn({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Fn({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),kv=Jm("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Fn({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)`}))),Ev=y.forwardRef((function(e,t){const n=xm({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:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Qn(n,Sv),h=Fn({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return mh({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"]},xv,r)})(h);return Jd.jsx(wv,Fn({as:a,className:bf(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Jd.jsx(kv,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ev.muiSkipListHighlight=!0;const Cv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Rv(e){return`scale(${e}, ${e**2})`}const Tv={entering:{opacity:1,transform:Rv(1)},entered:{opacity:1,transform:"none"}},Pv="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ov=y.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Zs}=e,g=Qn(e,Cv),v=ih(),b=y.useRef(),x=bm(),S=y.useRef(null),w=th(S,o.ref,t),k=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=k(c),C=k(((e,t)=>{ig(e);const{duration:n,delay:r,easing:o}=ag({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Pv?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=k(l),T=k(p),P=k((e=>{const{duration:t,delay:n,easing:r}=ag({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Pv?o:.666*o,delay:Pv?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Rv(.75),u&&u(e)})),O=k(d);return Jd.jsx(m,Fn({appear:r,in:a,nodeRef:S,onEnter:C,onEntered:R,onEntering:E,onExit:P,onExited:O,onExiting:T,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Fn({style:Fn({opacity:0,transform:Rv(.75),visibility:"exited"!==e||a?void 0:"hidden"},Tv[e],f,o.props.style),ref:w},t))}))}));Ov.muiSupportAuto=!0;const Iv=y.createContext({});function Dv(e){return Sf("MuiList",e)}wf("MuiList",["root","padding","dense","subheader"]);const Lv=["children","className","component","dense","disablePadding","subheader"],Mv=Jm("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})=>Fn({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),qv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=Qn(n,Lv),u=y.useMemo((()=>({dense:a})),[a]),d=Fn({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return mh({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dv,t)})(d);return Jd.jsx(Iv.Provider,{value:u,children:Jd.jsxs(Mv,Fn({as:i,className:bf(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function Av(e){return Sf("MuiListItemButton",e)}const Nv=wf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),zv=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],jv=Jm(Mg,{shouldForwardProp:e=>Xm(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})=>Fn({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"}},[`&.${Nv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ah(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})`:Ah(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nv.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}))),$v=y.forwardRef((function(e,t){const n=xm({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:u,selected:d=!1,className:p}=n,f=Qn(n,zv),h=y.useContext(Iv),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);Kf((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Fn({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Fn({},n,mh({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Av,n))})(v),x=th(g,t);return Jd.jsx(Iv.Provider,{value:m,children:Jd.jsx(jv,Fn({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:bf(b.focusVisible,u),ownerState:v,className:bf(b.root,p)},f,{classes:b,children:a}))})}));function _v(e){return Sf("MuiListItemIcon",e)}wf("MuiListItemIcon",["root","alignItemsFlexStart"]);const Fv=["className"],Hv=Jm("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})=>Fn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Bv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Qn(n,Fv),i=Fn({},n,{alignItems:y.useContext(Iv).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return mh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},_v,n)})(i);return Jd.jsx(Hv,Fn({className:bf(a.root,r),ownerState:i,ref:t},o))}));function Wv(e){return Sf("MuiListItemText",e)}const Vv=wf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Uv=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Gv=Jm("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vv.primary}`]:t.primary},{[`& .${Vv.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>Fn({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),Kv=y.forwardRef((function(e,t){const n=xm({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=Qn(n,Uv),{dense:p}=y.useContext(Iv);let f=null!=s?s:r,h=c;const m=Fn({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!h,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return mh({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},Wv,t)})(m);return null==f||f.type===$g||i||(f=Jd.jsx($g,Fn({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==h||h.type===$g||i||(h=Jd.jsx($g,Fn({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:h}))),Jd.jsxs(Gv,Fn({className:bf(g.root,o),ownerState:m,ref:t},d,{children:[f,h]}))}));function Yv(e){return Sf("MuiPopover",e)}wf("MuiPopover",["root","paper"]);const Xv=["onEntering"],Jv=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zv=["slotProps"];function Qv(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ey(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ty(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ny(e){return"function"==typeof e?e():e}const ry=Jm(bv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oy=Jm(ug,{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}),iy=y.forwardRef((function(e,t){var n,r,o;const i=xm({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Ov,transitionDuration:k="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=i,R=Qn(i.TransitionProps,Xv),T=Qn(i,Jv),P=null!=(n=null==x?void 0:x.paper)?n:v,O=y.useRef(),I=th(O,P.ref),D=Fn({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:k,TransitionProps:R}),L=(e=>{const{classes:t}=e;return mh({root:["root"],paper:["paper"]},Yv,t)})(D),M=y.useCallback((()=>{if("anchorPosition"===u)return c;const e=ny(s),t=(e&&1===e.nodeType?e:Jf(O.current).body).getBoundingClientRect();return{top:t.top+Qv(t,l.vertical),left:t.left+ey(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),q=y.useCallback((e=>({vertical:Qv(e,S.vertical),horizontal:ey(e,S.horizontal)})),[S.horizontal,S.vertical]),A=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=q(t);if("none"===u)return{top:null,left:null,transformOrigin:ty(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=Zf(ny(s)),d=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>d){const e=a-d;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:ty(n)}}),[s,u,M,q,m]),[N,z]=y.useState(g),j=y.useCallback((()=>{const e=O.current;if(!e)return;const t=A(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[A]);y.useEffect((()=>(C&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,C,j]);y.useEffect((()=>{g&&j()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{j()})),t=Zf(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let $=k;"auto"!==k||w.muiSupportAuto||($=void 0);const _=f||(s?Jf(ny(s)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:ry,H=null!=(o=null==b?void 0:b.paper)?o:oy,B=mg({elementType:H,externalSlotProps:Fn({},P,{style:N?P.style:Fn({},P.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:D,className:bf(L.paper,null==P?void 0:P.className)}),W=mg({elementType:F,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:_,open:g},ownerState:D,className:bf(L.root,p)}),{slotProps:V}=W,U=Qn(W,Zv);return Jd.jsx(F,Fn({},U,!dg(F)&&{slotProps:V,disableScrollLock:C},{children:Jd.jsx(w,Fn({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{z(!1)},timeout:$},R,{children:Jd.jsx(H,Fn({},B,{children:d}))}))}))}));function ay(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 sy(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ly(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 cy(){return cy=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},cy.apply(null,arguments)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uy(Object(n),!0).forEach((function(t){ly(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function py(){py=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function v(){}function y(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(I([])));S&&S!==n&&r.call(S,a)&&(b=S);var w=y.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return v.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},k(E.prototype),c(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(w),c(w,l,"Generator"),c(w,a,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function fy(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);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)||gy(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 hy(e){return function(e){if(Array.isArray(e))return ay(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gy(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 my(e){return my="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},my(e)}function gy(e,t){if(e){if("string"==typeof e)return ay(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)?ay(e,t):void 0}}var vy=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return v.createElement(og,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},v.createElement("path",{d:r}),n?v.createElement("title",null,n):void 0,o?v.createElement("use",{fillRule:o}):void 0)},yy={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},by={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},xy=function(e){return by.R.test(e)||by.AL.test(e)};function Sy(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],by.L.test(n))return"ltr";if(xy(t))return"rtl"}return"ltr"}var wy,ky,Ey=Jm(hv,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),Cy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),Ry=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),Ty=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,p=l.hasMultiple,f=l.index,h=l.isCyclic,m=l.isLocked,g=o.resources.translator,y=o.services.focus,b=o.settings.isDisabled,x=o.state.inSelections,S=!(!c.change||!u),w=!(!c.reload||!h),k=(S||w)&&!x&&!b(),E={pointerEvents:k?"auto":"none"},T=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:S,canReload:w,direction:s,hasCyclic:d,hasMultiple:p,isLocked:m}),P=ly(ly({},"rtl"===s?"endIcon":"startIcon",m&&v.createElement(Cy,{height:12})),"rtl"===s?"startIcon":"endIcon",(S||w)&&v.createElement(Ry,{className:"".concat(x||b()?"disabled":"")})),O=R(),I=R();C((function(){t||y.shouldFor(f)&&(O.current.focus(),I.current.focusVisible())}));var D=Sy(a),L="Accessibility.".concat(k?"Alternative":"Normal",".Instructions");return v.createElement(Ey,cy({action:I,"aria-describedby":r,"aria-label":g.get(L),color:"inherit",direction:s,disabled:!k||b()||x,onClick:function(e){k&&n(e)},padding:T,ref:O,style:E,styling:i.title,title:a},P),v.createElement("span",{dir:D,style:yy.STYLE.ELLIPSIS},a))},Py=function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},Oy=Jm(hv,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),Iy=Jm(Py,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:yy.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),Dy=Jm((function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED}}})),Ly=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=fy(E(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,p=d.allowed,f=d.isFirst,h=d.isLast,m=t.settings.isDisabled,g=t.state.inSelections;return C((function(){r&&o(!1)}),[l]),p.reload?v.createElement(Oy,{direction:u,disabled:r||g||m(),isFirst:f,isLast:h,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},v.createElement(Dy,{className:"".concat(r||g||m()?"disabled":"")})):v.createElement(Iy,{direction:u,isFirst:f,isLast:h,style:{flexShrink:0},title:c})},My=function(e){var t=e.className,n=e.title;return v.createElement(vy,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},qy=Jm(hv,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),Ay={color:yy.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:yy.STYLE.ICONS.COLOR.DISABLED}},Ny=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return Ay})),zy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return Ay})),jy=Jm(My,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:yy.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),$y=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,p=t.state.inSelections,f=d()||p?"disabled":null,h=ly({},"rtl"===s?"startIcon":"endIcon","rtl"===s?v.createElement(zy,{className:f}):v.createElement(Ny,{className:f})),m=i.map((function(e,t){var o=Sy(e);return v.createElement(qy,cy({disabled:d()||p,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},h),v.createElement("span",{dir:o,style:yy.STYLE.ELLIPSIS},e))}));return v.createElement(v.Fragment,null,"rtl"===s?m.reverse():void 0,v.createElement(jy,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:m)},_y=Jm($v,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":dy({},yy.STYLE.FOCUS)}})),Fy=Jm(Bv)((function(){return{marginRight:0,justifyContent:"center"}})),Hy=Jm((function(e){var t=e.className;return v.createElement(vy,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY}})),By=Jm(Py)((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY}})),Wy=Jm(My)((function(){return{color:yy.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),Vy=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=dy({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},yy.STYLE.ELLIPSIS),d=Sy(s),p=v.createElement(Fy,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?v.createElement(Hy,{height:12}):null!=t&&t.isCyclic?v.createElement(By,{height:12}):null!=t&&t.isDrillDown?v.createElement(Wy,{height:12}):void 0}({meta:n,selected:i}));return v.createElement(v.Fragment,{key:t},v.createElement(_y,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&p,v.createElement(Kv,{dir:d,primaryTypographyProps:{style:u}},s),!c&&p))},Uy=Jm(Ev)((function(){return{marginTop:"-1px"}})),Gy=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,p=u.group,f=u.id,h=u.text,m=i.data.alternatives,g=i.meta,y=g.index,b=g.isCyclic,x=g.isDrillDown,S=i.resources.translator,w=i.services.focus,k={isChanging:!1},E=R(),C=function(){var e,t=document.activeElement;null!=E&&null!==(e=E.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},T=b||x,P=v.createElement(Vy,{id:f,key:f,meta:i.meta,onClick:C,selected:!T,source:i,text:T?p.name:h}),O=T&&p.items.map((function(e){return v.createElement(Vy,{id:e.id,nested:!0,onClick:function(t){return function(e,t){k.isChanging||(k.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||w.queueFor(y),b&&c({fieldIndex:t.index}),x&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:i,text:e.text})})),I=m.map((function(e,t){return v.createElement(v.Fragment,{key:e.id},v.createElement(Vy,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(k.isChanging||(k.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||w.queueFor(y),s({id:r})));var n,r},source:i,text:e.text}),t<m.length-1&&v.createElement(Uy,{key:"divider-".concat(e.id)}))}));return v.createElement(iy,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:C,open:o,ref:E,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},v.createElement(qv,{"aria-label":S.get("Accessibility.Popover.Instructions"),dense:!0},P,O,v.createElement(Uy,{key:"divider-".concat(f)}),I))},Ky=function(e){var t=e.source,n=fy(E(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){o(null)};C((function(){i.isOpen&&c()}),[t.info.key]);var u=v.createElement(Ly,{source:t}),d=v.createElement($y,{source:t});return v.createElement(v.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,v.createElement(Ty,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),v.createElement(Gy,{anchor:r,id:i.id,onClose:c,open:i.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var Yy=function(){if(ky)return wy;ky=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 wy=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},wy}(),Xy=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Yy);function Jy(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function Zy(e){return Array.isArray(e)}function Qy(e){return null!=e&&!Array.isArray(e)&&"object"===my(e)}function eb(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function tb(e){return void 0===e}function nb(e,t){if(Qy(e)&&Qy(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!nb(e[n[r]],t[n[r]]))return!1;return!0}if(Zy(e)&&Zy(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!nb(e[i],t[i]))return!1;return!0}return e===t}function rb(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?Xy(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);nb(t,r)||eb(o,e)||(tb(r)?s.push({op:"add",path:i,value:t}):Qy(t)&&Qy(r)?s.push.apply(s,hy(rb({oldData:r,newData:t,basePath:i}))):Zy(t)&&Zy(r)?s.push.apply(s,hy(function(e){var t=e.newArray,n=e.basePath,r=[];return nb(t,e.oldArray.slice())||(!tb(t[0])&&tb(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){tb(o[e])&&!eb(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function ob(e){var t=e.model,n=rb({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function ib(e){return ab.apply(this,arguments)}function ab(){return(ab=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){sy(i,r,o,a,s,"next",e)}function s(e){sy(i,r,o,a,s,"throw",e)}a(void 0)}))}}(py().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f;return py().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,o){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,o.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=Xy(!0,{},l),p=d.qHyperCubeDef[i][c],(f=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=p.qAttributeDimensions,p.qAttributeDimensions=[],a||(f.qAttributeExpressions=p.qAttributeExpressions,p.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=f,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=p,s({fromItem:p,toItem:f,oldProperties:l,newProperties:d,model:o}),e.next=19,Jy({model:o,properties:d});case 19:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),ob({model:o,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sb(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,p=e.qLocked,f=e.title,h="C"===r,m="H"===r,g="N"===r,v="number"==typeof e.explicitColumn?e.explicitColumn:t,y=function(t,n){h&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:h,isDrillDown:m,isLocked:!!p,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:f,items:o.slice(0,m?e.qGroupPos+1:o.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(h?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return ib({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;m&&l&&(null==l||l.drillUp("/qHyperCubeDef",v,t))},stepCycle:function(){return y("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return y("setActiveField",t)}}}}))}function lb(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return ib({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function cb(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,p=i.cache,f=i.model,h=a.forceAllowChange,m=a.isRTL,g=a.isSnapshot,v=a.type,y=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:m}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,o,i=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==i||!i.focus||(null==i?void 0:i.index)!==e);return a&&(null==t||null===(o=t.set)||void 0===o||o.call(t,n,{focus:!1})),a}}}({cache:p,key:o}),x=("dimension"===v?sb:lb)({callbacks:t,data:n,resources:i,settings:a});"rtl"===y&&x.reverse();var S={allowed:{change:(!(null==f||!f.modifiers||null==f||!f.colorSupport)||h)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return dy(dy({data:n,layout:{direction:y},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:dy(dy(dy({},S),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return v.createElement("div",{style:u},d.map((function(e){return v.createElement(v.Fragment,{key:e.info.id},v.createElement(Ky,{source:e}),!e.meta.isLast&&v.createElement("span",{dir:e.layout.direction,style:dy(dy({},c.title),{},{lineHeight:"normal"})},", "))})))}var ub,db='"Source Sans Pro", "Arial", "sans-serif"',pb="12px",fb=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return cb({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},hb={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:db,fontSize:pb},popover:{color:"#595959CC",fontFamily:db,fontSize:pb}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(fb(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return fb(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},mb=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return v.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},gb={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:o});return v.createElement("div",{dir:i,style:a},v.createElement(mb,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},vb={},yb=function(){if(ub)return vb;ub=1;var e=P;return vb.createRoot=e.createRoot,vb.hydrateRoot=e.hydrateRoot,vb}(),bb=vm({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:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function xb(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,o=n.y,i=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function Sb(){var e={rendererBox:xb(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=xb(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=yb.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return v.createElement(v.StrictMode,null,v.createElement(Qm,{theme:bb},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function wb(e){return wt(e).l<70}function kb(e,t){const n=wt(e).l/100,r=wt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Eb(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Cb={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(kb(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=Eb({r:s,a:e},n),i=Eb({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:wb(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Rb(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function Tb(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Rb(s)}}var Pb={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Tb({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Ob(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Q(e))};e.interaction("hammer",Q(Hammer))}(t)),e.use((function(e){e.renderer("react",gc()),e.component("data-title",fc(e.renderer("svg")()))})),e.renderer("react-qcm",Sb),e.component("axis-title",hb),e.component("disclaimer",gb),e.component("pie-dividers",Cb),e.component("negative-indicators",Pb),e}var Ib={};function Db(){Db.init.call(this)}Ib.isObject=function(e){return"object"==typeof e&&null!==e},Ib.isNumber=function(e){return"number"==typeof e},Ib.isUndefined=function(e){return void 0===e},Ib.isFunction=function(e){return"function"==typeof e};var Lb=Db;Db.EventEmitter=Db,Db.prototype._events=void 0,Db.prototype._maxListeners=void 0,Db.defaultMaxListeners=10,Db.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Db.prototype.setMaxListeners=function(e){if(!Ib.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Db.prototype.emit=function(e){var t,n,r,o,i,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Ib.isUndefined(n))return!1;if(Ib.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Ib.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Db.prototype.addListener=function(e,t){var n;if(!Ib.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Ib.isFunction(t.listener)?t.listener:t),this._events[e]?Ib.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Ib.isObject(this._events[e])&&!this._events[e].warned)&&((n=Ib.isUndefined(this._maxListeners)?Db.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Ib.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Ib.isFunction(console.trace)&&console.trace()));return this},Db.prototype.on=Db.prototype.addListener,Db.prototype.once=function(e,t){if(!Ib.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Db.prototype.removeListener=function(e,t){var n,r,o,i;if(!Ib.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Ib.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Ib.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Db.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Ib.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Db.prototype.listeners=function(e){return this._events&&this._events[e]?Ib.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Db.listenerCount=function(e,t){return e._events&&e._events[t]?Ib.isFunction(e._events[t])?1:e._events[t].length:0};var Mb=ee(Lb);function qb(){const e={};var t;return t=e,Object.keys(Mb.prototype).forEach((e=>{t[e]=Mb.prototype[e]})),Mb.init(t),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}const Ab={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function Nb(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const zb={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function jb(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await zb.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function $b(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return jb(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&Nb(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await zb.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await zb.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Nb(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await zb.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const _b={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push($b(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},Fb={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await _b.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>_b.checkIfPromisesExist({customTooltipModel:e})};const Hb=(e,t)=>{var n,r,o;const i=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:Ab.CHART.CHART_PARENT_TYPE,qId:Ab.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Bb=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:Ab.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Wb={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const o=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",i=Ab.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:Ab.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Wb.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Ab.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=Ab.CHART.STATE,a=Hb(t,i),s=await e.createSessionObject(a),l=Bb(t);if(s.id!==Ab.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Ab.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await Wb.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Wb.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Ab.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Ab.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Vb(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ub(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Ab.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Gb(e){const t=Ub();return e.filter((e=>t[e.id]))}const Kb={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=Kb.getAttrExprData(a);i.length||n.length?Fb.handlePromises({customTooltipModel:o,nodes:Kb.getDataNodes(s,i.length>0?i:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&Wb.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Fb.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[Ab.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[Ab.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Ab.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Gb(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[Ab.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Ab.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Vb(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===Gb(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const o=Vb(e)||[];[...o,t].forEach((e=>{const t=Gb(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Ub(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:ke.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ke.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Yb(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case Ab.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Ab.CUSTOM.TITLE:case Ab.CUSTOM.DESCRIPTION:case Ab.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const Xb={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Yb(t,e,r,n)}}};const Jb={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[Ab.CUSTOM.TITLE]:!0,[Ab.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=Kb.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Ab.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===Ab.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>Ee.getMeasure(e,t))),e,o)}};function Zb({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Jb.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function Qb(e){const t=Ab.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function ex(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var tx={attrExpr:{migrateProperties(e){var t,n;const r=de(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=ex(r);return i=function(e,t){return t.concat(e.map((e=>Qb(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=Qb(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(ex(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}))}}};const{CUSTOM:nx}=Ab;function rx({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Kb,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=Zb({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===nx.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===nx.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>Kb.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>Kb.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=Kb.getDataNodes(a,r),{attrExps:i}=Kb.getAttrExprData(t);return Fb.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>Wb.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>Kb.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>Wb.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>Wb.hide({app:n,customTooltipModel:p}),destroy:()=>Wb.destroyVisualization({customTooltipModel:p})}}}function ox(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function ix({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=ye.getValue(e,"qHyperCube.qSize.qcy");return ye.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function ax({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const sx=e=>"[object Object]"===Object.prototype.toString.call(e),lx=e=>Array.isArray(e);function cx(e,t){if(e===t)return!0;if(lx(e)){if(!lx(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cx(e[n],t[n]))return!1;return!0}if(sx(e)){if(!sx(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!cx(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function ux({enable:e=!0}={}){const t=z(),n=()=>Date.now().toString()+Math.random(),[r,o]=L(n()),i={properties:void 0};return N((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=de(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=de(!0,{},e),l=de(!0,{},t);return a.exclude=!cx(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!cx(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function dx({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const px=.8,fx=.55,hx={CORNER_RADIUS:0,INNER_RADIUS:fx,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},mx=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=px,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:fx;e.donut.showAsDonut&&(i=px-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:px,gx=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:fx;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=px-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},vx=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=ye.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const v=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?Xb.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:gx({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?hx.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:hx.STROKE.WIDTH.NONE,stroke:null!==(r=null==v||null===(o=v.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:hx.STROKE.COLOR,outerRadius:mx({layout:e},t,v),cornerRadius:null!==(i=null==v||null===(a=v.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function yx({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:fx,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=px-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function bx(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function xx({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}function Sx(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function wx(e){return e.node.data.num.label}function kx(e){return e.node.data.radius.label}function Ex(e,t,n){if(e.dataPoint.auto)return n?wx:Sx;if("share"===e.dataPoint.labelMode)return Sx;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?kx:wx}return null}function Cx({data:e}){return e?e.label:""}function Rx(e){const t=parseInt(e,10);if(!isNaN(t))return t}function Tx(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:fx)>.3}function Px({node:e,data:t}){return de({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Ox(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Rx(r.fontSize),fontFamily:r.fontFamily,label:Cx,linkData:({node:e,data:t})=>de({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(Ex(e,t,!1)){const r=function(e,t,n){return{label:Ex(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Tx(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Tx(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=Te(de(t,r),n.theme);i.linkData=Px,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Gt(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Ix({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=Ex(e,t,!0),o=(e=>t=>e.getContrastingColorTo(t.node.attrs.fill))(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Gt(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Rx(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:Cx,linkData:({data:e})=>e},{fontSize:Rx(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Ox(e,n,t))}const Dx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Lx(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}function Mx(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Lx(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*px;return(i-r)**2+(a-o)**2<=s**2}const qx=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Lx(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Ax=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Nx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function zx(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Mx(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const jx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Mx(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),$x=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),_x=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[jx(e,{}),qx(e,t,{}),...n]:[Dx(e,{}),Nx(e,{}),jx(e,{}),Ax(e,{}),$x(e,{}),qx(e,t,{}),...n]});function Fx(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[_x(t,r,i.gestures),zx(t),i.native]}function Hx({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function Bx({layout:e},t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const o=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function Wx({layout:e},t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!e.dimensionTitle)return!1;const o=t.alternativeService.getAlternatives(),i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"axis-title",renderer:"react-qcm",layout:{dock:"top",minimumLayoutMode:"SMALL"},data:{infos:e.qHyperCube.qDimensionInfo,alternatives:o.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>n.constraints.active,isRTL:n.rtl,isSnapshot:!!e.snapshotData,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:i.color,fontFamily:i.fontFamily,fontSize:i.fontSize}}}}function Vx({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return de(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&de(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[vx({layout:e},r),yx({layout:e},r),bx(r),xx({layout:e},r),Bx({layout:e},r,t),Wx({layout:e},r,t),...c.components,dx({scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),{key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}},{key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}},Ix({layout:{components:e.components,dataPoint:de({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:Fx(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:Hx({settings:i},r),strategy:me(0,r)}}function Ux({instance:e,services:t,picasso:n,flags:o}){const i=O(),a=z(),s=j(),l=q(),c=H(),u=$(),d=D(),p=F(),{qLocaleInfo:f}=B(),h=ux({enable:u&&!u.snapshotData}),[g]=V((()=>{if(!t)return Promise.resolve();tx.attrExpr.updateProperties(a,u);const e=({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}});return Promise.resolve(a&&!u.snapshotData?a.getEffectiveProperties():{}).then((async n=>Promise.all([t.colorService.initialize({createConfig:e}),Promise.resolve(n),t.pluginService.initialize(),t.alternativeService.initialize({properties:n})])))}),[t,h]);N((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),N((()=>{if(!e||!g)return;const{chart:h,viewState:v,interactions:y,viewCache:b}=e,{alternativeService:x,colorService:S,disclaimerService:w,pluginService:k,themeService:E,tooltipService:C,styleService:R}=t,T=i.viewState||{};u.snapshotData||(v.preventSet("legendScrollOffset",T.legendScrollOffset||0),v.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,v),C.expando.set("properties",g[1]);const P=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),O=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...S.getData()],I={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(I.slice.outerRadius="qMeasureInfo/1"),w.initialize({args:{ds:P,encodings:I}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),I),L=d?()=>{const e=h.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},M=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>Vx({layout:u,context:{rtl:"rtl"===i.direction,theme:c,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:P,model:a,app:s,chart:h,onSelect:L,isLocked:q,interactions:y,constraints:p,translator:l,viewState:v,dataRowCount:D,encodings:I,alternativeService:x,colorService:S,disclaimerService:w,pluginService:k,themeService:E,styleService:R,tooltipService:C,debouncer:m,properties:g[1],selections:d,logicalSize:M,flags:o,viewCache:b,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Ut.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:v,options:i,layout:u,viewCache:b,chart:h})}});e.generateSettings=A;const N=A();h.update({data:O,settings:N}),b.set("chartWidth",h.element.clientWidth),b.set("chartHeight",h.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Ut.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,h,{encodings:I}):u.effectPath||h.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}function Gx({instance:e,services:t}){const n=I(),r=$();G((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:be(t,"legend-cat"),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),K((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:be(e.chart,"legend-cat")})})),[e])}const Kx={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},Yx={getDimensions:e=>Kx.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>Kx.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>Kx.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>Kx.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=Kx.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=Kx.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const Xx={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>Yx.getNumMeasures(e)>=1},showLegend:e=>{const t=Kx.getValue(e,"color.auto"),n=Kx.getValue(e,"color.expressionIsColor"),r=Kx.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!Kx.getValue(e,"color.auto")&&"byDimension"===Kx.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===Kx.getValue(e,"color.useDimColVal")&&Kx.setValue(e,"color.useDimColVal",!1),!Kx.getValue(e,"color.auto")&&"byDimension"===Kx.getValue(e,"color.mode")&&"libraryItem"===Kx.getValue(e,"color.byDimDef.type"))},Jx=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=Xx;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),r.push({value:"primary",translation:"properties.colorMode.primary"}),r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!Kx.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=Kx.getValue(e,"color.auto");return Kx.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===Kx.getValue(e,"color.mode")&&!0===Kx.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>Kx.getValue(e,"legend.show")&&o(e)}}};function Zx(e){return new Jx(e)}const Qx={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},eS=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},tS=(e,t,n,r)=>{const o=g({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:eS("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:eS("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:eS("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:eS("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:eS("legend.label",o,r)}}}:void 0}}},nS=Zx("hard");const rS=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},oS=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},iS=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:rS},colorMode:{options:oS}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:Qx,simpleLabels:l,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:tS(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:nS.color.colorMode.options},persistentColors:{show:nS.color.persistentColors.show}}},simpleColors:s,legend:{show:nS.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:nS.legend.showTitle.show},dock:{show:nS.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},aS={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},sS={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},lS={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function cS(e){return{type:"items",component:"accordion",items:{data:aS,sorting:sS,addons:lS,settings:iS(e)}}}const uS=Zx("explore"),dS=cS();var pS={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:dS.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:dS.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:uS.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&uS.color.useDimColVal.show(e))}}}}}}};const fS="slices";function hS(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function mS(e){return e.data.num.label}function gS(e){return e.data.radius.label}function vS(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?mS:hS;if("share"===e.dataPoint.labelMode)return hS;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?gS:mS;return mS}(n,r)(e,t)}function yS(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class bS{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:yS(n),label:vS(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=de(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=de(e.options,{effect:null}),n?t.getProperties().then((e=>de(e,{effectPath:null,effectProperties:null,dataPoint:de(!0,{},e.originalModelSettings.dataPoint),legend:de(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class xS extends bS{init(e,t,n,r){return e.options=de(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(fS).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class SS extends bS{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(fS).data.items.map((e=>e.value)),o=r.indexOf(n.data.value);-1!==o&&(this.selectedIndex=o,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(fS).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===fS)).map(((n,r)=>{const o=vS(n,this.chart.formatter,e,t);return{text:`${yS(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=de(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const wS="/effects/highlight-value",kS="/effects/maxmin";var ES={isCompatible:({effectPath:e})=>e===kS||e===wS,create:e=>e.effectPath===kS?new xS(e):e.effectPath===wS?new SS(e):null};function CS(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function RS(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function TS(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function PS({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){TS(e),RS(t),Kb.addCallbackCustomTooltip(t)},move(e,t){TS(e),RS(t),Kb.moveCallbackCustomTooltip(t,e)},remove(e,t){Kb.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){TS(e),RS(r),Kb.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){RS(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const OS=e=>e.qMax<=0,IS=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(OS));function DS(e){return{definition:cS(e),softDefinition:pS,support:{snapshot:IS,export:IS,exportData:!0,sharing:IS,viewData:!0,effects:!0},effects:ES,extendMetrics:CS,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=Y.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:PS(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>Y.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function LS(e){return{properties:{version:"1.28.4",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:hx.STROKE.COLOR},cornerRadius:hx.CORNER_RADIUS,innerRadius:hx.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[PS(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=Y.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:PS(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>Y.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(X).forEach((t=>{e.add(X[t])}))}}(e.translator);const n=Ob();return{qae:LS(e),ext:DS(e),component(){const e=function({picasso:e}){var t;const n=O(),r=I(),o=D(),[i,c]=L(),u=qb(),d=M(),p=q(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=L(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),A((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),N((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=z(),o=j(),i=q(),a=I(),[s,l]=L(),c=$(),u=_(),m=F(),g=O(),v=H(),{qLocaleInfo:y}=B(),b=W();return N((()=>{if(!n)return;a.style.overflow="hidden";const s=d({app:o,translator:i}),x=p({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),S=f({picassoInstance:n.picasso,plugins:u,pluginArgs:ox(c)}),w=rx({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:b,options:g}),k=h({theme:v,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),E=ax({chart:n.chart,translator:i,layout:c,constraints:m,options:g,themeService:k,colorService:x,custom:w}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:k,flags:e}),R=ix({layout:c});l({alternativeService:s,colorService:x,disclaimerService:R,pluginService:S,themeService:k,tooltipService:E,styleService:C})}),[r,o,n,c,i.language(),m,g.direction,v.name()]),s}({flags:t,picasso:n,instance:e});Ux({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=$(),n=O(),r=U();N((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),Gx({instance:e,services:r})}}}))}}}));
|