@nebula.js/sn-pie-chart 1.26.2 → 1.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  /*
2
- * @nebula.js/sn-pie-chart v1.26.2
2
+ * @nebula.js/sn-pie-chart v1.26.3
3
3
  * Copyright (c) 2023 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,i,o,a,s,l,u,c,d,p,h,f,m,g,y,v,b,x,w,S,C,E,k,T,R,D,M,q,P,N,L,I,A,O,z,j,F,H,$,_;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){i=e.getValue,o=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,u=e.tooltipService,c=e.colorService,d=e.pluginService,p=e.themeService,h=e.debouncer,f=e.fontResolver},function(e){m=e.default,g=e,y=e.Children,v=e.isValidElement,b=e.cloneElement},function(e){x=e,w=e.default},function(e){S=e.useOptions,C=e.useElement,E=e.useSelections,k=e.useState,T=e.useLayout,R=e.useTranslator,D=e.useAction,M=e.useEffect,q=e.useModel,P=e.useApp,N=e.useStaleLayout,L=e.usePlugins,I=e.useConstraints,A=e.useTheme,O=e.useAppLayout,z=e.useEmbed,j=e.usePromise,F=e.useRect,H=e.onTakeSnapshot,$=e.useImperativeHandle},function(e){_=e.default}],execute:function(){var U={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_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 V={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function W(e){return V[e]||e}function B(e){return function(t,n,r){let i,o,a,s,l=[],u=!0;function c(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.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(o));const n=W(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(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=W(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,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),u&&c()},off(){u=!1,d()},on(){u=!0,0===l.length&&c()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J=Object.prototype.hasOwnProperty,G=Object.prototype.toString,Z=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Q=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===G.call(e)},ee=function(e){if(!e||"[object Object]"!==G.call(e))return!1;var t,n=J.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||J.call(e,t)},te=function(e,t){Z&&"__proto__"===t.name?Z(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ne=function(e,t){if("__proto__"===t){if(!J.call(e,t))return;if(X)return X(e,t).value}return e[t]},re=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=ne(s,n),s!==(i=ne(t,n))&&(c&&i&&(ee(i)||(o=Q(i)))?(o?(o=!1,a=r&&Q(r)?r:[]):a=r&&ee(r)?r:{},te(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&te(s,{name:n,newValue:i}));return s},ie=K(re);const oe="center",ae="bottom";var se={NoDataExist:{label:"NoDataExist",alignment:oe,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:oe,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:oe,default:!1},LimitedData:{label:"LimitedData",alignment:ae,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ae,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ae,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ae,default:!1}};const le=[["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}]],ue={};le.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const ce={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<le.length;++n)if(e>=le[n][1].width&&t>=le[n][1].height)return le[n][0];return"SPARK"}};function de(e,t){return{layoutModes:ce.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 pe=/^[A-Z][A-z0-9_]*$/i,he={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},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||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function fe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const me=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ge=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),ye=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ve={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>me.test(e),isRtlChar:e=>ge.test(e)||ye.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ve.isLtrChar(r))return"ltr";if(ve.isRtlChar(r))return"rtl"}return"ltr"}},be={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,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("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=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?be.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=ve.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=ve.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},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:ve.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=ve.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=ve.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,be.getColorSymbol(e,t)]:[be.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=ve.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ve.detectTextDirection(e.value);let l;return l=i?r?[e.value,be.getColorSymbol(t,n)]:[be.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function xe(e){const t=parseInt(e,10);if(!isNaN(t))return t}const we=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Se(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(),i=n.styleService.label.value.getStyle(),o=i.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:o&&!e.onBackground?we(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:xe(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Ce(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ee(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}var Te=.7,Re=1/Te,De="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pe=/^#([0-9a-f]{3,8})$/,Ne=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Le=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),Ie=new RegExp(`^rgba\\(${De},${De},${De},${Me}\\)$`),Ae=new RegExp(`^rgba\\(${qe},${qe},${qe},${Me}\\)$`),Oe=new RegExp(`^hsl\\(${Me},${qe},${qe}\\)$`),ze=new RegExp(`^hsla\\(${Me},${qe},${qe},${Me}\\)$`),je={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 Fe(){return this.rgb().formatHex()}function He(){return this.rgb().formatRgb()}function $e(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_e(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Ne.exec(e))?new We(t[1],t[2],t[3],1):(t=Le.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ie.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=Ae.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ze(t[1],t[2]/100,t[3]/100,1):(t=ze.exec(e))?Ze(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?_e(je[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function _e(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Ve(e){return e instanceof ke||(e=$e(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Be(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}`}function Ye(){const e=Ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ge(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Ze(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,n,r)}function Xe(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=$e(e)),!e)return new Qe;if(e instanceof Qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Qe(a,s,l,e.opacity)}function Qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function nt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ce(ke,$e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:He,toString:He}),Ce(We,(function(e,t,n,r){return 1===arguments.length?Ve(e):new We(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Je(this.r),Je(this.g),Je(this.b),Ke(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:Be,formatHex:Be,formatHex8:function(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}${Ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ye,toString:Ye})),Ce(Qe,(function(e,t,n,r){return 1===arguments.length?Xe(e):new Qe(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new Qe(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,i=2*n-r;return new We(nt(e>=240?e-240:e+120,i,r),nt(e,i,r),nt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ke(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=Ke(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,it=180/Math.PI,ot=.96422,at=1,st=.82521,lt=4/29,ut=6/29,ct=3*ut*ut,dt=ut*ut*ut;function pt(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof bt)return xt(e);e instanceof We||(e=Ve(e));var t,n,r=yt(e.r),i=yt(e.g),o=yt(e.b),a=ft((.2225045*r+.7168786*i+.0606169*o)/at);return r===i&&i===o?t=n=a:(t=ft((.4360747*r+.3850649*i+.1430804*o)/ot),n=ft((.0139322*r+.0971045*i+.7141733*o)/st)),new ht(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ht(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ft(e){return e>dt?Math.pow(e,1/3):e/ct+lt}function mt(e){return e>ut?e*e*e:ct*(e-lt)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bt)return new bt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=pt(e)),0===e.a&&0===e.b)return new bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*it;return new bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*rt;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Ce(ht,(function(e,t,n,r){return 1===arguments.length?pt(e):new ht(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(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 We(gt(3.1338561*(t=ot*mt(t))-1.6168667*(e=at*mt(e))-.4906146*(n=st*mt(n))),gt(-.9787684*t+1.9161415*e+.033454*n),gt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ce(bt,vt,Ee(ke,{brighter(e){return new bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return wt(e(t),n)}}(e))}(wt);var St="$";function Ct(){}function Et(e,t){var n=new Ct;if(e instanceof Ct)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function kt(){}Ct.prototype=Et.prototype={constructor:Ct,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Tt=Et.prototype;function Rt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mt(){}kt.prototype={constructor:kt,has:Tt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Tt.remove,clear:Tt.clear,values:Tt.keys,size:Tt.size,empty:Tt.empty,each:Tt.each};var qt=.7,Pt=1/qt,Nt="\\s*([+-]?\\d+)\\s*",Lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3})$/,Ot=/^#([0-9a-f]{6})$/,zt=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),jt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Ft=new RegExp("^rgba\\("+[Nt,Nt,Nt,Lt]+"\\)$"),Ht=new RegExp("^rgba\\("+[It,It,It,Lt]+"\\)$"),$t=new RegExp("^hsl\\("+[Lt,It,It]+"\\)$"),_t=new RegExp("^hsla\\("+[Lt,It,It,Lt]+"\\)$"),Ut={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 Vt(e){var t;return e=(e+"").trim().toLowerCase(),(t=At.exec(e))?new Jt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ot.exec(e))?Wt(parseInt(t[1],16)):(t=zt.exec(e))?new Jt(t[1],t[2],t[3],1):(t=jt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ft.exec(e))?Bt(t[1],t[2],t[3],t[4]):(t=Ht.exec(e))?Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,t[4]):Ut.hasOwnProperty(e)?Wt(Ut[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Wt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Bt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Yt(e){return e instanceof Mt||(e=Vt(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Kt(e,t,n,r){return 1===arguments.length?Yt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Zt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xt(e,t,n,r)}function Xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Rt(Mt,Vt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Rt(Jt,Kt,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Gt(this.r)+Gt(this.g)+Gt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Rt(Xt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xt)return new Xt(e.h,e.s,e.l,e.opacity);if(e instanceof Mt||(e=Vt(e)),!e)return new Xt;if(e instanceof Xt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Xt(a,s,l,e.opacity)}(e):new Xt(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Xt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Xt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,i=2*n-r;return new Jt(Qt(e>=240?e-240:e+120,i,r),Qt(e,i,r),Qt(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var en=Math.PI/180,tn=180/Math.PI,nn=.96422,rn=1,on=.82521,an=4/29,sn=6/29,ln=3*sn*sn,un=sn*sn*sn;function cn(e){if(e instanceof dn)return new dn(e.l,e.a,e.b,e.opacity);if(e instanceof gn){if(isNaN(e.h))return new dn(e.l,0,0,e.opacity);var t=e.h*en;return new dn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Jt||(e=Yt(e));var n,r,i=mn(e.r),o=mn(e.g),a=mn(e.b),s=pn((.2225045*i+.7168786*o+.0606169*a)/rn);return i===o&&o===a?n=r=s:(n=pn((.4360747*i+.3850649*o+.1430804*a)/nn),r=pn((.0139322*i+.0971045*o+.7141733*a)/on)),new dn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function dn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function pn(e){return e>un?Math.pow(e,1/3):e/ln+an}function hn(e){return e>sn?e*e*e:ln*(e-an)}function fn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Rt(dn,(function(e,t,n,r){return 1===arguments.length?cn(e):new dn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new dn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new dn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Jt(fn(3.1338561*(t=nn*hn(t))-1.6168667*(e=rn*hn(e))-.4906146*(n=on*hn(n))),fn(-.9787684*t+1.9161415*e+.033454*n),fn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Rt(gn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gn)return new gn(e.h,e.c,e.l,e.opacity);if(e instanceof dn||(e=cn(e)),0===e.a&&0===e.b)return new gn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tn;return new gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return cn(this).rgb()}}));var yn=-.14861,vn=1.78277,bn=-.29227,xn=-.90649,wn=1.97294,Sn=wn*xn,Cn=wn*vn,En=vn*bn-xn*yn;function kn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);e instanceof Jt||(e=Yt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(En*r+Sn*t-Cn*n)/(En+Sn-Cn),o=r-i,a=(wn*(n-i)-bn*o)/xn,s=Math.sqrt(a*a+o*o)/(wn*i*(1-i)),l=s?Math.atan2(a,o)*tn-120:NaN;return new Tn(l<0?l+360:l,s,i,e.opacity)}(e):new Tn(e,t,n,null==r?1:r)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rn(e){return function(){return e}}function Dn(e,t){return function(n){return e+n*t}}function Mn(e){return 1==(e=+e)?qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rn(isNaN(t)?n:t)}}function qn(e,t){var n=t-e;return n?Dn(e,n):Rn(isNaN(e)?t:e)}function Pn(e){return function t(n){function r(t,r){var i=e((t=kn(t)).h,(r=kn(r)).h),o=qn(t.s,r.s),a=qn(t.l,r.l),s=qn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Nn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Rt(Tn,kn,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*en,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Jt(255*(t+n*(yn*r+vn*i)),255*(t+n*(bn*r+xn*i)),255*(t+n*(wn*r)),this.opacity)}})),function e(t){var n=Mn(t);function r(e,t){var r=n((e=Kt(e)).r,(t=Kt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Pn((function(e,t){var n=t-e;return n?Dn(e,n>180||n<-180?n-360*Math.round(n/360):n):Rn(isNaN(e)?t:e)})),Pn(qn);var Ln,In=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function An(e){return new On(e)}function On(e){if(!(t=In.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function zn(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}An.prototype=On.prototype,On.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var jn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zn(100*e,t)},r:zn,s:function(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ln=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Fn(e){return e}var Hn,$n=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _n(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Fn,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Fn,s=e.percent||"%";function l(e){var t=(e=An(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,p=e.comma,h=e.precision,f=e.trim,m=e.type;"n"===m?(p=!0,m="g"):jn[m]||(null==h&&(h=12),f=!0,m="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?i[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(m)?s:"",v=jn[m],b=/[defgprs%]/.test(m);function x(e){var i,s,u,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),h),f&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?$n[8+Ln/3]:"")+w+(S&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(u=e.charCodeAt(i))||u>57){w=(46===u?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}p&&!c&&(e=r(e,1/0));var C=x.length+e.length+w.length,E=C<d?new Array(d-C+1).join(t):"";switch(p&&c&&(e=r(E+e,E.length?d-w.length:1/0),E=""),n){case"<":e=x+e+w+E;break;case"=":e=x+E+e+w;break;case"^":e=E.slice(0,C=E.length>>1)+x+e+w+E.slice(C);break;default:e=E+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=An(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=Nn(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=$n[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){Hn=_n(e),Hn.format,Hn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Un=new Date,Vn=new Date;function Wn(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Wn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Un.setTime(+t),Vn.setTime(+r),e(Un),e(Vn),Math.floor(n(Un,Vn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Bn=Wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Bn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Bn:null},Bn.range;var Yn=1e3,Kn=6e4,Jn=36e5,Gn=864e5,Zn=6048e5;Wn((function(e){e.setTime(Math.floor(e/Yn)*Yn)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getUTCSeconds()})).range,Wn((function(e){e.setTime(Math.floor(e/Kn)*Kn)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getMinutes()})).range,Wn((function(e){var t=e.getTimezoneOffset()*Kn%Jn;t<0&&(t+=Jn),e.setTime(Math.floor((+e-t)/Jn)*Jn+t)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getHours()})).range;var Xn=Wn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Gn}),(function(e){return e.getDate()-1}));function Qn(e){return Wn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Zn}))}Xn.range;var er=Qn(0),tr=Qn(1),nr=Qn(2),rr=Qn(3),ir=Qn(4),or=Qn(5),ar=Qn(6);er.range,tr.range,nr.range,rr.range,ir.range,or.range,ar.range,Wn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var sr=Wn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));sr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},sr.range,Wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getUTCMinutes()})).range,Wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCHours()})).range;var lr=Wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getUTCDate()-1}));function ur(e){return Wn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Zn}))}lr.range;var cr=ur(0),dr=ur(1),pr=ur(2),hr=ur(3),fr=ur(4),mr=ur(5),gr=ur(6);cr.range,dr.range,pr.range,hr.range,fr.range,mr.range,gr.range,Wn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var yr=Wn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function vr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function br(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function xr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}yr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},yr.range;var wr,Sr,Cr,Er={"-":"",_:" ",0:"0"},kr=/^\s*\d+/,Tr=/^%/,Rr=/[\\^$*+?|[\]().{}]/g;function Dr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Mr(e){return e.replace(Rr,"\\$&")}function qr(e){return new RegExp("^(?:"+e.map(Mr).join("|")+")","i")}function Pr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Nr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=kr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Hr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $r(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=kr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kr(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Zr(e,t){return Dr(e.getDate(),t,2)}function Xr(e,t){return Dr(e.getHours(),t,2)}function Qr(e,t){return Dr(e.getHours()%12||12,t,2)}function ei(e,t){return Dr(1+Xn.count(sr(e),e),t,3)}function ti(e,t){return Dr(e.getMilliseconds(),t,3)}function ni(e,t){return ti(e,t)+"000"}function ri(e,t){return Dr(e.getMonth()+1,t,2)}function ii(e,t){return Dr(e.getMinutes(),t,2)}function oi(e,t){return Dr(e.getSeconds(),t,2)}function ai(e){var t=e.getDay();return 0===t?7:t}function si(e,t){return Dr(er.count(sr(e),e),t,2)}function li(e,t){var n=e.getDay();return e=n>=4||0===n?ir(e):ir.ceil(e),Dr(ir.count(sr(e),e)+(4===sr(e).getDay()),t,2)}function ui(e){return e.getDay()}function ci(e,t){return Dr(tr.count(sr(e),e),t,2)}function di(e,t){return Dr(e.getFullYear()%100,t,2)}function pi(e,t){return Dr(e.getFullYear()%1e4,t,4)}function hi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Dr(t/60|0,"0",2)+Dr(t%60,"0",2)}function fi(e,t){return Dr(e.getUTCDate(),t,2)}function mi(e,t){return Dr(e.getUTCHours(),t,2)}function gi(e,t){return Dr(e.getUTCHours()%12||12,t,2)}function yi(e,t){return Dr(1+lr.count(yr(e),e),t,3)}function vi(e,t){return Dr(e.getUTCMilliseconds(),t,3)}function bi(e,t){return vi(e,t)+"000"}function xi(e,t){return Dr(e.getUTCMonth()+1,t,2)}function wi(e,t){return Dr(e.getUTCMinutes(),t,2)}function Si(e,t){return Dr(e.getUTCSeconds(),t,2)}function Ci(e){var t=e.getUTCDay();return 0===t?7:t}function Ei(e,t){return Dr(cr.count(yr(e),e),t,2)}function ki(e,t){var n=e.getUTCDay();return e=n>=4||0===n?fr(e):fr.ceil(e),Dr(fr.count(yr(e),e)+(4===yr(e).getUTCDay()),t,2)}function Ti(e){return e.getUTCDay()}function Ri(e,t){return Dr(dr.count(yr(e),e),t,2)}function Di(e,t){return Dr(e.getUTCFullYear()%100,t,2)}function Mi(e,t){return Dr(e.getUTCFullYear()%1e4,t,4)}function qi(){return"+0000"}function Pi(){return"%"}function Ni(e){return+e}function Li(e){return Math.floor(+e/1e3)}!function(e){wr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=qr(i),c=Pr(i),d=qr(o),p=Pr(o),h=qr(a),f=Pr(a),m=qr(s),g=Pr(s),y=qr(l),v=Pr(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Zr,e:Zr,f:ni,H:Xr,I:Qr,j:ei,L:ti,m:ri,M:ii,p:function(e){return i[+(e.getHours()>=12)]},Q:Ni,s:Li,S:oi,u:ai,U:si,V:li,w:ui,W:ci,x:null,X:null,y:di,Y:pi,Z:hi,"%":Pi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:fi,e:fi,f:bi,H:mi,I:gi,j:yi,L:vi,m:xi,M:wi,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Ni,s:Li,S:Si,u:Ci,U:Ei,V:ki,w:Ti,W:Ri,x:null,X:null,y:Di,Y:Mi,Z:qi,"%":Pi},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:$r,e:$r,f:Yr,H:Ur,I:Ur,j:_r,L:Br,m:Hr,M:Vr,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Jr,s:Gr,S:Wr,u:Lr,U:Ir,V:Ar,w:Nr,W:Or,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:jr,Y:zr,Z:Fr,"%":Kr};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Er[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=xr(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=br(xr(o.y))).getUTCDay(),r=i>4||0===i?dr.ceil(r):dr(r),r=lr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(xr(o.y))).getDay(),r=i>4||0===i?tr.ceil(r):tr(r),r=Xn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?br(xr(o.y)).getUTCDay():t(xr(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,br(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Er?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",vr);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,br);return t.toString=function(){return e},t}}}(e),wr.format,wr.parse,Sr=wr.utcFormat,Cr=wr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ii="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Sr(Ii),+new Date("2000-01-01T00:00:00.000Z")||Cr(Ii);const Ai=ie.bind(null,!0),Oi={},{isArray:zi}=Array;function ji(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Fi(e){return void 0===e}function Hi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function $i(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Fi(e[r||t])?o:e[t],e=e[r||t]})),e}function _i(e,t){let n=!0;if(ji(e)&&ji(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{_i(e[r],t[r])||(n=!1)})),n);if(zi(e)&&zi(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!_i(e[n],t[n]))return!1;return!0}return e===t}Oi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ai({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;_i(o,a)||Hi(t,i)||(Fi(a)?r.push({op:"add",path:s,value:o}):ji(o)&&ji(a)?r=r.concat(Oi.generate(a,o,s)):zi(o)&&zi(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Fi(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(_i(t,i))return r;if(!Fi(t[0])&&Fi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Oi.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Fi(t[i])&&!Hi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Oi.apply=function(e,t){t.forEach((t=>{let n=$i(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(zi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(zi(i)&&zi(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ji(i)&&ji(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hi(a,e)&&delete a[e]})),Ai(i,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 i=$i(e,t.from);zi(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(zi(n)?n.splice(+r,1):delete n[r]);var a}))},Oi.clone=function(e){return Ai({},e)},Oi.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},Oi.updateObject=function(e,t){Object.keys(e).length?Oi.apply(e,Oi.generate(e,t)):Ai(e,t)};const Ui=[[2,4,6],[2,4],[3]],Vi=[,[,,[[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 Wi(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Bi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Wi(e[r],t,n)}!function(){let e,t;for(Bi(Ui,1,10),e=0;e<Vi.length;e++)if(Vi[e])for(t=0;t<Vi[e].length;t++)Array.isArray(Vi[e][t])&&Bi(Vi[e][t])}();var Yi={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","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 Ki(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...u}=t,c=ie(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Yi;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&o(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&o(e,n,null)}))}})),c}var Ji={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.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"!==i&&"bottom"!==i||o.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?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+d)}))}}},bars:{trackBy: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}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||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-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},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,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},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,i=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-=i,e.y2-=i):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:i/e.major.size,n="y"===e.minor.p?i/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}))}},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,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},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,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>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=Ki(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ki(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}},Gi={exports:{}};function Zi(){}function Xi(){}Xi.resetWarningCache=Zi;Gi.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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,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:Xi,resetWarningCache:Zi};return n.PropTypes=n,n}();var Qi=K(Gi.exports),eo={black:"#000",white:"#fff"},to={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},no={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},ro={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},io={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},oo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ao={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},so={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 lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lo.apply(this,arguments)}function uo(e){return uo="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},uo(e)}function co(e){return e&&"object"===uo(e)&&e.constructor===Object}function po(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?lo({},e):e;return co(e)&&co(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(co(t[i])&&i in e?r[i]=po(e[i],t[i],n):r[i]=t[i])})),r}function ho(e){var t=function(e,t){if("object"!==uo(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uo(t)?t:String(t)}function fo(e,t,n){return(t=ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(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 go(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 yo(e){if(e.type)return e;if("#"===e.charAt(0))return yo(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(mo(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 vo(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 bo(e){var t="hsl"===(e=yo(e)).type?yo(function(e){var t=(e=yo(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),vo({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 xo(e,t){return e=yo(e),t=go(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,vo(e)}function wo(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function So(e,t){if(null==e)return{};var n,r,i=wo(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Co=["xs","sm","md","lg","xl"];function Eo(e,t,n){var r;return lo({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")),lo({paddingLeft:t(2),paddingRight:t(2)},n,fo({},e.up("sm"),lo({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},fo(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),fo(r,e.up("sm"),{minHeight:64}),r)},n)}var ko={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:eo.white,default:so[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}},To={text:{primary:eo.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:so[800],default:"#303030"},action:{active:eo.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 Ro(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=yo(e),t=go(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 vo(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=yo(e),t=go(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 vo(e)}(e.main,o)))}function Do(e){var t=e.primary,n=void 0===t?{light:ro[300],main:ro[500],dark:ro[700]}:t,r=e.secondary,i=void 0===r?{light:no.A200,main:no.A400,dark:no.A700}:r,o=e.error,a=void 0===o?{light:to[300],main:to[500],dark:to[700]}:o,s=e.warning,l=void 0===s?{light:ao[300],main:ao[500],dark:ao[700]}:s,u=e.info,c=void 0===u?{light:io[300],main:io[500],dark:io[700]}:u,d=e.success,p=void 0===d?{light:oo[300],main:oo[500],dark:oo[700]}:d,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=So(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=bo(e),r=bo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,To.text.primary)>=g?To.text.primary:ko.text.primary;return t}var w=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=lo({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(mo(4,t));if("string"!=typeof e.main)throw new Error(mo(5,JSON.stringify(e.main)));return Ro(e,"light",n,v),Ro(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:To,light:ko};return po(lo({common:eo,type:f,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(c),success:w(p),grey:so,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[f]),b)}function Mo(e){return Math.round(1e5*e)/1e5}function qo(e){return Mo(e)}var Po={textTransform:"uppercase"},No='"Roboto", "Helvetica", "Arial", sans-serif';function Lo(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?No:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=So(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return lo({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===No?{letterSpacing:"".concat(Mo(r/t),"em")}:{},o,y)},C={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(p,14,1.75,.4,Po),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,Po)};return po(lo({htmlFontSize:g,pxToRem:w,round:qo,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function Io(){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 Ao=["none",Io(0,2,1,-1,0,1,1,0,0,1,3,0),Io(0,3,1,-2,0,2,2,0,0,1,5,0),Io(0,3,3,-2,0,3,4,0,0,1,8,0),Io(0,2,4,-1,0,4,5,0,0,1,10,0),Io(0,3,5,-1,0,5,8,0,0,1,14,0),Io(0,3,5,-1,0,6,10,0,0,1,18,0),Io(0,4,5,-2,0,7,10,1,0,2,16,1),Io(0,5,5,-3,0,8,10,1,0,3,14,2),Io(0,5,6,-3,0,9,12,1,0,3,16,2),Io(0,6,6,-3,0,10,14,1,0,4,18,3),Io(0,6,7,-4,0,11,15,1,0,4,20,3),Io(0,7,8,-4,0,12,17,2,0,5,22,4),Io(0,7,8,-4,0,13,19,2,0,5,24,4),Io(0,7,9,-4,0,14,21,2,0,5,26,4),Io(0,8,9,-5,0,15,22,2,0,6,28,5),Io(0,8,10,-5,0,16,24,2,0,6,30,5),Io(0,8,11,-5,0,17,26,2,0,6,32,5),Io(0,9,11,-5,0,18,28,2,0,7,34,6),Io(0,9,12,-6,0,19,29,2,0,7,36,6),Io(0,10,13,-6,0,20,31,3,0,8,38,7),Io(0,10,13,-6,0,21,33,3,0,8,40,7),Io(0,10,14,-6,0,22,35,3,0,8,42,7),Io(0,11,14,-7,0,23,36,3,0,9,44,8),Io(0,11,15,-7,0,24,38,3,0,9,46,8)],Oo={borderRadius:4};function zo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jo(e,t){if(e){if("string"==typeof e)return zo(e,t);var n=Object.prototype.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)?zo(e,t):void 0}}function Fo(e){return function(e){if(Array.isArray(e))return zo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||jo(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 Ho(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,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||jo(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 $o(){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 _o={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)"},Uo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vo(e){return"".concat(Math.round(e),"ms")}var Wo={easing:_o,duration:Uo,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?Uo.standard:n,i=t.easing,o=void 0===i?_o.easeInOut:i,a=t.delay,s=void 0===a?0:a;return So(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Vo(r)," ").concat(o," ").concat("string"==typeof s?s:Vo(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))}},Bo={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yo(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=So(e,["breakpoints","mixins","palette","spacing","typography"]),d=Do(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,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=So(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=Co.indexOf(t);return r===Co.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Co[r+1]]?n[Co[r+1]]:t)-a/100).concat(i,")")}return lo({keys:Co,values:n,up:l,down:function(e){var t=Co.indexOf(e)+1,r=n[Co[t]];return t===Co.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=$o(s),f=po({breakpoints:p,direction:"ltr",mixins:Eo(p,h,i),overrides:{},palette:d,props:{},shadows:Ao,typography:Lo(d,u),spacing:h,shape:Oo,transitions:Wo,zIndex:Bo},c),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return po(e,t)}),f)}var Ko="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Jo=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Go(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=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!==Jo.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ko]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Zo(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Xo="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},Qo="object"===("undefined"==typeof window?"undefined":Xo(window))&&"object"===("undefined"==typeof document?"undefined":Xo(document))&&9===document.nodeType;function ea(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,ho(r.key),r)}}function ta(e,t,n){return t&&ea(e.prototype,t),n&&ea(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},na(e,t)}function ra(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,na(e,t)}function ia(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var oa={}.constructor;function aa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(aa);if(e.constructor!==oa)return e;var t={};for(var n in e)t[n]=aa(e[n]);return t}function sa(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=aa(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var la=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ua=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+=la(e[n]," ");else t=la(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function ca(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function da(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function pa(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=ca(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=da(p+":"+u+ua(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=l),r+=da(f+":"+u+ua(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=da(g+":"+u+ua(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),da(""+e+u+"{"+r,--o)+da("}",o)):r}var ha=/([[\].#*$><+~=|^:(),"'`\s])/g,fa="undefined"!=typeof CSS&&CSS.escape,ma=function(e){return fa?fa(e):e.replace(ha,"\\$1")},ga=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}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 i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),ya=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(ia(ia(i)),s),i.selectorText="."+ma(i.id)),i}ra(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]=ua(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?lo({},e,{allowEmpty:!0}):e;return pa(this.selectorText,this.style,n)},ta(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}(ga),va={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new ya(e,t,n)}},ba={indent:1,children:!0},xa=/@([\w-]+)/,wa=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(xa);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Wa(lo({},n,{parent:this})),t)this.rules.add(i,t[i]);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=ba);var t=ca(e).linebreak;if(null==e.indent&&(e.indent=ba.indent),null==e.children&&(e.children=ba.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Sa=/@container|@media|@supports\s+/,Ca={onCreateRule:function(e,t,n){return Sa.test(e)?new wa(e,t,n):null}},Ea={indent:1,children:!0},ka=/@keyframes\s+([\w-]+)/,Ta=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(ka);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:ma(a(this,o)),this.rules=new Wa(lo({},n,{parent:this})),t)this.rules.add(s,t[s],lo({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ea);var t=ca(e).linebreak;if(null==e.indent&&(e.indent=Ea.indent),null==e.children&&(e.children=Ea.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}(),Ra=/@keyframes\s+/,Da=/\$([\w-]+)/g,Ma=function(e,t){return"string"==typeof e?e.replace(Da,(function(e,n){return n in t?t[n]:e})):e},qa=function(e,t,n){var r=e[t],i=Ma(r,n);i!==r&&(e[t]=i)},Pa={onCreateRule:function(e,t,n){return"string"==typeof e&&Ra.test(e)?new Ta(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&qa(e,"animation-name",n.keyframes),"animation"in e&&qa(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 Ma(e,r.keyframes);default:return e}}},Na=function(e){function t(){return e.apply(this,arguments)||this}return ra(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?lo({},e,{allowEmpty:!0}):e;return pa(this.key,this.style,n)},t}(ga),La={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Na(e,t,n):null}},Ia=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=ca(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=pa(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return pa(this.at,this.style,e)},e}(),Aa=/@font-face/,Oa={onCreateRule:function(e,t,n){return Aa.test(e)?new Ia(e,t,n):null}},za=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 pa(this.key,this.style,e)},e}(),ja={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new za(e,t,n):null}},Fa=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}(),Ha={"@charset":!0,"@import":!0,"@namespace":!0},$a={onCreateRule:function(e,t,n){return e in Ha?new Fa(e,t,n):null}},_a=[va,Ca,Pa,La,Oa,ja,$a],Ua={process:!0},Va={force:!0,process:!0},Wa=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,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=lo({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,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&&(c.selector="."+ma(this.classes[d]));var p=sa(d,t,c);if(!p)return null;this.register(p);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=lo({},n,{index:i})),this.add(e,t,o)},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 ya?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ta&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof ya?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ta&&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=Ua);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Va)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Va)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=ca(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Ba=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=lo({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Wa(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 i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}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}(),Ya=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 i=this.registry.onCreateRule[r](e,t,n);if(i)return i}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 i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](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}(),Ka=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=wo(t,["attached"]),i=ca(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},ta(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ja=new Ka,Ga="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Za="2f1acc6c3a606b082e5eef5e54414ffb";null==Ga[Za]&&(Ga[Za]=0);var Xa=Ga[Za]++,Qa=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Xa+i+t:o+n.key+"-"+Xa+(i?"-"+i:"")+"-"+t}},es=function(e){var t;return function(){return t||(t=e()),t}},ts=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ns=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ua(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},rs=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},is=function(e,t){return e.selectorText=t,e.selectorText===t},os=es((function(){return document.querySelector("head")}));function as(e){var t=Ja.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 i=function(e){for(var t=os(),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(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var ss=es((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ls=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]},us=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},cs=function(){function e(e){this.getPropertyValue=ts,this.setProperty=ns,this.removeProperty=rs,this.setSelector=is,this.hasInsertedRules=!1,this.cssRules=[],e&&Ja.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||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 o=ss();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=as(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else os().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,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=us(n,t);if(!1===(i=ls(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=us(n,t),l=ls(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 Ba&&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}(),ds=0,ps=function(){function e(e){this.id=ds++,this.version="10.10.0",this.plugins=new Ya,this.options={id:{minify:!1},createGenerateId:Qa,Renderer:Qo?cs:null,plugins:[]},this.generateId=Qa({minify:!1});for(var t=0;t<_a.length;t++)this.plugins.use(_a[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=lo({},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===Ja.index?0:Ja.index+1);var r=new Ba(e,lo({},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(),Ja.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=lo({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=sa(e,t,r);return i&&this.plugins.onProcessRule(i),i},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}(),hs=function(e){return new ps(e)},fs="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ms(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=ms(r);o&&(t||(t={}),t[n]=o)}}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,i,o,a,s,l,u,c,d,p,h,f,m,g,y,v,b,x,w,S,C,E,k,T,R,D,M,q,P,N,L,I,A,O,z,j,F,H,$,_;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){i=e.getValue,o=e.setValue,a=e.selectionService,s=e.storage,l=e.cache,u=e.tooltipService,c=e.colorService,d=e.pluginService,p=e.themeService,h=e.debouncer,f=e.fontResolver},function(e){m=e.default,g=e,y=e.Children,v=e.isValidElement,b=e.cloneElement},function(e){x=e,w=e.default},function(e){S=e.useOptions,C=e.useElement,E=e.useSelections,k=e.useState,T=e.useLayout,R=e.useTranslator,D=e.useAction,M=e.useEffect,q=e.useModel,P=e.useApp,N=e.useStaleLayout,L=e.usePlugins,I=e.useConstraints,A=e.useTheme,O=e.useAppLayout,z=e.useEmbed,j=e.usePromise,F=e.useRect,H=e.onTakeSnapshot,$=e.useImperativeHandle},function(e){_=e.default}],execute:function(){var U={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_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 V={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function W(e){return V[e]||e}function B(e){return function(t,n,r){let i,o,a,s,l=[],u=!0;function c(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.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(o));const n=W(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(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=W(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,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),u&&c()},off(){u=!1,d()},on(){u=!0,0===l.length&&c()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(this,arguments)}function K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var J=Object.prototype.hasOwnProperty,G=Object.prototype.toString,Z=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Q=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===G.call(e)},ee=function(e){if(!e||"[object Object]"!==G.call(e))return!1;var t,n=J.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&J.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||J.call(e,t)},te=function(e,t){Z&&"__proto__"===t.name?Z(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ne=function(e,t){if("__proto__"===t){if(!J.call(e,t))return;if(X)return X(e,t).value}return e[t]},re=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=ne(s,n),s!==(i=ne(t,n))&&(c&&i&&(ee(i)||(o=Q(i)))?(o?(o=!1,a=r&&Q(r)?r:[]):a=r&&ee(r)?r:{},te(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&te(s,{name:n,newValue:i}));return s},ie=K(re);const oe="center",ae="bottom";var se={NoDataExist:{label:"NoDataExist",alignment:oe,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:oe,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:oe,default:!1},LimitedData:{label:"LimitedData",alignment:ae,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ae,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ae,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ae,default:!1}};const le=[["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}]],ue={};le.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const ce={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<le.length;++n)if(e>=le[n][1].width&&t>=le[n][1].height)return le[n][0];return"SPARK"}};function de(e,t){return{layoutModes:ce.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 pe=/^[A-Z][A-z0-9_]*$/i,he={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},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||pe.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function fe(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const me=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ge=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),ye=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ve={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>me.test(e),isRtlChar:e=>ge.test(e)||ye.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ve.isLtrChar(r))return"ltr";if(ve.isRtlChar(r))return"rtl"}return"ltr"}},be={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,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("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=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?be.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=ve.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=ve.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},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:ve.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=ve.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=ve.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,be.getColorSymbol(e,t)]:[be.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=ve.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ve.detectTextDirection(e.value);let l;return l=i?r?[e.value,be.getColorSymbol(t,n)]:[be.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function xe(e){const t=parseInt(e,10);if(!isNaN(t))return t}const we=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Se(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(),i=n.styleService.label.value.getStyle(),o=i.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:o&&!e.onBackground?we(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:xe(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Ce(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ee(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}var Te=.7,Re=1/Te,De="\\s*([+-]?\\d+)\\s*",Me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pe=/^#([0-9a-f]{3,8})$/,Ne=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),Le=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),Ie=new RegExp(`^rgba\\(${De},${De},${De},${Me}\\)$`),Ae=new RegExp(`^rgba\\(${qe},${qe},${qe},${Me}\\)$`),Oe=new RegExp(`^hsl\\(${Me},${qe},${qe}\\)$`),ze=new RegExp(`^hsla\\(${Me},${qe},${qe},${Me}\\)$`),je={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 Fe(){return this.rgb().formatHex()}function He(){return this.rgb().formatRgb()}function $e(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_e(t):3===n?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(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=Ne.exec(e))?new We(t[1],t[2],t[3],1):(t=Le.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ie.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=Ae.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ze(t[1],t[2]/100,t[3]/100,1):(t=ze.exec(e))?Ze(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?_e(je[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function _e(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Ve(e){return e instanceof ke||(e=$e(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Be(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}`}function Ye(){const e=Ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ge(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Ze(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,n,r)}function Xe(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=$e(e)),!e)return new Qe;if(e instanceof Qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Qe(a,s,l,e.opacity)}function Qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function et(e){return(e=(e||0)%360)<0?e+360:e}function tt(e){return Math.max(0,Math.min(1,e||0))}function nt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ce(ke,$e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:He,toString:He}),Ce(We,(function(e,t,n,r){return 1===arguments.length?Ve(e):new We(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Je(this.r),Je(this.g),Je(this.b),Ke(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:Be,formatHex:Be,formatHex8:function(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}${Ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ye,toString:Ye})),Ce(Qe,(function(e,t,n,r){return 1===arguments.length?Xe(e):new Qe(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Te:Math.pow(Te,e),new Qe(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,i=2*n-r;return new We(nt(e>=240?e-240:e+120,i,r),nt(e,i,r),nt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Qe(et(this.h),tt(this.s),tt(this.l),Ke(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=Ke(this.opacity);return`${1===e?"hsl(":"hsla("}${et(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===e?")":`, ${e})`}`}}));const rt=Math.PI/180,it=180/Math.PI,ot=.96422,at=1,st=.82521,lt=4/29,ut=6/29,ct=3*ut*ut,dt=ut*ut*ut;function pt(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof bt)return xt(e);e instanceof We||(e=Ve(e));var t,n,r=yt(e.r),i=yt(e.g),o=yt(e.b),a=ft((.2225045*r+.7168786*i+.0606169*o)/at);return r===i&&i===o?t=n=a:(t=ft((.4360747*r+.3850649*i+.1430804*o)/ot),n=ft((.0139322*r+.0971045*i+.7141733*o)/st)),new ht(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ht(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ft(e){return e>dt?Math.pow(e,1/3):e/ct+lt}function mt(e){return e>ut?e*e*e:ct*(e-lt)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof bt)return new bt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=pt(e)),0===e.a&&0===e.b)return new bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*it;return new bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*rt;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Ce(ht,(function(e,t,n,r){return 1===arguments.length?pt(e):new ht(e,t,n,null==r?1:r)}),Ee(ke,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(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 We(gt(3.1338561*(t=ot*mt(t))-1.6168667*(e=at*mt(e))-.4906146*(n=st*mt(n))),gt(-.9787684*t+1.9161415*e+.033454*n),gt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ce(bt,vt,Ee(ke,{brighter(e){return new bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return wt(e(t),n)}}(e))}(wt);var St="$";function Ct(){}function Et(e,t){var n=new Ct;if(e instanceof Ct)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function kt(){}Ct.prototype=Et.prototype={constructor:Ct,has:function(e){return St+e in this},get:function(e){return this[St+e]},set:function(e,t){return this[St+e]=t,this},remove:function(e){var t=St+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===St&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===St&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===St&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===St&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===St&&++e;return e},empty:function(){for(var e in this)if(e[0]===St)return!1;return!0},each:function(e){for(var t in this)t[0]===St&&e(this[t],t.slice(1),this)}};var Tt=Et.prototype;function Rt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Dt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mt(){}kt.prototype={constructor:kt,has:Tt.has,add:function(e){return this[St+(e+="")]=e,this},remove:Tt.remove,clear:Tt.clear,values:Tt.keys,size:Tt.size,empty:Tt.empty,each:Tt.each};var qt=.7,Pt=1/qt,Nt="\\s*([+-]?\\d+)\\s*",Lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3})$/,Ot=/^#([0-9a-f]{6})$/,zt=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),jt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Ft=new RegExp("^rgba\\("+[Nt,Nt,Nt,Lt]+"\\)$"),Ht=new RegExp("^rgba\\("+[It,It,It,Lt]+"\\)$"),$t=new RegExp("^hsl\\("+[Lt,It,It]+"\\)$"),_t=new RegExp("^hsla\\("+[Lt,It,It,Lt]+"\\)$"),Ut={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 Vt(e){var t;return e=(e+"").trim().toLowerCase(),(t=At.exec(e))?new Jt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Ot.exec(e))?Wt(parseInt(t[1],16)):(t=zt.exec(e))?new Jt(t[1],t[2],t[3],1):(t=jt.exec(e))?new Jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ft.exec(e))?Bt(t[1],t[2],t[3],t[4]):(t=Ht.exec(e))?Bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?Zt(t[1],t[2]/100,t[3]/100,t[4]):Ut.hasOwnProperty(e)?Wt(Ut[e]):"transparent"===e?new Jt(NaN,NaN,NaN,0):null}function Wt(e){return new Jt(e>>16&255,e>>8&255,255&e,1)}function Bt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Jt(e,t,n,r)}function Yt(e){return e instanceof Mt||(e=Vt(e)),e?new Jt((e=e.rgb()).r,e.g,e.b,e.opacity):new Jt}function Kt(e,t,n,r){return 1===arguments.length?Yt(e):new Jt(e,t,n,null==r?1:r)}function Jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Zt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xt(e,t,n,r)}function Xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Rt(Mt,Vt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Rt(Jt,Kt,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Gt(this.r)+Gt(this.g)+Gt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Rt(Xt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xt)return new Xt(e.h,e.s,e.l,e.opacity);if(e instanceof Mt||(e=Vt(e)),!e)return new Xt;if(e instanceof Xt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Xt(a,s,l,e.opacity)}(e):new Xt(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Xt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Xt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,i=2*n-r;return new Jt(Qt(e>=240?e-240:e+120,i,r),Qt(e,i,r),Qt(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var en=Math.PI/180,tn=180/Math.PI,nn=.96422,rn=1,on=.82521,an=4/29,sn=6/29,ln=3*sn*sn,un=sn*sn*sn;function cn(e){if(e instanceof dn)return new dn(e.l,e.a,e.b,e.opacity);if(e instanceof gn){if(isNaN(e.h))return new dn(e.l,0,0,e.opacity);var t=e.h*en;return new dn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Jt||(e=Yt(e));var n,r,i=mn(e.r),o=mn(e.g),a=mn(e.b),s=pn((.2225045*i+.7168786*o+.0606169*a)/rn);return i===o&&o===a?n=r=s:(n=pn((.4360747*i+.3850649*o+.1430804*a)/nn),r=pn((.0139322*i+.0971045*o+.7141733*a)/on)),new dn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function dn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function pn(e){return e>un?Math.pow(e,1/3):e/ln+an}function hn(e){return e>sn?e*e*e:ln*(e-an)}function fn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function mn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Rt(dn,(function(e,t,n,r){return 1===arguments.length?cn(e):new dn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new dn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new dn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 Jt(fn(3.1338561*(t=nn*hn(t))-1.6168667*(e=rn*hn(e))-.4906146*(n=on*hn(n))),fn(-.9787684*t+1.9161415*e+.033454*n),fn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Rt(gn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof gn)return new gn(e.h,e.c,e.l,e.opacity);if(e instanceof dn||(e=cn(e)),0===e.a&&0===e.b)return new gn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tn;return new gn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new gn(e,t,n,null==r?1:r)}),Dt(Mt,{brighter:function(e){return new gn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new gn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return cn(this).rgb()}}));var yn=-.14861,vn=1.78277,bn=-.29227,xn=-.90649,wn=1.97294,Sn=wn*xn,Cn=wn*vn,En=vn*bn-xn*yn;function kn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);e instanceof Jt||(e=Yt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(En*r+Sn*t-Cn*n)/(En+Sn-Cn),o=r-i,a=(wn*(n-i)-bn*o)/xn,s=Math.sqrt(a*a+o*o)/(wn*i*(1-i)),l=s?Math.atan2(a,o)*tn-120:NaN;return new Tn(l<0?l+360:l,s,i,e.opacity)}(e):new Tn(e,t,n,null==r?1:r)}function Tn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rn(e){return function(){return e}}function Dn(e,t){return function(n){return e+n*t}}function Mn(e){return 1==(e=+e)?qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rn(isNaN(t)?n:t)}}function qn(e,t){var n=t-e;return n?Dn(e,n):Rn(isNaN(e)?t:e)}function Pn(e){return function t(n){function r(t,r){var i=e((t=kn(t)).h,(r=kn(r)).h),o=qn(t.s,r.s),a=qn(t.l,r.l),s=qn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Nn(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}Rt(Tn,kn,Dt(Mt,{brighter:function(e){return e=null==e?Pt:Math.pow(Pt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?qt:Math.pow(qt,e),new Tn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*en,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Jt(255*(t+n*(yn*r+vn*i)),255*(t+n*(bn*r+xn*i)),255*(t+n*(wn*r)),this.opacity)}})),function e(t){var n=Mn(t);function r(e,t){var r=n((e=Kt(e)).r,(t=Kt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Pn((function(e,t){var n=t-e;return n?Dn(e,n>180||n<-180?n-360*Math.round(n/360):n):Rn(isNaN(e)?t:e)})),Pn(qn);var Ln,In=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function An(e){return new On(e)}function On(e){if(!(t=In.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function zn(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}An.prototype=On.prototype,On.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var jn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zn(100*e,t)},r:zn,s:function(e,t){var n=Nn(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ln=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Fn(e){return e}var Hn,$n=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _n(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Fn,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Fn,s=e.percent||"%";function l(e){var t=(e=An(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,p=e.comma,h=e.precision,f=e.trim,m=e.type;"n"===m?(p=!0,m="g"):jn[m]||(null==h&&(h=12),f=!0,m="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?i[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(m)?s:"",v=jn[m],b=/[defgprs%]/.test(m);function x(e){var i,s,u,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),h),f&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?$n[8+Ln/3]:"")+w+(S&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(u=e.charCodeAt(i))||u>57){w=(46===u?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}p&&!c&&(e=r(e,1/0));var C=x.length+e.length+w.length,E=C<d?new Array(d-C+1).join(t):"";switch(p&&c&&(e=r(E+e,E.length?d-w.length:1/0),E=""),n){case"<":e=x+e+w+E;break;case"=":e=x+E+e+w;break;case"^":e=E.slice(0,C=E.length>>1)+x+e+w+E.slice(C);break;default:e=E+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=An(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=Nn(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=$n[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){Hn=_n(e),Hn.format,Hn.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Un=new Date,Vn=new Date;function Wn(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Wn((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Un.setTime(+t),Vn.setTime(+r),e(Un),e(Vn),Math.floor(n(Un,Vn))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Bn=Wn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Bn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Wn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Bn:null},Bn.range;var Yn=1e3,Kn=6e4,Jn=36e5,Gn=864e5,Zn=6048e5;Wn((function(e){e.setTime(Math.floor(e/Yn)*Yn)}),(function(e,t){e.setTime(+e+t*Yn)}),(function(e,t){return(t-e)/Yn}),(function(e){return e.getUTCSeconds()})).range,Wn((function(e){e.setTime(Math.floor(e/Kn)*Kn)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getMinutes()})).range,Wn((function(e){var t=e.getTimezoneOffset()*Kn%Jn;t<0&&(t+=Jn),e.setTime(Math.floor((+e-t)/Jn)*Jn+t)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getHours()})).range;var Xn=Wn((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Gn}),(function(e){return e.getDate()-1}));function Qn(e){return Wn((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kn)/Zn}))}Xn.range;var er=Qn(0),tr=Qn(1),nr=Qn(2),rr=Qn(3),ir=Qn(4),or=Qn(5),ar=Qn(6);er.range,tr.range,nr.range,rr.range,ir.range,or.range,ar.range,Wn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var sr=Wn((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));sr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},sr.range,Wn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Kn)}),(function(e,t){return(t-e)/Kn}),(function(e){return e.getUTCMinutes()})).range,Wn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Jn)}),(function(e,t){return(t-e)/Jn}),(function(e){return e.getUTCHours()})).range;var lr=Wn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Gn}),(function(e){return e.getUTCDate()-1}));function ur(e){return Wn((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Zn}))}lr.range;var cr=ur(0),dr=ur(1),pr=ur(2),hr=ur(3),fr=ur(4),mr=ur(5),gr=ur(6);cr.range,dr.range,pr.range,hr.range,fr.range,mr.range,gr.range,Wn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var yr=Wn((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function vr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function br(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function xr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}yr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Wn((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},yr.range;var wr,Sr,Cr,Er={"-":"",_:" ",0:"0"},kr=/^\s*\d+/,Tr=/^%/,Rr=/[\\^$*+?|[\]().{}]/g;function Dr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Mr(e){return e.replace(Rr,"\\$&")}function qr(e){return new RegExp("^(?:"+e.map(Mr).join("|")+")","i")}function Pr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Nr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=kr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ar(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=kr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function jr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fr(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Hr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $r(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _r(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wr(e,t,n){var r=kr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Br(e,t,n){var r=kr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=kr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kr(e,t,n){var r=Tr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Jr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Gr(e,t,n){var r=kr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Zr(e,t){return Dr(e.getDate(),t,2)}function Xr(e,t){return Dr(e.getHours(),t,2)}function Qr(e,t){return Dr(e.getHours()%12||12,t,2)}function ei(e,t){return Dr(1+Xn.count(sr(e),e),t,3)}function ti(e,t){return Dr(e.getMilliseconds(),t,3)}function ni(e,t){return ti(e,t)+"000"}function ri(e,t){return Dr(e.getMonth()+1,t,2)}function ii(e,t){return Dr(e.getMinutes(),t,2)}function oi(e,t){return Dr(e.getSeconds(),t,2)}function ai(e){var t=e.getDay();return 0===t?7:t}function si(e,t){return Dr(er.count(sr(e),e),t,2)}function li(e,t){var n=e.getDay();return e=n>=4||0===n?ir(e):ir.ceil(e),Dr(ir.count(sr(e),e)+(4===sr(e).getDay()),t,2)}function ui(e){return e.getDay()}function ci(e,t){return Dr(tr.count(sr(e),e),t,2)}function di(e,t){return Dr(e.getFullYear()%100,t,2)}function pi(e,t){return Dr(e.getFullYear()%1e4,t,4)}function hi(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Dr(t/60|0,"0",2)+Dr(t%60,"0",2)}function fi(e,t){return Dr(e.getUTCDate(),t,2)}function mi(e,t){return Dr(e.getUTCHours(),t,2)}function gi(e,t){return Dr(e.getUTCHours()%12||12,t,2)}function yi(e,t){return Dr(1+lr.count(yr(e),e),t,3)}function vi(e,t){return Dr(e.getUTCMilliseconds(),t,3)}function bi(e,t){return vi(e,t)+"000"}function xi(e,t){return Dr(e.getUTCMonth()+1,t,2)}function wi(e,t){return Dr(e.getUTCMinutes(),t,2)}function Si(e,t){return Dr(e.getUTCSeconds(),t,2)}function Ci(e){var t=e.getUTCDay();return 0===t?7:t}function Ei(e,t){return Dr(cr.count(yr(e),e),t,2)}function ki(e,t){var n=e.getUTCDay();return e=n>=4||0===n?fr(e):fr.ceil(e),Dr(fr.count(yr(e),e)+(4===yr(e).getUTCDay()),t,2)}function Ti(e){return e.getUTCDay()}function Ri(e,t){return Dr(dr.count(yr(e),e),t,2)}function Di(e,t){return Dr(e.getUTCFullYear()%100,t,2)}function Mi(e,t){return Dr(e.getUTCFullYear()%1e4,t,4)}function qi(){return"+0000"}function Pi(){return"%"}function Ni(e){return+e}function Li(e){return Math.floor(+e/1e3)}!function(e){wr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=qr(i),c=Pr(i),d=qr(o),p=Pr(o),h=qr(a),f=Pr(a),m=qr(s),g=Pr(s),y=qr(l),v=Pr(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Zr,e:Zr,f:ni,H:Xr,I:Qr,j:ei,L:ti,m:ri,M:ii,p:function(e){return i[+(e.getHours()>=12)]},Q:Ni,s:Li,S:oi,u:ai,U:si,V:li,w:ui,W:ci,x:null,X:null,y:di,Y:pi,Z:hi,"%":Pi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:fi,e:fi,f:bi,H:mi,I:gi,j:yi,L:vi,m:xi,M:wi,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Ni,s:Li,S:Si,u:Ci,U:Ei,V:ki,w:Ti,W:Ri,x:null,X:null,y:Di,Y:Mi,Z:qi,"%":Pi},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:$r,e:$r,f:Yr,H:Ur,I:Ur,j:_r,L:Br,m:Hr,M:Vr,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Jr,s:Gr,S:Wr,u:Lr,U:Ir,V:Ar,w:Nr,W:Or,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:jr,Y:zr,Z:Fr,"%":Kr};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Er[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,i,o=xr(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=br(xr(o.y))).getUTCDay(),r=i>4||0===i?dr.ceil(r):dr(r),r=lr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(xr(o.y))).getDay(),r=i>4||0===i?tr.ceil(r):tr(r),r=Xn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?br(xr(o.y)).getUTCDay():t(xr(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,br(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Er?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",vr);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e,br);return t.toString=function(){return e},t}}}(e),wr.format,wr.parse,Sr=wr.utcFormat,Cr=wr.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ii="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Sr(Ii),+new Date("2000-01-01T00:00:00.000Z")||Cr(Ii);const Ai=ie.bind(null,!0),Oi={},{isArray:zi}=Array;function ji(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Fi(e){return void 0===e}function Hi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function $i(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=Fi(e[r||t])?o:e[t],e=e[r||t]})),e}function _i(e,t){let n=!0;if(ji(e)&&ji(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{_i(e[r],t[r])||(n=!1)})),n);if(zi(e)&&zi(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!_i(e[n],t[n]))return!1;return!0}return e===t}Oi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Ai({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;_i(o,a)||Hi(t,i)||(Fi(a)?r.push({op:"add",path:s,value:o}):ji(o)&&ji(a)?r=r.concat(Oi.generate(a,o,s)):zi(o)&&zi(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&Fi(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(_i(t,i))return r;if(!Fi(t[0])&&Fi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(Oi.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{Fi(t[i])&&!Hi(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Oi.apply=function(e,t){t.forEach((t=>{let n=$i(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(zi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(zi(i)&&zi(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ji(i)&&ji(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hi(a,e)&&delete a[e]})),Ai(i,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 i=$i(e,t.from);zi(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(zi(n)?n.splice(+r,1):delete n[r]);var a}))},Oi.clone=function(e){return Ai({},e)},Oi.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},Oi.updateObject=function(e,t){Object.keys(e).length?Oi.apply(e,Oi.generate(e,t)):Ai(e,t)};const Ui=[[2,4,6],[2,4],[3]],Vi=[,[,,[[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 Wi(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function Bi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Wi(e[r],t,n)}!function(){let e,t;for(Bi(Ui,1,10),e=0;e<Vi.length;e++)if(Vi[e])for(t=0;t<Vi[e].length;t++)Array.isArray(Vi[e][t])&&Bi(Vi[e][t])}();var Yi={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","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 Ki(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...u}=t,c=ie(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Yi;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&o(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&o(e,n,null)}))}})),c}var Ji={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.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"!==i&&"bottom"!==i||o.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?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+d)}))}}},bars:{trackBy: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}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||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-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},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,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},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,i=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-=i,e.y2-=i):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:i/e.major.size,n="y"===e.minor.p?i/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}))}},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,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},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,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>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=Ki(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ki(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function Gi(e){if(null!=e&&e.isEnabled("IM_4962_SVG_CHART_LABELS"))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var Zi={exports:{}};function Xi(){}function Qi(){}Qi.resetWarningCache=Xi;Zi.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){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,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:Qi,resetWarningCache:Xi};return n.PropTypes=n,n}();var eo=K(Zi.exports),to={black:"#000",white:"#fff"},no={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ro={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},io={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},oo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ao={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},so={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},lo={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 uo(){return uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uo.apply(this,arguments)}function co(e){return co="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},co(e)}function po(e){return e&&"object"===co(e)&&e.constructor===Object}function ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?uo({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(po(t[i])&&i in e?r[i]=ho(e[i],t[i],n):r[i]=t[i])})),r}function fo(e){var t=function(e,t){if("object"!==co(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==co(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===co(t)?t:String(t)}function mo(e,t,n){return(t=fo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(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 yo(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 vo(e){if(e.type)return e;if("#"===e.charAt(0))return vo(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(go(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 bo(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 xo(e){var t="hsl"===(e=vo(e)).type?vo(function(e){var t=(e=vo(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*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])),bo({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 wo(e,t){return e=vo(e),t=yo(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,bo(e)}function So(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Co(e,t){if(null==e)return{};var n,r,i=So(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Eo=["xs","sm","md","lg","xl"];function ko(e,t,n){var r;return uo({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")),uo({paddingLeft:t(2),paddingRight:t(2)},n,mo({},e.up("sm"),uo({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},mo(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),mo(r,e.up("sm"),{minHeight:64}),r)},n)}var To={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:to.white,default:lo[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}},Ro={text:{primary:to.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:lo[800],default:"#303030"},action:{active:to.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 Do(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=vo(e),t=yo(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 bo(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=vo(e),t=yo(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 bo(e)}(e.main,o)))}function Mo(e){var t=e.primary,n=void 0===t?{light:io[300],main:io[500],dark:io[700]}:t,r=e.secondary,i=void 0===r?{light:ro.A200,main:ro.A400,dark:ro.A700}:r,o=e.error,a=void 0===o?{light:no[300],main:no[500],dark:no[700]}:o,s=e.warning,l=void 0===s?{light:so[300],main:so[500],dark:so[700]}:s,u=e.info,c=void 0===u?{light:oo[300],main:oo[500],dark:oo[700]}:u,d=e.success,p=void 0===d?{light:ao[300],main:ao[500],dark:ao[700]}:d,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=Co(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=xo(e),r=xo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ro.text.primary)>=g?Ro.text.primary:To.text.primary;return t}var w=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=uo({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(go(4,t));if("string"!=typeof e.main)throw new Error(go(5,JSON.stringify(e.main)));return Do(e,"light",n,v),Do(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:Ro,light:To};return ho(uo({common:to,type:f,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(c),success:w(p),grey:lo,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[f]),b)}function qo(e){return Math.round(1e5*e)/1e5}function Po(e){return qo(e)}var No={textTransform:"uppercase"},Lo='"Roboto", "Helvetica", "Arial", sans-serif';function Io(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Lo:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,p=void 0===d?500:d,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=Co(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return uo({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===Lo?{letterSpacing:"".concat(qo(r/t),"em")}:{},o,y)},C={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(p,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(p,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(p,14,1.75,.4,No),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,No)};return ho(uo({htmlFontSize:g,pxToRem:w,round:Po,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:f},C),b,{clone:!1})}function Ao(){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 Oo=["none",Ao(0,2,1,-1,0,1,1,0,0,1,3,0),Ao(0,3,1,-2,0,2,2,0,0,1,5,0),Ao(0,3,3,-2,0,3,4,0,0,1,8,0),Ao(0,2,4,-1,0,4,5,0,0,1,10,0),Ao(0,3,5,-1,0,5,8,0,0,1,14,0),Ao(0,3,5,-1,0,6,10,0,0,1,18,0),Ao(0,4,5,-2,0,7,10,1,0,2,16,1),Ao(0,5,5,-3,0,8,10,1,0,3,14,2),Ao(0,5,6,-3,0,9,12,1,0,3,16,2),Ao(0,6,6,-3,0,10,14,1,0,4,18,3),Ao(0,6,7,-4,0,11,15,1,0,4,20,3),Ao(0,7,8,-4,0,12,17,2,0,5,22,4),Ao(0,7,8,-4,0,13,19,2,0,5,24,4),Ao(0,7,9,-4,0,14,21,2,0,5,26,4),Ao(0,8,9,-5,0,15,22,2,0,6,28,5),Ao(0,8,10,-5,0,16,24,2,0,6,30,5),Ao(0,8,11,-5,0,17,26,2,0,6,32,5),Ao(0,9,11,-5,0,18,28,2,0,7,34,6),Ao(0,9,12,-6,0,19,29,2,0,7,36,6),Ao(0,10,13,-6,0,20,31,3,0,8,38,7),Ao(0,10,13,-6,0,21,33,3,0,8,40,7),Ao(0,10,14,-6,0,22,35,3,0,8,42,7),Ao(0,11,14,-7,0,23,36,3,0,9,44,8),Ao(0,11,15,-7,0,24,38,3,0,9,46,8)],zo={borderRadius:4};function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){if(e){if("string"==typeof e)return jo(e,t);var n=Object.prototype.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)?jo(e,t):void 0}}function Ho(e){return function(e){if(Array.isArray(e))return jo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fo(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 $o(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,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||Fo(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 _o(){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 Uo={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)"},Vo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wo(e){return"".concat(Math.round(e),"ms")}var Bo={easing:Uo,duration:Vo,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?Vo.standard:n,i=t.easing,o=void 0===i?Uo.easeInOut:i,a=t.delay,s=void 0===a?0:a;return Co(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Wo(r)," ").concat(o," ").concat("string"==typeof s?s:Wo(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))}},Yo={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Ko(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=Co(e,["breakpoints","mixins","palette","spacing","typography"]),d=Mo(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,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=Co(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=Eo.indexOf(t);return r===Eo.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Eo[r+1]]?n[Eo[r+1]]:t)-a/100).concat(i,")")}return uo({keys:Eo,values:n,up:l,down:function(e){var t=Eo.indexOf(e)+1,r=n[Eo[t]];return t===Eo.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=_o(s),f=ho({breakpoints:p,direction:"ltr",mixins:ko(p,h,i),overrides:{},palette:d,props:{},shadows:Oo,typography:Io(d,u),spacing:h,shape:zo,transitions:Bo,zIndex:Yo},c),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return ho(e,t)}),f)}var Jo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Go=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Zo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=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!==Go.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Jo]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function Xo(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Qo="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},ea="object"===("undefined"==typeof window?"undefined":Qo(window))&&"object"===("undefined"==typeof document?"undefined":Qo(document))&&9===document.nodeType;function ta(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,fo(r.key),r)}}function na(e,t,n){return t&&ta(e.prototype,t),n&&ta(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ra(e,t){return ra=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ra(e,t)}function ia(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ra(e,t)}function oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var aa={}.constructor;function sa(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(sa);if(e.constructor!==aa)return e;var t={};for(var n in e)t[n]=sa(e[n]);return t}function la(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=sa(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var ua=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},ca=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+=ua(e[n]," ");else t=ua(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function da(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function pa(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function ha(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=da(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var h=d[p];null!=h&&(r&&(r+=l),r+=pa(p+":"+u+ca(h)+";",o))}}else for(var f in a){var m=a[f];null!=m&&(r&&(r+=l),r+=pa(f+":"+u+ca(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=pa(g+":"+u+ca(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),pa(""+e+u+"{"+r,--o)+pa("}",o)):r}var fa=/([[\].#*$><+~=|^:(),"'`\s])/g,ma="undefined"!=typeof CSS&&CSS.escape,ga=function(e){return ma?ma(e):e.replace(fa,"\\$1")},ya=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}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 i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),va=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(oa(oa(i)),s),i.selectorText="."+ga(i.id)),i}ia(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]=ca(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?uo({},e,{allowEmpty:!0}):e;return ha(this.selectorText,this.style,n)},na(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}(ya),ba={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new va(e,t,n)}},xa={indent:1,children:!0},wa=/@([\w-]+)/,Sa=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(wa);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Ba(uo({},n,{parent:this})),t)this.rules.add(i,t[i]);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=xa);var t=da(e).linebreak;if(null==e.indent&&(e.indent=xa.indent),null==e.children&&(e.children=xa.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Ca=/@container|@media|@supports\s+/,Ea={onCreateRule:function(e,t,n){return Ca.test(e)?new Sa(e,t,n):null}},ka={indent:1,children:!0},Ta=/@keyframes\s+([\w-]+)/,Ra=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ta);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:ga(a(this,o)),this.rules=new Ba(uo({},n,{parent:this})),t)this.rules.add(s,t[s],uo({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ka);var t=da(e).linebreak;if(null==e.indent&&(e.indent=ka.indent),null==e.children&&(e.children=ka.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}(),Da=/@keyframes\s+/,Ma=/\$([\w-]+)/g,qa=function(e,t){return"string"==typeof e?e.replace(Ma,(function(e,n){return n in t?t[n]:e})):e},Pa=function(e,t,n){var r=e[t],i=qa(r,n);i!==r&&(e[t]=i)},Na={onCreateRule:function(e,t,n){return"string"==typeof e&&Da.test(e)?new Ra(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Pa(e,"animation-name",n.keyframes),"animation"in e&&Pa(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 qa(e,r.keyframes);default:return e}}},La=function(e){function t(){return e.apply(this,arguments)||this}return ia(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?uo({},e,{allowEmpty:!0}):e;return ha(this.key,this.style,n)},t}(ya),Ia={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new La(e,t,n):null}},Aa=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=da(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=ha(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return ha(this.at,this.style,e)},e}(),Oa=/@font-face/,za={onCreateRule:function(e,t,n){return Oa.test(e)?new Aa(e,t,n):null}},ja=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 ha(this.key,this.style,e)},e}(),Fa={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new ja(e,t,n):null}},Ha=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}(),$a={"@charset":!0,"@import":!0,"@namespace":!0},_a={onCreateRule:function(e,t,n){return e in $a?new Ha(e,t,n):null}},Ua=[ba,Ea,Na,Ia,za,Fa,_a],Va={process:!0},Wa={force:!0,process:!0},Ba=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,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=uo({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,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&&(c.selector="."+ga(this.classes[d]));var p=la(d,t,c);if(!p)return null;this.register(p);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=uo({},n,{index:i})),this.add(e,t,o)},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 va?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ra&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof va?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ra&&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=Va);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,Wa)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Wa)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=da(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Ya=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=uo({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ba(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 i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}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}(),Ka=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 i=this.registry.onCreateRule[r](e,t,n);if(i)return i}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 i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](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}(),Ja=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=So(t,["attached"]),i=da(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},na(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Ga=new Ja,Za="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Xa="2f1acc6c3a606b082e5eef5e54414ffb";null==Za[Xa]&&(Za[Xa]=0);var Qa=Za[Xa]++,es=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+Qa+i+t:o+n.key+"-"+Qa+(i?"-"+i:"")+"-"+t}},ts=function(e){var t;return function(){return t||(t=e()),t}},ns=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},rs=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=ca(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},is=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},os=function(e,t){return e.selectorText=t,e.selectorText===t},as=ts((function(){return document.querySelector("head")}));function ss(e){var t=Ga.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 i=function(e){for(var t=as(),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(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var ls=ts((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),us=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]},cs=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ds=function(){function e(e){this.getPropertyValue=ns,this.setProperty=rs,this.removeProperty=is,this.setSelector=os,this.hasInsertedRules=!1,this.cssRules=[],e&&Ga.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||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 o=ls();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ss(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else as().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,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=cs(n,t);if(!1===(i=us(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=cs(n,t),l=us(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 Ya&&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}(),ps=0,hs=function(){function e(e){this.id=ps++,this.version="10.10.0",this.plugins=new Ka,this.options={id:{minify:!1},createGenerateId:es,Renderer:ea?ds:null,plugins:[]},this.generateId=es({minify:!1});for(var t=0;t<Ua.length;t++)this.plugins.use(Ua[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=uo({},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===Ga.index?0:Ga.index+1);var r=new Ya(e,uo({},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(),Ga.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=uo({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=la(e,t,r);return i&&this.plugins.onProcessRule(i),i},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}(),fs=function(e){return new hs(e)},ms="object"==typeof CSS&&null!=CSS&&"number"in CSS;function gs(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=gs(r);o&&(t||(t={}),t[n]=o)}}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
- */hs();var gs=Date.now(),ys="fnValues"+gs,vs="fnStyle"+ ++gs,bs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=sa(e,{},n);return r[vs]=t,r},onProcessStyle:function(e,t){if(ys in t||vs in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[ys]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[vs];o&&(i.style=o(e)||{});var a=i[ys];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},xs="@global",ws="@global ",Ss=function(){function e(e,t,n){for(var r in this.type="global",this.at=xs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Wa(lo({},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}(),Cs=function(){function e(e,t,n){this.type="global",this.at=xs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(ws.length);this.rule=n.jss.createRule(r,t,lo({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Es=/\s*,\s*/g;function ks(e,t){for(var n=e.split(Es),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Ts(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===xs)return new Ss(e,t,n);if("@"===e[0]&&e.substr(0,ws.length)===ws)return new Cs(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,i=r?r[xs]:null;if(i){for(var o in i)t.addRule(o,i[o],lo({},n,{selector:ks(o,e.selector)}));delete r[xs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,xs.length)===xs){var o=ks(i.substr(xs.length),e.selector);t.addRule(o,r[i],lo({},n,{selector:o})),delete r[i]}}(e,t))}}}var Rs=/\s*,\s*/g,Ds=/&/g,Ms=/\$([\w-]+)/g;function qs(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Rs),r=e.split(Rs),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ds,a):a+" "+l}return i}function n(e,t,n){if(n)return lo({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=lo({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,o)),h=h.replace(Ms,s);var f=l.key+"-"+c;"replaceRule"in u?u.replaceRule(f,r[c],lo({},a,{selector:h})):u.addRule(f,r[c],lo({},a,{selector:h}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Ps=/[A-Z]/g,Ns=/^ms-/,Ls={};function Is(e){return"-"+e.toLowerCase()}function As(e){if(Ls.hasOwnProperty(e))return Ls[e];var t=e.replace(Ps,Is);return Ls[e]=Ns.test(t)?"-"+t:t}function Os(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:As(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Os):t.fallbacks=Os(e.fallbacks)),t}var zs=fs&&CSS?CSS.px:"px",js=fs&&CSS?CSS.ms:"ms",Fs=fs&&CSS?CSS.percent:"%";function Hs(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var $s=Hs({"animation-delay":js,"animation-duration":js,"background-position":zs,"background-position-x":zs,"background-position-y":zs,"background-size":zs,border:zs,"border-bottom":zs,"border-bottom-left-radius":zs,"border-bottom-right-radius":zs,"border-bottom-width":zs,"border-left":zs,"border-left-width":zs,"border-radius":zs,"border-right":zs,"border-right-width":zs,"border-top":zs,"border-top-left-radius":zs,"border-top-right-radius":zs,"border-top-width":zs,"border-width":zs,"border-block":zs,"border-block-end":zs,"border-block-end-width":zs,"border-block-start":zs,"border-block-start-width":zs,"border-block-width":zs,"border-inline":zs,"border-inline-end":zs,"border-inline-end-width":zs,"border-inline-start":zs,"border-inline-start-width":zs,"border-inline-width":zs,"border-start-start-radius":zs,"border-start-end-radius":zs,"border-end-start-radius":zs,"border-end-end-radius":zs,margin:zs,"margin-bottom":zs,"margin-left":zs,"margin-right":zs,"margin-top":zs,"margin-block":zs,"margin-block-end":zs,"margin-block-start":zs,"margin-inline":zs,"margin-inline-end":zs,"margin-inline-start":zs,padding:zs,"padding-bottom":zs,"padding-left":zs,"padding-right":zs,"padding-top":zs,"padding-block":zs,"padding-block-end":zs,"padding-block-start":zs,"padding-inline":zs,"padding-inline-end":zs,"padding-inline-start":zs,"mask-position-x":zs,"mask-position-y":zs,"mask-size":zs,height:zs,width:zs,"min-height":zs,"max-height":zs,"min-width":zs,"max-width":zs,bottom:zs,left:zs,top:zs,right:zs,inset:zs,"inset-block":zs,"inset-block-end":zs,"inset-block-start":zs,"inset-inline":zs,"inset-inline-end":zs,"inset-inline-start":zs,"box-shadow":zs,"text-shadow":zs,"column-gap":zs,"column-rule":zs,"column-rule-width":zs,"column-width":zs,"font-size":zs,"font-size-delta":zs,"letter-spacing":zs,"text-decoration-thickness":zs,"text-indent":zs,"text-stroke":zs,"text-stroke-width":zs,"word-spacing":zs,motion:zs,"motion-offset":zs,outline:zs,"outline-offset":zs,"outline-width":zs,perspective:zs,"perspective-origin-x":Fs,"perspective-origin-y":Fs,"transform-origin":Fs,"transform-origin-x":Fs,"transform-origin-y":Fs,"transform-origin-z":Fs,"transition-delay":js,"transition-duration":js,"vertical-align":zs,"flex-basis":zs,"shape-margin":zs,size:zs,gap:zs,grid:zs,"grid-gap":zs,"row-gap":zs,"grid-row-gap":zs,"grid-column-gap":zs,"grid-template-rows":zs,"grid-template-columns":zs,"grid-auto-rows":zs,"grid-auto-columns":zs,"box-shadow-x":zs,"box-shadow-y":zs,"box-shadow-blur":zs,"box-shadow-spread":zs,"font-line-height":zs,"text-shadow-x":zs,"text-shadow-y":zs,"text-shadow-blur":zs});function _s(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=_s(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=_s(i,t[i],n);else for(var o in t)t[o]=_s(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||$s[e];return!a||0===t&&a===zs?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Us(e){void 0===e&&(e={});var t=Hs(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=_s(r,e[r],t);return e},onChangeValue:function(e,n){return _s(n,e,t)}}}var Vs="",Ws="",Bs="",Ys="",Ks=Qo&&"ontouchstart"in document.documentElement;if(Qo){var Js={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Gs=document.createElement("p").style;for(var Zs in Js)if(Zs+"Transform"in Gs){Vs=Zs,Ws=Js[Zs];break}"Webkit"===Vs&&"msHyphens"in Gs&&(Vs="ms",Ws=Js.ms,Ys="edge"),"Webkit"===Vs&&"-apple-trailing-word"in Gs&&(Bs="apple")}var Xs={js:Vs,css:Ws,vendor:Bs,browser:Ys,isTouch:Ks};var Qs={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Xs.js?"-webkit-"+e:Xs.css+e)}},el={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Xs.js?Xs.css+"print-"+e:e)}},tl=/[-\s]+(.)?/g;function nl(e,t){return t?t.toUpperCase():""}function rl(e){return e.replace(tl,nl)}function il(e){return rl("-"+e)}var ol,al={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Xs.js){var n="mask-image";if(rl(n)in t)return e;if(Xs.js+il(n)in t)return Xs.css+e}return e}},sl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Xs.vendor||Xs.isTouch?e:Xs.css+e)}},ll={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Xs.css+e)}},ul={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Xs.css+e)}},cl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Xs.js||"ms"===Xs.js&&"edge"!==Xs.browser?Xs.css+e:e)}},dl={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Xs.js||"ms"===Xs.js||"apple"===Xs.vendor?Xs.css+e:e)}},pl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Xs.js?"WebkitColumn"+il(e)in t&&Xs.css+"column-"+e:"Moz"===Xs.js&&("page"+il(e)in t&&"page-"+e))}},hl={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Xs.js)return e;var n=e.replace("-inline","");return Xs.js+il(n)in t&&Xs.css+n}},fl={supportedProperty:function(e,t){return rl(e)in t&&e}},ml={supportedProperty:function(e,t){var n=il(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Xs.js+n in t?Xs.css+e:"Webkit"!==Xs.js&&"Webkit"+n in t&&"-webkit-"+e}},gl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Xs.js?""+Xs.css+e:e)}},yl={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Xs.js?Xs.css+"scroll-chaining":e)}},vl={"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"},bl={supportedProperty:function(e,t){var n=vl[e];return!!n&&(Xs.js+il(n)in t&&Xs.css+n)}},xl={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"},wl=Object.keys(xl),Sl=function(e){return Xs.css+e},Cl={supportedProperty:function(e,t,n){var r=n.multiple;if(wl.indexOf(e)>-1){var i=xl[e];if(!Array.isArray(i))return Xs.js+il(i)in t&&Xs.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Xs.js+il(i[0])in t))return!1;return i.map(Sl)}return!1}},El=[Qs,el,al,sl,ll,ul,cl,dl,pl,hl,fl,ml,gl,yl,bl,Cl],kl=El.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Tl=El.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Fo(t.noPrefill)),e}),[]),Rl={};if(Qo){ol=document.createElement("p");var Dl=window.getComputedStyle(document.documentElement,"");for(var Ml in Dl)isNaN(Ml)||(Rl[Dl[Ml]]=Dl[Ml]);Tl.forEach((function(e){return delete Rl[e]}))}function ql(e,t){if(void 0===t&&(t={}),!ol)return e;if(null!=Rl[e])return Rl[e];"transition"!==e&&"transform"!==e||(t[e]=e in ol.style);for(var n=0;n<kl.length&&(Rl[e]=kl[n](e,ol.style,t),!Rl[e]);n++);try{ol.style[e]=""}catch(e){return!1}return Rl[e]}var Pl,Nl={},Ll={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Il=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Al(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?ql(t):", "+ql(n);return r||(t||n)}function Ol(e,t){var n=t;if(!Pl||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Nl[r])return Nl[r];try{Pl.style[e]=n}catch(e){return Nl[r]=!1,!1}if(Ll[e])n=n.replace(Il,Al);else if(""===Pl.style[e]&&("-ms-flex"===(n=Xs.css+n)&&(Pl.style[e]="-ms-flexbox"),Pl.style[e]=n,""===Pl.style[e]))return Nl[r]=!1,!1;return Pl.style[e]="",Nl[r]=n,Nl[r]}function zl(){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 i=!1,o=ql(n);o&&o!==n&&(i=!0);var a=!1,s=Ol(o,ua(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Xs.js?e:"@"+Xs.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ol(t,ua(e))||e}}}function jl(){return{plugins:[bs(),Ts(),qs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Os(e[t]);return e}return Os(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=As(t);return t===r?e:(n.prop(r,e),null)}},Us(),"undefined"==typeof window?null:zl(),(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={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function Fl(){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=lo({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Qo&&(Pl=document.createElement("p"));var Hl={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},$l=Hl,_l=m.createContext(null);function Ul(){return m.useContext(_l)}var Vl,Wl=hs(jl()),Bl={disableGeneration:!1,generateClassName:Go(),jss:Wl,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Yl=m.createContext(Bl);function Kl(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=So(e,["children","injectFirst","disableGeneration"]),s=lo({},m.useContext(Yl),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Vl){var l=document.head;Vl=document.createComment("mui-inject-first"),l.insertBefore(Vl,l.firstChild)}s.jss=hs({plugins:jl().plugins,insertionPoint:Vl})}return m.createElement(Yl.Provider,{value:s},t)}var Jl=-1e9;var Gl={};function Zl(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=$l.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},$l.set(i.sheetsManager,o,r,s));var l=lo({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=$l.get(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,lo({link:!1},l))).attach(),i.sheetsCache&&$l.set(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=ms(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,lo({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Fl({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Xl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?Gl:o,s=So(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=lo({},i);return Object.keys(o).forEach((function(e){a[e]=po(a[e],o[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:Jl+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ul()||a,r=lo({},m.useContext(Yl),s),o=m.useRef(),u=m.useRef();!function(e,t){var n,r=m.useRef([]),i=m.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),m.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Zl(i,e),u.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=$l.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&($l.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),m.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Fl({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return c}}function Ql(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=Ql(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function eu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ql(e))&&(r&&(r+=" "),r+=t);return r}var tu={exports:{}},nu={};
14
+ */fs();var ys=Date.now(),vs="fnValues"+ys,bs="fnStyle"+ ++ys,xs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=la(e,{},n);return r[bs]=t,r},onProcessStyle:function(e,t){if(vs in t||bs in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[vs]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[bs];o&&(i.style=o(e)||{});var a=i[vs];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},ws="@global",Ss="@global ",Cs=function(){function e(e,t,n){for(var r in this.type="global",this.at=ws,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Ba(uo({},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}(),Es=function(){function e(e,t,n){this.type="global",this.at=ws,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Ss.length);this.rule=n.jss.createRule(r,t,uo({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),ks=/\s*,\s*/g;function Ts(e,t){for(var n=e.split(ks),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Rs(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===ws)return new Cs(e,t,n);if("@"===e[0]&&e.substr(0,Ss.length)===Ss)return new Es(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,i=r?r[ws]:null;if(i){for(var o in i)t.addRule(o,i[o],uo({},n,{selector:Ts(o,e.selector)}));delete r[ws]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,ws.length)===ws){var o=Ts(i.substr(ws.length),e.selector);t.addRule(o,r[i],uo({},n,{selector:o})),delete r[i]}}(e,t))}}}var Ds=/\s*,\s*/g,Ms=/&/g,qs=/\$([\w-]+)/g;function Ps(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ds),r=e.split(Ds),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ms,a):a+" "+l}return i}function n(e,t,n){if(n)return uo({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=uo({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,o)),h=h.replace(qs,s);var f=l.key+"-"+c;"replaceRule"in u?u.replaceRule(f,r[c],uo({},a,{selector:h})):u.addRule(f,r[c],uo({},a,{selector:h}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Ns=/[A-Z]/g,Ls=/^ms-/,Is={};function As(e){return"-"+e.toLowerCase()}function Os(e){if(Is.hasOwnProperty(e))return Is[e];var t=e.replace(Ns,As);return Is[e]=Ls.test(t)?"-"+t:t}function zs(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Os(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(zs):t.fallbacks=zs(e.fallbacks)),t}var js=ms&&CSS?CSS.px:"px",Fs=ms&&CSS?CSS.ms:"ms",Hs=ms&&CSS?CSS.percent:"%";function $s(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var _s=$s({"animation-delay":Fs,"animation-duration":Fs,"background-position":js,"background-position-x":js,"background-position-y":js,"background-size":js,border:js,"border-bottom":js,"border-bottom-left-radius":js,"border-bottom-right-radius":js,"border-bottom-width":js,"border-left":js,"border-left-width":js,"border-radius":js,"border-right":js,"border-right-width":js,"border-top":js,"border-top-left-radius":js,"border-top-right-radius":js,"border-top-width":js,"border-width":js,"border-block":js,"border-block-end":js,"border-block-end-width":js,"border-block-start":js,"border-block-start-width":js,"border-block-width":js,"border-inline":js,"border-inline-end":js,"border-inline-end-width":js,"border-inline-start":js,"border-inline-start-width":js,"border-inline-width":js,"border-start-start-radius":js,"border-start-end-radius":js,"border-end-start-radius":js,"border-end-end-radius":js,margin:js,"margin-bottom":js,"margin-left":js,"margin-right":js,"margin-top":js,"margin-block":js,"margin-block-end":js,"margin-block-start":js,"margin-inline":js,"margin-inline-end":js,"margin-inline-start":js,padding:js,"padding-bottom":js,"padding-left":js,"padding-right":js,"padding-top":js,"padding-block":js,"padding-block-end":js,"padding-block-start":js,"padding-inline":js,"padding-inline-end":js,"padding-inline-start":js,"mask-position-x":js,"mask-position-y":js,"mask-size":js,height:js,width:js,"min-height":js,"max-height":js,"min-width":js,"max-width":js,bottom:js,left:js,top:js,right:js,inset:js,"inset-block":js,"inset-block-end":js,"inset-block-start":js,"inset-inline":js,"inset-inline-end":js,"inset-inline-start":js,"box-shadow":js,"text-shadow":js,"column-gap":js,"column-rule":js,"column-rule-width":js,"column-width":js,"font-size":js,"font-size-delta":js,"letter-spacing":js,"text-decoration-thickness":js,"text-indent":js,"text-stroke":js,"text-stroke-width":js,"word-spacing":js,motion:js,"motion-offset":js,outline:js,"outline-offset":js,"outline-width":js,perspective:js,"perspective-origin-x":Hs,"perspective-origin-y":Hs,"transform-origin":Hs,"transform-origin-x":Hs,"transform-origin-y":Hs,"transform-origin-z":Hs,"transition-delay":Fs,"transition-duration":Fs,"vertical-align":js,"flex-basis":js,"shape-margin":js,size:js,gap:js,grid:js,"grid-gap":js,"row-gap":js,"grid-row-gap":js,"grid-column-gap":js,"grid-template-rows":js,"grid-template-columns":js,"grid-auto-rows":js,"grid-auto-columns":js,"box-shadow-x":js,"box-shadow-y":js,"box-shadow-blur":js,"box-shadow-spread":js,"font-line-height":js,"text-shadow-x":js,"text-shadow-y":js,"text-shadow-blur":js});function Us(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Us(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=Us(i,t[i],n);else for(var o in t)t[o]=Us(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||_s[e];return!a||0===t&&a===js?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Vs(e){void 0===e&&(e={});var t=$s(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Us(r,e[r],t);return e},onChangeValue:function(e,n){return Us(n,e,t)}}}var Ws="",Bs="",Ys="",Ks="",Js=ea&&"ontouchstart"in document.documentElement;if(ea){var Gs={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Zs=document.createElement("p").style;for(var Xs in Gs)if(Xs+"Transform"in Zs){Ws=Xs,Bs=Gs[Xs];break}"Webkit"===Ws&&"msHyphens"in Zs&&(Ws="ms",Bs=Gs.ms,Ks="edge"),"Webkit"===Ws&&"-apple-trailing-word"in Zs&&(Ys="apple")}var Qs={js:Ws,css:Bs,vendor:Ys,browser:Ks,isTouch:Js};var el={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Qs.js?"-webkit-"+e:Qs.css+e)}},tl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Qs.js?Qs.css+"print-"+e:e)}},nl=/[-\s]+(.)?/g;function rl(e,t){return t?t.toUpperCase():""}function il(e){return e.replace(nl,rl)}function ol(e){return il("-"+e)}var al,sl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Qs.js){var n="mask-image";if(il(n)in t)return e;if(Qs.js+ol(n)in t)return Qs.css+e}return e}},ll={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Qs.vendor||Qs.isTouch?e:Qs.css+e)}},ul={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Qs.css+e)}},cl={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Qs.css+e)}},dl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Qs.js||"ms"===Qs.js&&"edge"!==Qs.browser?Qs.css+e:e)}},pl={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Qs.js||"ms"===Qs.js||"apple"===Qs.vendor?Qs.css+e:e)}},hl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Qs.js?"WebkitColumn"+ol(e)in t&&Qs.css+"column-"+e:"Moz"===Qs.js&&("page"+ol(e)in t&&"page-"+e))}},fl={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Qs.js)return e;var n=e.replace("-inline","");return Qs.js+ol(n)in t&&Qs.css+n}},ml={supportedProperty:function(e,t){return il(e)in t&&e}},gl={supportedProperty:function(e,t){var n=ol(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Qs.js+n in t?Qs.css+e:"Webkit"!==Qs.js&&"Webkit"+n in t&&"-webkit-"+e}},yl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Qs.js?""+Qs.css+e:e)}},vl={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Qs.js?Qs.css+"scroll-chaining":e)}},bl={"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"},xl={supportedProperty:function(e,t){var n=bl[e];return!!n&&(Qs.js+ol(n)in t&&Qs.css+n)}},wl={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"},Sl=Object.keys(wl),Cl=function(e){return Qs.css+e},El={supportedProperty:function(e,t,n){var r=n.multiple;if(Sl.indexOf(e)>-1){var i=wl[e];if(!Array.isArray(i))return Qs.js+ol(i)in t&&Qs.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Qs.js+ol(i[0])in t))return!1;return i.map(Cl)}return!1}},kl=[el,tl,sl,ll,ul,cl,dl,pl,hl,fl,ml,gl,yl,vl,xl,El],Tl=kl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Rl=kl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ho(t.noPrefill)),e}),[]),Dl={};if(ea){al=document.createElement("p");var Ml=window.getComputedStyle(document.documentElement,"");for(var ql in Ml)isNaN(ql)||(Dl[Ml[ql]]=Ml[ql]);Rl.forEach((function(e){return delete Dl[e]}))}function Pl(e,t){if(void 0===t&&(t={}),!al)return e;if(null!=Dl[e])return Dl[e];"transition"!==e&&"transform"!==e||(t[e]=e in al.style);for(var n=0;n<Tl.length&&(Dl[e]=Tl[n](e,al.style,t),!Dl[e]);n++);try{al.style[e]=""}catch(e){return!1}return Dl[e]}var Nl,Ll={},Il={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Al=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ol(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Pl(t):", "+Pl(n);return r||(t||n)}function zl(e,t){var n=t;if(!Nl||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ll[r])return Ll[r];try{Nl.style[e]=n}catch(e){return Ll[r]=!1,!1}if(Il[e])n=n.replace(Al,Ol);else if(""===Nl.style[e]&&("-ms-flex"===(n=Qs.css+n)&&(Nl.style[e]="-ms-flexbox"),Nl.style[e]=n,""===Nl.style[e]))return Ll[r]=!1,!1;return Nl.style[e]="",Ll[r]=n,Ll[r]}function jl(){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 i=!1,o=Pl(n);o&&o!==n&&(i=!0);var a=!1,s=zl(o,ca(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Qs.js?e:"@"+Qs.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return zl(t,ca(e))||e}}}function Fl(){return{plugins:[xs(),Rs(),Ps(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=zs(e[t]);return e}return zs(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Os(t);return t===r?e:(n.prop(r,e),null)}},Vs(),"undefined"==typeof window?null:jl(),(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={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function Hl(){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=uo({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}ea&&(Nl=document.createElement("p"));var $l={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},_l=$l,Ul=m.createContext(null);function Vl(){return m.useContext(Ul)}var Wl,Bl=fs(Fl()),Yl={disableGeneration:!1,generateClassName:Zo(),jss:Bl,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Kl=m.createContext(Yl);function Jl(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=Co(e,["children","injectFirst","disableGeneration"]),s=uo({},m.useContext(Kl),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Wl){var l=document.head;Wl=document.createComment("mui-inject-first"),l.insertBefore(Wl,l.firstChild)}s.jss=fs({plugins:Fl().plugins,insertionPoint:Wl})}return m.createElement(Kl.Provider,{value:s},t)}var Gl=-1e9;var Zl={};function Xl(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=_l.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},_l.set(i.sheetsManager,o,r,s));var l=uo({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=_l.get(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,uo({link:!1},l))).attach(),i.sheetsCache&&_l.set(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=gs(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,uo({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Hl({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Ql(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?Zl:o,s=Co(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=uo({},i);return Object.keys(o).forEach((function(e){a[e]=ho(a[e],o[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:Gl+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Vl()||a,r=uo({},m.useContext(Kl),s),o=m.useRef(),u=m.useRef();!function(e,t){var n,r=m.useRef([]),i=m.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),m.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Xl(i,e),u.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=_l.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(_l.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),m.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Hl({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return c}}function eu(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=eu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function tu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=eu(e))&&(r&&(r+=" "),r+=t);return r}var nu={exports:{}},ru={};
15
15
  /** @license React v16.11.0
16
16
  * react-is.production.min.js
17
17
  *
@@ -20,4 +20,4 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
22
  */
23
- Object.defineProperty(nu,"__esModule",{value:!0});var ru="function"==typeof Symbol&&Symbol.for,iu=ru?Symbol.for("react.element"):60103,ou=ru?Symbol.for("react.portal"):60106,au=ru?Symbol.for("react.fragment"):60107,su=ru?Symbol.for("react.strict_mode"):60108,lu=ru?Symbol.for("react.profiler"):60114,uu=ru?Symbol.for("react.provider"):60109,cu=ru?Symbol.for("react.context"):60110,du=ru?Symbol.for("react.async_mode"):60111,pu=ru?Symbol.for("react.concurrent_mode"):60111,hu=ru?Symbol.for("react.forward_ref"):60112,fu=ru?Symbol.for("react.suspense"):60113,mu=ru?Symbol.for("react.suspense_list"):60120,gu=ru?Symbol.for("react.memo"):60115,yu=ru?Symbol.for("react.lazy"):60116,vu=ru?Symbol.for("react.fundamental"):60117,bu=ru?Symbol.for("react.responder"):60118,xu=ru?Symbol.for("react.scope"):60119;function wu(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case iu:switch(e=e.type){case du:case pu:case au:case lu:case su:case fu:return e;default:switch(e=e&&e.$$typeof){case cu:case hu:case uu:return e;default:return t}}case yu:case gu:case ou:return t}}}function Su(e){return wu(e)===pu}nu.typeOf=wu,nu.AsyncMode=du,nu.ConcurrentMode=pu,nu.ContextConsumer=cu,nu.ContextProvider=uu,nu.Element=iu,nu.ForwardRef=hu,nu.Fragment=au,nu.Lazy=yu,nu.Memo=gu,nu.Portal=ou,nu.Profiler=lu,nu.StrictMode=su,nu.Suspense=fu,nu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===au||e===pu||e===lu||e===su||e===fu||e===mu||"object"==typeof e&&null!==e&&(e.$$typeof===yu||e.$$typeof===gu||e.$$typeof===uu||e.$$typeof===cu||e.$$typeof===hu||e.$$typeof===vu||e.$$typeof===bu||e.$$typeof===xu)},nu.isAsyncMode=function(e){return Su(e)||wu(e)===du},nu.isConcurrentMode=Su,nu.isContextConsumer=function(e){return wu(e)===cu},nu.isContextProvider=function(e){return wu(e)===uu},nu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===iu},nu.isForwardRef=function(e){return wu(e)===hu},nu.isFragment=function(e){return wu(e)===au},nu.isLazy=function(e){return wu(e)===yu},nu.isMemo=function(e){return wu(e)===gu},nu.isPortal=function(e){return wu(e)===ou},nu.isProfiler=function(e){return wu(e)===lu},nu.isStrictMode=function(e){return wu(e)===su},nu.isSuspense=function(e){return wu(e)===fu},tu.exports=nu;var Cu=tu.exports,Eu={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ku={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tu={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ru={};function Du(e){return Cu.isMemo(e)?Tu:Ru[e.$$typeof]||Eu}Ru[Cu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ru[Cu.Memo]=Tu;var Mu=Object.defineProperty,qu=Object.getOwnPropertyNames,Pu=Object.getOwnPropertySymbols,Nu=Object.getOwnPropertyDescriptor,Lu=Object.getPrototypeOf,Iu=Object.prototype;var Au=function e(t,n,r){if("string"!=typeof n){if(Iu){var i=Lu(n);i&&i!==Iu&&e(t,i,r)}var o=qu(n);Pu&&(o=o.concat(Pu(n)));for(var a=Du(t),s=Du(n),l=0;l<o.length;++l){var u=o[l];if(!(ku[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=Nu(n,u);try{Mu(t,u,c)}catch(e){}}}}return t},Ou=K(Au);function zu(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=So(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(lo({theme:e},n))}}}:{root:t},l=Xl(s,lo({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=m.forwardRef((function(t,r){var i,o,a,s=t.children,u=t.className,c=t.clone,d=t.component,p=So(t,["children","className","clone","component"]),h=eu(l(t).root,u),f=p;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),c)return m.cloneElement(s,lo({className:eu(s.props.className,h)},f));if("function"==typeof s)return s(lo({className:h},f));var g=d||e;return m.createElement(g,lo({ref:r,className:h},f),s)}));return Ou(u,e),u}}function ju(e){var t=e.children,n=e.theme,r=Ul(),i=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):lo({},e,t)}(r,n);return null!=e&&(e[Ko]=null!==r),e}),[n,r]);return m.createElement(_l.Provider,{value:i},t)}var Fu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=So(t,["defaultTheme","withTheme","name"]),l=a,u=Xl(e,lo({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=m.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=So(e,["classes","innerRef"]),c=u(lo({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=Ul()||r,a&&(d=Zo({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),m.createElement(n,lo({ref:s||t,classes:c},d))}));return Ou(c,n),c}},Hu=Yo(),$u=function(e){var t=zu(e);return function(e,n){return t(e,lo({defaultTheme:Hu},n))}};function _u(e,t){return Fu(e,lo({defaultTheme:Hu},t))}function Uu(e){if("string"!=typeof e)throw new Error(mo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Vu(){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),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Wu(e){return e&&e.ownerDocument||document}function Bu(e){return Wu(e).defaultView||window}function Yu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ku="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function Ju(e){var t=g.useRef(e);return Ku((function(){t.current=e})),g.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Gu(e,t){return g.useMemo((function(){return null==e&&null==t?null:function(n){Yu(e,n),Yu(t,n)}}),[e,t])}var Zu=!0,Xu=!1,Qu=null,ec={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 tc(e){e.metaKey||e.altKey||e.ctrlKey||(Zu=!0)}function nc(){Zu=!1}function rc(){"hidden"===this.visibilityState&&Xu&&(Zu=!0)}function ic(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return Zu||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!ec[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function oc(){Xu=!0,window.clearTimeout(Qu),Qu=window.setTimeout((function(){Xu=!1}),100)}function ac(){return{isFocusVisible:ic,onBlurVisible:oc,ref:g.useCallback((function(e){var t,n=x.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",tc,!0),t.addEventListener("mousedown",nc,!0),t.addEventListener("pointerdown",nc,!0),t.addEventListener("touchstart",nc,!0),t.addEventListener("visibilitychange",rc,!0))}),[])}}var sc=!1,lc=m.createContext(null),uc="unmounted",cc="exited",dc="entering",pc="entered",hc="exiting",fc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=cc,r.appearStatus=dc):i=pc:i=t.unmountOnExit||t.mountOnEnter?uc:cc,r.state={status:i},r.nextCallback=null,r}ra(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===uc?{status:cc}: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!==dc&&n!==pc&&(t=dc):n!==dc&&n!==pc||(t=hc)}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===dc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cc&&this.setState({status:uc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[w.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||sc?this.safeSetState({status:pc},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:dc},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:pc},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!sc?(this.props.onExit(r),this.safeSetState({status:hc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:cc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:cc},(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:w.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===uc)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=wo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(lc.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function mc(){}fc.contextType=lc,fc.propTypes={},fc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mc,onEntering:mc,onEntered:mc,onExit:mc,onExiting:mc,onExited:mc},fc.UNMOUNTED=uc,fc.EXITED=cc,fc.ENTERING=dc,fc.ENTERED=pc,fc.EXITING=hc;var gc=fc;function yc(e,t){var n=Object.create(null);return e&&y.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&v(e)?t(e):e}(e)})),n}function vc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function bc(e,t,n){var r=yc(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(v(a)){var s=o in t,l=o in r,u=t[o],c=v(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&v(u)&&(i[o]=b(a,{onExited:n.bind(null,a),in:u.props.in,exit:vc(a,"exit",e),enter:vc(a,"enter",e)})):i[o]=b(a,{in:!1}):i[o]=b(a,{onExited:n.bind(null,a),in:!0,exit:vc(a,"exit",e),enter:vc(a,"enter",e)})}})),i}var xc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},wc=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(ia(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ra(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,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,yc(n.children,(function(e){return b(e,{onExited:r.bind(null,e),in:!0,appear:vc(e,"appear",n),enter:vc(e,"enter",n),exit:vc(e,"exit",n)})}))):bc(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=yc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=lo({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=wo(e,["component","childFactory"]),i=this.state.contextValue,o=xc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(lc.Provider,{value:i},o):m.createElement(lc.Provider,{value:i},m.createElement(t,r,o))},t}(m.Component);wc.propTypes={},wc.defaultProps={component:"div",childFactory:function(e){return e}};var Sc=wc;function Cc(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var Ec=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,p=So(e,["classes","className","component","square","elevation","variant"]);return g.createElement(o,lo({className:eu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},p))})),kc=_u((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),lo({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"})(Ec),Tc="undefined"==typeof window?g.useEffect:g.useLayoutEffect;function Rc(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=g.useState(!1),p=d[0],h=d[1],f=eu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=eu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Ju(u);return Tc((function(){if(!s){h(!0);var e=setTimeout(v,c);return function(){clearTimeout(e)}}}),[v,s,c]),g.createElement("span",{className:f,style:m},g.createElement("span",{className:y}))}var Dc=g.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=So(e,["center","classes","className"]),s=g.useState([]),l=s[0],u=s[1],c=g.useRef(0),d=g.useRef(null);g.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=g.useRef(!1),h=g.useRef(null),f=g.useRef(null),m=g.useRef(null);g.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=g.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(Fo(e),[g.createElement(Rc,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),v=g.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,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,d,g,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))}e.touches?null===f.current&&(f.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),b=g.useCallback((function(){v({},{pulsate:!0})}),[v]),x=g.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(h.current=setTimeout((function(){x(e,t)})));f.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),g.createElement("span",lo({className:eu(i.root,o),ref:m},a),g.createElement(Sc,{component:null,exit:!0},l))})),Mc=_u((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"})(g.memo(Dc)),qc=g.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,p=void 0!==d&&d,h=e.disableRipple,f=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,w=e.focusVisibleClassName,S=e.onBlur,C=e.onClick,E=e.onFocus,k=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,D=e.onMouseDown,M=e.onMouseLeave,q=e.onMouseUp,P=e.onTouchEnd,N=e.onTouchMove,L=e.onTouchStart,I=e.onDragLeave,A=e.tabIndex,O=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,H=So(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"]),$=g.useRef(null);var _=g.useRef(null),U=g.useState(!1),V=U[0],W=U[1];p&&V&&W(!1);var B=ac(),Y=B.isFocusVisible,K=B.onBlurVisible,J=B.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Ju((function(r){return t&&t(r),!n&&_.current&&_.current[e](r),!0}))}g.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),$.current.focus()}}}),[]),g.useEffect((function(){V&&b&&!f&&_.current.pulsate()}),[f,b,V]);var Z=G("start",D),X=G("stop",I),Q=G("stop",q),ee=G("stop",(function(e){V&&e.preventDefault(),M&&M(e)})),te=G("start",L),ne=G("stop",P),re=G("stop",N),ie=G("stop",(function(e){V&&(K(e),W(!1)),S&&S(e)}),!1),oe=Ju((function(e){$.current||($.current=e.currentTarget),Y(e)&&(W(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=x.findDOMNode($.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},se=g.useRef(!1),le=Ju((function(e){b&&!se.current&&V&&_.current&&" "===e.key&&(se.current=!0,e.persist(),_.current.stop(e,(function(){_.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),C&&C(e))})),ue=Ju((function(e){b&&" "===e.key&&_.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),_.current.stop(e,(function(){_.current.pulsate(e)}))),R&&R(e),C&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&C(e)})),ce=c;"button"===ce&&H.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=p):("a"===ce&&H.href||(de.role="button"),de["aria-disabled"]=p);var pe=Gu(r,t),he=Gu(J,$),fe=Gu(pe,he),me=g.useState(!1),ge=me[0],ye=me[1];g.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!p;return g.createElement(ce,lo({className:eu(s.root,l,V&&[s.focusVisible,w],p&&s.disabled),onBlur:ie,onClick:C,onFocus:oe,onKeyDown:le,onKeyUp:ue,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:p?-1:O},de,H),a,ve?g.createElement(Mc,lo({ref:_,center:o},z)):null)})),Pc=_u({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"})(qc),Nc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Lc=g.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,f=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?Nc:x,S=So(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(y?"p":w[b]||Nc[b])||"span";return g.createElement(C,lo({className:eu(i.root,o,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(Uu(s))],f&&i.noWrap,p&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(Uu(r))],"initial"!==c&&i["display".concat(Uu(c))]),ref:t},S))})),Ic=_u((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"})(Lc),Ac=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,f=void 0!==h&&h,m=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,E=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,R=So(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=S&&g.createElement("span",{className:eu(r.startIcon,r["iconSize".concat(Uu(w))])},S),M=m&&g.createElement("span",{className:eu(r.endIcon,r["iconSize".concat(Uu(w))])},m);return g.createElement(Pc,lo({className:eu(r.root,r[T],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Uu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(Uu(w))],r["size".concat(Uu(w))]],p&&r.disableElevation,c&&r.disabled,b&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:eu(r.focusVisible,y),ref:t,type:E},R),g.createElement("span",{className:r.label},D,n,M))})),Oc=_u((function(e){return{root:lo({},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:xo(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:xo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:xo(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(xo(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:xo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(xo(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:xo(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"})(Ac);var zc="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,jc=g.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g.useState(null),l=s[0],u=s[1],c=Gu(g.isValidElement(n)?n.ref:null,t);return zc((function(){o||u(function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(r)||document.body)}),[r,o]),zc((function(){if(l&&!o)return Yu(t,l),function(){Yu(t,null)}}),[t,l,o]),zc((function(){a&&(l||o)&&a()}),[a,l,o]),o?g.isValidElement(n)?g.cloneElement(n,{ref:c}):n:l?x.createPortal(n,l):l})),Fc=jc;function Hc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $c(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function _c(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Fo(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&Hc(e,r)}))}function Uc(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Vc(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Wu(e);return t.body===e?Bu(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){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:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat($c(o)+a,"px"),n=Wu(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat($c(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[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 Wc=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 ta(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&&Hc(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);_c(t,e.mountNode,e.modalRef,r,!0);var i=Uc(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Uc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Vc(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Uc(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&&Hc(e.modalRef,!0),_c(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Hc(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Bc(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=g.useRef(),p=g.useRef(null),h=g.useRef(null),f=g.useRef(),m=g.useRef(null),y=g.useCallback((function(e){m.current=x.findDOMNode(e)}),[]),v=Gu(t.ref,y),b=g.useRef();return g.useEffect((function(){b.current=c}),[c]),!b.current&&c&&"undefined"!=typeof window&&(f.current=l().activeElement),g.useEffect((function(){if(c){var e=Wu(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()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,o,s,u,c]),g.createElement(g.Fragment,null,g.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),g.cloneElement(t,{ref:v}),g.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var Yc={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"}},Kc=g.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=So(e,["invisible","open"]);return i?g.createElement("div",lo({"aria-hidden":!0,ref:t},o,{style:lo({},Yc.root,r?Yc.invisible:{},o.style)})):null}));var Jc=new Wc,Gc=g.forwardRef((function(e,t){var n=Ul(),r=Zo({name:"MuiModal",props:lo({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?Kc:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,h=r.disableBackdropClick,f=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,w=r.disablePortal,S=void 0!==w&&w,C=r.disableRestoreFocus,E=void 0!==C&&C,k=r.disableScrollLock,T=void 0!==k&&k,R=r.hideBackdrop,D=void 0!==R&&R,M=r.keepMounted,q=void 0!==M&&M,P=r.manager,N=void 0===P?Jc:P,L=r.onBackdropClick,I=r.onClose,A=r.onEscapeKeyDown,O=r.onRendered,z=r.open,j=So(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=g.useState(!0),H=F[0],$=F[1],_=g.useRef({}),U=g.useRef(null),V=g.useRef(null),W=Gu(V,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Wu(U.current)},K=function(){return _.current.modalRef=V.current,_.current.mountNode=U.current,_.current},J=function(){N.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},G=Ju((function(){var e=function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(c)||Y().body;N.add(K(),e),V.current&&J()})),Z=g.useCallback((function(){return N.isTopModal(K())}),[N]),X=Ju((function(e){U.current=e,e&&(O&&O(),z&&Z()?J():Hc(V.current,!0))})),Q=g.useCallback((function(){N.remove(K())}),[N]);if(g.useEffect((function(){return function(){Q()}}),[Q]),g.useEffect((function(){z?G():B&&u||Q()}),[z,Q,B,u,G]),!q&&!z&&(!B||H))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:Bo}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),B&&(te.onEnter=Vu((function(){$(!1)}),s.props.onEnter),te.onExited=Vu((function(){$(!0),u&&Q()}),s.props.onExited)),g.createElement(Fc,{ref:X,container:c,disablePortal:S},g.createElement("div",lo({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(A&&A(e),b||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:lo({},ee.root,!z&&H?ee.hidden:{},j.style)}),D?null:g.createElement(o,lo({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!f&&I&&I(e,"backdropClick"))}},a)),g.createElement(Bc,{disableEnforceFocus:y,disableAutoFocus:p,disableRestoreFocus:E,getDoc:Y,isEnabled:Z,open:z},g.cloneElement(s,te))))})),Zc=Gc;function Xc(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Qc={entering:{opacity:1,transform:Xc(1)},entered:{opacity:1,transform:"none"}},ed=g.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,f=void 0===h?"auto":h,m=e.TransitionComponent,y=void 0===m?gc:m,v=So(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=g.useRef(),x=g.useRef(),w=Ul()||Hu,S=w.unstable_strictMode&&!i,C=g.useRef(null),E=Gu(n.ref,t),k=Gu(S?C:void 0,E),T=function(e){return function(t,n){if(e){var r=Ho(S?[C.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},R=T(l),D=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Cc({style:p,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),M=T(s),q=T(d),P=T((function(e){var t,n=Cc({style:p,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=Xc(.75),u&&u(e)})),N=T(c);return g.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),g.createElement(y,lo({appear:!0,in:o,nodeRef:S?C:void 0,onEnter:D,onEntered:M,onEntering:R,onExit:P,onExited:N,onExiting:q,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===f?null:f},v),(function(e,t){return g.cloneElement(n,lo({style:lo({opacity:0,transform:Xc(.75),visibility:"exited"!==e||o?void 0:"hidden"},Qc[e],p,n.props.style),ref:k},t))}))}));ed.muiSupportAuto=!0;var td=ed,nd=g.createContext({}),rd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,p=So(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g.useMemo((function(){return{dense:l}}),[l]);return g.createElement(nd.Provider,{value:h},g.createElement(a,lo({className:eu(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},p),d,n))})),id=_u({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rd),od="undefined"==typeof window?g.useEffect:g.useLayoutEffect,ad=g.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,p=e.ContainerComponent,h=void 0===p?"li":p,f=e.ContainerProps,m=(f=void 0===f?{}:f).className,y=So(f,["className"]),v=e.dense,b=void 0!==v&&v,w=e.disabled,S=void 0!==w&&w,C=e.disableGutters,E=void 0!==C&&C,k=e.divider,T=void 0!==k&&k,R=e.focusVisibleClassName,D=e.selected,M=void 0!==D&&D,q=So(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=g.useContext(nd),N={dense:b||P.dense||!1,alignItems:r},L=g.useRef(null);od((function(){o&&L.current&&L.current.focus()}),[o]);var I,A,O=g.Children.toArray(l),z=O.length&&(I=O[O.length-1],A=["ListItemSecondaryAction"],g.isValidElement(I)&&-1!==A.indexOf(I.type.muiName)),j=Gu(g.useCallback((function(e){L.current=x.findDOMNode(e)}),[]),t),F=lo({className:eu(u.root,c,N.dense&&u.dense,!E&&u.gutters,T&&u.divider,S&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,z&&u.secondaryAction,M&&u.selected),disabled:S},q),H=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=eu(u.focusVisible,R),H=Pc),z?(H=F.component||d?H:"div","li"===h&&("li"===H?H="div":"li"===F.component&&(F.component="div")),g.createElement(nd.Provider,{value:N},g.createElement(h,lo({className:eu(u.container,m),ref:j},y),g.createElement(H,F,O),O.pop()))):g.createElement(nd.Provider,{value:N},g.createElement(H,lo({ref:j},F),O))})),sd=_u((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"})(ad),ld=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=So(e,["classes","className"]),o=g.useContext(nd);return g.createElement("div",lo({className:eu(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),ud=_u((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ld),cd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=So(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=g.useContext(nd).dense,m=null!=u?u:n;null==m||m.type===Ic||a||(m=g.createElement(Ic,lo({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var y=d;return null==y||y.type===Ic||a||(y=g.createElement(Ic,lo({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),y)),g.createElement("div",lo({className:eu(r.root,i,f&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),dd=_u({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(cd);function pd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function fd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function md(e){return"function"==typeof e?e():e}var gd=g.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,p=e.container,h=e.elevation,f=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,v=void 0===y?16:y,b=e.onEnter,w=e.onEntered,S=e.onEntering,C=e.onExit,E=e.onExited,k=e.onExiting,T=e.open,R=e.PaperProps,D=void 0===R?{}:R,M=e.transformOrigin,q=void 0===M?{vertical:"top",horizontal:"left"}:M,P=e.TransitionComponent,N=void 0===P?td:P,L=e.transitionDuration,I=void 0===L?"auto":L,A=e.TransitionProps,O=void 0===A?{}:A,z=So(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=g.useRef(),F=g.useCallback((function(e){if("anchorPosition"===l)return a;var t=md(r),n=(t&&1===t.nodeType?t:Wu(j.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+pd(n,i),left:n.left+hd(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),H=g.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}),[o.vertical,l,m]),$=g.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:pd(e,q.vertical)+t,horizontal:hd(e,q.horizontal)}}),[q.horizontal,q.vertical]),_=g.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:fd(i)};var o=F(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=Bu(md(r)),p=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var f=a-v;a-=f,i.vertical+=f}else if(u>p){var m=u-p;a-=m,i.vertical+=m}if(s<v){var g=s-v;s-=g,i.horizontal+=g}else if(c>h){var y=c-h;s-=y,i.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:fd(i)}}),[r,l,F,H,$,v]),U=g.useCallback((function(){var e=j.current;if(e){var t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[_]),V=g.useCallback((function(e){j.current=x.findDOMNode(e)}),[]);g.useEffect((function(){T&&U()})),g.useImperativeHandle(n,(function(){return T?{updatePosition:function(){U()}}:null}),[T,U]),g.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,U]);var W=I;"auto"!==I||N.muiSupportAuto||(W=void 0);var B=p||(r?Wu(md(r)).body:void 0);return g.createElement(Zc,lo({container:B,open:T,ref:t,BackdropProps:{invisible:!0},className:eu(c.root,d)},z),g.createElement(N,lo({appear:!0,in:T,onEnter:b,onEntered:w,onExit:C,onExited:E,onExiting:k,timeout:W},O,{onEntering:Vu((function(e,t){S&&S(e,t),U()}),O.onEntering)}),g.createElement(kc,lo({elevation:f,ref:V},D,{className:eu(c.paper,D.className)}),u)))})),yd=_u({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gd);function vd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:vd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return m.createElement("i",{style:i},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},m.createElement("path",{d:e})))}const xd={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},wd={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"},Sd={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},Cd={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"},Ed={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"};function kd(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=Oi.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 Td(e,t,n,r,i,o){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)),u=ie(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],o||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,i&&i({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),kd(e,a,u)}))}const Rd=(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))};function Dd({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=Rd(o,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return e},changeTo(e,t){Td(r,e,t,"qDimensions",a)}}}function Md(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function qd({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=Rd(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return n},changeTo(e,t){Td(i,e,t,"qMeasures",o,a)}}}function Pd(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const Nd={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"}}},Ld={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},Id=$u(sd)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Ad=$u((({children:e,...t})=>m.createElement(Oc,Y({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}})));function Od(e){const t=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Ld.menuItem}`);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 n({title:e,selected:n,onClick:r}){const i=ve.detectTextDirection(e);return m.createElement(Id,{role:"menuitem",button:!0,onClick:r,className:Ld.menuItem,onKeyDown:t},m.createElement(ud,{style:{minWidth:32}},m.createElement(bd,{d:n?Sd.d:""})),m.createElement(dd,{primaryTypographyProps:{dir:i}},e))}function r({alignTo:e,changeTo:t,current:r,dir:i,dock:o,list:a,onClose:s,show:l,instruction:u}){const c=a.map((e=>m.createElement(n,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return m.createElement(yd,Y({anchorEl:e,open:l,onClose:s},Nd[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),m.createElement(id,{dense:!0,dir:i,"aria-label":u,component:"nav"},m.createElement(n,{title:r,selected:!0,onClick:s}),c))}n.propTypes={title:Qi.string.isRequired,selected:Qi.bool,onClick:Qi.func.isRequired},n.defaultProps={selected:!1},r.propTypes={alignTo:Qi.any,changeTo:Qi.func.isRequired,current:Qi.string.isRequired,dir:Qi.string.isRequired,dock:Qi.string.isRequired,list:Qi.array,onClose:Qi.func.isRequired,show:Qi.bool.isRequired,instruction:Qi.string.isRequired},r.defaultProps={list:[],alignTo:null};class i extends m.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=m.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=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&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives: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))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Ld.titleButton}`);t&&t.classList.add(Ld.activeTitleButton)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${Ld.menuItem}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Ld.titleButton}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Ld.activeTitleButton}`);e&&(e.classList.remove(Ld.activeTitleButton),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u}=this.props,c={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>m.createElement(Ad,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:e.drillUp(d-n),title:t},m.createElement("span",{style:c},t),m.createElement(bd,Y({},Ed,{size:"small",style:{margin:"0 8px"}}))))),f=u?this.state.hasValidAlternatives:l,g=t&&!this.state.open?this.openPopover:this.closePopover,y=!t||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(v.background="rgba(0,0,0,0.08)");a&&(v.padding=a),s&&(v.minWidth=s);const b=ve.detectTextDirection(e.text),x=m.createElement(Ad,{"aria-label":n.get("Accessibility.Alternative.Instructions",[e.text]),style:v,onClick:y?void 0:g,title:e.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:`${Ld.titleButton} ${e.id}`,"data-id":e.id},e.locked&&m.createElement(bd,Y({},wd,{size:"small",title:n.get("Tooltip.selections.locked")})),m.createElement("span",{style:c,dir:b},e.text),t&&f&&m.createElement(bd,Y({},Cd,{size:"small",style:{margin:"0 8px"}})));return m.createElement(m.Fragment,null,e.drilldown&&m.createElement(bd,Y({},xd,{size:"small",title:n.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),h,m.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:f?"auto":"none",height:"100%"}},x),t&&f&&m.createElement(r,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions")}))}}function o(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return i.propTypes={disabled:Qi.bool.isRequired,padding:Qi.string,minWidth:Qi.string,titleData:Qi.shape({breadcrumbs:Qi.arrayOf(Qi.string).isRequired,drilldown:Qi.bool.isRequired,index:Qi.number.isRequired,locked:Qi.bool.isRequired,text:Qi.string.isRequired,popoverText:Qi.string.isRequired,drillUp:Qi.func,id:Qi.string.isRequired}).isRequired,popover:Qi.shape({dir:Qi.string.isRequired,dock:Qi.string.isRequired,changeTo:Qi.func.isRequired,getAlternatives:Qi.func.isRequired}),translator:Qi.shape({get:Qi.func.isRequired}).isRequired,selections:Qi.shape({isActive:Qi.func,addListener:Qi.func,removeListener:Qi.func}),style:Qi.shape({fontSize:Qi.string,color:Qi.string,fontFamily:Qi.string}).isRequired,isDimension:Qi.bool.isRequired,hasAlternative:Qi.bool.isRequired,supportConditional:Qi.bool.isRequired},i.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:r,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:p,rtl:h,selections:f,skipAttributeExpressions:g,translator:y,supportConditional:v=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!h?"ltr":"rtl",w=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}(b,this.rect),S=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,C=S&&S[l?"qDimensions":"qMeasures"]||[],E=n||r[l?"qDimensionInfo":"qMeasureInfo"],k=l?Dd:qd,T=l?Md:Pd,R=c&&c.colorSupport&&c.modifiers&&k({altList:C,app:e,dir:h?"rtl":"ltr",dock:o(b),model:c,onChange:d,skipAttributeExpressions:g,translator:y}),D=(M=this.settings.settings).isDimension&&he.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var M;const q=E.map(((e,n)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:n,o=T(e,r,c),a=n===E.length-1;return m.createElement(m.Fragment,{key:e.cId},m.createElement(i,{popover:R,titleData:o,model:c,translator:y,selections:f,disabled:t(),style:this.style,isDimension:l,padding:p,minWidth:u,hasAlternative:D,supportConditional:v}),!a&&m.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return m.createElement("div",{style:w,dir:x},q)}}}const zd=function(){return Yo.apply(void 0,arguments)}({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 jd=Go({productionPrefix:"qe5c2",disableGlobal:!0,seed:""});function Fd(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){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!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={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=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",w.render(function(e,t){return m.createElement(Kl,{generateClassName:t},m.createElement(ju,{theme:zd},e))}(e,jd),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&w.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(w.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function Hd(){return function(e){e.renderer("react",Fd()),e.component("data-title",Od(e.renderer("svg")())),e.component("disclaimer",function(){class e extends m.Component{render(){const{label:e,spanStyle:t}=this.props;return m.createElement(m.Fragment,null,m.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:Qi.string.isRequired,spanStyle:Qi.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=`${n.height}px`,r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=`${n.height}px`,r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=`${n.width}px`,r.height=`${n.height}px`,r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return m.createElement("div",{style:a,dir:o},m.createElement(m.Fragment,null,m.createElement(e,{label:s,spanStyle:l})))}}}())}}function $d(e){return vt(e).l<70}function _d(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Ud(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Vd={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 i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(_d(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,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=Ud({r:s,a:e},n),o=Ud({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:$d(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Wd(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 Bd(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(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*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Wd(s)}}var Yd={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,u=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),c=Bd({size:t.size,fill:t.fill,angle:l+Math.PI,...u});c.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(c)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Kd(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",B(e))};e.interaction("hammer",B(Hammer))}(t)),e.use(Hd()),e.component("pie-dividers",Vd),e.component("negative-indicators",Yd),e}var Jd={};function Gd(){Gd.init.call(this)}Jd.isObject=function(e){return"object"==typeof e&&null!==e},Jd.isNumber=function(e){return"number"==typeof e},Jd.isUndefined=function(e){return void 0===e},Jd.isFunction=function(e){return"function"==typeof e};var Zd=Gd;Gd.EventEmitter=Gd,Gd.prototype._events=void 0,Gd.prototype._maxListeners=void 0,Gd.defaultMaxListeners=10,Gd.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Gd.prototype.setMaxListeners=function(e){if(!Jd.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Gd.prototype.emit=function(e){var t,n,r,i,o,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],Jd.isUndefined(n))return!1;if(Jd.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,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(Jd.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},Gd.prototype.addListener=function(e,t){var n;if(!Jd.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Jd.isFunction(t.listener)?t.listener:t),this._events[e]?Jd.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Jd.isObject(this._events[e])&&!this._events[e].warned)&&((n=Jd.isUndefined(this._maxListeners)?Gd.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Jd.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),Jd.isFunction(console.trace)&&console.trace()));return this},Gd.prototype.on=Gd.prototype.addListener,Gd.prototype.once=function(e,t){if(!Jd.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},Gd.prototype.removeListener=function(e,t){var n,r,i,o;if(!Jd.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||Jd.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Jd.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;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},Gd.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],Jd.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},Gd.prototype.listeners=function(e){return this._events&&this._events[e]?Jd.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Gd.listenerCount=function(e,t){return e._events&&e._events[t]?Jd.isFunction(e._events[t])?1:e._events[t].length:0};var Xd=K(Zd);const Qd=e=>(Object.keys(Xd.prototype).forEach((t=>{e[t]=Xd.prototype[t]})),Xd.init(e),e);function ep({picasso:e}){var t;const n=S(),r=C(),i=E(),[o,u]=k(),c=function(){const e={};return Qd(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=T(),p=R(),h=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[f,m]=k(!1);return c.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o,a,s;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.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:h,isLassoActionActive:f,setIsLassoActionActive:m,translator:p}),D((()=>(o&&(o.interactions.lasso.active=()=>f),{...c.lasso})),[o,f,h,p.language()]),M((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),o=t.chart({element:r,data:[],settings:{}}),p=a({chart:o,actions:c,selections:i,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const h=s({legendScrollOffset:0,rotation:0});h.intercept("rotation",(e=>(h.get("rotation")+e)%(2*Math.PI))),h.onChanged("rotation",(()=>{o.update({partialData:!0})}));const f=l();return c.on("selections-start",(()=>{o.brush("selection").start()})),u({picasso:t,chart:o,selectionService:p,viewState:h,viewCache:f,interactions:c}),()=>{p.destroy(),o.destroy(),c.removeAllListeners(),delete c.select,h.intercept("rotation",void 0),h.onChanged("rotation",void 0)}}),[]),o}const tp={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 np(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const rp={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={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,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function ip(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r,i,o;let a,s,l,u,c,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(i=e.session)&&void 0!==i&&null!==(o=i.config)&&void 0!==o&&o.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var h;a=null===(h=e.session)||void 0===h?void 0:h.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",u=a.port?`:${a.port}`:"",c=a.prefix?a.prefix:"/","/"!==c[c.length-1]&&(c=`${c}/`),s+l+u+c}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await rp.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function op(e,t,n,r){var i,o,a,s,l,u;const{app:c,flags:d}=t,p=null===(i=e.layout)||void 0===i||null===(o=i.tooltip)||void 0===o?void 0:o.imageComponents;if(!p)return[];const[h]=p,f=h.size||"small",m=h.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===h.cId){g=e;break}const y=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let v;if(-1!==g&&y[g]&&(v=y[g]),"media"===m&&null!==(l=h.ref)&&void 0!==l&&null!==(u=l.qStaticContentUrl)&&void 0!==u&&u.qUrl)return ip(h,f,c);if("url"===m)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&np(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await rp.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await rp.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(c,d,h,f,v);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&v&&v.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(np(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await rp.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(c,n[g],f,v)}return[]}const ap={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(op(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},sp={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await ap.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>ap.checkIfPromisesExist({customTooltipModel:e})};const lp=(e,t)=>{var n,r,i;const o=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===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:tp.CHART.CHART_PARENT_TYPE,qId:tp.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},up=e=>{var t,n,r;const i=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:tp.CHART.CHART_CHILD_TYPE},qExtendsId:i}};const cp={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,i,o;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(i=r.chart)||void 0===i||null===(o=i.style)||void 0===o?void 0:o.size)&&void 0!==n?n:"medium",s=tp.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:tp.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a,s,l;const u=i,c=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=u&&u.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&c&&!(t.qHyperCubeDef.qDimensions.length<=0)){await cp.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=tp.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=tp.CHART.STATE,a=lp(t,o),s=await e.createSessionObject(a),l=up(t);if(s.id!==tp.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(u.miniChartToken.alternateState&&u.miniChartToken.sessionObj&&a){var d,p,h,f;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var y;const t=null==e||null===(y=e.source)||void 0===y?void 0:y.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&u.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&u.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(tp.CHART.CONTAINER_ID),l={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};u.miniChartToken.vis=await i.embed.render({element:s,model:u.miniChartToken.model,options:l,id:null===(h=u.miniChartToken.model)||void 0===h?void 0:h.id,type:null===(f=u.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await cp.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(cp.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(tp.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=tp.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function dp(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function pp(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=tp.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function hp(e){const t=pp();return e.filter((e=>t[e.id]))}const fp={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 i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[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(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[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===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=fp.getAttrExprData(a);o.length||n.length?sp.handlePromises({customTooltipModel:i,nodes:fp.getDataNodes(s,o.length>0?o: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!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&cp.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>sp.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o,a,s;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[tp.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[tp.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[tp.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(hp(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[tp.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[tp.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=dp(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===hp(i).length){var o,a;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(a=o.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...i,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=dp(e)||[];[...i,t].forEach((e=>{const t=hp(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=pp(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[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:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.detectTextDirection(e.src),r=[],i={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"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function mp(e,t,n,r){var i,o,a;const s=(null===(i=t.qHyperCube)||void 0===i||null===(o=i[n])||void 0===o||null===(a=o[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],u=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return u?(s.forEach(((e,t)=>{const i=u.qValues&&u.qValues[t]?u.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case tp.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case tp.CUSTOM.TITLE:case tp.CUSTOM.DESCRIPTION:case tp.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),l):l}const gp={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>mp(t,e,r,n)}}};const yp={getCustomAttrExps(e,t,n){var r,i;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(i=r.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];if(Number.isNaN(a))return o;return function(e,t,n,r){const i={[tp.CUSTOM.TITLE]:!0,[tp.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=fp.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===tp.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===tp.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>be.getMeasure(e,t))),e,o)}};function vp({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(yp.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 bp(e){const t=tp.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function xp(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var wp={attrExpr:{migrateProperties(e){var t,n,r,i;const o=ie(!0,{},e),a=(null===(t=o.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=xp(o);return s=function(e,t){return t.concat(e.map((e=>bp(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,o),null===(i=o.tooltip)||void 0===i||delete i.data,o},getPatches(e){var t,n,r,i;const o=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qDimensions.length)-1,s=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=bp(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(xp(e),o,a);return s},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,i,o,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],u=(null===(i=t.tooltip)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.qHyperCube)||{},c=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(u,l)&&e.getEffectiveProperties().then((t=>{if(c){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:Sp}=tp;function Cp({flags:e,layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u,options:c}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:fp,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u}),h="rtl"===c.direction,f=()=>{var e,n;const r=!(null===(e=d.properties)||void 0===e||null===(n=e.qHyperCubeDef)||void 0===n||!n.qDimensions.some((e=>{var t,n;return null===(t=e.qCalcCondition)||void 0===t||null===(n=t.qCond)||void 0===n?void 0:n.qv})));return!(!t.tooltip||t.tooltip.auto||r)};return{setProperties:e=>{d.properties=e},isEnabled:()=>f(),hideBasic:()=>f()&&i(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=vp({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Sp.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Sp.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>fp.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>fp.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const i=fp.getDataNodes(a,r),{attrExps:o}=fp.getAttrExprData(t);return sp.handlePromises({customTooltipModel:p,nodes:i,attrExps:o,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(f()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(n=e.chart)&&void 0!==n&&null!==(i=n.object)&&void 0!==i&&i.refId&&u&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e,n,i},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>cp.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>fp.getFooterRow(s.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>cp.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>cp.hide({app:n,customTooltipModel:p}),destroy:()=>cp.destroyVisualization({customTooltipModel:p})}}}function Ep(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function kp({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:d}=o.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:i,create:o,util:a})=>{const[u]=n,{title:c,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];c&&h.push(o.text({value:c,style:{bold:!0}})),d&&h.push(o.text({value:d}));const f=s.hideBasic();if(f&&!p.length&&(c||d)||h.push(o.text({value:u.data.label,style:{bold:!0}})),!f){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=u.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=u.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(u.desc.share)}))}p&&h.push(...p.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=u.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},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"}}}})}function Tp({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Rp=.8,Dp=.55,Mp=.3,qp={CORNER_RADIUS:0,INNER_RADIUS:Dp,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Pp=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=Rp,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Dp;e.donut.showAsDonut&&(o=Rp-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:Rp,Np=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Dp;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Rp-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},Lp=({layout:e},t)=>{var n,r,i,o,a,s;const l=t.colorService.getDatumProps(),u=l[Object.keys(l)[0]],c=u&&u.field?u.field:void 0,d="qDimensionInfo/0"===c,p=c?t.ds.field(c).raw():null,h=p&&(p.label||p.title||p.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=he.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function y(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(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:{...l,num:y(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:h,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?gp.getNode(e,{dimensionCount:g}):void 0,radius:f?y(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:Np({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?qp.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:qp.STROKE.WIDTH.NONE,stroke:null!==(r=null==v||null===(i=v.style)||void 0===i||null===(o=i.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:qp.STROKE.COLOR,outerRadius:Pp({layout:e},t,v),cornerRadius:null!==(a=null==v||null===(s=v.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Ip({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Dp,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=Rp-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Ap(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 Op({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}}}const zp=()=>({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}}}),jp=()=>({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}}});function Fp(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Hp(e){return e.node.data.num.label}function $p(e){return e.node.data.radius.label}function _p(e,t,n){if(e.dataPoint.auto)return n?Hp:Fp;if("share"===e.dataPoint.labelMode)return Fp;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?$p:Hp}return null}function Up({data:e}){return e?e.label:""}function Vp(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Wp=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Bp(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:Dp)>Mp}function Yp({node:e,data:t}){return ie({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Kp(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Vp(r.fontSize),fontFamily:r.fontFamily,label:Up,linkData:({node:e,data:t})=>ie({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(_p(e,t,!1)){const r=function(e,t,n){return{label:_p(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Bp(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Bp(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Se(ie(t,r),n.theme);o.linkData=Yp,i.push(o)}return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Jp({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=_p(e,t,!0),i=Wp(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,u=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:Vp(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:Up,linkData:({data:e})=>e},{fontSize:Vp(s.fontSize),fontFamily:s.fontFamily,fill:u&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Kp(e,n,t))}const Gp=(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)),i=(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 i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},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 Zp(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function Xp(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=Zp(e,t),o=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*Rp;return(o-r)**2+(a-i)**2<=s**2}const Qp=(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 i=Zp(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),eh=(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()}}}),th=(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 nh(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Xp(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 rh=(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()&&Xp(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}}}),ih=(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}}}),oh=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[rh(e,{}),Qp(e,t,{}),...n]:[Gp(e,{}),th(e,{}),rh(e,{}),eh(e,{}),ih(e,{}),Qp(e,t,{}),...n]});function ah(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[oh(t,r,o.gestures),nh(t),o.native]}function sh({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 lh({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=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:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function uh({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const i=he.getValue(e,"qHyperCube.qSize.qcy");if(he.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const o=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:se[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),rtl:o},style:r}}(r,t,n,{fontFamily:i})}function ch({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return ie(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&ie(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),o={scales:i};let a=[];const s=uh({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,u=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 i.fillRange&&u.components[0]&&("right"===u.components[0].layout.dock||"left"===u.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[Lp({layout:e,settings:o},r),Ip({layout:e},r),Ap(r),Op({layout:e},r),lh({layout:e},r,t),...u.components,Tp({settings:o,scaleKey:"fill",legend:u.components[0]||{},onEdited:r.onSelect}),jp(),zp(),Jp({layout:{components:e.components,dataPoint:ie({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:ah(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:sh({settings:o},r),strategy:de(0,r)}}function dh({instance:e,services:t,picasso:n,flags:i}){const o=S(),a=q(),s=P(),l=R(),u=A(),c=N(),d=E(),p=I(),{qLocaleInfo:f}=O(),[m]=j((()=>{if(!t)return Promise.resolve();wp.attrExpr.updateProperties(a,c);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:c.legend,layout:c,localeInfo:f,hc:c.qHyperCube,colorProps:{...c.color,useBaseColors:e(c)}})}),a&&!c.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t]);M((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(c)}),[c]),M((()=>{if(!e||!m)return;const{chart:g,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,pluginService:w,themeService:S,tooltipService:C,styleService:E}=t,k=o.viewState||{};c.snapshotData||(y.preventSet("legendScrollOffset",k.legendScrollOffset||0),y.preventSet("rotation",k.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))}(c,y),C.expando.set("properties",m[1]);const T=n.data("q")({key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}}),R=[{type:"q",key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}},...x.getData()],D={slice:{arc:"qMeasureInfo/0"}};c.qHyperCube.qMeasureInfo.length>1&&(D.slice.outerRadius="qMeasureInfo/1");const M=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:c.qHyperCube,config:{localeInfo:f}}),D),q=d?()=>{const e=g.brush("selection");r.selections(e,{},c).forEach((e=>{d.select(e)}))}:()=>{},P=c.snapshotData&&!o.freeResize?{width:(c.snapshotData.content.size||c.snapshotData.object.size).w,height:(c.snapshotData.content.size||c.snapshotData.object.size).h}:void 0,N=t=>e.selectionService.getIsSelectionLocked(t),L=()=>ch({layout:c,context:{rtl:"rtl"===o.direction,theme:u,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:T,model:a,app:s,chart:g,onSelect:q,isLocked:N,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:M,encodings:D,colorService:x,pluginService:w,themeService:S,styleService:E,tooltipService:C,debouncer:h,properties:m[1],logicalSize:P,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!Ji.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:o,layout:c,viewCache:b,chart:g})}});e.generateSettings=L;const I=L();g.update({data:R,settings:I}),b.set("chartWidth",g.element.clientWidth),b.set("chartHeight",g.element.clientHeight),b.set("hasZeroLine",I.components.filter((e=>"zeroLine"===e.key)).length>0),Ji.cacheProperties({viewCache:b,layout:c}),o.effect&&c.effectProperties?o.effect.update(c,g,{encodings:D}):c.effectPath||g.brush("highlight").end()}),[e,m,o.direction,o.effectProperties,p,u.name(),l.language()])}const ph="legend-cat";function hh({instance:e,services:t}){const n=C(),r=N();H((i=>{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}}(i,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:fe(t,ph),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:i,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),$((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:fe(e.chart,"legend-cat")})})),[e])}const fh={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},mh={getDimensions:e=>fh.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>fh.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>fh.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>fh.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=fh.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=fh.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 gh={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>mh.getNumMeasures(e)>=1},showLegend:e=>{const t=fh.getValue(e,"color.auto"),n=fh.getValue(e,"color.expressionIsColor"),r=fh.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!fh.getValue(e,"color.auto")&&"byDimension"===fh.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===fh.getValue(e,"color.useDimColVal")&&fh.setValue(e,"color.useDimColVal",!1),!fh.getValue(e,"color.auto")&&"byDimension"===fh.getValue(e,"color.mode")&&"libraryItem"===fh.getValue(e,"color.byDimDef.type"))},yh=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=gh;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&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)&&!fh.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=fh.getValue(e,"color.auto");return fh.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===fh.getValue(e,"color.mode")&&!0===fh.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>fh.getValue(e,"legend.show")&&i(e)}}};function vh(e){return new yh(e)}const bh={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}}}}}}},xh=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${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:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},wh={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},Sh=(e,t,n,r)=>{const i=f({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:xh("axis.title",i,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:xh("label.name",i,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:xh("label.value",i,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:xh("legend.title",i,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:xh("legend.label",i,r)}}}:void 0}}},Ch=vh("hard");const Eh=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(o(e,"color.mode","byDimension"),o(e,"color.byDimDef.activeDimensionIndex",0),o(e,"color.persistent",!1))},kh=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},Th=e=>{var t;const{flags:n,translator:r}=e||{},i=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:Eh},colorMode:{options:kh}}}}},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||o(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,i){i.dimensionTitle=!e}}}}}}},u={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?bh:void 0,simpleLabels:l,general:{items:{showDisclaimer:null!=n&&n.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Sh(a,n,r,i):wh,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:Ch.color.colorMode.options},persistentColors:{show:Ch.color.persistentColors.show}}},simpleColors:s,legend:{show:Ch.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Ch.legend.showTitle.show},dock:{show:Ch.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return u},Rh={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)}}}}}}},Dh={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}}}}},Mh={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function qh(e){return{type:"items",component:"accordion",items:{data:Rh,sorting:Dh,addons:Mh,settings:Th(e)}}}const Ph=vh("explore"),Nh=qh();var Lh={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Nh.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:Nh.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:Ph.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&Ph.color.useDimColVal.show(e))}}}}}}};const Ih="slices";function Ah(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Oh(e){return e.data.num.label}function zh(e){return e.data.radius.label}function jh(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Oh:Ah;if("share"===e.dataPoint.labelMode)return Ah;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?zh:Oh;return Oh}(n,r)(e,t)}function Fh(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 Hh{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.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(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,u=n.element.getBoundingClientRect(),c=(i+o)/2,d=u.left-r.left+l.x*(s.x+a*Math.sin(c)),p=u.top-r.top+l.y*(s.y-a*Math.cos(c)),h=Math.cos(c)>0?"top":"bottom",f=Math.sin(c)>0?"right":"left";return{title:Fh(n),label:jh(n,this.chart.formatter,e,t),orientation:`${h}${f}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=ie(!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=ie(e.options,{effect:null}),n?t.getProperties().then((e=>ie(e,{effectPath:null,effectProperties:null,dataPoint:ie(!0,{},e.originalModelSettings.dataPoint),legend:ie(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class $h extends Hh{init(e,t,n,r){return e.options=ie(!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(Ih).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class _h extends Hh{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(Ih).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,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(Ih).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===Ih)).map(((n,r)=>{const i=jh(n,this.chart.formatter,e,t);return{text:`${Fh(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=ie(!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 Uh="/effects/highlight-value",Vh="/effects/maxmin";var Wh={isCompatible:({effectPath:e})=>e===Vh||e===Uh,create:e=>e.effectPath===Vh?new $h(e):e.effectPath===Uh?new _h(e):null};function Bh(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o,a;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(a=o.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function Yh(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 Kh(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Jh({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Kh(e),Yh(t),fp.addCallbackCustomTooltip(t)},move(e,t){Kh(e),Yh(t),fp.moveCallbackCustomTooltip(t,e)},remove(e,t){fp.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Kh(e),Yh(r),fp.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){Yh(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 Gh=e=>e.qMax<=0,Zh=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Gh));function Xh(e){return{definition:qh(e),softDefinition:Lh,support:{snapshot:Zh,export:Zh,exportData:!0,sharing:Zh,viewData:!0,effects:!0},effects:Wh,extendMetrics:Bh,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Jh(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>_.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Qh(e){return{properties:{version:"1.26.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:qp.STROKE.COLOR},cornerRadius:qp.CORNER_RADIUS,innerRadius:qp.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:[Jh(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Jh(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>_.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(U).forEach((t=>{e.add(U[t])}))}}(e.translator);const n=Kd();return{qae:Qh(e),ext:Xh(e),component(){const e=ep({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),i=P(),o=R(),a=C(),[s,l]=k(),u=N(),h=L(),f=I(),m=S(),g=A(),{qLocaleInfo:y}=O(),v=z();return M((()=>{if(!n)return;a.style.overflow="hidden";const s=c({picasso:n.picasso,model:r,app:i,translator:o,config:{auto:!1,key:"fill"}}),b=d({picassoInstance:n.picasso,plugins:h,pluginArgs:Ep(u)}),x=Cp({flags:e,layout:u,app:i,model:r,picasso:t,chart:n.chart,translator:o,localeInfo:y,embed:v,options:m}),w=p({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=kp({app:i,chart:n.chart,translator:o,layout:u,constraints:f,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=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,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(n=t.axis)||void 0===n||null===(o=n.title)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(a=null===(s=i("axis"))||void 0===s||null===(l=s.axis)||void 0===l||null===(u=l.title)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.axis.title.fontSize,color:null!==(c=null===(d=i("axis"))||void 0===d||null===(p=d.axis)||void 0===p||null===(h=p.title)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(o=n.name)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(s=null===(l=i("label"))||void 0===l||null===(u=l.label)||void 0===u||null===(c=u.name)||void 0===c?void 0:c.fontSize)&&void 0!==s?s:r.label.name.fontSize,fontFamily:null!==(d=null===(p=i("label"))||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.name)||void 0===f?void 0:f.fontFamily)&&void 0!==d?d:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(o=n.value)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(s=null===(l=i("label"))||void 0===l||null===(u=l.label)||void 0===u||null===(c=u.value)||void 0===c?void 0:c.fontSize)&&void 0!==s?s:r.label.value.fontSize,fontFamily:null!==(d=null===(p=i("label"))||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.value)||void 0===f?void 0:f.fontFamily)&&void 0!==d?d:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(n=t.legend)||void 0===n||null===(o=n.title)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(a=null===(s=i("legend"))||void 0===s||null===(l=s.legend)||void 0===l||null===(u=l.title)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.legend.title.fontSize,color:null!==(c=null===(d=i("legend"))||void 0===d||null===(p=d.legend)||void 0===p||null===(h=p.title)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(n=t.legend)||void 0===n||null===(o=n.label)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(a=null===(s=i("legend"))||void 0===s||null===(l=s.legend)||void 0===l||null===(u=l.label)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.legend.label.fontSize,color:null!==(c=null===(d=i("legend"))||void 0===d||null===(p=d.legend)||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.legend.label.color}}}}}}({layout:u,themeService:w,flags:e});l({colorService:s,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,i,n,u,o.language(),f,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});dh({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=S(),r=F();M((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:i,generateSettings:o}=e;i.update({settings:o()}),r.set("chartWidth",i.element.clientWidth),r.set("chartHeight",i.element.clientHeight),n.effect&&n.effect.update(t,i)}),[r.width,r.height])}({instance:e}),hh({instance:e,services:r})}}}))}}}));
23
+ Object.defineProperty(ru,"__esModule",{value:!0});var iu="function"==typeof Symbol&&Symbol.for,ou=iu?Symbol.for("react.element"):60103,au=iu?Symbol.for("react.portal"):60106,su=iu?Symbol.for("react.fragment"):60107,lu=iu?Symbol.for("react.strict_mode"):60108,uu=iu?Symbol.for("react.profiler"):60114,cu=iu?Symbol.for("react.provider"):60109,du=iu?Symbol.for("react.context"):60110,pu=iu?Symbol.for("react.async_mode"):60111,hu=iu?Symbol.for("react.concurrent_mode"):60111,fu=iu?Symbol.for("react.forward_ref"):60112,mu=iu?Symbol.for("react.suspense"):60113,gu=iu?Symbol.for("react.suspense_list"):60120,yu=iu?Symbol.for("react.memo"):60115,vu=iu?Symbol.for("react.lazy"):60116,bu=iu?Symbol.for("react.fundamental"):60117,xu=iu?Symbol.for("react.responder"):60118,wu=iu?Symbol.for("react.scope"):60119;function Su(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ou:switch(e=e.type){case pu:case hu:case su:case uu:case lu:case mu:return e;default:switch(e=e&&e.$$typeof){case du:case fu:case cu:return e;default:return t}}case vu:case yu:case au:return t}}}function Cu(e){return Su(e)===hu}ru.typeOf=Su,ru.AsyncMode=pu,ru.ConcurrentMode=hu,ru.ContextConsumer=du,ru.ContextProvider=cu,ru.Element=ou,ru.ForwardRef=fu,ru.Fragment=su,ru.Lazy=vu,ru.Memo=yu,ru.Portal=au,ru.Profiler=uu,ru.StrictMode=lu,ru.Suspense=mu,ru.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===su||e===hu||e===uu||e===lu||e===mu||e===gu||"object"==typeof e&&null!==e&&(e.$$typeof===vu||e.$$typeof===yu||e.$$typeof===cu||e.$$typeof===du||e.$$typeof===fu||e.$$typeof===bu||e.$$typeof===xu||e.$$typeof===wu)},ru.isAsyncMode=function(e){return Cu(e)||Su(e)===pu},ru.isConcurrentMode=Cu,ru.isContextConsumer=function(e){return Su(e)===du},ru.isContextProvider=function(e){return Su(e)===cu},ru.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ou},ru.isForwardRef=function(e){return Su(e)===fu},ru.isFragment=function(e){return Su(e)===su},ru.isLazy=function(e){return Su(e)===vu},ru.isMemo=function(e){return Su(e)===yu},ru.isPortal=function(e){return Su(e)===au},ru.isProfiler=function(e){return Su(e)===uu},ru.isStrictMode=function(e){return Su(e)===lu},ru.isSuspense=function(e){return Su(e)===mu},nu.exports=ru;var Eu=nu.exports,ku={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ru={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Du={};function Mu(e){return Eu.isMemo(e)?Ru:Du[e.$$typeof]||ku}Du[Eu.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Du[Eu.Memo]=Ru;var qu=Object.defineProperty,Pu=Object.getOwnPropertyNames,Nu=Object.getOwnPropertySymbols,Lu=Object.getOwnPropertyDescriptor,Iu=Object.getPrototypeOf,Au=Object.prototype;var Ou=function e(t,n,r){if("string"!=typeof n){if(Au){var i=Iu(n);i&&i!==Au&&e(t,i,r)}var o=Pu(n);Nu&&(o=o.concat(Nu(n)));for(var a=Mu(t),s=Mu(n),l=0;l<o.length;++l){var u=o[l];if(!(Tu[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=Lu(n,u);try{qu(t,u,c)}catch(e){}}}}return t},zu=K(Ou);function ju(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=Co(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(uo({theme:e},n))}}}:{root:t},l=Ql(s,uo({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=m.forwardRef((function(t,r){var i,o,a,s=t.children,u=t.className,c=t.clone,d=t.component,p=Co(t,["children","className","clone","component"]),h=tu(l(t).root,u),f=p;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),c)return m.cloneElement(s,uo({className:tu(s.props.className,h)},f));if("function"==typeof s)return s(uo({className:h},f));var g=d||e;return m.createElement(g,uo({ref:r,className:h},f),s)}));return zu(u,e),u}}function Fu(e){var t=e.children,n=e.theme,r=Vl(),i=m.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):uo({},e,t)}(r,n);return null!=e&&(e[Jo]=null!==r),e}),[n,r]);return m.createElement(Ul.Provider,{value:i},t)}var Hu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=Co(t,["defaultTheme","withTheme","name"]),l=a,u=Ql(e,uo({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=m.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=Co(e,["classes","innerRef"]),c=u(uo({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=Vl()||r,a&&(d=Xo({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),m.createElement(n,uo({ref:s||t,classes:c},d))}));return zu(c,n),c}},$u=Ko(),_u=function(e){var t=ju(e);return function(e,n){return t(e,uo({defaultTheme:$u},n))}};function Uu(e,t){return Hu(e,uo({defaultTheme:$u},t))}function Vu(e){if("string"!=typeof e)throw new Error(go(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Wu(){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),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Bu(e){return e&&e.ownerDocument||document}function Yu(e){return Bu(e).defaultView||window}function Ku(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ju="undefined"!=typeof window?g.useLayoutEffect:g.useEffect;function Gu(e){var t=g.useRef(e);return Ju((function(){t.current=e})),g.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Zu(e,t){return g.useMemo((function(){return null==e&&null==t?null:function(n){Ku(e,n),Ku(t,n)}}),[e,t])}var Xu=!0,Qu=!1,ec=null,tc={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 nc(e){e.metaKey||e.altKey||e.ctrlKey||(Xu=!0)}function rc(){Xu=!1}function ic(){"hidden"===this.visibilityState&&Qu&&(Xu=!0)}function oc(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return Xu||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!tc[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function ac(){Qu=!0,window.clearTimeout(ec),ec=window.setTimeout((function(){Qu=!1}),100)}function sc(){return{isFocusVisible:oc,onBlurVisible:ac,ref:g.useCallback((function(e){var t,n=x.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",nc,!0),t.addEventListener("mousedown",rc,!0),t.addEventListener("pointerdown",rc,!0),t.addEventListener("touchstart",rc,!0),t.addEventListener("visibilitychange",ic,!0))}),[])}}var lc=!1,uc=m.createContext(null),cc="unmounted",dc="exited",pc="entering",hc="entered",fc="exiting",mc=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=dc,r.appearStatus=pc):i=hc:i=t.unmountOnExit||t.mountOnEnter?cc:dc,r.state={status:i},r.nextCallback=null,r}ia(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cc?{status:dc}: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!==pc&&n!==hc&&(t=pc):n!==pc&&n!==hc||(t=fc)}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===pc){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:w.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===dc&&this.setState({status:cc})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[w.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||lc?this.safeSetState({status:hc},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:pc},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:hc},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:w.findDOMNode(this);t&&!lc?(this.props.onExit(r),this.safeSetState({status:fc},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:dc},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:dc},(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:w.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===cc)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=So(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return m.createElement(uc.Provider,{value:null},"function"==typeof n?n(e,r):m.cloneElement(m.Children.only(n),r))},t}(m.Component);function gc(){}mc.contextType=uc,mc.propTypes={},mc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:gc,onEntering:gc,onEntered:gc,onExit:gc,onExiting:gc,onExited:gc},mc.UNMOUNTED=cc,mc.EXITED=dc,mc.ENTERING=pc,mc.ENTERED=hc,mc.EXITING=fc;var yc=mc;function vc(e,t){var n=Object.create(null);return e&&y.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&v(e)?t(e):e}(e)})),n}function bc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function xc(e,t,n){var r=vc(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(v(a)){var s=o in t,l=o in r,u=t[o],c=v(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&v(u)&&(i[o]=b(a,{onExited:n.bind(null,a),in:u.props.in,exit:bc(a,"exit",e),enter:bc(a,"enter",e)})):i[o]=b(a,{in:!1}):i[o]=b(a,{onExited:n.bind(null,a),in:!0,exit:bc(a,"exit",e),enter:bc(a,"enter",e)})}})),i}var wc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Sc=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(oa(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ia(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,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,vc(n.children,(function(e){return b(e,{onExited:r.bind(null,e),in:!0,appear:bc(e,"appear",n),enter:bc(e,"enter",n),exit:bc(e,"exit",n)})}))):xc(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=vc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=uo({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=So(e,["component","childFactory"]),i=this.state.contextValue,o=wc(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?m.createElement(uc.Provider,{value:i},o):m.createElement(uc.Provider,{value:i},m.createElement(t,r,o))},t}(m.Component);Sc.propTypes={},Sc.defaultProps={component:"div",childFactory:function(e){return e}};var Cc=Sc;function Ec(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var kc=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,p=Co(e,["classes","className","component","square","elevation","variant"]);return g.createElement(o,uo({className:tu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},p))})),Tc=Uu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),uo({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"})(kc),Rc="undefined"==typeof window?g.useEffect:g.useLayoutEffect;function Dc(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=g.useState(!1),p=d[0],h=d[1],f=tu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},y=tu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=Gu(u);return Rc((function(){if(!s){h(!0);var e=setTimeout(v,c);return function(){clearTimeout(e)}}}),[v,s,c]),g.createElement("span",{className:f,style:m},g.createElement("span",{className:y}))}var Mc=g.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=Co(e,["center","classes","className"]),s=g.useState([]),l=s[0],u=s[1],c=g.useRef(0),d=g.useRef(null);g.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=g.useRef(!1),h=g.useRef(null),f=g.useRef(null),m=g.useRef(null);g.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var y=g.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(Ho(e),[g.createElement(Dc,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),v=g.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,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,d,g,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(g=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(g+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,E=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;g=Math.sqrt(Math.pow(C,2)+Math.pow(E,2))}e.touches?null===f.current&&(f.current=function(){y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})},h.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):y({pulsate:o,rippleX:c,rippleY:d,rippleSize:g,cb:n})}}),[r,y]),b=g.useCallback((function(){v({},{pulsate:!0})}),[v]),x=g.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(h.current=setTimeout((function(){x(e,t)})));f.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),g.createElement("span",uo({className:tu(i.root,o),ref:m},a),g.createElement(Cc,{component:null,exit:!0},l))})),qc=Uu((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"})(g.memo(Mc)),Pc=g.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,p=void 0!==d&&d,h=e.disableRipple,f=void 0!==h&&h,m=e.disableTouchRipple,y=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,w=e.focusVisibleClassName,S=e.onBlur,C=e.onClick,E=e.onFocus,k=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,D=e.onMouseDown,M=e.onMouseLeave,q=e.onMouseUp,P=e.onTouchEnd,N=e.onTouchMove,L=e.onTouchStart,I=e.onDragLeave,A=e.tabIndex,O=void 0===A?0:A,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,H=Co(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"]),$=g.useRef(null);var _=g.useRef(null),U=g.useState(!1),V=U[0],W=U[1];p&&V&&W(!1);var B=sc(),Y=B.isFocusVisible,K=B.onBlurVisible,J=B.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Gu((function(r){return t&&t(r),!n&&_.current&&_.current[e](r),!0}))}g.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),$.current.focus()}}}),[]),g.useEffect((function(){V&&b&&!f&&_.current.pulsate()}),[f,b,V]);var Z=G("start",D),X=G("stop",I),Q=G("stop",q),ee=G("stop",(function(e){V&&e.preventDefault(),M&&M(e)})),te=G("start",L),ne=G("stop",P),re=G("stop",N),ie=G("stop",(function(e){V&&(K(e),W(!1)),S&&S(e)}),!1),oe=Gu((function(e){$.current||($.current=e.currentTarget),Y(e)&&(W(!0),k&&k(e)),E&&E(e)})),ae=function(){var e=x.findDOMNode($.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},se=g.useRef(!1),le=Gu((function(e){b&&!se.current&&V&&_.current&&" "===e.key&&(se.current=!0,e.persist(),_.current.stop(e,(function(){_.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),C&&C(e))})),ue=Gu((function(e){b&&" "===e.key&&_.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),_.current.stop(e,(function(){_.current.pulsate(e)}))),R&&R(e),C&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&C(e)})),ce=c;"button"===ce&&H.href&&(ce="a");var de={};"button"===ce?(de.type=F,de.disabled=p):("a"===ce&&H.href||(de.role="button"),de["aria-disabled"]=p);var pe=Zu(r,t),he=Zu(J,$),fe=Zu(pe,he),me=g.useState(!1),ge=me[0],ye=me[1];g.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!p;return g.createElement(ce,uo({className:tu(s.root,l,V&&[s.focusVisible,w],p&&s.disabled),onBlur:ie,onClick:C,onFocus:oe,onKeyDown:le,onKeyUp:ue,onMouseDown:Z,onMouseLeave:ee,onMouseUp:Q,onDragLeave:X,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:p?-1:O},de,H),a,ve?g.createElement(qc,uo({ref:_,center:o},z)):null)})),Nc=Uu({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"})(Pc),Lc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ic=g.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,p=void 0!==d&&d,h=e.noWrap,f=void 0!==h&&h,m=e.paragraph,y=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?Lc:x,S=Co(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(y?"p":w[b]||Lc[b])||"span";return g.createElement(C,uo({className:tu(i.root,o,"inherit"!==b&&i[b],"initial"!==s&&i["color".concat(Vu(s))],f&&i.noWrap,p&&i.gutterBottom,y&&i.paragraph,"inherit"!==r&&i["align".concat(Vu(r))],"initial"!==c&&i["display".concat(Vu(c))]),ref:t},S))})),Ac=Uu((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"})(Ic),Oc=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,p=void 0!==d&&d,h=e.disableFocusRipple,f=void 0!==h&&h,m=e.endIcon,y=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,E=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,R=Co(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),D=S&&g.createElement("span",{className:tu(r.startIcon,r["iconSize".concat(Vu(w))])},S),M=m&&g.createElement("span",{className:tu(r.endIcon,r["iconSize".concat(Vu(w))])},m);return g.createElement(Nc,uo({className:tu(r.root,r[T],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Vu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(Vu(w))],r["size".concat(Vu(w))]],p&&r.disableElevation,c&&r.disabled,b&&r.fullWidth),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:tu(r.focusVisible,y),ref:t,type:E},R),g.createElement("span",{className:r.label},D,n,M))})),zc=Uu((function(e){return{root:uo({},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:wo(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:wo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:wo(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(wo(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:wo(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(wo(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:wo(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"})(Oc);var jc="undefined"!=typeof window?g.useLayoutEffect:g.useEffect,Fc=g.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g.useState(null),l=s[0],u=s[1],c=Zu(g.isValidElement(n)?n.ref:null,t);return jc((function(){o||u(function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(r)||document.body)}),[r,o]),jc((function(){if(l&&!o)return Ku(t,l),function(){Ku(t,null)}}),[t,l,o]),jc((function(){a&&(l||o)&&a()}),[a,l,o]),o?g.isValidElement(n)?g.cloneElement(n,{ref:c}):n:l?x.createPortal(n,l):l})),Hc=Fc;function $c(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _c(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Uc(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Ho(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&$c(e,r)}))}function Vc(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Wc(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=Bu(e);return t.body===e?Yu(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){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:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(_c(o)+a,"px"),n=Bu(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(_c(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[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 Bc=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 na(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&&$c(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);Uc(t,e.mountNode,e.modalRef,r,!0);var i=Vc(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Vc(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Wc(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Vc(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&&$c(e.modalRef,!0),Uc(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&$c(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Yc(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=g.useRef(),p=g.useRef(null),h=g.useRef(null),f=g.useRef(),m=g.useRef(null),y=g.useCallback((function(e){m.current=x.findDOMNode(e)}),[]),v=Zu(t.ref,y),b=g.useRef();return g.useEffect((function(){b.current=c}),[c]),!b.current&&c&&"undefined"!=typeof window&&(f.current=l().activeElement),g.useEffect((function(){if(c){var e=Bu(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()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(f.current&&f.current.focus&&f.current.focus(),f.current=null)}}}),[r,o,s,u,c]),g.createElement(g.Fragment,null,g.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),g.cloneElement(t,{ref:v}),g.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var Kc={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"}},Jc=g.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=Co(e,["invisible","open"]);return i?g.createElement("div",uo({"aria-hidden":!0,ref:t},o,{style:uo({},Kc.root,r?Kc.invisible:{},o.style)})):null}));var Gc=new Bc,Zc=g.forwardRef((function(e,t){var n=Vl(),r=Xo({name:"MuiModal",props:uo({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?Jc:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,h=r.disableBackdropClick,f=void 0!==h&&h,m=r.disableEnforceFocus,y=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,w=r.disablePortal,S=void 0!==w&&w,C=r.disableRestoreFocus,E=void 0!==C&&C,k=r.disableScrollLock,T=void 0!==k&&k,R=r.hideBackdrop,D=void 0!==R&&R,M=r.keepMounted,q=void 0!==M&&M,P=r.manager,N=void 0===P?Gc:P,L=r.onBackdropClick,I=r.onClose,A=r.onEscapeKeyDown,O=r.onRendered,z=r.open,j=Co(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=g.useState(!0),H=F[0],$=F[1],_=g.useRef({}),U=g.useRef(null),V=g.useRef(null),W=Zu(V,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return Bu(U.current)},K=function(){return _.current.modalRef=V.current,_.current.mountNode=U.current,_.current},J=function(){N.mount(K(),{disableScrollLock:T}),V.current.scrollTop=0},G=Gu((function(){var e=function(e){return e="function"==typeof e?e():e,x.findDOMNode(e)}(c)||Y().body;N.add(K(),e),V.current&&J()})),Z=g.useCallback((function(){return N.isTopModal(K())}),[N]),X=Gu((function(e){U.current=e,e&&(O&&O(),z&&Z()?J():$c(V.current,!0))})),Q=g.useCallback((function(){N.remove(K())}),[N]);if(g.useEffect((function(){return function(){Q()}}),[Q]),g.useEffect((function(){z?G():B&&u||Q()}),[z,Q,B,u,G]),!q&&!z&&(!B||H))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:Yo}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),B&&(te.onEnter=Wu((function(){$(!1)}),s.props.onEnter),te.onExited=Wu((function(){$(!0),u&&Q()}),s.props.onExited)),g.createElement(Hc,{ref:X,container:c,disablePortal:S},g.createElement("div",uo({ref:W,onKeyDown:function(e){"Escape"===e.key&&Z()&&(A&&A(e),b||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},j,{style:uo({},ee.root,!z&&H?ee.hidden:{},j.style)}),D?null:g.createElement(o,uo({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!f&&I&&I(e,"backdropClick"))}},a)),g.createElement(Yc,{disableEnforceFocus:y,disableAutoFocus:p,disableRestoreFocus:E,getDoc:Y,isEnabled:Z,open:z},g.cloneElement(s,te))))})),Xc=Zc;function Qc(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ed={entering:{opacity:1,transform:Qc(1)},entered:{opacity:1,transform:"none"}},td=g.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,p=e.style,h=e.timeout,f=void 0===h?"auto":h,m=e.TransitionComponent,y=void 0===m?yc:m,v=Co(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=g.useRef(),x=g.useRef(),w=Vl()||$u,S=w.unstable_strictMode&&!i,C=g.useRef(null),E=Zu(n.ref,t),k=Zu(S?C:void 0,E),T=function(e){return function(t,n){if(e){var r=$o(S?[C.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},R=T(l),D=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Ec({style:p,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=i,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:o}),w.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),M=T(s),q=T(d),P=T((function(e){var t,n=Ec({style:p,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:i}),w.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=Qc(.75),u&&u(e)})),N=T(c);return g.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),g.createElement(y,uo({appear:!0,in:o,nodeRef:S?C:void 0,onEnter:D,onEntered:M,onEntering:R,onExit:P,onExited:N,onExiting:q,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===f?null:f},v),(function(e,t){return g.cloneElement(n,uo({style:uo({opacity:0,transform:Qc(.75),visibility:"exited"!==e||o?void 0:"hidden"},ed[e],p,n.props.style),ref:k},t))}))}));td.muiSupportAuto=!0;var nd=td,rd=g.createContext({}),id=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,p=Co(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g.useMemo((function(){return{dense:l}}),[l]);return g.createElement(rd.Provider,{value:h},g.createElement(a,uo({className:tu(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},p),d,n))})),od=Uu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(id),ad="undefined"==typeof window?g.useEffect:g.useLayoutEffect,sd=g.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,p=e.ContainerComponent,h=void 0===p?"li":p,f=e.ContainerProps,m=(f=void 0===f?{}:f).className,y=Co(f,["className"]),v=e.dense,b=void 0!==v&&v,w=e.disabled,S=void 0!==w&&w,C=e.disableGutters,E=void 0!==C&&C,k=e.divider,T=void 0!==k&&k,R=e.focusVisibleClassName,D=e.selected,M=void 0!==D&&D,q=Co(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=g.useContext(rd),N={dense:b||P.dense||!1,alignItems:r},L=g.useRef(null);ad((function(){o&&L.current&&L.current.focus()}),[o]);var I,A,O=g.Children.toArray(l),z=O.length&&(I=O[O.length-1],A=["ListItemSecondaryAction"],g.isValidElement(I)&&-1!==A.indexOf(I.type.muiName)),j=Zu(g.useCallback((function(e){L.current=x.findDOMNode(e)}),[]),t),F=uo({className:tu(u.root,c,N.dense&&u.dense,!E&&u.gutters,T&&u.divider,S&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,z&&u.secondaryAction,M&&u.selected),disabled:S},q),H=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=tu(u.focusVisible,R),H=Nc),z?(H=F.component||d?H:"div","li"===h&&("li"===H?H="div":"li"===F.component&&(F.component="div")),g.createElement(rd.Provider,{value:N},g.createElement(h,uo({className:tu(u.container,m),ref:j},y),g.createElement(H,F,O),O.pop()))):g.createElement(rd.Provider,{value:N},g.createElement(H,uo({ref:j},F),O))})),ld=Uu((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"})(sd),ud=g.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Co(e,["classes","className"]),o=g.useContext(rd);return g.createElement("div",uo({className:tu(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),cd=Uu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(ud),dd=g.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,h=Co(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=g.useContext(rd).dense,m=null!=u?u:n;null==m||m.type===Ac||a||(m=g.createElement(Ac,uo({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var y=d;return null==y||y.type===Ac||a||(y=g.createElement(Ac,uo({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),y)),g.createElement("div",uo({className:tu(r.root,i,f&&r.dense,l&&r.inset,m&&y&&r.multiline),ref:t},h),m,y)})),pd=Uu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(dd);function hd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function md(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function gd(e){return"function"==typeof e?e():e}var yd=g.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,p=e.container,h=e.elevation,f=void 0===h?8:h,m=e.getContentAnchorEl,y=e.marginThreshold,v=void 0===y?16:y,b=e.onEnter,w=e.onEntered,S=e.onEntering,C=e.onExit,E=e.onExited,k=e.onExiting,T=e.open,R=e.PaperProps,D=void 0===R?{}:R,M=e.transformOrigin,q=void 0===M?{vertical:"top",horizontal:"left"}:M,P=e.TransitionComponent,N=void 0===P?nd:P,L=e.transitionDuration,I=void 0===L?"auto":L,A=e.TransitionProps,O=void 0===A?{}:A,z=Co(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=g.useRef(),F=g.useCallback((function(e){if("anchorPosition"===l)return a;var t=gd(r),n=(t&&1===t.nodeType?t:Bu(j.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+hd(n,i),left:n.left+fd(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),H=g.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}),[o.vertical,l,m]),$=g.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:hd(e,q.vertical)+t,horizontal:fd(e,q.horizontal)}}),[q.horizontal,q.vertical]),_=g.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},i=$(n,t);if("none"===l)return{top:null,left:null,transformOrigin:md(i)};var o=F(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=Yu(gd(r)),p=d.innerHeight-v,h=d.innerWidth-v;if(a<v){var f=a-v;a-=f,i.vertical+=f}else if(u>p){var m=u-p;a-=m,i.vertical+=m}if(s<v){var g=s-v;s-=g,i.horizontal+=g}else if(c>h){var y=c-h;s-=y,i.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:md(i)}}),[r,l,F,H,$,v]),U=g.useCallback((function(){var e=j.current;if(e){var t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[_]),V=g.useCallback((function(e){j.current=x.findDOMNode(e)}),[]);g.useEffect((function(){T&&U()})),g.useImperativeHandle(n,(function(){return T?{updatePosition:function(){U()}}:null}),[T,U]),g.useEffect((function(){if(T){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){U()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,U]);var W=I;"auto"!==I||N.muiSupportAuto||(W=void 0);var B=p||(r?Bu(gd(r)).body:void 0);return g.createElement(Xc,uo({container:B,open:T,ref:t,BackdropProps:{invisible:!0},className:tu(c.root,d)},z),g.createElement(N,uo({appear:!0,in:T,onEnter:b,onEntered:w,onExit:C,onExited:E,onExiting:k,timeout:W},O,{onEntering:Wu((function(e,t){S&&S(e,t),U()}),O.onEntering)}),g.createElement(Tc,uo({elevation:f,ref:V},D,{className:tu(c.paper,D.className)}),u)))})),vd=Uu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(yd);function bd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function xd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:bd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return m.createElement("i",{style:i},m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},m.createElement("path",{d:e})))}const wd={d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"},Sd={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"},Cd={d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"},Ed={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"},kd={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"};function Td(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=Oi.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 Rd(e,t,n,r,i,o){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)),u=ie(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],o||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,i&&i({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),Td(e,a,u)}))}const Dd=(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))};function Md({dir:e,dock:t,altList:n,model:r,translator:i,app:o,onChange:a}){return 0===n.length?null:{dir:e,dock:t,getAlternatives(){const e=Dd(o,n).then((e=>Promise.all(n.filter((t=>!e.includes(t.qDef.cId))).map((e=>function(e,t,n){if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?"H"!==e.qDim.qGrouping&&e.qDim.qLabelExpression?e.qDim.qLabelExpression:e.qDim.title:n.get("Object.ErrorMessage.MissingDimension")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(e,o,i).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return e},changeTo(e,t){Rd(r,e,t,"qDimensions",a)}}}function qd(e,t,n,r="/qHyperCubeDef"){return{breadcrumbs:e.qGroupFallbackTitles.slice(0,e.qGroupPos),drilldown:"H"===e.qGrouping,index:t,locked:!!e.qLocked,text:"H"===e.qGrouping?e.qGroupFallbackTitles[e.qGroupPos]:e.qFallbackTitle,popoverText:(i=e,"H"===i.qGrouping?i.title||"":i.qFallbackTitle||""),drillUp(e){n.drillUp(r,t,e)},id:e.cId};var i}function Pd({altList:e,app:t,dir:n,dock:r,model:i,onChange:o,skipAttributeExpressions:a,translator:s}){return 0===e.length?null:{dir:n,dock:r,getAlternatives(){const n=Dd(t,e).then((n=>Promise.all(e.filter((e=>!n.includes(e.qDef.cId))).map((e=>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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,t,s).then((t=>({id:e.qDef.cId,selected:!1,title:t}))))))));return n},changeTo(e,t){Rd(i,e,t,"qMeasures",o,a)}}}function Nd(e,t){return{breadcrumbs:[],drilldown:!1,index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}const Ld={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"}}},Id={menuItem:"alternative-menu-item",titleButton:"title-button",activeTitleButton:"active-title-button"},Ad=_u(ld)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Od=_u((({children:e,...t})=>m.createElement(zc,Y({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}})));function zd(e){const t=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Id.menuItem}`);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 n({title:e,selected:n,onClick:r}){const i=ve.detectTextDirection(e);return m.createElement(Ad,{role:"menuitem",button:!0,onClick:r,className:Id.menuItem,onKeyDown:t},m.createElement(cd,{style:{minWidth:32}},m.createElement(xd,{d:n?Cd.d:""})),m.createElement(pd,{primaryTypographyProps:{dir:i}},e))}function r({alignTo:e,changeTo:t,current:r,dir:i,dock:o,list:a,onClose:s,show:l,instruction:u}){const c=a.map((e=>m.createElement(n,{key:e.id,title:e.title,onClick:()=>t(e.id)})));return m.createElement(vd,Y({anchorEl:e,open:l,onClose:s},Ld[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),m.createElement(od,{dense:!0,dir:i,"aria-label":u,component:"nav"},m.createElement(n,{title:r,selected:!0,onClick:s}),c))}n.propTypes={title:eo.string.isRequired,selected:eo.bool,onClick:eo.func.isRequired},n.defaultProps={selected:!1},r.propTypes={alignTo:eo.any,changeTo:eo.func.isRequired,current:eo.string.isRequired,dir:eo.string.isRequired,dock:eo.string.isRequired,list:eo.array,onClose:eo.func.isRequired,show:eo.bool.isRequired,instruction:eo.string.isRequired},r.defaultProps={list:[],alignTo:null};class i extends m.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasValidAlternatives:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.changeTo=this.changeTo.bind(this),this.alignToRef=m.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n}=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&&e.getAlternatives().then((e=>{this.setState({hasValidAlternatives:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r}=this.props;n&&r&&n.getAlternatives().then((e=>{t.hasValidAlternatives!==(0!==e.length)&&this.setState({hasValidAlternatives: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))}changeTo(e){this.props.popover.changeTo(this.props.titleData.id,e),this.closePopover(e)}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Id.titleButton}`);t&&t.classList.add(Id.activeTitleButton)}this.props.popover.getAlternatives().then((e=>{this.setState({open:!0,alternatives:e});document.querySelector(`.${Id.menuItem}`).focus()}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Id.titleButton}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Id.activeTitleButton}`);e&&(e.classList.remove(Id.activeTitleButton),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u}=this.props,c={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,p=i||this.state.inSelection,h=e.breadcrumbs.map(((t,n)=>m.createElement(Od,{style:{display:"flex",alignItems:"center",color:p&&"rgba(89, 89, 89, 0.8)",pointerEvents:p?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>p?void 0:e.drillUp(d-n),title:t},m.createElement("span",{style:c},t),m.createElement(xd,Y({},kd,{size:"small",style:{margin:"0 8px"}}))))),f=u?this.state.hasValidAlternatives:l,g=t&&!this.state.open?this.openPopover:this.closePopover,y=!t||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",paddingTop:0,paddingBottom:0};this.state.open&&(v.background="rgba(0,0,0,0.08)");a&&(v.padding=a),s&&(v.minWidth=s);const b=ve.detectTextDirection(e.text),x=m.createElement(Od,{"aria-label":n.get("Accessibility.Alternative.Instructions",[e.text]),style:v,onClick:y?void 0:g,title:e.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:`${Id.titleButton} ${e.id}`,"data-id":e.id},e.locked&&m.createElement(xd,Y({},Sd,{size:"small",title:n.get("Tooltip.selections.locked")})),m.createElement("span",{style:c,dir:b},e.text),t&&f&&m.createElement(xd,Y({},Ed,{size:"small",style:{margin:"0 8px"}})));return m.createElement(m.Fragment,null,e.drilldown&&m.createElement(xd,Y({},wd,{size:"small",title:n.get("Tooltip.dimensions.drilldown"),style:{margin:"0 4px 0 0"}})),h,m.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:f?"auto":"none",height:"100%"}},x),t&&f&&m.createElement(r,{dock:t.dock,dir:t.dir,current:e.popoverText,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.alternatives,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions")}))}}function o(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function a(e){return!e.isDimension&&he.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return i.propTypes={disabled:eo.bool.isRequired,padding:eo.string,minWidth:eo.string,titleData:eo.shape({breadcrumbs:eo.arrayOf(eo.string).isRequired,drilldown:eo.bool.isRequired,index:eo.number.isRequired,locked:eo.bool.isRequired,text:eo.string.isRequired,popoverText:eo.string.isRequired,drillUp:eo.func,id:eo.string.isRequired}).isRequired,popover:eo.shape({dir:eo.string.isRequired,dock:eo.string.isRequired,changeTo:eo.func.isRequired,getAlternatives:eo.func.isRequired}),translator:eo.shape({get:eo.func.isRequired}).isRequired,selections:eo.shape({isActive:eo.func,addListener:eo.func,removeListener:eo.func}),style:eo.shape({fontSize:eo.string,color:eo.string,fontFamily:eo.string}).isRequired,isDimension:eo.bool.isRequired,hasAlternative:eo.bool.isRequired,supportConditional:eo.bool.isRequired},i.defaultProps={popover:null,selections:null,padding:"",minWidth:""},{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:t}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||a(this.settings.settings)?Math.max(28,t):Math.max(20,t)},render(){const{settings:{app:e,disabled:t,explicitItemInfos:n,hyperCube:r,hyperCubeDef:s,isDimension:l,minWidth:u,model:c,onChangeToAlternative:d,padding:p,rtl:h,selections:f,skipAttributeExpressions:g,translator:y,supportConditional:v=!1},layout:{dock:b}}=this.settings,x="top"!==b&&"bottom"!==b||!h?"ltr":"rtl",w=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}(b,this.rect),S=s&&s.qLayoutExclude&&s.qLayoutExclude.qHyperCubeDef,C=S&&S[l?"qDimensions":"qMeasures"]||[],E=n||r[l?"qDimensionInfo":"qMeasureInfo"],k=l?Md:Pd,T=l?qd:Nd,R=c&&c.colorSupport&&c.modifiers&&k({altList:C,app:e,dir:h?"rtl":"ltr",dock:o(b),model:c,onChange:d,skipAttributeExpressions:g,translator:y}),D=(M=this.settings.settings).isDimension&&he.getValue(M,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||a(this.settings.settings);var M;const q=E.map(((e,n)=>{const r="number"==typeof e.explicitColumn?e.explicitColumn:n,o=T(e,r,c),a=n===E.length-1;return m.createElement(m.Fragment,{key:e.cId},m.createElement(i,{popover:R,titleData:o,model:c,translator:y,selections:f,disabled:t(),style:this.style,isDimension:l,padding:p,minWidth:u,hasAlternative:D,supportConditional:v}),!a&&m.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return m.createElement("div",{style:w,dir:x},q)}}}const jd=function(){return Ko.apply(void 0,arguments)}({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 Fd=Zo({productionPrefix:"qd1fd",disableGlobal:!0,seed:""});function Hd(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){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!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={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=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",w.render(function(e,t){return m.createElement(Jl,{generateClassName:t},m.createElement(Fu,{theme:jd},e))}(e,Fd),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&w.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(w.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function $d(){return function(e){e.renderer("react",Hd()),e.component("data-title",zd(e.renderer("svg")())),e.component("disclaimer",function(){class e extends m.Component{render(){const{label:e,spanStyle:t}=this.props;return m.createElement(m.Fragment,null,m.createElement("span",{ref:this.alignToRef,style:t,title:e},e))}}return e.propTypes={label:eo.string.isRequired,spanStyle:eo.shape().isRequired},{renderer:"react",disableTriggers:!0,preferredSize:function(){return 22},render(){const{settings:{label:t,rtl:n},layout:{dock:r},style:i={}}=this.settings,o="top"!==r&&"bottom"!==r||!n?"ltr":"rtl",a=function(e,t,n){const r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.fontFamily||'"Source Sans Pro", "Arial", "sans-serif"'};switch(t){case"left":r.width=`${n.height}px`,r.transform=`rotate(-90deg) translate(-${n.height}px, 0)`,r.transformOrigin="top left";break;case"right":r.width=`${n.height}px`,r.transform=`rotate(90deg) translate(0, -${n.width}px)`,r.transformOrigin="top left";break;case"center":r.width=`${n.width}px`,r.height=`${n.height}px`,r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(i,r,this.rect),s="center"===r?t:`* ${t}`,l="center"!==r?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return m.createElement("div",{style:a,dir:o},m.createElement(m.Fragment,null,m.createElement(e,{label:s,spanStyle:l})))}}}())}}function _d(e){return vt(e).l<70}function Ud(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function Vd(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Wd={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 i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(Ud(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,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=Vd({r:s,a:e},n),o=Vd({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:_d(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Bd(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 Yd(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(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*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Bd(s)}}var Kd={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,u=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),c=Yd({size:t.size,fill:t.fill,angle:l+Math.PI,...u});c.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(c)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Jd(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",B(e))};e.interaction("hammer",B(Hammer))}(t)),e.use($d()),e.component("pie-dividers",Wd),e.component("negative-indicators",Kd),e}var Gd={};function Zd(){Zd.init.call(this)}Gd.isObject=function(e){return"object"==typeof e&&null!==e},Gd.isNumber=function(e){return"number"==typeof e},Gd.isUndefined=function(e){return void 0===e},Gd.isFunction=function(e){return"function"==typeof e};var Xd=Zd;Zd.EventEmitter=Zd,Zd.prototype._events=void 0,Zd.prototype._maxListeners=void 0,Zd.defaultMaxListeners=10,Zd.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Zd.prototype.setMaxListeners=function(e){if(!Gd.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Zd.prototype.emit=function(e){var t,n,r,i,o,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],Gd.isUndefined(n))return!1;if(Gd.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,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(Gd.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},Zd.prototype.addListener=function(e,t){var n;if(!Gd.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Gd.isFunction(t.listener)?t.listener:t),this._events[e]?Gd.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Gd.isObject(this._events[e])&&!this._events[e].warned)&&((n=Gd.isUndefined(this._maxListeners)?Zd.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Gd.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),Gd.isFunction(console.trace)&&console.trace()));return this},Zd.prototype.on=Zd.prototype.addListener,Zd.prototype.once=function(e,t){if(!Gd.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},Zd.prototype.removeListener=function(e,t){var n,r,i,o;if(!Gd.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||Gd.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Gd.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;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},Zd.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],Gd.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},Zd.prototype.listeners=function(e){return this._events&&this._events[e]?Gd.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Zd.listenerCount=function(e,t){return e._events&&e._events[t]?Gd.isFunction(e._events[t])?1:e._events[t].length:0};var Qd=K(Xd);const ep=e=>(Object.keys(Qd.prototype).forEach((t=>{e[t]=Qd.prototype[t]})),Qd.init(e),e);function tp({picasso:e}){var t;const n=S(),r=C(),i=E(),[o,u]=k(),c=function(){const e={};return ep(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=T(),p=R(),h=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[f,m]=k(!1);return c.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o,a,s;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a||null===(s=a[0])||void 0===s||!s.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:h,isLassoActionActive:f,setIsLassoActionActive:m,translator:p}),D((()=>(o&&(o.interactions.lasso.active=()=>f),{...c.lasso})),[o,f,h,p.language()]),M((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),o=t.chart({element:r,data:[],settings:{}}),p=a({chart:o,actions:c,selections:i,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const h=s({legendScrollOffset:0,rotation:0});h.intercept("rotation",(e=>(h.get("rotation")+e)%(2*Math.PI))),h.onChanged("rotation",(()=>{o.update({partialData:!0})}));const f=l();return c.on("selections-start",(()=>{o.brush("selection").start()})),u({picasso:t,chart:o,selectionService:p,viewState:h,viewCache:f,interactions:c}),()=>{p.destroy(),o.destroy(),c.removeAllListeners(),delete c.select,h.intercept("rotation",void 0),h.onChanged("rotation",void 0)}}),[]),o}const np={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 rp(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ip={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={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,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function op(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r,i,o;let a,s,l,u,c,d;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(r=n.session)&&void 0!==r&&r.sessionConfig||null!==(i=e.session)&&void 0!==i&&null!==(o=i.config)&&void 0!==o&&o.url)){var p;if(a=e.session.options||(null===(p=e.enigmaModel)||void 0===p?void 0:p.session.sessionConfig),!a){var h;a=null===(h=e.session)||void 0===h?void 0:h.config;const t=new URL(a.url);a.host=t.hostname,a.port=t.port,a.isSecure="wss:"===t.protocol}return d=void 0!==a.secure?a.secure:a.isSecure,s=d?"https://":"http://",l=a.host||"localhost",u=a.port?`:${a.port}`:"",c=a.prefix?a.prefix:"/","/"!==c[c.length-1]&&(c=`${c}/`),s+l+u+c}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await ip.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function ap(e,t,n,r){var i,o,a,s,l,u;const{app:c,flags:d}=t,p=null===(i=e.layout)||void 0===i||null===(o=i.tooltip)||void 0===o?void 0:o.imageComponents;if(!p)return[];const[h]=p,f=h.size||"small",m=h.type||"media";let g=-1;for(let e=0;e<n.length;e++)if(n[e].cId===h.cId){g=e;break}const y=(null===(a=r.data)||void 0===a||null===(s=a.customTooltipAttrExps)||void 0===s?void 0:s.value)||[];let v;if(-1!==g&&y[g]&&(v=y[g]),"media"===m&&null!==(l=h.ref)&&void 0!==l&&null!==(u=l.qStaticContentUrl)&&void 0!==u&&u.qUrl)return op(h,f,c);if("url"===m)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&rp(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ip.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await ip.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(c,d,h,f,v);if(d.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&v&&v.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(rp(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ip.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(c,n[g],f,v)}return[]}const sp={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(ap(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t,n;const r=null===(t=e.layout)||void 0===t||null===(n=t.tooltip)||void 0===n?void 0:n.imageComponents;return!!r&&r.length>0}},lp={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await sp.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>sp.checkIfPromisesExist({customTooltipModel:e})};const up=(e,t)=>{var n,r,i;const o=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===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:np.CHART.CHART_PARENT_TYPE,qId:np.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},cp=e=>{var t,n,r;const i=null===(t=e.tooltip)||void 0===t||null===(n=t.chart)||void 0===n||null===(r=n.object)||void 0===r?void 0:r.refId;return{qInfo:{qType:np.CHART.CHART_CHILD_TYPE},qExtendsId:i}};const dp={createContainer:({ctx:e,layout:t})=>{var n,r;if(!((null===(n=t.qHyperCube)||void 0===n||null===(r=n.qDimensionInfo)||void 0===r?void 0:r.length)<=0))return function(e,t){var n,r,i,o;const a=null!==(n=null===(r=t.tooltip)||void 0===r||null===(i=r.chart)||void 0===i||null===(o=i.style)||void 0===o?void 0:o.size)&&void 0!==n?n:"medium",s=np.CHART.STYLE[a];return[{content:[e.h("div",{style:{display:"flex",width:s,height:s,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:np.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":s,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a,s,l;const u=i,c=null==t||null===(a=t.tooltip)||void 0===a||null===(s=a.chart)||void 0===s||null===(l=s.object)||void 0===l?void 0:l.refId;if(null!=u&&u.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&c&&!(t.qHyperCubeDef.qDimensions.length<=0)){await dp.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=np.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=np.CHART.STATE,a=up(t,o),s=await e.createSessionObject(a),l=cp(t);if(s.id!==np.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(u.miniChartToken.alternateState&&u.miniChartToken.sessionObj&&a){var d,p,h,f;const e=n.length>0&&void 0!==(null===(d=n[0].data)||void 0===d?void 0:d.value)?[null===(p=n[0].data)||void 0===p?void 0:p.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var m,g;const e=null!==(m=n[0].data.selectionOuterDimension)&&void 0!==m?m:n[0].data.selectionDimension;if(null!=e&&null!==(g=e.source)&&void 0!==g&&g.field){var y;const t=null==e||null===(y=e.source)||void 0===y?void 0:y.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&u.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&u.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const s=document.getElementById(np.CHART.CONTAINER_ID),l={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};u.miniChartToken.vis=await i.embed.render({element:s,model:u.miniChartToken.model,options:l,id:null===(h=u.miniChartToken.model)||void 0===h?void 0:h.id,type:null===(f=u.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await dp.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(dp.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(np.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=np.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t,n;const r=e;"function"==typeof(null===(t=r.miniChartToken)||void 0===t||null===(n=t.vis)||void 0===n?void 0:n.destroy)&&(r.miniChartToken.vis.destroy(),r.miniChartToken.vis=void 0)}};function pp(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function hp(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=np.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function fp(e){const t=hp();return e.filter((e=>t[e.id]))}const mp={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 i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[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(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[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===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=mp.getAttrExprData(a);o.length||n.length?lp.handlePromises({customTooltipModel:i,nodes:mp.getDataNodes(s,o.length>0?o: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!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&dp.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>lp.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o,a,s;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n,r;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(r=n.quarantine)||void 0===r?void 0:r[np.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[np.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[np.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(fp(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t,n;const r=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(n=t.quarantine)||void 0===n?void 0:n[np.CUSTOM.QUARANTINE])&&delete r.qLayoutExclude.quarantine[np.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=pp(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===fp(i).length){var o,a;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(a=o.quarantine)||void 0===a?void 0:a.customTooltip)||[],n=[...i,...t],s=e;s.qHyperCubeDef?s.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:s.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=pp(e)||[];[...i,t].forEach((e=>{const t=fp(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=hp(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[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:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.detectTextDirection(e.src),r=[],i={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"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function gp(e,t,n,r){var i,o,a;const s=(null===(i=t.qHyperCube)||void 0===i||null===(o=i[n])||void 0===o||null===(a=o[r])||void 0===a?void 0:a.qAttrExprInfo)||[],l=[],u=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return u?(s.forEach(((e,t)=>{const i=u.qValues&&u.qValues[t]?u.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case np.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case np.CUSTOM.TITLE:case np.CUSTOM.DESCRIPTION:case np.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);l.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),l):l}const yp={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>gp(t,e,r,n)}}};const vp={getCustomAttrExps(e,t,n){var r,i;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},a=(null===(r=t.data)||void 0===r||null===(i=r.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];if(Number.isNaN(a))return o;return function(e,t,n,r){const i={[np.CUSTOM.TITLE]:!0,[np.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=mp.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===np.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===np.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,a.map((t=>be.getMeasure(e,t))),e,o)}};function bp({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(vp.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 xp(e){const t=np.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function wp(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var Sp={attrExpr:{migrateProperties(e){var t,n,r,i;const o=ie(!0,{},e),a=(null===(t=o.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[];let s=wp(o);return s=function(e,t){return t.concat(e.map((e=>xp(e))))}(a,s),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(s,o),null===(i=o.tooltip)||void 0===i||delete i.data,o},getPatches(e){var t,n,r,i;const o=(null===(t=e.tooltip)||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.qHyperCubeDef)||void 0===r?void 0:r.qMeasures)||[],a=(null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qDimensions.length)-1,s=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=xp(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(wp(e),o,a);return s},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return new Promise((n=>{var r,i,o,a,s;const l=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],u=(null===(i=t.tooltip)||void 0===i||null===(o=i.data)||void 0===o?void 0:o.qHyperCube)||{},c=null===(a=t.qMeta)||void 0===a||null===(s=a.privileges)||void 0===s?void 0:s.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(u,l)&&e.getEffectiveProperties().then((t=>{if(c){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:Cp}=np;function Ep({flags:e,layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u,options:c}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:mp,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:o,chart:a,translator:s,localeInfo:l,embed:u}),h="rtl"===c.direction,f=()=>{var e,n;const r=!(null===(e=d.properties)||void 0===e||null===(n=e.qHyperCubeDef)||void 0===n||!n.qDimensions.some((e=>{var t,n;return null===(t=e.qCalcCondition)||void 0===t||null===(n=t.qCond)||void 0===n?void 0:n.qv})));return!(!t.tooltip||t.tooltip.auto||r)};return{setProperties:e=>{d.properties=e},isEnabled:()=>f(),hideBasic:()=>f()&&i(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=bp({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Cp.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Cp.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>mp.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>mp.getImageRow(e,{h:t,rtl:h}),addImages:({nodes:r})=>{const i=mp.getDataNodes(a,r),{attrExps:o}=mp.getAttrExprData(t);return lp.handlePromises({customTooltipModel:p,nodes:i,attrExps:o,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(f()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(n=e.chart)&&void 0!==n&&null!==(i=n.object)&&void 0!==i&&i.refId&&u&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e,n,i},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>dp.createContainer({layout:t,ctx:{h:e,rtl:h}}),createLimitationRow:()=>mp.getFooterRow(s.get("properties.tooltip.notselectedmessage"),h),show:({nodes:e,properties:t})=>dp.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:h}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>dp.hide({app:n,customTooltipModel:p}),destroy:()=>dp.destroyVisualization({customTooltipModel:p})}}}function kp(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function Tp({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:d}=o.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:i,create:o,util:a})=>{const[u]=n,{title:c,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];c&&h.push(o.text({value:c,style:{bold:!0}})),d&&h.push(o.text({value:d}));const f=s.hideBasic();if(f&&!p.length&&(c||d)||h.push(o.text({value:u.data.label,style:{bold:!0}})),!f){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=u.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=u.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(u.desc.share)}))}p&&h.push(...p.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=u.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},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"}}}})}function Rp({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Dp=.8,Mp=.55,qp=.3,Pp={CORNER_RADIUS:0,INNER_RADIUS:Mp,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Np=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=Dp,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Mp;e.donut.showAsDonut&&(o=Dp-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:Dp,Lp=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:Mp;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Dp-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},Ip=({layout:e},t)=>{var n,r,i,o,a,s;const l=t.colorService.getDatumProps(),u=l[Object.keys(l)[0]],c=u&&u.field?u.field:void 0,d="qDimensionInfo/0"===c,p=c?t.ds.field(c).raw():null,h=p&&(p.label||p.title||p.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:m}=t.chart,g=he.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function y(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>m(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:{...l,num:y(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:h,value:e=>d?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==g?yp.getNode(e,{dimensionCount:g}):void 0,radius:f?y(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:Lp({layout:e},t,v),fill:t.colorService.getColor(),strokeWidth:null!=v&&null!==(n=v.style)&&void 0!==n&&n.strokeWidth?Pp.STROKE.WIDTH[v.style.strokeWidth.toUpperCase()]:Pp.STROKE.WIDTH.NONE,stroke:null!==(r=null==v||null===(i=v.style)||void 0===i||null===(o=i.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:Pp.STROKE.COLOR,outerRadius:Np({layout:e},t,v),cornerRadius:null!==(a=null==v||null===(s=v.style)||void 0===s?void 0:s.cornerRadius)&&void 0!==a?a:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Ap({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Mp,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=Dp-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Op(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 zp({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}}}const jp=()=>({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}}}),Fp=()=>({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}}});function Hp(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function $p(e){return e.node.data.num.label}function _p(e){return e.node.data.radius.label}function Up(e,t,n){if(e.dataPoint.auto)return n?$p:Hp;if("share"===e.dataPoint.labelMode)return Hp;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?_p:$p}return null}function Vp({data:e}){return e?e.label:""}function Wp(e){const t=parseInt(e,10);if(!isNaN(t))return t}const Bp=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Yp(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:Mp)>qp}function Kp({node:e,data:t}){return ie({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Jp(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:Wp(r.fontSize),fontFamily:r.fontFamily,label:Vp,linkData:({node:e,data:t})=>ie({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(Up(e,t,!1)){const r=function(e,t,n){return{label:Up(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Yp(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Yp(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=Se(ie(t,r),n.theme);o.linkData=Kp,i.push(o)}return{key:"pie-labels",type:"labels",renderer:Gi(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Gp({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=Up(e,t,!0),i=Bp(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,u=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:Gi(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:Wp(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:Vp,linkData:({data:e})=>e},{fontSize:Wp(s.fontSize),fontFamily:s.fontFamily,fill:u&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Jp(e,n,t))}const Zp=(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)),i=(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 i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},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 Xp(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function Qp(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=Xp(e,t),o=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*Dp;return(o-r)**2+(a-i)**2<=s**2}const eh=(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 i=Xp(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),th=(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()}}}),nh=(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 rh(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Qp(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 ih=(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()&&Qp(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}}}),oh=(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}}}),ah=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[ih(e,{}),eh(e,t,{}),...n]:[Zp(e,{}),nh(e,{}),ih(e,{}),th(e,{}),oh(e,{}),eh(e,t,{}),...n]});function sh(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[ah(t,r,o.gestures),rh(t),o.native]}function lh({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 uh({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=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:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function ch({layout:e},t,n){const r=function(e,t){const n={field:"qDimensionInfo/0",props:{num:{field:t.encodings.slice.arc}}};t.encodings.slice.outerRadius&&(n.props.radius={field:t.encodings.slice.outerRadius});let r=t.ds.extract(n);if(0===r.length)return"NoDataExist";const i=he.getValue(e,"qHyperCube.qSize.qcy");if(he.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<i)return"LimitedData";if(r=t.encodings.slice.outerRadius?r.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):r.filter((e=>"NaN"!==e.num.value)),0===r.length)return"OnlyNanData";const o=r;return r=t.encodings.slice.outerRadius&&!e.donut.showAsDonut?r.filter((e=>e.num.value>0&&e.radius.value>0)):r.filter((e=>e.num.value>0)),0===r.length?"OnlyNegativeOrZeroValues":o.length!==r.length&&"NegativeOrZeroValues"}(e,t),{fontFamily:i}=t.themeService.getStyles();return function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:se[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),rtl:o},style:r}}(r,t,n,{fontFamily:i})}function dh({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return ie(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&ie(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),o={scales:i};let a=[];const s=ch({layout:e},r,t);if(s&&"center"===s.layout.dock)return{components:[s]};const l=t.constraints.select||t.constraints.active,u=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 i.fillRange&&u.components[0]&&("right"===u.components[0].layout.dock||"left"===u.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[Ip({layout:e,settings:o},r),Ap({layout:e},r),Op(r),zp({layout:e},r),uh({layout:e},r,t),...u.components,Rp({settings:o,scaleKey:"fill",legend:u.components[0]||{},onEdited:r.onSelect}),Fp(),jp(),Gp({layout:{components:e.components,dataPoint:ie({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),(!1!==e.showDisclaimer||!r.flags.isEnabled("SHOW_DISCLAIMER"))&&s],a=a.filter((e=>!1!==e)),{interactions:sh(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:lh({settings:o},r),strategy:de(0,r)}}function ph({instance:e,services:t,picasso:n,flags:i}){const o=S(),a=q(),s=P(),l=R(),u=A(),c=N(),d=E(),p=I(),{qLocaleInfo:f}=O(),[m]=j((()=>{if(!t)return Promise.resolve();Sp.attrExpr.updateProperties(a,c);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:u,legendProps:c.legend,layout:c,localeInfo:f,hc:c.qHyperCube,colorProps:{...c.color,useBaseColors:e(c)}})}),a&&!c.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t]);M((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(c)}),[c]),M((()=>{if(!e||!m)return;const{chart:g,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,pluginService:w,themeService:S,tooltipService:C,styleService:E}=t,k=o.viewState||{};c.snapshotData||(y.preventSet("legendScrollOffset",k.legendScrollOffset||0),y.preventSet("rotation",k.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))}(c,y),C.expando.set("properties",m[1]);const T=n.data("q")({key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}}),R=[{type:"q",key:"qHyperCube",data:c.qHyperCube,config:{localeInfo:f}},...x.getData()],D={slice:{arc:"qMeasureInfo/0"}};c.qHyperCube.qMeasureInfo.length>1&&(D.slice.outerRadius="qMeasureInfo/1");const M=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:c.qHyperCube,config:{localeInfo:f}}),D),q=d?()=>{const e=g.brush("selection");r.selections(e,{},c).forEach((e=>{d.select(e)}))}:()=>{},P=c.snapshotData&&!o.freeResize?{width:(c.snapshotData.content.size||c.snapshotData.object.size).w,height:(c.snapshotData.content.size||c.snapshotData.object.size).h}:void 0,N=t=>e.selectionService.getIsSelectionLocked(t),L=()=>dh({layout:c,context:{rtl:"rtl"===o.direction,theme:u,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:T,model:a,app:s,chart:g,onSelect:q,isLocked:N,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:M,encodings:D,colorService:x,pluginService:w,themeService:S,styleService:E,tooltipService:C,debouncer:h,properties:m[1],logicalSize:P,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!Ji.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:o,layout:c,viewCache:b,chart:g})}});e.generateSettings=L;const I=L();g.update({data:R,settings:I}),b.set("chartWidth",g.element.clientWidth),b.set("chartHeight",g.element.clientHeight),b.set("hasZeroLine",I.components.filter((e=>"zeroLine"===e.key)).length>0),Ji.cacheProperties({viewCache:b,layout:c}),o.effect&&c.effectProperties?o.effect.update(c,g,{encodings:D}):c.effectPath||g.brush("highlight").end()}),[e,m,o.direction,o.effectProperties,p,u.name(),l.language()])}const hh="legend-cat";function fh({instance:e,services:t}){const n=C(),r=N();H((i=>{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}}(i,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:fe(t,hh),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:i,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),$((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:fe(e.chart,"legend-cat")})})),[e])}const mh={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},gh={getDimensions:e=>mh.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>mh.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>mh.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>mh.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=mh.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=mh.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 yh={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>gh.getNumMeasures(e)>=1},showLegend:e=>{const t=mh.getValue(e,"color.auto"),n=mh.getValue(e,"color.expressionIsColor"),r=mh.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!mh.getValue(e,"color.auto")&&"byDimension"===mh.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===mh.getValue(e,"color.useDimColVal")&&mh.setValue(e,"color.useDimColVal",!1),!mh.getValue(e,"color.auto")&&"byDimension"===mh.getValue(e,"color.mode")&&"libraryItem"===mh.getValue(e,"color.byDimDef.type"))},vh=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=yh;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&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)&&!mh.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=mh.getValue(e,"color.auto");return mh.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===mh.getValue(e,"color.mode")&&!0===mh.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>mh.getValue(e,"legend.show")&&i(e)}}};function bh(e){return new vh(e)}const xh={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}}}}}}},wh=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${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:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},Sh={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},Ch=(e,t,n,r)=>{const i=f({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:wh("axis.title",i,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:wh("label.name",i,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:wh("label.value",i,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:wh("legend.title",i,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:wh("legend.label",i,r)}}}:void 0}}},Eh=bh("hard");const kh=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(o(e,"color.mode","byDimension"),o(e,"color.byDimDef.activeDimensionIndex",0),o(e,"color.persistent",!1))},Th=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},Rh=e=>{var t;const{flags:n,translator:r}=e||{},i=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:kh},colorMode:{options:Th}}}}},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||o(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,i){i.dimensionTitle=!e}}}}}}},u={uses:"settings",items:{simpleStyling:null!=n&&n.isEnabled("PIECHART_SIMPLE_STYLING")?xh:void 0,simpleLabels:l,general:{items:{showDisclaimer:null!=n&&n.isEnabled("SHOW_DISCLAIMER")?{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}:void 0}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?Ch(a,n,r,i):Sh,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:Eh.color.colorMode.options},persistentColors:{show:Eh.color.persistentColors.show}}},simpleColors:s,legend:{show:Eh.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Eh.legend.showTitle.show},dock:{show:Eh.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return u},Dh={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)}}}}}}},Mh={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}}}}},qh={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Ph(e){return{type:"items",component:"accordion",items:{data:Dh,sorting:Mh,addons:qh,settings:Rh(e)}}}const Nh=bh("explore"),Lh=Ph();var Ih={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Lh.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:Lh.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:Nh.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&Nh.color.useDimColVal.show(e))}}}}}}};const Ah="slices";function Oh(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function zh(e){return e.data.num.label}function jh(e){return e.data.radius.label}function Fh(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?zh:Oh;if("share"===e.dataPoint.labelMode)return Oh;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?jh:zh;return zh}(n,r)(e,t)}function Hh(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 $h{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.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(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,u=n.element.getBoundingClientRect(),c=(i+o)/2,d=u.left-r.left+l.x*(s.x+a*Math.sin(c)),p=u.top-r.top+l.y*(s.y-a*Math.cos(c)),h=Math.cos(c)>0?"top":"bottom",f=Math.sin(c)>0?"right":"left";return{title:Hh(n),label:Fh(n,this.chart.formatter,e,t),orientation:`${h}${f}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=ie(!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=ie(e.options,{effect:null}),n?t.getProperties().then((e=>ie(e,{effectPath:null,effectProperties:null,dataPoint:ie(!0,{},e.originalModelSettings.dataPoint),legend:ie(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class _h extends $h{init(e,t,n,r){return e.options=ie(!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(Ah).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class Uh extends $h{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(Ah).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,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(Ah).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===Ah)).map(((n,r)=>{const i=Fh(n,this.chart.formatter,e,t);return{text:`${Hh(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=ie(!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 Vh="/effects/highlight-value",Wh="/effects/maxmin";var Bh={isCompatible:({effectPath:e})=>e===Wh||e===Vh,create:e=>e.effectPath===Wh?new _h(e):e.effectPath===Vh?new Uh(e):null};function Yh(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o,a;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(a=o.object)||void 0===a?void 0:a.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function Kh(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 Jh(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Gh({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Jh(e),Kh(t),mp.addCallbackCustomTooltip(t)},move(e,t){Jh(e),Kh(t),mp.moveCallbackCustomTooltip(t,e)},remove(e,t){mp.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Jh(e),Kh(r),mp.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){Kh(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 Zh=e=>e.qMax<=0,Xh=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Zh));function Qh(e){return{definition:Ph(e),softDefinition:Ih,support:{snapshot:Xh,export:Xh,exportData:!0,sharing:Xh,viewData:!0,effects:!0},effects:Bh,extendMetrics:Yh,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Gh(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>_.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function ef(e){return{properties:{version:"1.26.3",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:Pp.STROKE.COLOR},cornerRadius:Pp.CORNER_RADIUS,innerRadius:Pp.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:[Gh(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=_.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Gh(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>_.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(U).forEach((t=>{e.add(U[t])}))}}(e.translator);const n=Jd();return{qae:ef(e),ext:Qh(e),component(){const e=tp({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),i=P(),o=R(),a=C(),[s,l]=k(),u=N(),h=L(),f=I(),m=S(),g=A(),{qLocaleInfo:y}=O(),v=z();return M((()=>{if(!n)return;a.style.overflow="hidden";const s=c({picasso:n.picasso,model:r,app:i,translator:o,config:{auto:!1,key:"fill"}}),b=d({picassoInstance:n.picasso,plugins:h,pluginArgs:kp(u)}),x=Ep({flags:e,layout:u,app:i,model:r,picasso:t,chart:n.chart,translator:o,localeInfo:y,embed:v,options:m}),w=p({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=Tp({app:i,chart:n.chart,translator:o,layout:u,constraints:f,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=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,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(n=t.axis)||void 0===n||null===(o=n.title)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(a=null===(s=i("axis"))||void 0===s||null===(l=s.axis)||void 0===l||null===(u=l.title)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.axis.title.fontSize,color:null!==(c=null===(d=i("axis"))||void 0===d||null===(p=d.axis)||void 0===p||null===(h=p.title)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(o=n.name)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(s=null===(l=i("label"))||void 0===l||null===(u=l.label)||void 0===u||null===(c=u.name)||void 0===c?void 0:c.fontSize)&&void 0!==s?s:r.label.name.fontSize,fontFamily:null!==(d=null===(p=i("label"))||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.name)||void 0===f?void 0:f.fontFamily)&&void 0!==d?d:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(n=t.label)||void 0===n||null===(o=n.value)||void 0===o||null===(a=o.color)||void 0===a?void 0:a.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(s=null===(l=i("label"))||void 0===l||null===(u=l.label)||void 0===u||null===(c=u.value)||void 0===c?void 0:c.fontSize)&&void 0!==s?s:r.label.value.fontSize,fontFamily:null!==(d=null===(p=i("label"))||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.value)||void 0===f?void 0:f.fontFamily)&&void 0!==d?d:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(n=t.legend)||void 0===n||null===(o=n.title)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(a=null===(s=i("legend"))||void 0===s||null===(l=s.legend)||void 0===l||null===(u=l.title)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.legend.title.fontSize,color:null!==(c=null===(d=i("legend"))||void 0===d||null===(p=d.legend)||void 0===p||null===(h=p.title)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s,l,u,c,d,p,h,f;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(n=t.legend)||void 0===n||null===(o=n.label)||void 0===o?void 0:o.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(a=null===(s=i("legend"))||void 0===s||null===(l=s.legend)||void 0===l||null===(u=l.label)||void 0===u?void 0:u.fontSize)&&void 0!==a?a:r.legend.label.fontSize,color:null!==(c=null===(d=i("legend"))||void 0===d||null===(p=d.legend)||void 0===p||null===(h=p.label)||void 0===h||null===(f=h.color)||void 0===f?void 0:f.color)&&void 0!==c?c:r.legend.label.color}}}}}}({layout:u,themeService:w,flags:e});l({colorService:s,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,i,n,u,o.language(),f,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});ph({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=S(),r=F();M((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:i,generateSettings:o}=e;i.update({settings:o()}),r.set("chartWidth",i.element.clientWidth),r.set("chartHeight",i.element.clientHeight),n.effect&&n.effect.update(t,i)}),[r.width,r.height])}({instance:e}),fh({instance:e,services:r})}}}))}}}));