@nebula.js/sn-combo-chart 1.30.0 → 1.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
1
  /*
2
- * @nebula.js/sn-combo-chart v1.30.0
2
+ * @nebula.js/sn-combo-chart v1.30.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.js","picasso-plugin-q","react","react-dom","qlik-object-conversion"],(function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,m,p,f,h,g,y,v,b,x,S,E,M,C,O,T,w,A,R,k,N,I,L,P,D,q,z,$,_,j,F,B,H,V,U,W,Y,G,X;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,i=e.useRect,o=e.usePromise,a=e.useStaleLayout,s=e.useModel,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,O=e.debouncer,T=e.throttler,w=e.colorService,A=e.disclaimerService,R=e.tooltipService,k=e.layoutService,N=e.dockService,I=e.themeService,L=e.pluginService,P=e.storage,D=e.selectionService,q=e.fontResolver},function(e){z=e.default},function(e){$=e.default},function(e){_=e.default},function(e){j=e.default,F=e,B=e.Children,H=e.isValidElement,V=e.cloneElement,U=e.forwardRef,W=e.useContext},function(e){Y=e,G=e.default},function(e){X=e.default}],execute:function(){e("default",(function(e){var i;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(K).forEach((t=>{e.add(K[t])}))}}(e.translator);const{flags:a}=e,s=null===(i=e.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.isUnsupportedFeature,l=zA();return{qae:YI(e),ext:xL(e),component(){const e=function(){const[e,t]=n();return r((()=>t(C())),[]),e}(),i=function(){const[e,t]=n();return r((()=>{t(P({viewRange:[0,1],scrollOffset:void 0}))}),[]),e}(),c=function(){const e=m(),t=p(),i=d(),o=f(),[a,s]=n(),l=h();return r((()=>{s({options:{direction:"ltr",...e},translator:t,theme:o,embed:i,deviceType:l})}),[e.direction,e.freeResize,t.language(),o.name(),l]),a}(),u=function(){const e=g(),[t,i]=n(!1),[o,a]=n(!1),[s,l]=n(!1),c=function(){const e=g(),[t,i]=n(!1),[o,a]=n({}),[s,l]=n();return r((()=>()=>{a({})}),[]),r((()=>{e&&i(!e.select&&!e.active)}),[e]),{enabled:()=>t,emit:(e,...t)=>o[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=o[e])||void 0===n?void 0:n.indexOf(t);r>-1&&o[e].splice(r,1)},on:(e,t)=>{Array.isArray(o[e])?o[e].push(t):o[e]=[t]},get brushSelectionIncludeMax(){return s},set brushSelectionIncludeMax(e){l(e)},getBrushOptions:void 0}}(),u=function(){var e;const t=g(),[i,o]=n(!1),[a,s]=n(!1),l=y(),c=p(),u=!!l.qSelectionInfo.qInSelections,d=!(null===(e=l.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);r((()=>{t&&o(!t.select&&!t.active)}),[t]);const m=e=>{s("boolean"==typeof e?e:!a)};return v((()=>({key:"lasso",label:c.get(a?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:zI,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=$I;r((()=>{e&&(i(!e.active),a(!e.active),l(!e.passive))}),[e]);const[m]=n({});return m.scroll={enabled:()=>t&&d.query.getCanScroll(),attachDiscreteModel:e=>{d=e||$I}},m.interact={enabled:()=>o},m.tooltip={enabled:()=>s},m.lasso=u,m.select=c,m}(),b=function({picasso:e,environment:i}){const o=t(),[a,s]=n();return r((()=>{if(!i)return;o.style.overflow="hidden";const t=e({renderer:{prio:[i.options.renderer||"canvas"]}}).chart({element:o,data:[],settings:{}});s(t);const{destroy:n}=t;return()=>{n()}}),[i]),a}({picasso:l,environment:c}),x=FI({chart:b,actions:u}),S=qI({picasso:l,chart:b,environment:c,flags:a,viewState:i,viewCache:e,actions:u,selectionService:x});!function({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=ym,[,d]=o((async()=>{if(!(null!=t&&t.update&&n&&r&&a&&s))return;const{layoutService:o,colorService:d,continuousModel:m,discreteModel:p,refLineModel:f,seriesModel:h,animationsModel:g}=n,{miniComponentKeys:y}=h.meta,{options:v}=r,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=o.meta.isSnapshot?o.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",o.getLayoutValue("title"));const E=()=>{f&&f.update(),g.meta.isPartialUpdating=!0,t.update({partialData:!0,excludeFromUpdate:[..._m,...y]}),g.meta.isPartialUpdating=!1};function M(o=!1){const c=zm({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),u=o&&[jm({models:n}),...Fm({models:n}),...d.getData()];o?(t.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):t.update({settings:c,data:u})}a.onChanged("scrollOffset",E),o.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:o,continuousDataModel:m},E)),a.intercept("zoom",c({viewCache:s})));const C=o.getDataPages();o.setDataPages([]),M(!0),o.setDataPages(C),o.meta.isContinuous||await p.command.initialize(),M(!1),Ka.cacheProperties({viewCache:s,layout:o.getLayout()})}),[null==t?void 0:t.update,n,r]);if(d)throw d}({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u}),$m({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),GI({models:S,chart:b,viewState:i})}}}));var K={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":"Выключить выбор лассо"}}};function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.toString,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ee.call(e)},ie=function(e){if(!e||"[object Object]"!==ee.call(e))return!1;var t,n=Q.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Q.call(e,t)},oe=function(e,t){te&&"__proto__"===t.name?te(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ae=function(e,t){if("__proto__"===t){if(!Q.call(e,t))return;if(ne)return ne(e,t).value}return e[t]},se=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ae(s,n),s!==(i=ae(t,n))&&(u&&i&&(ie(i)||(o=re(i)))?(o?(o=!1,a=r&&re(r)?r:[]):a=r&&ie(r)?r:{},oe(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&oe(s,{name:n,newValue:i}));return s},le=J(se);const ce=[["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={};ce.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const de={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<ce.length;++n)if(e>=ce[n][1].width&&t>=ce[n][1].height)return ce[n][0];return"SPARK"}};const me=["$date","$timestamp","$time"],pe=["D","TS","T"],fe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>me.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&pe.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(fe.hasTimeTag(t)&&fe.hasUnknownFormat(t)||fe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&fe.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&fe.canBeContinuousDimension(r[0])},maxNumberOfLines:12},he=/^[A-Z][A-z0-9_]*$/i,ge={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||he.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)},ye=e=>ge.getValue(e,"qHyperCube.qDimensionInfo",[]),ve=e=>ge.getValue(e,"qHyperCube.qMeasureInfo",[]),be=e=>ge.getValue(e,"barGrouping.grouping"),xe={continuous:(e,t=!1)=>!!fe.canBeContinuous(e)&&(ge.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ye(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===be(e)&&(ye(e).length>1||ve(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ye(e).length>1&&1===ve(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ye(e).length&&ve(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==be(e)||this.continuous(e))&&(ye(e).length>1||ve(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ye(e).length>1&&1===ve(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ye(e).length&&ve(e).length>1},simple:e=>0===ye(e).length||1===ye(e).length&&1===ve(e).length,snapshot:e=>!!ge.getValue(e,"snapshotData")};function Se(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Ee=e=>{throw e.isHandled=!0,e};const Me={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Me.getVerticalDock(t):n?Me.getOppositeDock(Me.getHorizontalDock(t)):Me.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n},Ce={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Ce.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Ce.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Ce.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Ce.stringWidthOverMWidth(o)+1.0909090909090908*a)}},Oe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Te=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),we=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ae={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Oe.test(e),isRtlChar:e=>Te.test(e)||we.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ae.isLtrChar(r))return"ltr";if(Ae.isRtlChar(r))return"rtl"}return"ltr"}},Re={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?Re.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=Ae.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=Ae.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:Ae.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=Ae.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ae.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Re.getColorSymbol(e,t)]:[Re.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=Ae.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ae.detectTextDirection(e.value);let l;return l=i?r?[e.value,Re.getColorSymbol(t,n)]:[Re.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 ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var Le=.7,Pe=1/Le,De="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$e=/^#([0-9a-f]{3,8})$/,_e=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),je=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),Fe=new RegExp(`^rgba\\(${De},${De},${De},${qe}\\)$`),Be=new RegExp(`^rgba\\(${ze},${ze},${ze},${qe}\\)$`),He=new RegExp(`^hsl\\(${qe},${ze},${ze}\\)$`),Ve=new RegExp(`^hsla\\(${qe},${ze},${ze},${qe}\\)$`),Ue={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function We(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function Ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xe(t):3===n?new Qe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ke(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_e.exec(e))?new Qe(t[1],t[2],t[3],1):(t=je.exec(e))?new Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fe.exec(e))?Ke(t[1],t[2],t[3],t[4]):(t=Be.exec(e))?Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=He.exec(e))?ot(t[1],t[2]/100,t[3]/100,1):(t=Ve.exec(e))?ot(t[1],t[2]/100,t[3]/100,t[4]):Ue.hasOwnProperty(e)?Xe(Ue[e]):"transparent"===e?new Qe(NaN,NaN,NaN,0):null}function Xe(e){return new Qe(e>>16&255,e>>8&255,255&e,1)}function Ke(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qe(e,t,n,r)}function Je(e){return e instanceof Ie||(e=Ge(e)),e?new Qe((e=e.rgb()).r,e.g,e.b,e.opacity):new Qe}function Ze(e,t,n,r){return 1===arguments.length?Je(e):new Qe(e,t,n,null==r?1:r)}function Qe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function et(){return`#${it(this.r)}${it(this.g)}${it(this.b)}`}function tt(){const e=nt(this.opacity);return`${1===e?"rgb(":"rgba("}${rt(this.r)}, ${rt(this.g)}, ${rt(this.b)}${1===e?")":`, ${e})`}`}function nt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function it(e){return((e=rt(e))<16?"0":"")+e.toString(16)}function ot(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,n,r)}function at(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ge(e)),!e)return new st;if(e instanceof st)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 st(a,s,l,e.opacity)}function st(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function lt(e){return(e=(e||0)%360)<0?e+360:e}function ct(e){return Math.max(0,Math.min(1,e||0))}function ut(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ke(Ie,Ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:We,formatHex:We,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return at(this).formatHsl()},formatRgb:Ye,toString:Ye}),ke(Qe,Ze,Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(rt(this.r),rt(this.g),rt(this.b),nt(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:et,formatHex:et,formatHex8:function(){return`#${it(this.r)}${it(this.g)}${it(this.b)}${it(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tt,toString:tt})),ke(st,(function(e,t,n,r){return 1===arguments.length?at(e):new st(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new st(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 Qe(ut(e>=240?e-240:e+120,i,r),ut(e,i,r),ut(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new st(lt(this.h),ct(this.s),ct(this.l),nt(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=nt(this.opacity);return`${1===e?"hsl(":"hsla("}${lt(this.h)}, ${100*ct(this.s)}%, ${100*ct(this.l)}%${1===e?")":`, ${e})`}`}}));const dt=Math.PI/180,mt=180/Math.PI,pt=.96422,ft=1,ht=.82521,gt=4/29,yt=6/29,vt=3*yt*yt,bt=yt*yt*yt;function xt(e){if(e instanceof St)return new St(e.l,e.a,e.b,e.opacity);if(e instanceof wt)return At(e);e instanceof Qe||(e=Je(e));var t,n,r=Ot(e.r),i=Ot(e.g),o=Ot(e.b),a=Et((.2225045*r+.7168786*i+.0606169*o)/ft);return r===i&&i===o?t=n=a:(t=Et((.4360747*r+.3850649*i+.1430804*o)/pt),n=Et((.0139322*r+.0971045*i+.7141733*o)/ht)),new St(116*a-16,500*(t-a),200*(a-n),e.opacity)}function St(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Et(e){return e>bt?Math.pow(e,1/3):e/vt+gt}function Mt(e){return e>yt?e*e*e:vt*(e-gt)}function Ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Tt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wt)return new wt(e.h,e.c,e.l,e.opacity);if(e instanceof St||(e=xt(e)),0===e.a&&0===e.b)return new wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mt;return new wt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function At(e){if(isNaN(e.h))return new St(e.l,0,0,e.opacity);var t=e.h*dt;return new St(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ke(St,(function(e,t,n,r){return 1===arguments.length?xt(e):new St(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return new St(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new St(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 Qe(Ct(3.1338561*(t=pt*Mt(t))-1.6168667*(e=ft*Mt(e))-.4906146*(n=ht*Mt(n))),Ct(-.9787684*t+1.9161415*e+.033454*n),Ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ke(wt,Tt,Ne(Ie,{brighter(e){return new wt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return At(this).rgb()}}));var Rt={isDark:function(e){return Tt(e).l<70}};function kt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Nt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function It(e){return 1===e.length&&(e=function(e){return function(t,n){return Nt(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Lt=It(Nt).right,Pt=Math.sqrt(50),Dt=Math.sqrt(10),qt=Math.sqrt(2);function zt(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Pt?10:o>=Dt?5:o>=qt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pt?10:o>=Dt?5:o>=qt?2:1)}function $t(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Pt?i*=10:o>=Dt?i*=5:o>=qt&&(i*=2),t<e?-i:i}function _t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var jt="$";function Ft(){}function Bt(e,t){var n=new Ft;if(e instanceof Ft)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 Ht(){}Ft.prototype=Bt.prototype={constructor:Ft,has:function(e){return jt+e in this},get:function(e){return this[jt+e]},set:function(e,t){return this[jt+e]=t,this},remove:function(e){var t=jt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===jt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===jt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===jt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===jt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===jt&&++e;return e},empty:function(){for(var e in this)if(e[0]===jt)return!1;return!0},each:function(e){for(var t in this)t[0]===jt&&e(this[t],t.slice(1),this)}};var Vt=Bt.prototype;Ht.prototype={constructor:Ht,has:Vt.has,add:function(e){return this[jt+(e+="")]=e,this},remove:Vt.remove,clear:Vt.clear,values:Vt.keys,size:Vt.size,empty:Vt.empty,each:Vt.each};var Ut=Array.prototype,Wt=Ut.map,Yt=Ut.slice;function Gt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kt(){}var Jt=.7,Zt=1/Jt,Qt="\\s*([+-]?\\d+)\\s*",en="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nn=/^#([0-9a-f]{3})$/,rn=/^#([0-9a-f]{6})$/,on=new RegExp("^rgb\\("+[Qt,Qt,Qt]+"\\)$"),an=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),sn=new RegExp("^rgba\\("+[Qt,Qt,Qt,en]+"\\)$"),ln=new RegExp("^rgba\\("+[tn,tn,tn,en]+"\\)$"),cn=new RegExp("^hsl\\("+[en,tn,tn]+"\\)$"),un=new RegExp("^hsla\\("+[en,tn,tn,en]+"\\)$"),dn={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 mn(e){var t;return e=(e+"").trim().toLowerCase(),(t=nn.exec(e))?new yn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=rn.exec(e))?pn(parseInt(t[1],16)):(t=on.exec(e))?new yn(t[1],t[2],t[3],1):(t=an.exec(e))?new yn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sn.exec(e))?fn(t[1],t[2],t[3],t[4]):(t=ln.exec(e))?fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cn.exec(e))?bn(t[1],t[2]/100,t[3]/100,1):(t=un.exec(e))?bn(t[1],t[2]/100,t[3]/100,t[4]):dn.hasOwnProperty(e)?pn(dn[e]):"transparent"===e?new yn(NaN,NaN,NaN,0):null}function pn(e){return new yn(e>>16&255,e>>8&255,255&e,1)}function fn(e,t,n,r){return r<=0&&(e=t=n=NaN),new yn(e,t,n,r)}function hn(e){return e instanceof Kt||(e=mn(e)),e?new yn((e=e.rgb()).r,e.g,e.b,e.opacity):new yn}function gn(e,t,n,r){return 1===arguments.length?hn(e):new yn(e,t,n,null==r?1:r)}function yn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function bn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xn(e,t,n,r)}function xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Gt(Kt,mn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Gt(yn,gn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new yn(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"#"+vn(this.r)+vn(this.g)+vn(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+")")}})),Gt(xn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xn)return new xn(e.h,e.s,e.l,e.opacity);if(e instanceof Kt||(e=mn(e)),!e)return new xn;if(e instanceof xn)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 xn(a,s,l,e.opacity)}(e):new xn(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new xn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new xn(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 yn(Sn(e>=240?e-240:e+120,i,r),Sn(e,i,r),Sn(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,Mn=180/Math.PI,Cn=.96422,On=1,Tn=.82521,wn=4/29,An=6/29,Rn=3*An*An,kn=An*An*An;function Nn(e){if(e instanceof In)return new In(e.l,e.a,e.b,e.opacity);if(e instanceof zn){if(isNaN(e.h))return new In(e.l,0,0,e.opacity);var t=e.h*En;return new In(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof yn||(e=hn(e));var n,r,i=qn(e.r),o=qn(e.g),a=qn(e.b),s=Ln((.2225045*i+.7168786*o+.0606169*a)/On);return i===o&&o===a?n=r=s:(n=Ln((.4360747*i+.3850649*o+.1430804*a)/Cn),r=Ln((.0139322*i+.0971045*o+.7141733*a)/Tn)),new In(116*s-16,500*(n-s),200*(s-r),e.opacity)}function In(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ln(e){return e>kn?Math.pow(e,1/3):e/Rn+wn}function Pn(e){return e>An?e*e*e:Rn*(e-wn)}function Dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function zn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Gt(In,(function(e,t,n,r){return 1===arguments.length?Nn(e):new In(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new In(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new In(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 yn(Dn(3.1338561*(t=Cn*Pn(t))-1.6168667*(e=On*Pn(e))-.4906146*(n=Tn*Pn(n))),Dn(-.9787684*t+1.9161415*e+.033454*n),Dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Gt(zn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zn)return new zn(e.h,e.c,e.l,e.opacity);if(e instanceof In||(e=Nn(e)),0===e.a&&0===e.b)return new zn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Mn;return new zn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new zn(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new zn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new zn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Nn(this).rgb()}}));var $n=-.14861,_n=1.78277,jn=-.29227,Fn=-.90649,Bn=1.97294,Hn=Bn*Fn,Vn=Bn*_n,Un=_n*jn-Fn*$n;function Wn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof yn||(e=hn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Un*r+Hn*t-Vn*n)/(Un+Hn-Vn),o=r-i,a=(Bn*(n-i)-jn*o)/Fn,s=Math.sqrt(a*a+o*o)/(Bn*i*(1-i)),l=s?Math.atan2(a,o)*Mn-120:NaN;return new Yn(l<0?l+360:l,s,i,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gn(e){return function(){return e}}function Xn(e,t){return function(n){return e+n*t}}function Kn(e){return 1==(e=+e)?Jn: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):Gn(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?Xn(e,n):Gn(isNaN(e)?t:e)}Gt(Yn,Wn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new Yn(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 yn(255*(t+n*($n*r+_n*i)),255*(t+n*(jn*r+Fn*i)),255*(t+n*(Bn*r)),this.opacity)}}));var Zn=function e(t){var n=Kn(t);function r(e,t){var r=n((e=gn(e)).r,(t=gn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Jn(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);function Qn(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ar(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function er(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function tr(e,t){return t-=e=+e,function(n){return e+t*n}}function nr(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=ar(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ir=new RegExp(rr.source,"g");function or(e,t){var n,r,i,o=rr.lastIndex=ir.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=rr.exec(e))&&(r=ir.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:tr(n,r)})),o=ir.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function ar(e,t){var n,r=typeof t;return null==t||"boolean"===r?Gn(t):("number"===r?tr:"string"===r?(n=mn(t))?(t=n,Zn):or:t instanceof mn?Zn:t instanceof Date?er:Array.isArray(t)?Qn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?nr:tr)(e,t)}function sr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function lr(e){return function t(n){function r(t,r){var i=e((t=Wn(t)).h,(r=Wn(r)).h),o=Jn(t.s,r.s),a=Jn(t.l,r.l),s=Jn(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 cr(e){return+e}lr((function(e,t){var n=t-e;return n?Xn(e,n>180||n<-180?n-360*Math.round(n/360):n):Gn(isNaN(e)?t:e)})),lr(Jn);var ur=[0,1];function dr(e){return e}function mr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function pr(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function fr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=mr(i,r),o=n(a,o)):(r=mr(r,i),o=n(o,a)),function(e){return o(r(e))}}function hr(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=mr(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Lt(e,t,1,r)-1;return o[n](i[n](t))}}function gr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yr(e,t){return function(){var e,t,n,r,i,o,a=ur,s=ur,l=ar,c=dr;function u(){return r=Math.min(a.length,s.length)>2?hr:fr,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),tr)))(n)))},d.domain=function(e){return arguments.length?(a=Wt.call(e,cr),c===dr||(c=pr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Yt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Yt.call(e),l=sr,u()},d.clamp=function(e){return arguments.length?(c=e?pr(a):dr,d):c!==dr},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function vr(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)]}function br(e){return(e=vr(Math.abs(e)))?e[1]:NaN}var xr,Sr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Er(e){return new Mr(e)}function Mr(e){if(!(t=Sr.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 Cr(e,t){var n=vr(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")}Er.prototype=Mr.prototype,Mr.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 Or={"%":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 Cr(100*e,t)},r:Cr,s:function(e,t){var n=vr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(xr=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")+vr(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 Tr(e){return e}var wr,Ar,Rr,kr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Nr(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)}):Tr,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):Tr,s=e.percent||"%";function l(e){var t=(e=Er(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,m=e.comma,p=e.precision,f=e.trim,h=e.type;"n"===h?(m=!0,h="g"):Or[h]||(null==p&&(p=12),f=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?i[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(h)?s:"",v=Or[h],b=/[defgprs%]/.test(h);function x(e){var i,s,c,x=g,S=y;if("c"===h)S=v(e)+S,e="";else{var E=(e=+e)<0;if(e=v(Math.abs(e),p),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)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?kr[8+xr/3]:"")+S+(E&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){S=(46===c?o+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!u&&(e=r(e,1/0));var M=x.length+e.length+S.length,C=M<d?new Array(d-M+1).join(t):"";switch(m&&u&&(e=r(C+e,C.length?d-S.length:1/0),C=""),n){case"<":e=x+e+S+C;break;case"=":e=x+C+e+S;break;case"^":e=C.slice(0,M=C.length>>1)+x+e+S+C.slice(M);break;default:e=C+x+e+S}return a(e)}return p=null==p?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Er(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(br(t)/3))),i=Math.pow(10,-r),o=kr[8+r/3];return function(e){return n(i*e)+o}}}}function Ir(e,t,n,r){var i,o=$t(e,t,n);switch((r=Er(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(br(t)/3)))-br(Math.abs(e)))}(o,a))||(r.precision=i),Rr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-br(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Ar(r)}function Lr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=zt(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ir(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=zt(s,l,n))>0?r=zt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=zt(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function Pr(){var e=yr(dr,dr);return e.copy=function(){return gr(e,Pr())},_t.apply(e,arguments),Lr(e)}wr=Nr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ar=wr.format,Rr=wr.formatPrefix;var Dr=new Date,qr=new Date;function zr(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 zr((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 Dr.setTime(+t),qr.setTime(+r),e(Dr),e(qr),Math.floor(n(Dr,qr))},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 $r=zr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));$r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?zr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):$r:null},$r.range;var _r=1e3,jr=6e4,Fr=36e5,Br=864e5,Hr=6048e5,Vr=zr((function(e){e.setTime(Math.floor(e/_r)*_r)}),(function(e,t){e.setTime(+e+t*_r)}),(function(e,t){return(t-e)/_r}),(function(e){return e.getUTCSeconds()}));Vr.range;var Ur=zr((function(e){e.setTime(Math.floor(e/jr)*jr)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getMinutes()}));Ur.range;var Wr=zr((function(e){var t=e.getTimezoneOffset()*jr%Fr;t<0&&(t+=Fr),e.setTime(Math.floor((+e-t)/Fr)*Fr+t)}),(function(e,t){e.setTime(+e+t*Fr)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getHours()}));Wr.range;var Yr=zr((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())*jr)/Br}),(function(e){return e.getDate()-1}));function Gr(e){return zr((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())*jr)/Hr}))}Yr.range;var Xr=Gr(0),Kr=Gr(1),Jr=Gr(2),Zr=Gr(3),Qr=Gr(4),ei=Gr(5),ti=Gr(6);Xr.range,Kr.range,Jr.range,Zr.range,Qr.range,ei.range,ti.range;var ni=zr((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()}));ni.range;var ri=zr((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()}));ri.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zr((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},ri.range;var ii=zr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getUTCMinutes()}));ii.range;var oi=zr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Fr)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getUTCHours()}));oi.range;var ai=zr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getUTCDate()-1}));function si(e){return zr((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)/Hr}))}ai.range;var li=si(0),ci=si(1),ui=si(2),di=si(3),mi=si(4),pi=si(5),fi=si(6);li.range,ci.range,ui.range,di.range,mi.range,pi.range,fi.range;var hi=zr((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()}));hi.range;var gi=zr((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 yi(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 vi(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 bi(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}gi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zr((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},gi.range;var xi,Si,Ei,Mi={"-":"",_:" ",0:"0"},Ci=/^\s*\d+/,Oi=/^%/,Ti=/[\\^$*+?|[\]().{}]/g;function wi(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 Ai(e){return e.replace(Ti,"\\$&")}function Ri(e){return new RegExp("^(?:"+e.map(Ai).join("|")+")","i")}function ki(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ni(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Li(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Pi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Di(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=Ci.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function zi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $i(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 _i(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ji(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fi(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Bi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ui(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wi(e,t,n){var r=Ci.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yi(e,t,n){var r=Oi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ki(e,t){return wi(e.getDate(),t,2)}function Ji(e,t){return wi(e.getHours(),t,2)}function Zi(e,t){return wi(e.getHours()%12||12,t,2)}function Qi(e,t){return wi(1+Yr.count(ri(e),e),t,3)}function eo(e,t){return wi(e.getMilliseconds(),t,3)}function to(e,t){return eo(e,t)+"000"}function no(e,t){return wi(e.getMonth()+1,t,2)}function ro(e,t){return wi(e.getMinutes(),t,2)}function io(e,t){return wi(e.getSeconds(),t,2)}function oo(e){var t=e.getDay();return 0===t?7:t}function ao(e,t){return wi(Xr.count(ri(e),e),t,2)}function so(e,t){var n=e.getDay();return e=n>=4||0===n?Qr(e):Qr.ceil(e),wi(Qr.count(ri(e),e)+(4===ri(e).getDay()),t,2)}function lo(e){return e.getDay()}function co(e,t){return wi(Kr.count(ri(e),e),t,2)}function uo(e,t){return wi(e.getFullYear()%100,t,2)}function mo(e,t){return wi(e.getFullYear()%1e4,t,4)}function po(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wi(t/60|0,"0",2)+wi(t%60,"0",2)}function fo(e,t){return wi(e.getUTCDate(),t,2)}function ho(e,t){return wi(e.getUTCHours(),t,2)}function go(e,t){return wi(e.getUTCHours()%12||12,t,2)}function yo(e,t){return wi(1+ai.count(gi(e),e),t,3)}function vo(e,t){return wi(e.getUTCMilliseconds(),t,3)}function bo(e,t){return vo(e,t)+"000"}function xo(e,t){return wi(e.getUTCMonth()+1,t,2)}function So(e,t){return wi(e.getUTCMinutes(),t,2)}function Eo(e,t){return wi(e.getUTCSeconds(),t,2)}function Mo(e){var t=e.getUTCDay();return 0===t?7:t}function Co(e,t){return wi(li.count(gi(e),e),t,2)}function Oo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?mi(e):mi.ceil(e),wi(mi.count(gi(e),e)+(4===gi(e).getUTCDay()),t,2)}function To(e){return e.getUTCDay()}function wo(e,t){return wi(ci.count(gi(e),e),t,2)}function Ao(e,t){return wi(e.getUTCFullYear()%100,t,2)}function Ro(e,t){return wi(e.getUTCFullYear()%1e4,t,4)}function ko(){return"+0000"}function No(){return"%"}function Io(e){return+e}function Lo(e){return Math.floor(+e/1e3)}!function(e){xi=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,c=Ri(i),u=ki(i),d=Ri(o),m=ki(o),p=Ri(a),f=ki(a),h=Ri(s),g=ki(s),y=Ri(l),v=ki(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:Ki,e:Ki,f:to,H:Ji,I:Zi,j:Qi,L:eo,m:no,M:ro,p:function(e){return i[+(e.getHours()>=12)]},Q:Io,s:Lo,S:io,u:oo,U:ao,V:so,w:lo,W:co,x:null,X:null,y:uo,Y:mo,Z:po,"%":No},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:fo,e:fo,f:bo,H:ho,I:go,j:yo,L:vo,m:xo,M:So,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Io,s:Lo,S:Eo,u:Mo,U:Co,V:Oo,w:To,W:wo,x:null,X:null,y:Ao,Y:Ro,Z:ko,"%":No},S={a:function(e,t,n){var r=p.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=m[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=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:ji,e:ji,f:Wi,H:Bi,I:Bi,j:Fi,L:Ui,m:_i,M:Hi,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Gi,s:Xi,S:Vi,u:Ii,U:Li,V:Pi,w:Ni,W:Di,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:zi,Y:qi,Z:$i,"%":Yi};function E(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Mi[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 M(e,t){return function(n){var r,i,o=bi(1900);if(C(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=vi(bi(o.y))).getUTCDay(),r=i>4||0===i?ci.ceil(r):ci(r),r=ai.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(bi(o.y))).getDay(),r=i>4||0===i?Kr.ceil(r):Kr(r),r=Yr.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?vi(bi(o.y)).getUTCDay():t(bi(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,vi(o)):t(o)}}function C(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=S[i in Mi?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=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",yi);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e,vi);return t.toString=function(){return e},t}}}(e),xi.format,xi.parse,Si=xi.utcFormat,Ei=xi.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 Po="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Si(Po),+new Date("2000-01-01T00:00:00.000Z")||Ei(Po);var Do=1e3,qo=60*Do,zo=60*qo,$o=24*zo,_o=7*$o,jo=30*$o,Fo=365*$o;function Bo(e){return new Date(e)}function Ho(e){return e instanceof Date?+e:+new Date(+e)}function Vo(e,t,n,r,i,o,a,s,l){var c=yr(dr,dr),u=c.invert,d=c.domain,m=l(".%L"),p=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,Do],[a,5,5*Do],[a,15,15*Do],[a,30,30*Do],[o,1,qo],[o,5,5*qo],[o,15,15*qo],[o,30,30*qo],[i,1,zo],[i,3,3*zo],[i,6,6*zo],[i,12,12*zo],[r,1,$o],[r,2,2*$o],[n,1,_o],[t,1,jo],[t,3,3*jo],[e,1,Fo]];function S(s){return(a(s)<s?m:o(s)<s?p:i(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function E(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=It((function(e){return e[2]})).right(x,o);a===x.length?(i=$t(n/Fo,r/Fo,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max($t(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Wt.call(e,Ho)):d().map(Bo)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=E(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return gr(c,Vo(e,t,n,r,i,o,a,s,l))},c}function Uo(){return _t.apply(Vo(gi,hi,li,ai,oi,ii,Vr,$r,Si).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Wo={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Yo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Go={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Wo[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Yo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Yo(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Xo({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ko;function Jo(){Ko=Ko||document.createElement("canvas").getContext("2d")}const Zo={measureTextWidth(e){Jo();const{width:t}=Ko.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Jo();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,m=e?e.split(/\s+/):[],p=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Ko.font=n),o=0;o<a.length;o++){for(d=a[o]||"",m=d.split(/\s+/),[p]=m,u="",i=1;i<m.length;i++)if(l=`${p} ${m[i]}`,c=Zo.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=m[i]):p=l,"number"==typeof r&&s.length>=r){u=m.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${p} ${u}`}return s},wordWrap(e,t,n,r,i){if(Jo(),!e||!e.length)return[];n&&(Ko.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Zo.measureTextWidth(c)<=t?o.push(c):(s=Zo.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Zo.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Zo.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Zo.measureTextWidth(c)>t&&(o[o.length-1]=Zo.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Jo();let i,o,a,s,l=e;const c=Zo.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ko.font=n),e&&t){if(Zo.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Zo.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Jo();let o,a=e,s="",l=[];if(Zo.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Zo.measureTextWidth(a)<=t));i--);return(!i&&!a||Zo.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Zo.measureTextWidth(s)>t?(s=Zo.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Jo(),e&&t?(n&&(Ko.font=n),Zo.explodeWord(e,t,r,Math.max(1,Zo.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Zo.lineWrap(e,t,n,r):[e],o=Zo.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Jo(),e&&(Ko.font=e),1.5*Zo.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Jo(),t&&(Ko.font=t);const s=Zo.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const m=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?m-u:e)}))):c=[Number.isNaN(r)||r<=0?m:Math.min(m,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<m&&(d=d.concat(Zo.wrapText(e,i,t,c[n])))})):d=Zo.wrapText(e,i,t,c[0],n),d}},Qo={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},ea=le.bind(null,!0),ta={},{isArray:na}=Array;function ra(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ia(e){return void 0===e}function oa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function aa(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]=ia(e[r||t])?o:e[t],e=e[r||t]})),e}function sa(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function la(e,t,n){let r=!0;if(ra(e)&&ra(t))return sa(e,n)===sa(t,n)&&(Object.keys(e).forEach((i=>{la(e[i],t[i],n)||(r=!1)})),r);if(na(e)&&na(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!la(e[r],t[r],n))return!1;return!0}return e===t}ta.compare=la,ta.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?ea({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;la(o,a)||oa(t,i)||(ia(a)?r.push({op:"add",path:s,value:o}):ra(o)&&ra(a)?r=r.concat(ta.generate(a,o,s)):na(o)&&na(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]&&ia(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(la(t,i))return r;if(!ia(t[0])&&ia(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(ta.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=>{ia(t[i])&&!oa(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},ta.apply=function(e,t){t.forEach((t=>{let n=aa(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(na(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(na(i)&&na(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ra(i)&&ra(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!oa(a,e)&&delete a[e]})),ea(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=aa(e,t.from);na(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(na(n)?n.splice(+r,1):delete n[r]);var a}))},ta.clone=function(e){return ea({},e)},ta.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},ta.updateObject=function(e,t){Object.keys(e).length?ta.apply(e,ta.generate(e,t)):ea(e,t)};const ca=[[2,4,6],[2,4],[3]],ua=[,[,,[[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 da(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 ma(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)da(e[r],t,n)}!function(){let e,t;for(ma(ca,1,10),e=0;e<ua.length;e++)if(ua[e])for(t=0;t<ua[e].length;t++)Array.isArray(ua[e][t])&&ma(ua[e][t])}();const pa={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=pa.findSegmentPositionMeetMin(e,t);return pa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=pa.findSegmentPositionMeetMax(e,n);return pa.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=pa.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=pa.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,pa.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)pa.layoutPositionFromMin(e,t,n,r),pa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=pa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},fa=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},ha=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ga=e=>e.filter(ha),ya=(e,t)=>ga(ge.getValue(e,t,[])),va=e=>ha(e)&&(!1!==e.showValue||!1!==e.showLabel),ba=e=>e.filter(va),xa=(e,t)=>ba(ge.getValue(e,t,[])),Sa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Ea=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ma=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Ca=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},Oa=({value:e,qMin:t})=>"NaN"!==t&&e<t,Ta=({value:e,qMax:t})=>"NaN"!==t&&e>t,wa={isRefLineVisible:ha,getVisibleRefLines:ga,getRefLines:ya,getMeasureRefLines:e=>ya(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ya(e,"refLine.dimRefLines"),isRefLineLabelVisible:va,getVisibleRefLineLabels:ba,getRefLineLabels:xa,getMeasureRefLineLabels:e=>xa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:xa(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=fa(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=fa(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=fa(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=ge.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ge.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ge.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+m,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),o},getInputValue:Sa,extractInfoFromInputValue:Ea,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Sa({refLineLayout:e,layoutService:n});return Ea(r,t,"id")},isDiscreteMinOutOfBounds:Ma,isDiscreteMaxOutOfBounds:Ca,isContinuousMinOutOfBounds:Oa,isContinuousMaxOutOfBounds:Ta,isOutOfRange:({value:e,qMin:t,qMax:n})=>Oa({value:e,qMin:t})||Ta({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Ca({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ma({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Aa="…";function Ra(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,3,n),i.maxNumLines=i.lines.length}}function ka({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Zo.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function Na({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>ka({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function Ia(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const La=3,Pa=2;function Da({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const qa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(wa.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(wa.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return wa.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:wa.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},za={hasEngineFormat:Da,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=wa.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let m,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");m=e.qMin,p=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,f=qa({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:wa.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=Da({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,r.title=za.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=Da({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=za.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=za.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((e=>t(e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=za.getTotalNumLines(e)-r;if(t<=0)return;za.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,za.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;za.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),Ia(e,"center"),za.addLabelsNeighborInfo(e,r,i,o),Ra(e,a,s),za.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(za.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines.length>i.maxNumLines&&(i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,i.maxNumLines,n))}}(e,a,s)),za.addLabelsSize(e,s,l,d),za.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:m,background:p}=t;let f=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const p={type:"text",text:t,title:ka({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),dx:0,dy:0,maxWidth:n,width:n,fontSize:d,fontFamily:m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return p[l]=u,p[s]=e.segment.position,p.y+=(i-(r-1)/2)*o,p}));e.background&&f.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=La,padding:c={}}=a,{top:u=Pa,bottom:d=Pa,left:m=Pa,right:p=Pa}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(m+p),height:i.height+(u+d),value:i.value,dock:r};return h[n]=e,h[t]=i.segment.position,h.x-=i.width/2+m,h.y-=f*o/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:p})),f=f.concat(i)})),f}};function $a(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function _a(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:i,bottom:o,maxLabelWidth:a}=t;let s=1;return za.getMaxTextWidth(e)>a&&(Ra(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+i+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,za.getMaxTextWidth(e))+n+r}(t,n)}function ja(e,t){return t?e.domain():[0,1]}function Fa(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function Ba(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function Ha(e,t){return e>9?t[1]:t[0]}function Va({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:m,minorAxis:p,minorDimension:f,dock:h}=s,g=i[f],y=Qo.createOob({oob:Qo.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=h;const v=`c${m}`,b=`c${p}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:Na({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[m]=a,[y,x,S]}function Ua(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:Zo.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Wa=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Ya={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=Wa(this.settings.labels),s=$a(this.chart,this.settings.formatter,e);za.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=ja(t,n);return Fa(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Fa(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Ua(t.label),{dock:n}=this.settings.layout;return za.measureLabelsWidth(u,this.measureText),d=_a(n,u,e),d}const m=Ba(this.measureText),p=l?Ha(l,m):0,f=c?Ha(c,m):0;return d=Math.max(p,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=Wa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,{font:v,lineHeight:b,gap:x,maxLabelWidth:S}=Ua(n.label),E=$a(this.chart,this.settings.formatter,e),M=y;za.addLabelTitles({labels:c,formatter:E,isContinuous:o,canBeContinuous:l,localeInfo:s}),za.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[C,O]=ja(e,o),{filteredLabels:T,lowerOobs:w,upperOobs:A,lowerCircleSize:R,upperCircleSize:k,lowerOobSpace:N,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=Fa(e,t,n,c),p="scaledValue"!==c&&wa.getInvert({orientation:r,rtl:i,isContinuous:o}),f=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=f.length,y=h.length,v=Ba(l),b=Ha(g,v),x=Ha(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:C,maxValue:O,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=N,P=y-I;Ia(w),Ia(A);const D=Va({alignment:0,dockValue:0,oobs:w,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+R/2,areaProps:p,radius:R/2,font:v}),q=Va({alignment:1,dockValue:1,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+k/2),areaProps:p,radius:k/2,font:v});za.addLabelsInfo({labels:T,scale:e,majorSize:y,lowerLimit:L,upperLimit:P,font:v,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),pa.layout(T.map((e=>e.segment)),L,P,n.label.gap);const z=T.filter((e=>pa.isInside(e.segment,L,P,o)));return za.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:p,area:f,lineHeight:b,font:v,theme:i}).concat([...D,...q])}};var Ga={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 Xa(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=le(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Ga;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==E(l,e)&&M(l,e,null);else{const e=t[0],n=t[1].split("].")[1];E(l,e,[]).forEach((e=>{void 0!==E(e,n)&&M(e,n,null)}))}})),l}var Ka={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,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"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+=u: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+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,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=Xa(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Xa(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Ja,extractInfoFromInputValue:Za,resolveValue:Qa}=wa;var es={resolveValue:Qa,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Ja({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ja({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const ts=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var m,p;const f={dir:l,line:{strokeWidth:(null==t||null===(m=t.style)||void 0===m?void 0:m.lineThickness)||2,strokeDasharray:null==t||null===(p=t.style)||void 0===p?void 0:p.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):(f.valueInfo=es.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=wa.getScaledPosition({scale:a.scale(s),value:es.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:f.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),f};function ns({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:m,minimumLayoutMode:p}){const f=e?t.dimensionRefLines:m?t.query.getRefLines(m):t.measureRefLines;if(!f.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(ts({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const rs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},is=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:Ka.refLineLabels.trackBy,compensateForLayoutChanges:Ka.refLineLabels.compensateForLayoutChanges}}),os=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>es.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>es.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>es.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function as({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:m,path:p}){const f=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!f.length)return[];const h=[],g=!e||n.meta.isContinuous,y=f.map((e=>os({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(is({isDimension:e,rtl:d,style:le(!0,rs,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function ss({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=xe.dimensionless(o),l=wa.getMeasureRefLines(o),c=wa.getDimensionRefLines(o,s),u=wa.getMeasureRefLineLabels(o),d=wa.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=wa.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return wa.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!p[t])return!1;if(!n&&i){const n={valueInfo:p[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return wa.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),h={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:m,query:{getRefLines:e=>wa.getRefLines(o,e),getRefLineLabels:e=>wa.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=wa.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=wa.getInputValue({refLineLayout:t,layoutService:e});m[n]&&(p[n]?(p[n].innerValues=m[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,m[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,m[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||m[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||m[n].isMaxOrderOk):p[n]={id:m[n].id,qText:m[n].qText,innerValues:m[n].innerValues,minOrder:m[n].minOrder,maxOrder:m[n].maxOrder,isMinOrderOk:m[n].isMinOrderOk,isMaxOrderOk:m[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return h.update(),h}function ls(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var cs={DATA:{MAIN:"qHyperCube",REDUCED:"reduced-data"},SCALE:{MAJOR:"main-major",MAJOR_INNER:"major-inner",MINOR:{PRIMARY:"minor-primary",SECONDARY:"minor-secondary",REDUCED_PRIMARY:"reduced-minor-primary",REDUCED_SECONDARY:"reduced-minor-secondary"},COLOR:"color",REDUCED:"reduced-major"},COMPONENT:{BAR:"bar-series",BAR_LABEL:"bar-label",BAR_OOB_LABEL:"bar-oob-label",STACK_BAR:"stack-bar",STACK_BAR_LABEL:"stack-bar-label",AXIS:{MAJOR:"major-axis",MAJOR_CONTINUOUS:"major-axis-continuous",TIME_INNER:"major-axis-time-inner",TIME_OUTER:"major-axis-time-outer",MINOR:{PRIMARY:"minor-primary-axis",SECONDARY:"minor-secondary-axis"}},AXIS_OVERLAY:{TIME_INNER:"axis-overlay-time-inner",TIME_OUTER:"axis-overlay-time-outer",CONTINUOUS:"axis-overlay-continuous"},AXIS_TITLE:{MAJOR:"major-axis-title",MINOR:{PRIMARY:"minor-primary-axis-title",SECONDARY:"minor-secondary-axis-title"}},MARKER:"marker-series",MARKER_LABEL:"marker-label",LINE:"line-series",POINT:"point-component",LABEL_SPACE:"label-space-component",POINT_LABEL:"point-label",GRID_LINE:"grid-line",ZERO_LINE:"zero-line",LEGEND:"legend",LEGEND_CATEGORICAL:"legend-cat",LEGEND_TOOLTIP:"legend-tooltip",TOOLTIP:"tooltip-qcm",MINI_CHART:{BAR:"mini-chart-bar-series",LINE:"mini-chart-line-series",MARKER:"mini-chart-marker-series"},BAR_OOB:"bar-oob",GHOST_BAR_OOB:"ghost-bar-oob",SLICED_HAT:"sliced-hat",DATA_OOB_MARKER:"data-out-of-bounds-marker",PRIMARY_MEASURE_AXIS_REF_LINE:"primary-mes-axis-ref-line",SECONDARY_MEASURE_AXIS_REF_LINE:"secondary-mes-axis-ref-line",DIMENSION_REF_LINE:"dim-ref-line",PRIMARY_MEASURE_AXIS_REF_LINE_LABEL:"primary-mes-ref-line-label",SECONDARY_MEASURE_AXIS_REF_LINE_LABEL:"secondary-mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label"},COLLECTION:{PRIMARY:"primary-collection",SECONDARY:"secondary-collection",STACKED_PRIMARY:"stacked-collection-primary",STACKED_SECONDARY:"stacked-collection-secondary",STACKED_TOTAL_PRIMARY:"stacked-total-collection-primary",STACKED_TOTAL_SECONDARY:"stacked-total-collection-secondary",REDUCED:"reduced-collection",REDUCED_PRIMARY:"reduced-collection-primary",REDUCED_SECONDARY:"reduced-collection-secondary",REDUCED_STACKED_PRIMARY:"reduced-collection-stacked-primary",REDUCED_STACKED_SECONDARY:"reduced-collection-stacked-secondary",LINE:"line-collection"},FORMATTER:{PRIMARY:"primary-formatter",SECONDARY:"secondary-formatter"}},us={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ds={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 ms(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ps={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,c=o[t]*(n>l?1:n/l),u=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(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},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 fs(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}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 ps.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function hs(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",m=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){p=e;break}const f=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let h;if(-1!==p&&f[p]&&(h=f[p]),"media"===m&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return fs(u,d,s);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&&ms(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ps.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 ps.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&h&&h.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(ms(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ps.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[p],d,h)}return[]}const gs={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(hs(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;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},ys={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await gs.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>gs.checkIfPromisesExist({customTooltipModel:e})};const vs=(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:ds.CHART.CHART_PARENT_TYPE,qId:ds.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},bs=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:ds.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const xs={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=ds.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:ds.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await xs.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ds.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=ds.CHART.STATE,a=vs(t,o),s=await e.createSessionObject(a),l=bs(t);if(s.id!==ds.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,m;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var p,f;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(ds.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(m=s.miniChartToken.model)||void 0===m?void 0:m.genericType})}}catch(t){await xs.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(xs.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ds.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ds.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Ss(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Es(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ds.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function Ms(e){const t=Es();return e.filter((e=>t[e.id]))}const Cs={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 c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||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===c.value&&r.label===c.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}=Cs.getAttrExprData(a);o.length||n.length?ys.handlePromises({customTooltipModel:i,nodes:Cs.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&&xs.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>ys.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;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[ds.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[ds.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ds.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Ms(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[ds.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ds.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Ss(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===Ms(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=Ss(e)||[];[...i,t].forEach((e=>{const t=Ms(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Es(),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:Ae.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ae.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 Os(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case ds.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ds.CUSTOM.TITLE:case ds.CUSTOM.DESCRIPTION:case ds.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const Ts={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Os(t,e,r,n)}}};const ws={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[ds.CUSTOM.TITLE]:!0,[ds.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Cs.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ds.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===ds.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Re.getMeasure(e,t))),e,i)}};function As({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(ws.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:[]})}const{CUSTOM:Rs}=ds;function ks({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=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:Cs,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),m="rtl"===c.direction,p=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>p(),hideBasic:()=>p()&&E(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=As({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Cs.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>Cs.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=Cs.getDataNodes(o,r),{attrExps:a}=Cs.getAttrExprData(t);return ys.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(p()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>xs.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Cs.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>xs.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>xs.hide({app:n,customTooltipModel:d}),destroy:()=>xs.destroyVisualization({customTooltipModel:d})}}}function Ns({key:e,source:t,layoutService:n,fieldModel:r,colorService:i,series:o}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=o.filter((e=>e.type===us.TYPE.BAR)),c=n.meta.isContinuous?s:a,u=e=>"NaN"!==e.qNum?e.qNum:0;return[{key:e,data:{extract:l.map((({ref:e,typeIndex:r,refIndex:o})=>({source:t,field:a,value:n.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},segment:{field:e,value:u,reduceLabel:"none"},end:{field:e,value:u,reduceLabel:"none"},null:{fields:l.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},typeIndex:r,...i.getDatumProps(o),customTooltipAttrExps:Ts.getNode(n.getLayout(),n.meta),sumOfPositives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"}}}))),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}]}return[]}function Is({key:e,series:t,source:n,fieldModel:r,colorService:i,layoutService:o,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=o.meta.isContinuous?s:a;return[{key:e,data:{extract:t.map((({ref:e,refIndex:t,typeIndex:r,options:s},u)=>({source:n,field:a,value:o.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},end:{field:e,value:s.showAsZeros?l:void 0,reduceLabel:"none"},start:0,line:u,typeIndex:r,null:{field:e,value:e=>"NaN"===e.qNum,reduceLabel:"none"},customTooltipAttrExps:Ts.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function Ls({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:i}=t;if(i.isBarSeriesStacked){const{major:t,majorNumeric:o}=n.main,a=r.filter((e=>e.type===us.TYPE.BAR)),s=i.isContinuous?{field:o,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:i.isContinuous?o:t},null:{fields:a.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},sumOfPositives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},timeStart:s,timeEnd:s},value:i.isContinuous?e=>e.qNum:void 0}}}]}return[]}const Ps={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Ds={OPTIONS:Ps,DEFAULT:Ps.MINI_CHART};function qs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function zs({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const $s=e=>({miniChart:e===Ds.OPTIONS.MINI_CHART.value,bar:e===Ds.OPTIONS.BAR.value,none:e===Ds.OPTIONS.NONE.value}),_s=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return $s(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return $s(Ds.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return $s(!n&&(r||!r&&i)?Ds.OPTIONS.NONE.value:Ds.OPTIONS.MINI_CHART.value)};function js({layoutService:e,override:t}){const n=_s({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Ds.OPTIONS.MINI_CHART.value,n.bar=t.value===Ds.OPTIONS.BAR.value,n.none=t.value===Ds.OPTIONS.NONE.value),n}function Fs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===o.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=zs({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Bs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=zs({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Vs="data-scrollbar-handle";function Us({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Vs)||""}const Ws="scrollbarResize",Ys=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Ws}`,options:{event:Ws,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Ws]=this[Ws]||{},Ys(t)&&Us({e:t})&&(this[Ws].panningEvent=t.srcEvent),!!this[Ws].panningEvent))}},events:{[`${Ws}start`](n){n.preventDefault(),this[Ws]=this[Ws]||{},this[Ws].panningEvent&&t.component(e).emit("dragStart",this[Ws].panningEvent)},[`${Ws}move`](n){if(n.preventDefault(),this[Ws]=this[Ws]||{},!this[Ws].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=Us({e:this[Ws].panningEvent});let m="start"===d?Math.min(u,o.max):o.min,p="end"===d?Math.max(u,o.min):o.max;m===p&&(m-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:m,max:p}),t.component(e).emit("render")},[`${Ws}end`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")},[`${Ws}cancel`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")}}}}const Xs="scrollbarPan";function Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Xs}`,options:{event:Xs,threshold:0,enable(r,i){return this[Xs]=this[Xs]||{},!(i&&!this[Xs].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${Xs}start`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},this[Xs].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[Xs].relative=a.relative,this[Xs].zoom=r.get("zoom"),this[Xs].zoom.span=this[Xs].zoom.max-this[Xs].zoom.min,this[Xs].zoom.fullSpan=o-n}else if(a.onThumb)this[Xs].offset=a.thumb;else{const e=u();this[Xs].offset=a.beforeThumb?0:e.thumbSize}},[`${Xs}move`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},o.meta.isContinuous){const e=a.relative-this[Xs].relative,{fullSpan:t,span:n,min:o,max:s}=this[Xs].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[Xs].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Xs}end`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")},[`${Xs}cancel`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")}}}}function Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Zs({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}const Qs={background:"rgba(0, 0, 0, 0.1)"},el={top:-1,bottom:-1,width:6},tl={width:2,background:"#595959"};var nl={before:Qs,after:Qs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:el,endHandle:el,startHandleBorder:tl,endHandleBorder:tl};const rl={background:"rgba(0, 0, 0, 0.1)"},il={top:-1,bottom:-1,width:6},ol={width:2,background:"#595959"};var al={before:rl,after:rl,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:il,endHandle:il,startHandleBorder:ol,endHandleBorder:ol};const sl={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ll={pointerEvents:"initial"},cl={pointerEvents:"none"};const ul="ew-resize",dl="default";function ml(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function pl(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?ul:dl}function fl(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function hl(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function gl(){const{size:e,start:t,end:n}=ml.call(this);this.renderer.render(this.elements(this.h,fl.call(this,e,t,n)))}function yl(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?al:nl;return{container:{...sl},before:{...sl,...n.before,...t.before},after:{...sl,...n.after,...t.after},thumb:{...sl,...n.thumb,...t.thumb},startHandle:{...sl,...ll,...n.startHandle},endHandle:{...sl,...ll,...n.endHandle},startHandleBorder:{...sl,...cl,...n.startHandleBorder},endHandleBorder:{...sl,...cl,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var vl={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){gl.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!hl.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Us({e:e});t&&(this.state.hover[t]=!0),pl.call(this),gl.call(this)},leave(){this.state.locked||(this.state.hover.reset(),pl.call(this),gl.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Us({e:e});t&&(this.state.drag[t]=!0),pl.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),pl.call(this),gl.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=ml.call(this);return this.elements(e,fl.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},m={[i.start]:r},p={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?m:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:m},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Vs]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Vs]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:yl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function bl({layoutService:e}){return e.meta.isContinuous&&js({layoutService:e}).miniChart}function xl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(us.TYPE.LINE),l=[...Is({forceCreate:!0,key:cs.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...Ns({key:cs.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...Ns({key:cs.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return bl(e)&&(l.push(...Is({key:cs.COLLECTION.REDUCED,source:cs.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_PRIMARY,source:cs.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_SECONDARY,source:cs.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_PRIMARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_SECONDARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i}))),l}const Sl=({layoutService:e,dockService:t})=>"custom"!==e.getLayoutValue("dimensionAxis.axisDisplayMode")?Math.min(200,t.meta.chart.size["horizontal"===t.meta.major.orientation?"height":"width"]/4):void 0;function El({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,i=2===n.meta.measureAxes.length;if(i)return.5;const o=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!i){const e=n.meta.measureAxes[0].isPrimary?0:1;if("none"===r.getLayoutValue(`measureAxes.${e}.show`))return.5}return"horizontal"===t.meta.minor.orientation?"near"===o||"bottom"===o?1:0:"near"===o||"left"===o?0:1}const Ml=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}},Cl=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:i.meta.groupSize,maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}};function Ol({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:i}=t,{orientation:o}=i.meta.major;return{type:"linear",invert:"horizontal"===o&&"rtl"===n.options.direction,data:{extract:{field:r.main.majorNumeric}},ticks:{forceBounds:!0,count:e.get("zoom").min===e.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>e.get("zoom").min,max:()=>e.get("zoom").max}}function Tl({viewCache:e,mainMajor:t}){return le(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function wl({viewState:e,viewCache:t,layoutService:n}){return t.set("qTimeAxisCache",[]),{get:(e,n=0)=>{const r=t.get("qTimeAxisCache");return r[n]&&r[n][0]===e?r[n][1]:void 0},set:(e,n,r=0)=>{t.get("qTimeAxisCache")[r]=[e,n]},key:({distance:r})=>{const{min:i,max:o}=e.get("zoom"),a=(o-i)/(t.get("continuousMax")-t.get("continuousMin")),s=n.getHyperCubeValue("qAxisData.qAxis",[]).map((e=>e.qName));return[r,Number.parseFloat(a).toFixed(12),...s].toString()}}}function Al({picasso:e,viewState:t,viewCache:n,models:r,environment:i}){const{layoutService:o,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),m={type:"time",data:{field:u},qAxis:()=>o.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===i.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:o.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:e=>c({text:e,fontFamily:d.axis.label.name.fontFamily,fontSize:d.axis.label.name.fontSize})},ticks:{generator:{type:"d3",initialMin:t.get("zoom").min},anchor:"start",clamp:!0},cache:wl({viewState:t,viewCache:n,layoutService:o})};return{[cs.SCALE.MAJOR]:le(!0,{},m,{ticks:{level:"outer"}}),[cs.SCALE.MAJOR_INNER]:le(!0,{},m,{ticks:{level:"inner"}})}}function Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Al({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[cs.SCALE.MAJOR]:Ol({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[cs.SCALE.MAJOR]:Cl({models:t,environment:i})}:{[cs.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Cl({models:t,environment:i}):Ml({models:t,environment:i})};return bl(t)?{...a,[cs.SCALE.REDUCED]:Tl({viewCache:r,mainMajor:a[cs.SCALE.MAJOR]})}:a}function kl({fields:e,tickModel:t,dockService:n,environment:r}){const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===o||i,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function Nl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!bl({layoutService:e}))return;const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{type:"linear",invert:"vertical"===o||i,min:t.query.getMin,max:t.query.getMax}}function Il({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{layoutService:o,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[cs.SCALE.MINOR.PRIMARY]:kl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.SECONDARY]:kl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_PRIMARY]:Nl({layoutService:o,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_SECONDARY]:Nl({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var Ll={AXIS:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"SMALL"},VERTICAL:{width:"SMALL",height:"XSMALL"}},MINOR:"XSMALL"},AXIS_TITLE:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"MEDIUM"},VERTICAL:{width:"MEDIUM",height:"XSMALL"}},MINOR:"SMALL"},GRID_LINE:"XSMALL",VALUE_LABEL:"XSMALL",LABEL_SPACE:"XSMALL",OUT_OF_BOUNDS_MARKER:"XSMALL",REFERENCE_LINE:"SPARK"};const Pl=["all","labels"];function Dl({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:i,themeService:o,styleModel:a,animationsModel:s}=e,l=n.getLayoutValue("measureAxes");if(!l||!l.length)return[];const c=o.getStyles(),u=a.query.axis.label.getStyle(),{measureAxes:d}=i.meta;return d.filter((e=>{const t=e.isPrimary?0:1;return Pl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?cs.COMPONENT.AXIS.MINOR.PRIMARY:cs.COMPONENT.AXIS.MINOR.SECONDARY,renderer:ls(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS.MINOR},settings:{labels:{show:!0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{stroke:c.axis.line.major.color},ticks:{stroke:c.axis.line.major.color},minorTicks:{stroke:c.axis.line.minor.color}},animations:{enabled:s.enabled,trackBy:Ka.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var ql={INACTIVE:.5},zl={LOWER:3,UPPER:13};const $l=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return Ce.getAdjustedMaxGlyphCount(t,r,0,"qText")};function _l({models:e,environment:t,flags:n}){const{layoutService:r,dockService:i,styleModel:o,themeService:a,animationsModel:s}=e,l="rtl"===t.options.direction,c=r.getLayoutValue("dimensionAxis"),u=o.query.axis.label.getStyle(),d=$l({layoutService:r}),{orientation:m}=i.meta.major,p="horizontal"===m,f=p?c.label:"auto",h=a.getStyles(),{auto:g,spacing:y}=r.getLayoutValue("gridLine",{});return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR,renderer:ls(n),scale:cs.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[m.toUpperCase()]},settings:{labels:{mode:c.label,tiltAngle:l?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===f?void 0:i.meta.minor.size/4,maxGlyphCount:d,tiltThreshold:d>zl.LOWER&&d<zl.UPPER?1:void 0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{show:!g&&0===y,stroke:h.axis.line.major.color},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:ql.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Ka.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isHorizontal:p})}}}function jl({models:e,flags:t}){const{dockService:n,styleModel:r,themeService:i,layoutService:o,animationsModel:a}=e,{orientation:s}=n.meta.major,l=r.query.axis.label.getStyle(),c=i.getStyles(),{auto:u,spacing:d}=o.getLayoutValue("gridLine",{});return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:ls(t),scale:cs.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[s.toUpperCase()]},settings:{labels:{align:0,offset:4,fontFamily:l.fontFamily,fontSize:l.fontSize,fill:l.fill},line:{show:!u&&0===d,stroke:c.axis.line.major.color}},animations:{enabled:a.enabled,trackBy:Ka.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isContinuous:!0})}}}function Fl({models:e,environment:t,flags:n}){const{layoutService:r}=e,i=r.getLayoutValue("dimensionAxis");if(!i)return[];const{show:o}=i;return"none"===o||"title"===o?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:i,layoutService:o,animationsModel:a}=e,s="rtl"===t.options.direction,{orientation:l}=n.meta.major,c="bottom"===n.meta.major.dock?0:1,u=r.getStyles(),d=i.query.axis.label.getStyle(),m=s?1:0,{auto:p,spacing:f}=o.getLayoutValue("gridLine",{}),h={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[l]},preferredSize:()=>({size:2*parseFloat(d.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:s?"end":"start",label:{align:c,justify:m},guideLine:{major:{justify:m},minor:{align:c}},line:{show:!1}},style:{label:{fontFamily:d.fontFamily,fontSize:d.fontSize,fill:d.fill},majorGuideLine:{stroke:u.axis.line.major.color},minorGuideLine:{stroke:u.axis.line.minor.color}},animations:{enabled:a.enabled,trackBy:Ka.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isTime:!0})}};return[le(!0,{},h,{key:cs.COMPONENT.AXIS.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!p&&0===f}},style:{majorGuideLine:{stroke:u.axis.line.minor.color},minorGuideLine:{stroke:u.axis.line.major.color},line:{stroke:u.axis.line.major.color}}}),le(!0,{},h,{key:cs.COMPONENT.AXIS.TIME_OUTER,scale:cs.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[jl({models:e,flags:n})]:[_l({models:e,environment:t,flags:n})]}const Bl=({layoutService:e,axis:t})=>e.meta.isBarSeriesGrouped?({scale:e,datum:t})=>e([t.value,t.typeIndex.value])+e.bandwidth()/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:n})=>e([n.value,t])+e.bandwidth()/2:null,Hl=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:i})=>e([i.value,n&&"horizontal"===r?t.meta.barSeriesCount-1:0])+e.bandwidth()*t.meta.barSeriesCount/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:t})=>e([t.value,n&&"horizontal"===r?1:0])+e.bandwidth():null;function Vl({layoutService:e,active:t={},inactive:n={}}){return{consume:[{context:"selection",data:["selectionDimension","end","color","major"],style:{active:{strokeWidth:e.meta.isContinuous?0:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1},...t},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:ql.INACTIVE},...n}}}]}}var Ul={MAX:"max",MIN:"min"};function Wl(e,t){return function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r}(e,t)||function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r}(e,t)}const Yl=(e,t)=>`${e}-${t.id}`,Gl=4,Xl=12,Kl=4;function Jl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Kl}px`;const o={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!o.size){const n=e.component(r),s=t.resources.scale(cs.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Gl,Math.min(Xl,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const Zl=({series:e,isPrimary:t,seriesModel:n})=>e?"qMeasureInfo/0"===e.ref:t?n.meta.primarySeries.some((e=>"qMeasureInfo/0"===e.ref)):n.meta.secondarySeries.some((e=>"qMeasureInfo/0"===e.ref)),{isDark:Ql}=Rt;const ec=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:i,seriesModel:o,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d=a.getColor(),{fill:m,marker:p}=n.options,{isContinuous:f}=i.meta,h="rtl"===r.options.direction,{orientation:g}=s.meta.major,y="horizontal"===g,v=(n.isPrimary?l:c).query.getExtrema(),b=({end:e})=>{const{value:t}=e;return Wl(t,v)},x=Yl(cs.COMPONENT.MARKER,n);return{type:"point",key:x,data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{[y?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:i,seriesModel:o,rtl:h,orientation:g}),ref:f?"major":void 0},[y?"y":"x"]:{scale:n.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},fill:m||"bar"===p?d:"none",opacity:e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)||b(e.datum)?0:1},stroke:e=>{const t=d(e);return m?Ql(t)?function(e){return Ze(e).brighter(.5).toString()}(t):function(e){return Ze(e).darker().toString()}(t):t},size:Jl({chart:e,layoutService:i,dockService:s,markerKey:x,markerType:p}),shape:()=>(({marker:e,horizontal:t,rtl:n})=>{let r;return"triangle"!==e||t||(r=n?"left":"right"),"bar"===e&&(r=t?"horizontal":"vertical"),r?{type:e,direction:r}:{type:e}})({marker:p,horizontal:y,rtl:h})},brush:Vl({layoutService:i,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:ql.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:Zl({series:n}),trackBy:Ka.points.trackBy,compensateForLayoutChanges:Ka.points.compensateForLayoutChanges}}};function tc({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(cs.SCALE.MAJOR),c=s(cs.SCALE.COLOR),u=t&&i?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const i="NaN"===n[e].value||Number.isNaN(n[e].value),o=u[r+1],a=o&&"NaN"!==o[e].value&&!Number.isNaN(o[e].value);return i?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const i=d[t],o=i.color&&i.color.value,a=n?o||r:c(o)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===i[e].value||Number.isNaN(i[e].value))v[t-1].virtual||v.push({virtual:!0});else{const n=d[t-1];n&&"NaN"!==n[e].value&&!Number.isNaN(n[e].value)?v.push({color:a,offset:s?0:Math.max(0,parseFloat((u-(u-y[t-1])/2).toFixed(5)))}):v.push({color:a,offset:u});const r=d[t+1];r&&"NaN"!==r[e].value&&!Number.isNaN(r[e].value)?v.push({color:a,offset:l?1:Math.max(0,parseFloat((u+(y[t+1]-u)/2).toFixed(5)))}):v.push({color:a,offset:u})}}const b=v.reduce(((e,t,n)=>{if(t.virtual){const t=v[n-1],r=v[n+1],i=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:i},{color:r.color,offset:i})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function nc({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:i,dockService:o}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=i.getSettingsForMeasure(n),d="horizontal"===o.meta.major.orientation;if(!l||"constant"===c)return i.getColor();if("measure"===l&&"categorical"===c)return i.getColor();const m=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=m&&m.on)return"byExpression"===m.mode?tc({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):i.getColor();const p=r.getLayoutValue("color",{}),f=!p.auto&&"byExpression"===p.mode,h=!!p.colorExpression;if(f&&!h)return u;const g=!p.auto&&"byMeasure"===p.mode&&p.byMeasureDef&&void 0!==p.byMeasureDef.activeMeasureIndex;return s||!g?tc({isHorizontal:d,isColor:"color"===c,fallback:u,rtl:a}):"continuous"===c?function({isHorizontal:e,rtl:t}){return function(n){const{datum:{points:r},resources:{scale:i}}=n,o=i(cs.SCALE.COLOR),a=r.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e))),offset:Math.min(1,Math.max(0,(e-s)/u))})));return{type:"gradient",x1:!e&&t?1:0,x2:e||t?0:1,y1:e?1:0,y2:0,stops:d}}}({isHorizontal:d,rtl:a}):function({isHorizontal:e,isArea:t,fallback:n,rtl:r}){return function(i){const{datum:{points:o},resources:{scale:a}}=i,s=a(cs.SCALE.COLOR),l=o.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),c=Math.min(...l),u=Math.max(...l),d=t?Math.min(0,c):c,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const i=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(i-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const rc=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:i,dockService:o,styleModel:a,animationsModel:s}=e,l="rtl"===t.options.direction,{orientation:c}=o.meta.major,u=Hl({layoutService:r,seriesModel:i,rtl:l,orientation:c});return{key:Yl(cs.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:cs.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:nc({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:o.meta.major.orientation},brush:Vl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:ql.INACTIVE},inactive:{opacity:ql.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!Zl({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}};var ic={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}},LINE:{CURVE:{LINEAR:"linear",MONOTONE:"monotone",STEP:"step"},WIDTH:{FULL:{DEFAULT:2,ACTIVE:2},LESS:{DEFAULT:1,ACTIVE:1}},TYPE:{SOLID:void 0,DASHED:"5, 5"}},POINT:{SIZE:{DEFAULT:6,ACTIVE:4}}};function oc({series:e,layoutService:t}){const{showAsConnections:n}=e.options,r=function({layoutService:e}){const{isDiscrete:t}=e.meta;return({item:e})=>{if(e.dummy)return t;const{value:n}=e.end;return"NaN"===n||Number.isNaN(n)}}({layoutService:t}),i=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),o=n?(e,t)=>e!==t.length-1&&t.slice(e+1,t.length).some((e=>!r({item:e}))):(e,t)=>e!==t.length-1&&!r({item:t[e+1]});return({index:e,items:t})=>({before:i(e,t),after:o(e,t)})}const ac=3,sc=20;function lc({models:e,series:t,environment:n}){const{layoutService:r,colorService:i,seriesModel:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u,animationsModel:d}=e,m=r.getLayoutValue("dataPoint.show",!1),{orientation:p}=a.meta.major,f="horizontal"===p,h="SPARK"===a.meta.chart.mode,g=i.getColor(),{POINT:y}=ic,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=oc({series:t,layoutService:e});return({item:e,items:t})=>{n.key!==t&&(n.key=t,n.map=function({items:e}){const t=e.reduce(((e,t)=>{const{value:n}=t.line;return e[n]||(e[n]={items:[],keys:[]}),e[n].items.push(t),e[n].keys.push(`${t.major.value}-${t.line.value}`),e}),{});return t}({items:t}));const{value:i}=e.line,o=n.map[i],a=`${e.major.value}-${i}`,s=o.keys.indexOf(a),{before:l,after:c}=r({index:s,items:o.items});return!l&&!c}}({series:t,layoutService:r}),b="rtl"===n.options.direction,x=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:S}=r.meta,E=({end:e})=>{const{value:t}=e;return Wl(t,x)};return{type:"point",key:Yl(cs.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:f?y.SIZE.DEFAULT/2:0}}),settings:{[f?"y":"x"]:{scale:t.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},[f?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:r,seriesModel:o,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:ac,maxPx:sc},size:e=>{const{value:t}=e.datum.line;return`${s.query.point.getSize(t)}px`},fill:g,opacity:({datum:e,data:t})=>{var n;return null!==(n=e.null)&&void 0!==n&&n.value||E(e)?0:h?v({item:e,items:t.items})?1:0:m||v({item:e,items:t.items})?1:0}},brush:Vl({layoutService:r,active:{r:e=>e.r+ic.POINT.SIZE.ACTIVE/2,strokeWidth:1.5,stroke:"#FFFFFF",opacity:e=>{var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data))return 0;if(!S||m)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const i=[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return i?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.points.compensateForLayoutChanges}}}const cc=(e,{dataset:t})=>{const{value:n,label:r,source:i}=e.end,o=t(i.key).field(i.field);return ge.shouldUseFormat(o.raw())?o.formatter()(n):r};function uc({chart:e,models:t,environment:n,flags:r,series:i,lineSeries:o}){const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u,animationsModel:d}=t,{id:m}=i,p="rtl"===n.options.direction,f=a.getLayoutValue("dataPoint");if(!f)return!1;if(!f.show||!f.showLineLabels)return!1;const h=(i.isPrimary?c:u).query.getExtrema(),g=l.query.point.label.getStyle();return{type:"point-label",key:`${cs.COMPONENT.POINT_LABEL}-${m}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,connect:i.options.showAsConnections,label:t=>cc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${cs.COMPONENT.POINT}-${m}`,allPoints:o.map((e=>`${cs.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Wl(e.value,h))(e.data),labelSpace:{use:()=>{const t=e.component(cs.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:g.fontFamily,fontSize:g.fontSize,fill:g.fill},animations:{enabled:d.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}}const dc=({chart:e,models:t,environment:n,flags:r,series:i,markerSeries:o})=>{const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u,animationsModel:d}=t,{id:m}=i,p="rtl"===n.options.direction,f=(i.isPrimary?c:u).query.getExtrema(),h=l.query.marker.label.getStyle(),g=a.getLayoutValue("dataPoint");return!(!r.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL")||null==g||!g.showMarkerLabels)&&{type:"point-label",key:`${cs.COMPONENT.MARKER_LABEL}-${m}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,label:t=>cc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${cs.COMPONENT.MARKER}-${m}`,allPoints:o.map((e=>`${cs.COMPONENT.MARKER}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Wl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(cs.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10},marker:!0},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,fill:h.fill},animations:{enabled:d.enabled,trackBy:Ka.labels.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}},mc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`),i=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`),o=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`);return r?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`:i?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`:o&&(n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`),n},pc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function fc({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:i,dockService:o,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=i.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===o.meta.major.orientation,{show:d}=i.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=o.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const m=c?"left":"right";return{type:"label-space",key:cs.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:Ll.LABEL_SPACE,dock:mc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${cs.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],i=a.query.getExtrema(),o=e.scale(cs.SCALE.MINOR.PRIMARY)(i.implicit.line.max),l=u||c?o:1-o,d=r.filter((e=>e.isPrimary)).length>0,m=s.query.getExtrema(),p=e.scale(cs.SCALE.MINOR.SECONDARY)(m.implicit.line.max),f=u||c?p:1-p,h=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||h&&f<n?10:0}}}const hc={min:"Min",max:"Max"};function gc(e,t,n){const{hasExplicitMax:r}=n.meta,{max:i}=n.explicit;return!!r&&Math.max(e,t)>i&&i<=Math.min(e,t)}function yc(e,t,n){const{hasExplicitMin:r}=n.meta,{min:i}=n.explicit;return!!r&&Math.min(e,t)<i&&i>=Math.max(e,t)}function vc(e,t,n){return gc(e,t,n)||yc(e,t,n)}function bc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function xc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function Sc(e,t){return bc(e,t)||xc(e,t)}function Ec({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${hc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Ul.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Ul.MAX?!bc(r,e):!xc(r,e)}({extrema:e,type:t}))}var Mc=Object.freeze({__proto__:null,isMaxOutOfBounds:bc,isMinOutOfBounds:xc,isOutOfBounds:Sc,isSegmentMaxOutOfBounds:gc,isSegmentMinOutOfBounds:yc,isSegmentOutOfBounds:vc,shouldShowOob:Ec});const Cc={min:"Min",max:"Max"},Oc=({chart:e,models:t,markerSeries:n,lineSeries:r,barSeries:i,environment:o,type:a})=>{const{dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,primaryTickModel:u,secondaryTickModel:d,layoutService:m,seriesModel:p,themeService:f,fieldModel:h,animationsModel:g}=t,y="rtl"===o.options.direction,{dock:v,opposite:b,orientation:x}=s.meta.major,S=l.query.getExtrema(),E=c.query.getExtrema(),M=a===Ul.MAX,{isBarSeriesGrouped:C}=m.meta,O=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Ul.MAX?n:r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),l=e.component(cs.COMPONENT.LABEL_SPACE),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),d=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return o?i=`@${cs.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:s?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c||u||d?l&&t===Ul.MAX?i=`@${cs.COMPONENT.LABEL_SPACE}`:c?i=`@${cs.COMPONENT.BAR_OOB}-${t}`:u?i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:d&&(i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`):l&&t===Ul.MAX&&(i=`@${cs.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:b,dock:v}),T=Hl({layoutService:m,seriesModel:p,rtl:y,orientation:x}),w=r.concat(n);if(!w.length)return!1;const A=M?S.implicit.bar.max:S.implicit.bar.min,R=Number(A.toFixed(13));if(!C&&i.length&&Mc[`is${Cc[a]}OutOfBounds`](R,S))return!1;if(!S.meta.hasExplicit&&!E.meta.hasExplicit)return!1;const k=M?"max":"min",N=Math[k](Number(S.implicit.line[k].toFixed(13)),Number(S.implicit.marker[k].toFixed(13))),I=Math[k](Number(E.implicit.line[k].toFixed(13)),Number(E.implicit.marker[k].toFixed(13))),L=w.filter((e=>e.isPrimary)),P=w.filter((e=>!e.isPrimary)),D=L.length>0,q=P.length>0,{major:z,majorNumeric:$}=h.main,_=e=>"NaN"!==e.qNum?e.qNum:0,j=m.meta.isContinuous?$:z;return{type:"data-out-of-bounds-marker",key:`${cs.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:O,minimumLayoutMode:Ll.OUT_OF_BOUNDS_MARKER},data:{extract:w.map((({ref:e,typeIndex:t,options:n})=>({field:z,value:m.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:j},end:{field:e,value:n.showAsZeros?_:void 0},typeIndex:t,null:{field:e,value:e=>"NaN"===e.qNum}}})))},settings:{type:a,primaryExtremum:M?()=>u.query.getMax():()=>u.query.getMin(),secondaryExtremum:M?()=>d.query.getMax():()=>d.query.getMin(),primarySeries:L,secondarySeries:P,orientation:x,rtl:y,major:{scale:cs.SCALE.MAJOR,fn:T},markerOffset:pc({dockPosition:O,orientation:x,rtl:y})},brush:Vl({layoutService:m}),show:()=>{if(M){if(D&&N>u.query.getMax())return!0;if(q&&I>d.query.getMax())return!0}if(!M){if(D&&N<u.query.getMin())return!0;if(q&&I<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color},animations:{enabled:g.enabled,compensateForLayoutChanges:Ka.lineOobs.compensateForLayoutChanges}}},Tc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function wc({chart:e,models:t,viewState:n,viewCache:r,axis:i}){const o=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${cs.COMPONENT.BAR}-${i}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return o.get([e,t])||o.empty()&&!1})()||(()=>{const e=Tc[a.meta.chart.mode];return 0===Math.abs(r.get("continuousMax")-r.get("continuousMin"))&&e})()||(()=>{const{min:e,max:t}=n.get("zoom"),i=Math.abs(r.get("continuousMax")-r.get("continuousMin")),s=Math.abs(t-e),l=Tc[a.meta.chart.mode],c=function(e,t,n){return e*(1-n)+t*n}(2,l,1-Math.min(s/i/.2,1));return o.set([e,t],Math.max(2,Math.min(l,c)))})()}const Ac=({isContinuous:e,isBarSeriesGrouped:t,styleModel:n,discreteModel:r,isBarSeriesStackedInBothAxis:i})=>e?1:n.query.bar.getHasStyling()?n.query.bar.getHasStrokeWidth()?function(){const e=n.query.bar.getStrokeWidth()/r.query.getItemSize(),t=n.query.bar.getWidthFn()(),i=t+e;return i>1?t-(i-1):t}:n.query.bar.getWidthFn():t||i?.9:.7;function Rc(e){return Math.min(Math.max(0,e),1)}const kc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u,primaryExtremumModel:d,secondaryExtremumModel:m,animationsModel:p}=t,{isContinuous:f,isBarSeriesStacked:h,isBarSeriesGrouped:g,isBarSeriesStackedInBothAxis:y}=o.meta,v=e=>e.datum.start?e.datum.start.value:e.scale.min(),b=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,x=i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY;if(!(i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const S=h?{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Rc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return Rc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Rc(e.scale(t))}},end:{ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?v(e):e.datum.end.value;return Rc(e.scale(n))}}},E=(i?d:m).query.getExtrema(),M=h?({start:e,end:t})=>vc(e.value,t.value,E):({end:e})=>Sc(e.value,E);return{type:"box",key:`${cs.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?i?cs.COLLECTION.STACKED_PRIMARY:cs.COLLECTION.STACKED_SECONDARY:i?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:o,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:Ac({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?wc({chart:e,models:t,viewState:n,viewCache:r,axis:b}):void 0,fill:s.getColor(),strokeWidth:c.query.bar.getStrokeWidth(),stroke:c.query.bar.getStrokeColor(),minHeightPx:.3,opacity:e=>{var t;return!0===(null===(t=e.datum)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)||M(e.datum)?0:1}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:Vl({layoutService:o,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:ql.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:Zl({isPrimary:i,seriesModel:l}),trackBy:Ka.bars.trackBy,compensateForLayoutChanges:Ka.bars.compensateForLayoutChanges}}},Nc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:m,isBarSeriesGrouped:p,isBarSeriesStackedInBothAxis:f}=o.meta,h=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${cs.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Ac({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?wc({chart:e,models:t,viewState:n,viewCache:r,axis:h}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function Ic(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,i=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=i.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>Rt.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):i.fill;return function({simplifiedPlacement:e,fill:t,isHorizontal:n}){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:t,overflow:e.overflow,background:e.background,padding:r}}({simplifiedPlacement:e,fill:t,isHorizontal:n})})),label:t.label}}const Lc="vertical",Pc="horizontal";function Dc(e,t,n,r){const i=function(e,t){return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}(e,r);let o="up";return t===Lc&&i<0?o="down":t===Pc&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const qc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!n||!r},zc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!!n&&(!!r||!1!==e)};function $c(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}const _c=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=i,u="rtl"===t.options.direction,d=s.getStyles(),m=a.query.bar.label.getStyle(),p=e.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),f=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!qc(p,c))return!1;let h;!c.isBarSeriesStacked&&(h=c.isBarSeriesStacked?1:0);const g={label:e=>cc(e.data,e),simplifiedPlacements:$c(h,0===h?1:0,c.isBarSeriesStacked?.5:1,c.isContinuous),style:d.label.value},y=[Ic(e,g)],v={component:`${cs.COMPONENT.BAR}-${f}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Dc(t.data.end.value,e.dockService.meta.minor.orientation,u,0),labels:y,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily}}},b=[v];return{type:"labels",key:`${cs.COMPONENT.BAR_LABEL}-${f}`,renderer:ls(n),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:b},animations:{enabled:l.enabled,trackBy:Ka.labels.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}};function jc(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#cce6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function Fc({chart:e,models:t,environment:n,flags:r,isPrimary:i}){const{meta:o}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),u=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!zc(c,o))return!1;const d=l.useContrastColor,m=e.formatter(i?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY)||(e=>e),p=e=>m(e),f={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":p(e.data.sumOfPositives.value),simplifiedPlacements:jc("outside",true,d,o.isContinuous),style:s.label.value},h={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":p(e.data.sumOfNegatives.value),simplifiedPlacements:jc("opposite",true,d,o.isContinuous),style:s.label.value},g=[Ic(t,f),Ic(t,h)];return{type:"labels",key:`${cs.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:[{component:`${cs.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Dc(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:g,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]},animations:{enabled:t.animationsModel.enabled,trackBy:Ka.labels.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}}var Bc=Object.freeze({__proto__:null,hasMaxHat:function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r>0},hasMinHat:function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r<0}});const Hc={min:"Min",max:"Max"},Vc=1e-12;function Uc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,discreteModel:d}=t,{isBarSeriesStacked:m,isContinuous:p,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h}=a.meta,g=m?Nc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Ul.MAX,b=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${Hc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!Bc[`has${Hc[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Hc[t]}`]&&r(e.explicit[t])}(y,n,v))return!1;let x="end";m&&(x=v?"sumOfPositives":"sumOfNegatives");const S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),i})({chart:e,type:n,isPrimary:o,dock:v?s.meta.minor.end:s.meta.minor.start}),M={type:"box-sliced-hat",key:`${cs.COMPONENT.SLICED_HAT}-${n}-${b}`,layout:{dock:E},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,hat:le({},g.settings.box,{fill:m?"#999":g.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=S(),n=function(e){if("number"!=typeof e)return e;const t=Math.round(e);return Math.abs(e-t)<Vc?t:e}(e.datum[x].value);return v?n>t:n<t},width:Ac({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Vl({layoutService:a})};return M}const Wc={min:"Min",max:"Max"},Yc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Gc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u,animationsModel:d}=t,{end:m,start:p}=s.meta.minor,{isBarSeriesStacked:f}=a.meta,h=f?Nc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),g=o?l.query.getExtrema():c.query.getExtrema(),y=n===Ul.MAX?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!h)return!1;if(!Mc[`is${Wc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Ul.MAX?n:r;const a=e.component(cs.COMPONENT.LABEL_SPACE),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),l=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return s?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:l?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c&&u&&!i?o=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:a&&t===Ul.MAX&&(o=`@${cs.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:m,start:p,isPrimary:o});let S="end";f&&(S=n===Ul.MAX?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${cs.COMPONENT.BAR_OOB}-${n}-${b}`,layout:{dock:x},data:h.data,settings:{orientation:h.settings.orientation,major:h.settings.major,minor:h.settings.minor,dockValue:Me.getDockValue(n===Ul.MAX?m:p),oob:le({},h.settings.box,{fill:u.getStyles().outOfRange.color,alignment:1,opacity:1,show:function(e){var t;if(!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value))return!1;const r=f&&0===e.datum[S].value,i=Mc[`is${Wc[n]}OutOfBounds`](e.datum[S].value,g,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Yc[n]].value;return 0!==i&&Mc[`is${Wc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:S,extrema:g}))&&i;return o}})},brush:Vl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Ka.barOobs.compensateForLayoutChanges}};return E}function Xc(e){return Math.min(Math.max(0,e),1)}const Kc=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:i,styleModel:o,seriesModel:a,layoutService:s}=t;if(!(r?a.meta.primaryBarSeriesCount:a.meta.secondaryBarSeriesCount))return!1;const{isBarSeriesStacked:l,isContinuous:c,isBarSeriesGrouped:u,isBarSeriesStackedInBothAxis:d}=s.meta,m=e.scale(r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY),p=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Ul.MAX;if(!Ec({extrema:f,type:n}))return!1;const g=e=>e.datum.start?e.datum.start.value:e.scale.min(),y=(e,t="end")=>e.datum[t]?e.datum[t].value:g(e),v={type:"box",key:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY:r?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Xc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Xc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Xc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Xc(e.scale(t))}}},box:{width:Ac({isContinuous:c,isBarSeriesGrouped:u,styleModel:o,discreteModel:i,isBarSeriesStackedInBothAxis:d}),stroke:"transparent",fill:"none",opacity:0,show:e=>{let t="end";l&&(t=h?"sumOfPositives":"sumOfNegatives");const n=e.datum[t]?e.datum[t].value:m.max();return h?n>m.max():n<m.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return v};function Jc(e,t,n,r,i){const o=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&o.push({position:"inside",onBackground:!1,justify:r||i?0:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),o}const Zc=({chart:e,models:t,type:n,environment:r,flags:i,isPrimary:o})=>{const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,seriesModel:d,themeService:m,animationsModel:p}=t,f=m.getStyles(),h=u.query.bar.label.getStyle(),{meta:g}=a,{isBarSeriesStacked:y}=g,v=e.formatter(o?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint.showBarLabels",!1),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!qc(b,g)||y&&!zc(b,g))return!1;const E=o?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===Ul.MAX?E.implicit.bar.max:E.implicit.bar.min;if(!(n===Ul.MAX?bc(M,E):xc(M,E)))return!1;let C=e=>cc(e.data,e);g.isBarSeriesStacked&&(C=n===Ul.MAX?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(bc(e.data.sumOfPositives.value,E)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value;return v?v(t):t}return""}:function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(xc(e.data.sumOfNegatives.value,E)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return v?v(t):t}return""});const O={label:C,simplifiedPlacements:Jc("outside",true,g.isContinuous,x,S),style:f.label.value},T={label:C,simplifiedPlacements:Jc("opposite",true,g.isContinuous,x,S),style:f.label.value},w=[Ic(t,O),Ic(t,T)],A=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",k=[{component:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${A}`,selector:"rect",strategy:{type:"bar",settings:{direction:R,labels:w,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily}}}];return{key:`${cs.COMPONENT.BAR_OOB_LABEL}-${n}-${A}`,type:"labels",renderer:ls(i),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:k},animations:{enabled:p.enabled,trackBy:Ka.labels.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}},Qc=({chart:e,models:t,viewState:n,viewCache:r})=>[kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],eu=({chart:e,models:t,viewState:n,viewCache:r})=>[Nc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Nc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],tu=({chart:e,models:t,environment:n,flags:r})=>{const{isBarSeriesStacked:i}=t.layoutService.meta;if(i){return[Fc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),Fc({chart:e,models:t,environment:n,flags:r,isPrimary:!1})]}return[_c({models:t,environment:n,flags:r,isPrimary:!0}),_c({models:t,environment:n,flags:r,isPrimary:!1})]},nu=({chart:e,models:t,viewCache:n,viewState:r})=>[Uc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Uc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Uc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Uc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],ru=({chart:e,models:t,viewCache:n,viewState:r})=>[Gc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Gc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Gc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Gc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],iu=({chart:e,models:t})=>[Kc({chart:e,models:t,type:"max",isPrimary:!0}),Kc({chart:e,models:t,type:"min",isPrimary:!0}),Kc({chart:e,models:t,type:"max",isPrimary:!1}),Kc({chart:e,models:t,type:"min",isPrimary:!1})],ou=({chart:e,models:t,environment:n,flags:r})=>[Zc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Zc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Zc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Zc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],au=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(us.TYPE.BAR).slice(-1),l=a.query.series(us.TYPE.LINE),c=a.query.series(us.TYPE.MARKER);return[...Qc({chart:e,models:r,viewState:i,viewCache:o}),...eu({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>rc({models:r,environment:t,series:e}))),...l.map((e=>lc({models:r,series:e,environment:t}))),...c.map((n=>ec({chart:e,models:r,series:n,environment:t}))),...l.map((i=>uc({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...c.map((i=>dc({chart:e,models:r,environment:t,flags:n,series:i,markerSeries:c}))),...tu({chart:e,models:r,environment:t,flags:n}),...nu({chart:e,models:r,viewCache:o,viewState:i}),...ru({chart:e,models:r,viewCache:o,viewState:i}),...iu({chart:e,models:r}),...ou({chart:e,models:r,environment:t,flags:n}),Oc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Oc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),fc({chart:e,models:r,environment:t,lineSeries:l})]},su={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function lu({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:i,animationsModel:o}=e,{auto:a,spacing:s,axis:l}=r.getLayoutValue("gridLine",{});if(!a&&s===su.NONE)return!1;const c=i.getStyles(),u=n.meta.primarySeries.length>0;return{key:cs.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===su.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===su.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,animations:{enabled:o.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}}function cu({models:e}){var t,n;const{primaryExtremumModel:r,primaryTickModel:i,themeService:o,dockService:a,seriesModel:s,secondaryExtremumModel:l,secondaryTickModel:c,layoutService:u,animationsModel:d}=e,m=0===(null!==(t=null===(n=u.getLayoutValue("gridLine",{}))||void 0===n?void 0:n.axis)&&void 0!==t?t:0),p=r.query.getExtrema(),f=l.query.getExtrema();if(!p.meta.includesZero&&!f.meta.includesZero)return!1;return{key:cs.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:Ll.GRID_LINE},show:()=>(()=>{const e=s.meta.primarySeries.length>0,t=s.meta.secondarySeries.length>0;return m&&e&&i.query.getMin()<=0&&i.query.getMax()>=0||!m&&t&&c.query.getMin()<=0&&c.query.getMax()>=0})(),lines:{["horizontal"===a.meta.minor.orientation?"x":"y"]:[{value:0,scale:m?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,line:{stroke:o.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}}function uu({models:e}){const{layoutService:t,themeService:n,animationsModel:r}=e,{isContinuous:i,isTime:o}=t.meta;if(!i)return[];const a=n.getStyles(),s={type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}};return o?[le(!0,{},s,{key:"time-inner-grid",x:{scale:cs.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),le(!0,{},s,{key:"time-outer-grid",x:{scale:cs.SCALE.MAJOR}})]:[le(!0,{},s,{key:"continuous-grid",x:{scale:cs.SCALE.MAJOR},minorTicks:{show:!0}})]}function du({models:e}){return[lu({models:e}),cu({models:e}),...uu({models:e})]}function mu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),m=i.getLayoutValue("dimensionAxis");if(!m)return!1;const{show:p}=m;if("all"!==p&&"title"!==p)return!1;const{orientation:f}=o.meta.major,h=u.query.axis.title.getStyle();return{type:"data-title",key:cs.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:Ll.AXIS_TITLE.MAJOR[f.toUpperCase()]},settings:{hyperCube:i.getHyperCube(),hyperCubeDef:d&&d.qHyperCubeDef,isDimension:!0,disabled:()=>!n.interact.enabled(),model:l,app:s,translator:t.translator,rtl:"rtl"===t.options.direction,selections:c.getSelectionsObject(),isEnabled:r.isEnabled},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,color:h.color}}}const pu=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function fu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=s.query.getProperties(),p=i.getLayoutValue("measureAxes");if(!p||!p.length)return[];const f=d.query.axis.title.getStyle(),{measureAxes:h}=a.meta;return h.filter((e=>e.isPrimary?"all"===p[0].show||"title"===p[0].show:"all"===p[1].show||"title"===p[1].show)).map((e=>{const s=i.getHyperCube(),{isPrimary:d}=e,p=a.query.seriesByAxis(d).length>1,h={type:"data-title",key:d?cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:pu(a,s.qMeasureInfo,d),onChangeToAlternative:({oldItem:e,newItem:t})=>{t.qDef.series=e.qDef.series;const n=e.qAttributeExpressions.findIndex((e=>"colorByExpression"===e.id));if(-1!==n){const r=e.qAttributeExpressions.splice(n,1)[0];t.qAttributeExpressions.unshift(r)}},disabled:()=>!n.interact.enabled(),model:c,app:l,translator:t.translator,rtl:"rtl"===t.options.direction,selections:u.getSelectionsObject(),skipAttributeExpressions:!0,isEnabled:r.isEnabled},style:{fontFamily:f.fontFamily,fontSize:f.fontSize,color:f.color}};return p&&(h.settings.padding="0",h.settings.minWidth="auto"),h}))}function hu({models:e,environment:t,actions:n,flags:r}){return[mu({models:e,environment:t,actions:n,flags:r}),...fu({models:e,environment:t,actions:n,flags:r})]}function gu({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:i,layoutService:o,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=o.meta,m="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=js({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>zs({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[qs({layoutService:e,discrete:n})]),p}({viewState:n,viewCache:r,discrete:i,continuousDataModel:s,layoutService:o,dockService:a,themeService:l,rtl:m,scrollbarOverride:{predicate:()=>u,value:Ds.OPTIONS.BAR.value},deviceType:t.deviceType})}function yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;return a.key=`${cs.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?cs.COLLECTION.REDUCED_STACKED_PRIMARY:cs.COLLECTION.REDUCED_STACKED_SECONDARY:i?cs.COLLECTION.REDUCED_PRIMARY:cs.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=cs.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function vu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(us.TYPE.LINE).map((r=>{const i=rc({models:t,environment:e,series:r});return i.key=Yl(cs.COMPONENT.MINI_CHART.LINE,r),i.data.collection=cs.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=cs.SCALE.REDUCED,i.settings.layers.line.strokeWidth=1,i.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",i.layout={dock:"@scrollbar"},i}))}function bu({models:e,environment:t}){return e.seriesModel.query.series(us.TYPE.MARKER).map((n=>{const r=ec({models:e,environment:t,series:n});return r.key=Yl(cs.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=cs.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=cs.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function xu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return bl(t)?[yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...vu({environment:i,models:t}),...bu({models:t,environment:i})]:[]}function Su({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:i}=t.meta,o=t.getLayoutValue("dimensionAxis");if(!o||"none"===o.show||"title"===o.show)return[!1];if(!r)return[!1];const a=Ll.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function Eu({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:i,colorService:o,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c,animationsModel:u}=t,d=l.qLocaleInfo,{options:m,theme:p}=n,f="rtl"===m.direction,h=c.query.series(us.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(us.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(us.TYPE.LINE),v=c.query.series(us.TYPE.MARKER),b=c.query.all(),x=b.some((e=>e.isPrimary)),S=b.some((e=>!e.isPrimary)),E=x&&S,M={resolveUIColor:o.getPaletteColor},C=u.enabled,O=x?as({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:cs.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:cs.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],T=S?as({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:cs.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:cs.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&ns({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),!!S&&ns({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),ns({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:cs.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`:g.length?`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`:y.length?`${cs.COMPONENT.LINE}-${y[0].id}`:v.length?`${cs.COMPONENT.MARKER}-${v[0].id}`:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),...O,...T,...as({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dock:a.meta.major.opposite,scale:cs.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function Mu({layoutService:e}){return!!bl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:cs.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function Cu(e){return(null==e?void 0:e.type)||us.TYPE.BAR}function Ou({models:e,environment:t}){const{layoutService:n,colorService:r,dockService:i,seriesModel:o,selectionService:a}=e,{hasLineSeries:s,isContinuous:l,hasMultipleMeasures:c,isGroupedByMeasure:u}=n.meta;if(!s)return!1;const{options:d}=t,m=n.getLayoutValue("color",{}),p=e=>e.filter((e=>Cu(e)===us.TYPE.LINE)).map((e=>({key:Yl(cs.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),f=!m.auto&&"byMeasure"===m.mode&&m.byMeasureDef&&void 0!==m.byMeasureDef.activeMeasureIndex,h=n.getHyperCubeValue("qMeasureInfo").map((e=>{var t;return null===(t=e.color)||void 0===t?void 0:t.on}));return{type:"brush-highlighter",key:"brush-highlighter",data:{collection:cs.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:p(o.meta.primarySeries),secondary:p(o.meta.secondarySeries)},selectionValues:{"qHyperCube/qDimensionInfo/0":l?e=>e.value:e=>e.major.value,"qHyperCube/qDimensionInfo/0:numeric":e=>e.major.value,"qHyperCube/qDimensionInfo/0/qAttrExprInfo/0":e=>e.end.value,"qHyperCube/qMeasureInfo/X":e=>e.end.value},colorSettings:e=>r.getSettingsForMeasure(e),colorByData:e=>!h[e]&&f,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:o.meta.barSeriesCount,orientation:i.meta.major.orientation,rtl:"rtl"===d.direction}}}function Tu({models:{fieldModel:e}}){return{[cs.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[cs.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var wu={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Au}=wu;function Ru({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Au}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:ku}=wu,Nu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=ku}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Ru({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Iu}=wu,{MAX_NUM_POINTS:Lu,DEFAULT_NUM_POINTS:Pu,DEFAULT_NUM_LINES:Du}=wu,{DEFAULT_NUM_POINTS:qu}=wu,zu=({layoutService:e,largeDataService:t})=>{if(!Ru({layoutService:e,largeDataService:t})){const{maxNumPoints:e=qu}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=Du,maxNumPoints:o=Pu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Nu({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Du||o>Pu)?Math.min(c,Math.ceil(Lu/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Iu}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},$u=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:zu({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:Nu({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function _u({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Ru({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>zu({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Nu({layoutService:t,largeDataService:n}),fetch:(i,o)=>$u({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function ju(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Fu({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function Bu(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function Hu(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=Bu(),o=Bu();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function Vu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Uu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Hu(e,t,n.qMatrix),i=Vu(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const Wu=2**.5,Yu=1/Wu,Gu=1e-6,Xu=Yu**44;function Ku(e){return e.qIsOtherCell}function Ju({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Ku)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(Ku)||t++})),t}(n)}const Zu={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Qu={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const ed="…";function td(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function nd(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*i,1===e.end&&(u-=d));const m={x:u+i,y:i,width:d-2*i,height:t.height-2*i},p=s(`${l[0]}${ed}`).width,f=Math.max(0,m.width-c.width),h=Math.max(0,m.height-c.height),g=o*f,y=a*h;return{show:m.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:m,style:n.label,segment:{x:u+g,width:c.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=td(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:td(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function rd(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=td(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:td(i,n.minorGuideLine.strokeWidth),x2:o,y2:td(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function id(e){return e.filter((e=>e.show)).map((e=>le({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var od={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=td(1,t.line.strokeWidth);return{show:n.line.show,x1:td(0,t.line.strokeWidth),y1:r,x2:td(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=nd(n,this),this.state.minor=rd(r,this)},render(){return[...id([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>le({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...id(this.state.major.map((e=>e.guideLine))),...id(this.state.minor.map((e=>e.guideLine)))];var e}};function ad(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function sd(e){return e.qTags.indexOf("$qualified")>-1}function ld({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];ad(o,a)?(sd(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function cd({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(i=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const ud=16;function dd({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+ud}))),r.clamp(n),i.rangeAndWidth}}}const md=6;function pd({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=md,canFitHalfDayTicks:n=>n>=t*e.count()}}function fd({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=dd,queryFactory:s=pd}={attributesFactory:dd,queryFactory:pd}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function hd({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=fd,mapper:a=ld,resolver:s=cd}={metaFactory:fd,mapper:ld,resolver:cd}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:i}),m=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=m.resolve(t);return n.set(r,i),i}}}const gd=86400,yd=864e5;function vd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(yd*(e-Math.floor(e)))))}const bd=vd(0).getTime();function xd(e){return(e.getTime()-bd)/gd/1e3}const Sd=new Date,Ed=new Date;function Md(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>Md((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((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=(t,r)=>(Sd.setTime(+t),Ed.setTime(+r),e(Sd),e(Ed),Math.floor(n(Sd,Ed))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const Cd=1e3,Od=6e4,Td=36e5,wd=864e5,Ad=6048e5,Rd=Md((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Cd)}),((e,t)=>(t-e)/Cd),(e=>e.getUTCSeconds()));Rd.range;const kd=Md((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd)}),((e,t)=>{e.setTime(+e+t*Od)}),((e,t)=>(t-e)/Od),(e=>e.getMinutes()));kd.range;const Nd=Md((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Od)}),((e,t)=>(t-e)/Od),(e=>e.getUTCMinutes()));Nd.range;const Id=Md((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd-e.getMinutes()*Od)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getHours()));Id.range;const Ld=Md((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getUTCHours()));Ld.range;const Pd=Md((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Od)/wd),(e=>e.getDate()-1));Pd.range;const Dd=Md((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/wd),(e=>e.getUTCDate()-1));Dd.range;const qd=Md((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/wd),(e=>Math.floor(e/wd)));function zd(e){return Md((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Od)/Ad))}qd.range;const $d=zd(0),_d=zd(1),jd=zd(2),Fd=zd(3),Bd=zd(4),Hd=zd(5),Vd=zd(6);function Ud(e){return Md((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Ad))}$d.range,_d.range,jd.range,Fd.range,Bd.range,Hd.range,Vd.range;const Wd=Ud(0),Yd=Ud(1),Gd=Ud(2),Xd=Ud(3),Kd=Ud(4),Jd=Ud(5),Zd=Ud(6);Wd.range,Yd.range,Gd.range,Xd.range,Kd.range,Jd.range,Zd.range;const Qd=Md((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Qd.range;const em=Md((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));em.range;const tm=Md((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));tm.every=e=>isFinite(e=Math.floor(e))&&e>0?Md((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,tm.range;const nm=Md((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));nm.every=e=>isFinite(e=Math.floor(e))&&e>0?Md((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,nm.range;const rm={second:1,minute:2,hour:3,day:4,month:5,year:6};function im({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),c=i.key({distance:n});let u;i.get(c,1)?u=i.get(c,1):(u=function(e,t,n,r,i,o){function a(e){return nm.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Rd.count(e,t),l=Nd.count(e,t),c=Ld.count(e,t),u=Dd.count(e,t),d=Wd.count(e,t),m=em.count(e,t),p=nm.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:p,interval:nm.every(1),formatter:r.year.formatter,offset:e=>nm.offset(e,-1),floor:nm.floor};if(s<=f)v.type=rm.second,v.desc="second",v.count=s,v.interval=Rd.every(1),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-1),v.floor=Rd.floor;else if(s/2<=f)v.type=rm.second,v.desc="every other second",v.count=s/2,v.interval=Rd.every(2),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-2),v.floor=Rd.floor;else if(s/5<=f)v.type=rm.second,v.desc="every 5 second",v.count=s/5,v.interval=Rd.every(5),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-5),v.floor=Rd.floor;else if(s/15<=f)v.type=rm.second,v.desc="every 15 second",v.count=s/15,v.interval=Rd.every(15),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-15),v.floor=Rd.floor;else if(s/30<=f)v.type=rm.second,v.desc="every 30 second",v.count=s/30,v.interval=Rd.every(30),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-30),v.floor=Rd.floor;else if(l<=h)v.type=rm.minute,v.desc="minute",v.count=l,v.interval=Nd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=Nd.floor;else if(l/2<=h)v.type=rm.minute,v.desc="every 2 minute",v.count=l/2,v.interval=Nd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-2),v.floor=Nd.floor;else if(l/5<=h)v.type=rm.minute,v.desc="every 5 minute",v.count=l/5,v.interval=Nd.every(5),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-5),v.floor=Nd.floor;else if(l/10<=h)v.type=rm.minute,v.desc="every 10 minute",v.count=l/10,v.interval=Nd.every(10),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-10),v.floor=Nd.floor;else if(l/15<=h)v.type=rm.minute,v.desc="every 15 minute",v.count=l/15,v.interval=Nd.every(15),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-15),v.floor=Nd.floor;else if(l/30<=h)v.type=rm.minute,v.desc="every 30 minute",v.count=l/30,v.interval=Nd.every(30),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-30),v.floor=Nd.floor;else if(c<=h)v.type=rm.hour,v.desc="hour",v.count=c,v.interval=Ld.every(1),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-1),v.floor=Ld.floor;else if(c/2<=h)v.type=rm.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Ld.every(2),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-2),v.floor=Ld.floor;else if(c/3<=h)v.type=rm.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Ld.every(3),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-3),v.floor=Ld.floor;else if(c/6<=h)v.type=rm.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Ld.every(6),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-6),v.floor=Ld.floor;else if(c/12<=h||i)v.type=rm.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Ld.every(12),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-12),v.floor=Ld.floor;else if(u<=g)v.type=rm.day,v.desc="day",v.count=u,v.interval=Dd.every(1),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-1),v.floor=Dd.floor;else if(u/2<=g)v.type=rm.day,v.desc="every 2 day",v.count=u/2,v.interval=Dd.every(2),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-2),v.floor=Dd.floor;else if(u/3<=g)v.type=rm.day,v.desc="every 3 day",v.count=u/3,v.interval=Dd.every(3),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-3),v.floor=Dd.floor;else if(d<=g)v.type=rm.day,v.desc="week",v.count=d,v.interval=Wd.every(1),v.formatter=r.date.formatter,v.offset=e=>Wd.offset(e,-1),v.floor=Dd.floor;else if(d/2<=g)v.type=rm.day,v.desc="every 2 week",v.count=d/2,v.interval=Wd.every(2),v.formatter=r.date.formatter,v.offset=e=>Wd.offset(e,-2),v.floor=Dd.floor;else if(m<=g)v.type=rm.month,v.desc="month",v.count=m,v.interval=em.every(1),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-1),v.floor=Dd.floor;else if(m/3<=g)v.type=rm.month,v.desc="quarter",v.count=m/3,v.interval=em.every(3),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-3),v.floor=Dd.floor;else if(m/6<=g)v.type=rm.month,v.desc="half year",v.count=m/6,v.interval=em.every(6),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-6),v.floor=Dd.floor;else if(p<=y)v.type=rm.year,v.desc="year",v.count=p,v.interval=nm.every(1),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-1),v.floor=nm.floor;else if(p/2<=y)v.type=rm.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-2),v.floor=nm.floor;else if(p/5<=y)v.type=rm.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-5),v.floor=nm.floor;else if(p/10<=y)v.type=rm.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-10),v.floor=nm.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=rm.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>nm.offset(t,-e),v.floor=nm.floor}return v}(s,l,n,t.all(),r,a),i.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const m=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let p=[];if(!o&&u.type<=rm.hour){const n=t.getFormat("date"),r=e.ticks(Dd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(Dd.offset(r[0],-1)),p=(r.length?r:[Dd.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:m,outer:p}}const om=86400,am=1440,sm={};function lm(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function cm(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Uo().domain([vd(l),vd(c)]);u.clamp(o),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let m;m="d3"===d.type?(e,i)=>im({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:vd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(sm[[t,n,r,r,o]])return sm[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=vd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/om,h=366*m,g=3*m*30,y=a.second.width/f,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,E,M,C=0,O=0,T=null,w=null,A=null,R=null,k=null,N=null;const I={outer:[],inner:[]};for(y<1?(T=1,O=1/om):y<2?(T=2,O=1/om*2):y<5?(T=5,O=1/om*5):y<10?(T=10,O=1/om*10):y<30?(T=30,O=1/om*30):v<1?(w=1,O=1/am):v<2?(w=2,O=1/am*2):v<5?(w=5,O=1/am*5):v<10?(w=10,O=1/am*10):v<30?(w=30,O=1/am*30):v<60?(A=1,O=1/24):v<120?(A=2,O=2/24):v<360?(A=6,O=.25):v<720?(A=12,O=.5):b<1/90?(O=1,R=1):b<2/90?(O=2,R=2):b<7/90?(O=7,R=7):b<31/90?(k=1,O=31):b<1?(k=3,O=90):x<1?(N=1,O=366):x<2?(N=2,O=732):x<5?(N=5,O=1826.25):(N=10,O=3652.5),E=Math.floor((d+n%1)/O);C<i;){M=E+1,S=N?lm("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?lm("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?lm("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?lm("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):w?lm("minute",[l,c,u,0,0+E*w],[l,c,u,0,0+M*w],a.minute.formatter):lm("second",[l,c,u,0,0,0+E*T],[l,c,u,0,0,0+M*T],a.second.formatter),C=xd(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:vd(e),end:vd(e+1),formatter:a.date.formatter,qStart:e};I.outer[I.outer.length-1]&&I.outer[I.outer.length-1].qStart===t.qStart||I.outer.push(t)}E++}return I.min=r,I.max=i,sm[[t,n,r,r,o]]=I,I}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>m(t,n)[a].map((t=>{let n;return n="start"===i?xd(t.start):"end"===i?xd(t.end):(xd(t.start)+xd(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:xd(t.start),end:xd(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const um=41000.2343433,dm=/t+/i,mm=16,pm=60;const fm={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function hm(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const gm="continuousPan";var ym={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Zu,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=_u,snapshotFetcherFactory:c=Fu,cacheFetcherFactory:u=ju,cache:d={initial:{},merged:{}}}=s,m=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:i}),f=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",(n=y,r=v,Math.max(Gu,(r-n)*Xu))),g=t.meta.isSnapshot?p:m,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=p.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Vu(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>Uu(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=Vu(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>Uu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Uu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return le({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return le({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Ju(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=O(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return T(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=i?1-o:o,{min:u,max:d}=t.get("zoom"),m=Math.abs(d-u),p=m-(r>0?Yu:Wu)*m,f=u+p*c,h=d-p*(1-c),g=f<a?a-f:0,y=h>s?h-s:0;t.set("zoom",{min:Math.max(f-y,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:gm,pointers:1,threshold:10,enable(r,i){return this.started===gm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${gm}start`](n){n.preventDefault(),this.started=gm;const{min:i,max:o}=r.get("zoom");this[gm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${gm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[gm],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${gm}end`](e){e.preventDefault(),this.started=!1},[`${gm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Qu,timeAxis:od},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=le(!0,{},t[i],o)})),r}(t,fm,n),{qAxis:i}=r,o=Pr(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const m=function(e){return Number.isNaN(+e)?NaN:o(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},m.invert=e=>o.invert(e),m.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),m.range=e=>Array.isArray(e)?o.range(e):o.range(),m.norm=e=>(hm(a,m),a.instance(e)),m.normInvert=e=>(hm(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(o.clamp(e),o.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const p=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:pm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:pm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:pm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:pm,formatter:void 0}};return i&&dm.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(um)).width+mm)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=vd(t[0].data.start),i=vd(t[n-1].data.start);return Dd.count(r,i)/n>=1?o.date:Ld.count(r,i)/n>0?o.minute:Nd.count(r,i)/n>0?o.second:o.date},t}(r);return u=cm(o.copy(),r,p),c=hd({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*p.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:E(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>p.getFormatFromTicks(d).formatter,m}}};const vm=e=>e.meta.seriesComponentKeys[0],bm=(e,t)=>{if(t){const n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;t.emit(n>=0?"next":"prev"),e.preventDefault()}};function xm({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=ym,{layoutService:s,seriesModel:l}=t,c=vm(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:i},{rtl:"rtl"===o.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},i=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=i.filter((e=>e.key===cs.COMPONENT.LEGEND_CATEGORICAL));bm(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const Sm="continuousPinchZoom";function Em({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=ym.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:m}=t,p="rtl"===n.options.direction,f=m.getInteractions(),h=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Zs({componentKey:e,chart:t,actions:n,layoutService:o})}}({componentKey:"scrollbar",chart:e,actions:o,viewState:r,viewCache:i,discrete:u,layoutService:l,dockService:c,rtl:p}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...h.gestures,...f.gestures]},y=[xm({chart:e,models:t,actions:o,viewState:r,viewCache:i,environment:n}),h.native,f.native];return l.meta.isDiscrete&&(g.gestures.push(...u.interactions.gestures),y.push(u.interactions.native)),l.meta.isContinuous&&g.gestures.push(s({targetKey:vm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i}),function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i,rtl:o}){const a={last:0,diff:0},s=ym.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:Sm,pointers:2,threshold:0,enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{[`${Sm}start`](e){a.last=e.scale,e.preventDefault()},[`${Sm}move`](e){const t=e.scale-a.last;Math.abs(t)>.01&&s(e.center,t>0?1:-1),a.last=e.scale,e.preventDefault()}}}}({targetKey:vm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const Mm=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},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}}}),Cm="lasso",Om=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Cm,enable(e,n){if(this.started===Cm||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==Cm&&(i.actions.select.emit("start",Cm),this.chart.component(e).emit("lassoStart",t),this.started=Cm)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",Cm),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Tm=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(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}}(t,this.chart),c=o.hitRadius?o.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=o.shapesAt?o.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),m=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&m&&m.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(m&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,m,{nodes:n,opts:o,customTooltipModel:e})}else m.emit("show",t,{nodes:d})}else p&&m.emit("hide")}}}};const wm=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const Am=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function Rm(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:m}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:m?{bubbleEnd(){m()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=Am(e,t,"range");return{interactions:[e.onEdited?wm(e,t):null,r].filter(Boolean),components:[n]}}const km=/axis|legend/,Nm=e=>e.some((e=>km.test(e.type)));function Im({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...n.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...n.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,i={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(i.data=["selectionDimension"]),[i]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?i.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>Nm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Tm(e,t)],components:[]}}(s,l)}function Lm({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:i}=t,{isDiscrete:o,isDimensionLocked:a}=n.meta;if(!o||a)return!1;const s=[...i.meta.seriesComponentKeys,cs.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[Am(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[cs.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const Pm={components:[],interactions:[]};function Dm({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const i=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&Rm({eventName:"minorRange",key:"minor-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.PRIMARY,`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:cs.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pm,o=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&Rm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.SECONDARY,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:cs.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pm,a=Lm({actions:e,models:n})||Pm,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:i,seriesModel:o}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Rm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...o.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...o.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?cs.SCALE.MAJOR_INNER:cs.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(cs.FORMATTER.PRIMARY),o=t.scale(cs.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||Pm,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[i]=n.custom.legendComponents(),o=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!i)return!1;const s=`${cs.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Rm({eventName:"legendRange",key:"legend-range-brush",targets:[c],fillTargets:[c],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:i.layout.dock,scale:s,bubblesPlacement:"outside",onEdited:()=>{e.select.emit("end","legendRange")}},{actions:e})}({actions:e,models:n})||Pm;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function qm({actions:e,models:t}){const{layoutService:n,seriesModel:r}=t,{seriesComponentKeys:i}=r.meta;if(n.meta.isDimensionLocked)return{components:[],interactions:[]};const o={key:"lasso",componentTargetKey:i[0],components:i.map((e=>({key:e,action:"add",contexts:["selection"],data:["selectionDimension"]})))};return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=Mm(n);return{interactions:[Om(n,t)],components:[r]}}(o,{actions:e})}function zm({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:d,options:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:de.getLayoutModes(),center:void 0!==h.minCenterRatio?{minWidthRatio:h.minCenterRatio,minHeightRatio:h.minCenterRatio}:void 0,logicalSize:h.logicalSize?{align:.5,preserveAspectRatio:!0,...h.logicalSize}:void 0});var h;const g=function({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,m=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:i,disclaimerService:o}=t,a=o.getDisclaimer();if(!a)return!1;const{fontFamily:s}=i.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:a.alignment},settings:{isRTL:"rtl"===r.direction,label:n.get(`Object.Disclaimer.${a.key}`)},style:{fontFamily:s}}}({environment:n,models:t});return d.getHasSuppressingDisclaimer()?[m]:[...du({models:t}),...Dl({models:t,flags:r}),...au({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Ou({models:t,environment:n}),...Fl({models:t,environment:n,flags:r}),...hu({models:t,environment:n,actions:a,flags:r}),Xo({viewState:i,viewCache:o,layoutService:l,dockService:c}),...Su({models:t}),...Eu({chart:e,models:t,environment:n}),gu({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),Mu(t),...xu({chart:e,models:t,viewState:i,viewCache:o,environment:n}),...u.getComponents(),m].filter(Boolean)}({chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s}),y=function({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const{layoutService:i}=n,o=i.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),a=Im({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=Dm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=qm({actions:e,models:n});return{components:[...a.components,...s.components,...l.components],gestures:[...a.interactions,...s.interactions,...l.interactions]}}({actions:s,chart:t,models:n,isUnsupportedFeature:l}),v=u.extendComponents([...g,...y.components]);return{collections:xl({models:n}),scales:Il({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Tu({models:n}),interactions:Em({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const $m=({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})=>{const{width:d,height:m}=i(),[,p]=o((async()=>{if(!(null!=t&&t.update&&n&&r&&s))return;const{colorService:i,discreteModel:o,dockService:p,layoutService:f,refLineModel:h,animationsModel:g}=n;function y(){t.update({settings:zm({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})})}p.update({width:d,height:m}),i.custom.updateLegend(),h.update({picasso:e,chart:t,models:n,environment:r,viewState:s,viewCache:l,actions:c});const v=f.getDataPages();g.meta.isSizeChanging=!0,f.setDataPages([]),y(),f.setDataPages(v),f.meta.isContinuous||await o.command.initialize(),y()}),[d,m]);if(p)throw p},_m=[cs.COMPONENT.AXIS_TITLE.MAJOR,cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,cs.COMPONENT.GRID_LINE,cs.COMPONENT.ZERO_LINE],jm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:cs.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),Fm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:cs.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const Bm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Hm(e){return Bm[e]||e}function Vm(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"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=Hm(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=Hm(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(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}const Um={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Wm={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Ym={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Gm={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"},Xm={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},Km={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"},Jm={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"},Zm={single:"N",drillDown:"H",cyclic:"C"},Qm={N:void 0,H:Um,C:Ym},ep=(e,t)=>{switch(e.qGrouping){case Zm.single:return;case Zm.drillDown:return{path:Um,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Zm.cyclic:return{path:t?Wm:Ym,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function tp(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=ta.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 np(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)),c=le(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),tp(e,a,c)}))}function rp(e){return e.qGrouping===Zm.single?e.qFallbackTitle||"":e.title||""}const ip=async(e,t,n,r,i,o="/qHyperCubeDef")=>{const a=!i;switch(e.qGrouping){case Zm.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1),i=a?[]:n.map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:a?void 0:Um,groupItem:!a,title:e.title,selected:a,children:i}}case Zm.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=a||!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:a?void 0:Ym,groupItem:!a,title:e.title,selected:a,children:r}}default:return{selected:!0,id:e.cId,title:rp(e)}}},op=(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))},ap=async(e,t,n,r,i,o)=>{const a=await op(e,n),s=!o,l=n.filter((e=>!a.includes(e.qDef.cId))),c=await Promise.all(l.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===Zm.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),l=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,c=s?void 0:Qm[l],u=!s&&l!==Zm.single;return{id:n.qDef.cId,icon:c,groupItem:u,selected:!1,title:a,onSelect(e){np(t,e,n.qDef.cId,"qDimensions",i)}}})));return c};function sp({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c,isCyclicFFEnabled:u}){const d=l.qGrouping===Zm.single;return 0!==r.length||u&&!d?{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ip(l,i,a,e,u),n=c?await ap(a,i,r,o,s,u):[];return(d||0===t.children.length)&&0===n.length?[]:[t,...n]}}:null}function lp(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Zm.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:ep(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Zm.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:rp(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function cp({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await op(n,t),u=t.filter((e=>!i.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){np(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function up(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function dp(){return dp=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},dp.apply(this,arguments)}var mp={exports:{}};function pp(){}function fp(){}fp.resetWarningCache=pp;mp.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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:fp,resetWarningCache:pp};return n.PropTypes=n,n}();var hp=J(mp.exports),gp={black:"#000",white:"#fff"},yp={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"},vp={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"},bp={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"},xp={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"},Sp={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"},Ep={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"},Mp={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 Cp(){return Cp=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},Cp.apply(this,arguments)}function Op(e){return Op="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},Op(e)}function Tp(e){return e&&"object"===Op(e)&&e.constructor===Object}function wp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Cp({},e):e;return Tp(e)&&Tp(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Tp(t[i])&&i in e?r[i]=wp(e[i],t[i],n):r[i]=t[i])})),r}function Ap(e){var t=function(e,t){if("object"!==Op(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Op(t)?t:String(t)}function Rp(e,t,n){return(t=Ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kp(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 Np(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 Ip(e){if(e.type)return e;if("#"===e.charAt(0))return Ip(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(kp(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 Lp(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 Pp(e){var t="hsl"===(e=Ip(e)).type?Ip(function(e){var t=(e=Ip(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])),Lp({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 Dp(e,t){return e=Ip(e),t=Np(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Lp(e)}function qp(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 zp(e,t){if(null==e)return{};var n,r,i=qp(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 $p=["xs","sm","md","lg","xl"];function _p(e,t,n){var r;return Cp({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")),Cp({paddingLeft:t(2),paddingRight:t(2)},n,Rp({},e.up("sm"),Cp({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Rp(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Rp(r,e.up("sm"),{minHeight:64}),r)},n)}var jp={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:gp.white,default:Mp[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}},Fp={text:{primary:gp.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:Mp[800],default:"#303030"},action:{active:gp.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 Bp(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=Ip(e),t=Np(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 Lp(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Ip(e),t=Np(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 Lp(e)}(e.main,o)))}function Hp(e){var t=e.primary,n=void 0===t?{light:bp[300],main:bp[500],dark:bp[700]}:t,r=e.secondary,i=void 0===r?{light:vp.A200,main:vp.A400,dark:vp.A700}:r,o=e.error,a=void 0===o?{light:yp[300],main:yp[500],dark:yp[700]}:o,s=e.warning,l=void 0===s?{light:Ep[300],main:Ep[500],dark:Ep[700]}:s,c=e.info,u=void 0===c?{light:xp[300],main:xp[500],dark:xp[700]}:c,d=e.success,m=void 0===d?{light:Sp[300],main:Sp[500],dark:Sp[700]}:d,p=e.type,f=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=zp(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Pp(e),r=Pp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Fp.text.primary)>=g?Fp.text.primary:jp.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Cp({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(kp(4,t));if("string"!=typeof e.main)throw new Error(kp(5,JSON.stringify(e.main)));return Bp(e,"light",n,v),Bp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Fp,light:jp};return wp(Cp({common:gp,type:f,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:Mp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function Vp(e){return Math.round(1e5*e)/1e5}function Up(e){return Vp(e)}var Wp={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function Gp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Yp:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,m=void 0===d?500:d,p=n.fontWeightBold,f=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=zp(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,o){return Cp({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===Yp?{letterSpacing:"".concat(Vp(r/t),"em")}:{},o,y)},M={h1:E(l,96,1.167,-1.5),h2:E(l,60,1.2,-.5),h3:E(u,48,1.167,0),h4:E(u,34,1.235,.25),h5:E(u,24,1.334,0),h6:E(m,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(m,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(m,14,1.75,.4,Wp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,Wp)};return wp(Cp({htmlFontSize:g,pxToRem:S,round:Up,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Xp(){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 Kp=["none",Xp(0,2,1,-1,0,1,1,0,0,1,3,0),Xp(0,3,1,-2,0,2,2,0,0,1,5,0),Xp(0,3,3,-2,0,3,4,0,0,1,8,0),Xp(0,2,4,-1,0,4,5,0,0,1,10,0),Xp(0,3,5,-1,0,5,8,0,0,1,14,0),Xp(0,3,5,-1,0,6,10,0,0,1,18,0),Xp(0,4,5,-2,0,7,10,1,0,2,16,1),Xp(0,5,5,-3,0,8,10,1,0,3,14,2),Xp(0,5,6,-3,0,9,12,1,0,3,16,2),Xp(0,6,6,-3,0,10,14,1,0,4,18,3),Xp(0,6,7,-4,0,11,15,1,0,4,20,3),Xp(0,7,8,-4,0,12,17,2,0,5,22,4),Xp(0,7,8,-4,0,13,19,2,0,5,24,4),Xp(0,7,9,-4,0,14,21,2,0,5,26,4),Xp(0,8,9,-5,0,15,22,2,0,6,28,5),Xp(0,8,10,-5,0,16,24,2,0,6,30,5),Xp(0,8,11,-5,0,17,26,2,0,6,32,5),Xp(0,9,11,-5,0,18,28,2,0,7,34,6),Xp(0,9,12,-6,0,19,29,2,0,7,36,6),Xp(0,10,13,-6,0,20,31,3,0,8,38,7),Xp(0,10,13,-6,0,21,33,3,0,8,40,7),Xp(0,10,14,-6,0,22,35,3,0,8,42,7),Xp(0,11,14,-7,0,23,36,3,0,9,44,8),Xp(0,11,15,-7,0,24,38,3,0,9,46,8)],Jp={borderRadius:4};function Zp(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 Qp(e,t){if(e){if("string"==typeof e)return Zp(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)?Zp(e,t):void 0}}function ef(e){return function(e){if(Array.isArray(e))return Zp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qp(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 tf(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,c=!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){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Qp(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 nf(){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 rf={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)"},of={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function af(e){return"".concat(Math.round(e),"ms")}var sf={easing:rf,duration:of,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?of.standard:n,i=t.easing,o=void 0===i?rf.easeInOut:i,a=t.delay,s=void 0===a?0:a;return zp(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:af(r)," ").concat(o," ").concat("string"==typeof s?s:af(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))}},lf={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cf(){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,c=void 0===l?{}:l,u=zp(e,["breakpoints","mixins","palette","spacing","typography"]),d=Hp(a),m=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=zp(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 c(e,t){var r=$p.indexOf(t);return r===$p.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[$p[r+1]]?n[$p[r+1]]:t)-a/100).concat(i,")")}return Cp({keys:$p,values:n,up:l,down:function(e){var t=$p.indexOf(e)+1,r=n[$p[t]];return t===$p.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=nf(s),f=wp({breakpoints:m,direction:"ltr",mixins:_p(m,p,i),overrides:{},palette:d,props:{},shadows:Kp,typography:Gp(d,c),spacing:p,shape:Jp,transitions:sf,zIndex:lf},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return wp(e,t)}),f)}var uf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",df=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function mf(){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,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==df.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[uf]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function pf(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 ff="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},hf="object"===("undefined"==typeof window?"undefined":ff(window))&&"object"===("undefined"==typeof document?"undefined":ff(document))&&9===document.nodeType;function gf(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,Ap(r.key),r)}}function yf(e,t,n){return t&&gf(e.prototype,t),n&&gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vf(e,t)}function bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vf(e,t)}function xf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Sf={}.constructor;function Ef(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ef);if(e.constructor!==Sf)return e;var t={};for(var n in e)t[n]=Ef(e[n]);return t}function Mf(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Ef(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Cf=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Of=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+=Cf(e[n]," ");else t=Cf(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Tf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function wf(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Af(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=Tf(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var m in d){var p=d[m];null!=p&&(r&&(r+=l),r+=wf(m+":"+c+Of(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=wf(f+":"+c+Of(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=wf(g+":"+c+Of(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),wf(""+e+c+"{"+r,--o)+wf("}",o)):r}var Rf=/([[\].#*$><+~=|^:(),"'`\s])/g,kf="undefined"!=typeof CSS&&CSS.escape,Nf=function(e){return kf?kf(e):e.replace(Rf,"\\$1")},If=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}(),Lf=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(xf(xf(i)),s),i.selectorText="."+Nf(i.id)),i}bf(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]=Of(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Cp({},e,{allowEmpty:!0}):e;return Af(this.selectorText,this.style,n)},yf(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}(If),Pf={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Lf(e,t,n)}},Df={indent:1,children:!0},qf=/@([\w-]+)/,zf=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(qf);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new sh(Cp({},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=Df);var t=Tf(e).linebreak;if(null==e.indent&&(e.indent=Df.indent),null==e.children&&(e.children=Df.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),$f=/@container|@media|@supports\s+/,_f={onCreateRule:function(e,t,n){return $f.test(e)?new zf(e,t,n):null}},jf={indent:1,children:!0},Ff=/@keyframes\s+([\w-]+)/,Bf=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Ff);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:Nf(a(this,o)),this.rules=new sh(Cp({},n,{parent:this})),t)this.rules.add(s,t[s],Cp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=jf);var t=Tf(e).linebreak;if(null==e.indent&&(e.indent=jf.indent),null==e.children&&(e.children=jf.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}(),Hf=/@keyframes\s+/,Vf=/\$([\w-]+)/g,Uf=function(e,t){return"string"==typeof e?e.replace(Vf,(function(e,n){return n in t?t[n]:e})):e},Wf=function(e,t,n){var r=e[t],i=Uf(r,n);i!==r&&(e[t]=i)},Yf={onCreateRule:function(e,t,n){return"string"==typeof e&&Hf.test(e)?new Bf(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Wf(e,"animation-name",n.keyframes),"animation"in e&&Wf(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 Uf(e,r.keyframes);default:return e}}},Gf=function(e){function t(){return e.apply(this,arguments)||this}return bf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Cp({},e,{allowEmpty:!0}):e;return Af(this.key,this.style,n)},t}(If),Xf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Gf(e,t,n):null}},Kf=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=Tf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Af(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Af(this.at,this.style,e)},e}(),Jf=/@font-face/,Zf={onCreateRule:function(e,t,n){return Jf.test(e)?new Kf(e,t,n):null}},Qf=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 Af(this.key,this.style,e)},e}(),eh={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Qf(e,t,n):null}},th=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}(),nh={"@charset":!0,"@import":!0,"@namespace":!0},rh={onCreateRule:function(e,t,n){return e in nh?new th(e,t,n):null}},ih=[Pf,_f,Yf,Xf,Zf,eh,rh],oh={process:!0},ah={force:!0,process:!0},sh=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,c=r.scoped,u=Cp({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Nf(this.classes[d]));var m=Mf(d,t,u);if(!m)return null;this.register(m);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,m),m},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=Cp({},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 Lf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Bf&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Lf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Bf&&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=oh);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 c=t.style[l];c!==s[l]&&t.prop(l,c,ah)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,ah)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Tf(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}(),lh=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Cp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new sh(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}(),ch=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}(),uh=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=qp(t,["attached"]),i=Tf(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},yf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),dh=new uh,mh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ph="2f1acc6c3a606b082e5eef5e54414ffb";null==mh[ph]&&(mh[ph]=0);var fh=mh[ph]++,hh=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")+fh+i+t:o+n.key+"-"+fh+(i?"-"+i:"")+"-"+t}},gh=function(e){var t;return function(){return t||(t=e()),t}},yh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},vh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Of(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},bh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xh=function(e,t){return e.selectorText=t,e.selectorText===t},Sh=gh((function(){return document.querySelector("head")}));function Eh(e){var t=dh.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=Sh(),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 Mh=gh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ch=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]},Oh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Th=function(){function e(e){this.getPropertyValue=yh,this.setProperty=vh,this.removeProperty=bh,this.setSelector=xh,this.hasInsertedRules=!1,this.cssRules=[],e&&dh.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=Mh();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=Eh(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 Sh().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=Oh(n,t);if(!1===(i=Ch(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=Oh(n,t),l=Ch(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 lh&&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}(),wh=0,Ah=function(){function e(e){this.id=wh++,this.version="10.10.0",this.plugins=new ch,this.options={id:{minify:!1},createGenerateId:hh,Renderer:hf?Th:null,plugins:[]},this.generateId=hh({minify:!1});for(var t=0;t<ih.length;t++)this.plugins.use(ih[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=Cp({},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===dh.index?0:dh.index+1);var r=new lh(e,Cp({},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(),dh.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=Cp({},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=Mf(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}(),Rh=function(e){return new Ah(e)},kh="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Nh(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=Nh(r);o&&(t||(t={}),t[n]=o)}}return t}
7
+ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.js","picasso-plugin-q","react","react-dom","qlik-object-conversion"],(function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,m,p,f,h,g,y,v,b,x,S,E,M,C,O,T,w,A,R,k,N,I,L,P,D,q,$,z,_,j,B,F,H,V,U,W,Y,G,X;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,i=e.useRect,o=e.usePromise,a=e.useModel,s=e.useStaleLayout,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,O=e.debouncer,T=e.throttler,w=e.colorService,A=e.disclaimerService,R=e.tooltipService,k=e.layoutService,N=e.dockService,I=e.themeService,L=e.pluginService,P=e.storage,D=e.selectionService,q=e.fontResolver},function(e){$=e.default},function(e){z=e.default},function(e){_=e.default},function(e){j=e.default,B=e,F=e.Children,H=e.isValidElement,V=e.cloneElement,U=e.forwardRef,W=e.useContext},function(e){Y=e,G=e.default},function(e){X=e.default}],execute:function(){e("default",(function(e){var i;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(K).forEach((t=>{e.add(K[t])}))}}(e.translator);const{flags:a}=e,s=null===(i=e.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.isUnsupportedFeature,l=qA();return{qae:KI(e),ext:ML(e),component(){const e=function(){const[e,t]=n();return r((()=>t(C())),[]),e}(),i=function(){const[e,t]=n();return r((()=>{t(P({viewRange:[0,1],scrollOffset:void 0}))}),[]),e}(),c=function(){const e=m(),t=p(),i=d(),o=f(),[a,s]=n(),l=h();return r((()=>{s({options:{direction:"ltr",...e},translator:t,theme:o,embed:i,deviceType:l})}),[e.direction,e.freeResize,t.language(),o.name(),l]),a}(),u=function(){const e=g(),[t,i]=n(!1),[o,a]=n(!1),[s,l]=n(!1),c=function(){const e=g(),[t,i]=n(!1),[o,a]=n({}),[s,l]=n();return r((()=>()=>{a({})}),[]),r((()=>{e&&i(!e.select&&!e.active)}),[e]),{enabled:()=>t,emit:(e,...t)=>o[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=o[e])||void 0===n?void 0:n.indexOf(t);r>-1&&o[e].splice(r,1)},on:(e,t)=>{Array.isArray(o[e])?o[e].push(t):o[e]=[t]},get brushSelectionIncludeMax(){return s},set brushSelectionIncludeMax(e){l(e)},getBrushOptions:void 0}}(),u=function(){var e;const t=g(),[i,o]=n(!1),[a,s]=n(!1),l=y(),c=p(),u=!!l.qSelectionInfo.qInSelections,d=!(null===(e=l.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);r((()=>{t&&o(!t.select&&!t.active)}),[t]);const m=e=>{s("boolean"==typeof e?e:!a)};return v((()=>({key:"lasso",label:c.get(a?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:jI,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=BI;r((()=>{e&&(i(!e.active),a(!e.active),l(!e.passive))}),[e]);const[m]=n({});return m.scroll={enabled:()=>t&&d.query.getCanScroll(),attachDiscreteModel:e=>{d=e||BI}},m.interact={enabled:()=>o},m.tooltip={enabled:()=>s},m.lasso=u,m.select=c,m}(),b=function({picasso:e,environment:i}){const o=t(),[a,s]=n();return r((()=>{if(!i)return;o.style.overflow="hidden";const t=e({renderer:{prio:[i.options.renderer||"canvas"]}}).chart({element:o,data:[],settings:{}});s(t);const{destroy:n}=t;return()=>{n()}}),[i]),a}({picasso:l,environment:c}),x=VI({chart:b,actions:u}),S=_I({picasso:l,chart:b,environment:c,flags:a,viewState:i,viewCache:e,actions:u,selectionService:x});!function({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=ym,[,d]=o((async()=>{if(!(null!=t&&t.update&&n&&r&&a&&s))return;const{layoutService:o,colorService:d,continuousModel:m,discreteModel:p,refLineModel:f,seriesModel:h,animationsModel:g}=n,{miniComponentKeys:y}=h.meta,{options:v}=r,{viewState:b={}}=v,{legendScrollOffset:x,scrollOffset:S}=o.meta.isSnapshot?o.getLayoutValue("snapshotData.content.chartData",{}):b;a.preventSet("scrollOffset",S),a.preventSet("legendScrollOffset",x),a.preventSet("title",o.getLayoutValue("title"));const E=()=>{f&&f.update(),g.meta.isPartialUpdating=!0,t.update({partialData:!0,excludeFromUpdate:[..._m,...y]}),g.meta.isPartialUpdating=!1};function M(o=!1){const c=$m({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),u=o&&[jm({models:n}),...Bm({models:n}),...d.getData()];o?(t.layoutComponents({settings:c,data:u}),g.meta.hasSlicedHats=c.components.filter((e=>"box-sliced-hat"===e.type)).length>0):t.update({settings:c,data:u})}a.onChanged("scrollOffset",E),o.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:o,continuousDataModel:m},E)),a.intercept("zoom",c({viewCache:s})));const C=o.getDataPages();o.setDataPages([]),M(!0),o.setDataPages(C),o.meta.isContinuous||await p.command.initialize(),M(!1),Ka.cacheProperties({viewCache:s,layout:o.getLayout()})}),[null==t?void 0:t.update,n,r]);if(d)throw d}({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u}),zm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),JI({models:S,chart:b,viewState:i})}}}));var K={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":"Выключить выбор лассо"}}};function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.toString,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ee.call(e)},ie=function(e){if(!e||"[object Object]"!==ee.call(e))return!1;var t,n=Q.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Q.call(e,t)},oe=function(e,t){te&&"__proto__"===t.name?te(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ae=function(e,t){if("__proto__"===t){if(!Q.call(e,t))return;if(ne)return ne(e,t).value}return e[t]},se=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ae(s,n),s!==(i=ae(t,n))&&(u&&i&&(ie(i)||(o=re(i)))?(o?(o=!1,a=r&&re(r)?r:[]):a=r&&ie(r)?r:{},oe(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&oe(s,{name:n,newValue:i}));return s},le=J(se);const ce=[["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={};ce.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const de={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<ce.length;++n)if(e>=ce[n][1].width&&t>=ce[n][1].height)return ce[n][0];return"SPARK"}};const me=["$date","$timestamp","$time"],pe=["D","TS","T"],fe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>me.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&pe.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(fe.hasTimeTag(t)&&fe.hasUnknownFormat(t)||fe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&fe.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&fe.canBeContinuousDimension(r[0])},maxNumberOfLines:12},he=/^[A-Z][A-z0-9_]*$/i,ge={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||he.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)},ye=e=>ge.getValue(e,"qHyperCube.qDimensionInfo",[]),ve=e=>ge.getValue(e,"qHyperCube.qMeasureInfo",[]),be=e=>ge.getValue(e,"barGrouping.grouping"),xe={continuous:(e,t=!1)=>!!fe.canBeContinuous(e)&&(ge.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ye(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===be(e)&&(ye(e).length>1||ve(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ye(e).length>1&&1===ve(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ye(e).length&&ve(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==be(e)||this.continuous(e))&&(ye(e).length>1||ve(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ye(e).length>1&&1===ve(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ye(e).length&&ve(e).length>1},simple:e=>0===ye(e).length||1===ye(e).length&&1===ve(e).length,snapshot:e=>!!ge.getValue(e,"snapshotData")};function Se(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Ee=e=>{throw e.isHandled=!0,e};const Me={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Me.getVerticalDock(t):n?Me.getOppositeDock(Me.getHorizontalDock(t)):Me.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n},Ce={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Ce.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Ce.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Ce.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Ce.stringWidthOverMWidth(o)+1.0909090909090908*a)}},Oe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Te=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),we=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ae={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Oe.test(e),isRtlChar:e=>Te.test(e)||we.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ae.isLtrChar(r))return"ltr";if(Ae.isRtlChar(r))return"rtl"}return"ltr"}},Re={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?Re.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=Ae.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=Ae.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:Ae.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=Ae.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ae.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Re.getColorSymbol(e,t)]:[Re.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=Ae.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ae.detectTextDirection(e.value);let l;return l=i?r?[e.value,Re.getColorSymbol(t,n)]:[Re.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 ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var Le=.7,Pe=1/Le,De="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ze=/^#([0-9a-f]{3,8})$/,_e=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),je=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),Be=new RegExp(`^rgba\\(${De},${De},${De},${qe}\\)$`),Fe=new RegExp(`^rgba\\(${$e},${$e},${$e},${qe}\\)$`),He=new RegExp(`^hsl\\(${qe},${$e},${$e}\\)$`),Ve=new RegExp(`^hsla\\(${qe},${$e},${$e},${qe}\\)$`),Ue={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function We(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function Ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ze.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xe(t):3===n?new Qe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ke(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_e.exec(e))?new Qe(t[1],t[2],t[3],1):(t=je.exec(e))?new Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Be.exec(e))?Ke(t[1],t[2],t[3],t[4]):(t=Fe.exec(e))?Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=He.exec(e))?ot(t[1],t[2]/100,t[3]/100,1):(t=Ve.exec(e))?ot(t[1],t[2]/100,t[3]/100,t[4]):Ue.hasOwnProperty(e)?Xe(Ue[e]):"transparent"===e?new Qe(NaN,NaN,NaN,0):null}function Xe(e){return new Qe(e>>16&255,e>>8&255,255&e,1)}function Ke(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qe(e,t,n,r)}function Je(e){return e instanceof Ie||(e=Ge(e)),e?new Qe((e=e.rgb()).r,e.g,e.b,e.opacity):new Qe}function Ze(e,t,n,r){return 1===arguments.length?Je(e):new Qe(e,t,n,null==r?1:r)}function Qe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function et(){return`#${it(this.r)}${it(this.g)}${it(this.b)}`}function tt(){const e=nt(this.opacity);return`${1===e?"rgb(":"rgba("}${rt(this.r)}, ${rt(this.g)}, ${rt(this.b)}${1===e?")":`, ${e})`}`}function nt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function it(e){return((e=rt(e))<16?"0":"")+e.toString(16)}function ot(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,n,r)}function at(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ge(e)),!e)return new st;if(e instanceof st)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 st(a,s,l,e.opacity)}function st(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function lt(e){return(e=(e||0)%360)<0?e+360:e}function ct(e){return Math.max(0,Math.min(1,e||0))}function ut(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ke(Ie,Ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:We,formatHex:We,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return at(this).formatHsl()},formatRgb:Ye,toString:Ye}),ke(Qe,Ze,Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(rt(this.r),rt(this.g),rt(this.b),nt(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:et,formatHex:et,formatHex8:function(){return`#${it(this.r)}${it(this.g)}${it(this.b)}${it(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tt,toString:tt})),ke(st,(function(e,t,n,r){return 1===arguments.length?at(e):new st(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new st(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 Qe(ut(e>=240?e-240:e+120,i,r),ut(e,i,r),ut(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new st(lt(this.h),ct(this.s),ct(this.l),nt(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=nt(this.opacity);return`${1===e?"hsl(":"hsla("}${lt(this.h)}, ${100*ct(this.s)}%, ${100*ct(this.l)}%${1===e?")":`, ${e})`}`}}));const dt=Math.PI/180,mt=180/Math.PI,pt=.96422,ft=1,ht=.82521,gt=4/29,yt=6/29,vt=3*yt*yt,bt=yt*yt*yt;function xt(e){if(e instanceof St)return new St(e.l,e.a,e.b,e.opacity);if(e instanceof wt)return At(e);e instanceof Qe||(e=Je(e));var t,n,r=Ot(e.r),i=Ot(e.g),o=Ot(e.b),a=Et((.2225045*r+.7168786*i+.0606169*o)/ft);return r===i&&i===o?t=n=a:(t=Et((.4360747*r+.3850649*i+.1430804*o)/pt),n=Et((.0139322*r+.0971045*i+.7141733*o)/ht)),new St(116*a-16,500*(t-a),200*(a-n),e.opacity)}function St(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Et(e){return e>bt?Math.pow(e,1/3):e/vt+gt}function Mt(e){return e>yt?e*e*e:vt*(e-gt)}function Ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Tt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wt)return new wt(e.h,e.c,e.l,e.opacity);if(e instanceof St||(e=xt(e)),0===e.a&&0===e.b)return new wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mt;return new wt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function At(e){if(isNaN(e.h))return new St(e.l,0,0,e.opacity);var t=e.h*dt;return new St(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ke(St,(function(e,t,n,r){return 1===arguments.length?xt(e):new St(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return new St(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new St(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 Qe(Ct(3.1338561*(t=pt*Mt(t))-1.6168667*(e=ft*Mt(e))-.4906146*(n=ht*Mt(n))),Ct(-.9787684*t+1.9161415*e+.033454*n),Ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ke(wt,Tt,Ne(Ie,{brighter(e){return new wt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new wt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return At(this).rgb()}}));var Rt={isDark:function(e){return Tt(e).l<70}};function kt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Nt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function It(e){return 1===e.length&&(e=function(e){return function(t,n){return Nt(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Lt=It(Nt).right,Pt=Math.sqrt(50),Dt=Math.sqrt(10),qt=Math.sqrt(2);function $t(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Pt?10:o>=Dt?5:o>=qt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pt?10:o>=Dt?5:o>=qt?2:1)}function zt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Pt?i*=10:o>=Dt?i*=5:o>=qt&&(i*=2),t<e?-i:i}function _t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var jt="$";function Bt(){}function Ft(e,t){var n=new Bt;if(e instanceof Bt)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 Ht(){}Bt.prototype=Ft.prototype={constructor:Bt,has:function(e){return jt+e in this},get:function(e){return this[jt+e]},set:function(e,t){return this[jt+e]=t,this},remove:function(e){var t=jt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===jt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===jt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===jt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===jt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===jt&&++e;return e},empty:function(){for(var e in this)if(e[0]===jt)return!1;return!0},each:function(e){for(var t in this)t[0]===jt&&e(this[t],t.slice(1),this)}};var Vt=Ft.prototype;Ht.prototype={constructor:Ht,has:Vt.has,add:function(e){return this[jt+(e+="")]=e,this},remove:Vt.remove,clear:Vt.clear,values:Vt.keys,size:Vt.size,empty:Vt.empty,each:Vt.each};var Ut=Array.prototype,Wt=Ut.map,Yt=Ut.slice;function Gt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kt(){}var Jt=.7,Zt=1/Jt,Qt="\\s*([+-]?\\d+)\\s*",en="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nn=/^#([0-9a-f]{3})$/,rn=/^#([0-9a-f]{6})$/,on=new RegExp("^rgb\\("+[Qt,Qt,Qt]+"\\)$"),an=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),sn=new RegExp("^rgba\\("+[Qt,Qt,Qt,en]+"\\)$"),ln=new RegExp("^rgba\\("+[tn,tn,tn,en]+"\\)$"),cn=new RegExp("^hsl\\("+[en,tn,tn]+"\\)$"),un=new RegExp("^hsla\\("+[en,tn,tn,en]+"\\)$"),dn={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 mn(e){var t;return e=(e+"").trim().toLowerCase(),(t=nn.exec(e))?new yn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=rn.exec(e))?pn(parseInt(t[1],16)):(t=on.exec(e))?new yn(t[1],t[2],t[3],1):(t=an.exec(e))?new yn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sn.exec(e))?fn(t[1],t[2],t[3],t[4]):(t=ln.exec(e))?fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cn.exec(e))?bn(t[1],t[2]/100,t[3]/100,1):(t=un.exec(e))?bn(t[1],t[2]/100,t[3]/100,t[4]):dn.hasOwnProperty(e)?pn(dn[e]):"transparent"===e?new yn(NaN,NaN,NaN,0):null}function pn(e){return new yn(e>>16&255,e>>8&255,255&e,1)}function fn(e,t,n,r){return r<=0&&(e=t=n=NaN),new yn(e,t,n,r)}function hn(e){return e instanceof Kt||(e=mn(e)),e?new yn((e=e.rgb()).r,e.g,e.b,e.opacity):new yn}function gn(e,t,n,r){return 1===arguments.length?hn(e):new yn(e,t,n,null==r?1:r)}function yn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function bn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xn(e,t,n,r)}function xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Gt(Kt,mn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Gt(yn,gn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new yn(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"#"+vn(this.r)+vn(this.g)+vn(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+")")}})),Gt(xn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xn)return new xn(e.h,e.s,e.l,e.opacity);if(e instanceof Kt||(e=mn(e)),!e)return new xn;if(e instanceof xn)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 xn(a,s,l,e.opacity)}(e):new xn(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new xn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new xn(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 yn(Sn(e>=240?e-240:e+120,i,r),Sn(e,i,r),Sn(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,Mn=180/Math.PI,Cn=.96422,On=1,Tn=.82521,wn=4/29,An=6/29,Rn=3*An*An,kn=An*An*An;function Nn(e){if(e instanceof In)return new In(e.l,e.a,e.b,e.opacity);if(e instanceof $n){if(isNaN(e.h))return new In(e.l,0,0,e.opacity);var t=e.h*En;return new In(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof yn||(e=hn(e));var n,r,i=qn(e.r),o=qn(e.g),a=qn(e.b),s=Ln((.2225045*i+.7168786*o+.0606169*a)/On);return i===o&&o===a?n=r=s:(n=Ln((.4360747*i+.3850649*o+.1430804*a)/Cn),r=Ln((.0139322*i+.0971045*o+.7141733*a)/Tn)),new In(116*s-16,500*(n-s),200*(s-r),e.opacity)}function In(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ln(e){return e>kn?Math.pow(e,1/3):e/Rn+wn}function Pn(e){return e>An?e*e*e:Rn*(e-wn)}function Dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $n(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Gt(In,(function(e,t,n,r){return 1===arguments.length?Nn(e):new In(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new In(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new In(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 yn(Dn(3.1338561*(t=Cn*Pn(t))-1.6168667*(e=On*Pn(e))-.4906146*(n=Tn*Pn(n))),Dn(-.9787684*t+1.9161415*e+.033454*n),Dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Gt($n,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof $n)return new $n(e.h,e.c,e.l,e.opacity);if(e instanceof In||(e=Nn(e)),0===e.a&&0===e.b)return new $n(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Mn;return new $n(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new $n(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new $n(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new $n(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Nn(this).rgb()}}));var zn=-.14861,_n=1.78277,jn=-.29227,Bn=-.90649,Fn=1.97294,Hn=Fn*Bn,Vn=Fn*_n,Un=_n*jn-Bn*zn;function Wn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof yn||(e=hn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Un*r+Hn*t-Vn*n)/(Un+Hn-Vn),o=r-i,a=(Fn*(n-i)-jn*o)/Bn,s=Math.sqrt(a*a+o*o)/(Fn*i*(1-i)),l=s?Math.atan2(a,o)*Mn-120:NaN;return new Yn(l<0?l+360:l,s,i,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gn(e){return function(){return e}}function Xn(e,t){return function(n){return e+n*t}}function Kn(e){return 1==(e=+e)?Jn: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):Gn(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?Xn(e,n):Gn(isNaN(e)?t:e)}Gt(Yn,Wn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new Yn(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 yn(255*(t+n*(zn*r+_n*i)),255*(t+n*(jn*r+Bn*i)),255*(t+n*(Fn*r)),this.opacity)}}));var Zn=function e(t){var n=Kn(t);function r(e,t){var r=n((e=gn(e)).r,(t=gn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Jn(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);function Qn(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ar(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function er(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function tr(e,t){return t-=e=+e,function(n){return e+t*n}}function nr(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=ar(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ir=new RegExp(rr.source,"g");function or(e,t){var n,r,i,o=rr.lastIndex=ir.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=rr.exec(e))&&(r=ir.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:tr(n,r)})),o=ir.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function ar(e,t){var n,r=typeof t;return null==t||"boolean"===r?Gn(t):("number"===r?tr:"string"===r?(n=mn(t))?(t=n,Zn):or:t instanceof mn?Zn:t instanceof Date?er:Array.isArray(t)?Qn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?nr:tr)(e,t)}function sr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function lr(e){return function t(n){function r(t,r){var i=e((t=Wn(t)).h,(r=Wn(r)).h),o=Jn(t.s,r.s),a=Jn(t.l,r.l),s=Jn(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 cr(e){return+e}lr((function(e,t){var n=t-e;return n?Xn(e,n>180||n<-180?n-360*Math.round(n/360):n):Gn(isNaN(e)?t:e)})),lr(Jn);var ur=[0,1];function dr(e){return e}function mr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function pr(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function fr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=mr(i,r),o=n(a,o)):(r=mr(r,i),o=n(o,a)),function(e){return o(r(e))}}function hr(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=mr(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Lt(e,t,1,r)-1;return o[n](i[n](t))}}function gr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yr(e,t){return function(){var e,t,n,r,i,o,a=ur,s=ur,l=ar,c=dr;function u(){return r=Math.min(a.length,s.length)>2?hr:fr,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),tr)))(n)))},d.domain=function(e){return arguments.length?(a=Wt.call(e,cr),c===dr||(c=pr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Yt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Yt.call(e),l=sr,u()},d.clamp=function(e){return arguments.length?(c=e?pr(a):dr,d):c!==dr},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function vr(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)]}function br(e){return(e=vr(Math.abs(e)))?e[1]:NaN}var xr,Sr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Er(e){return new Mr(e)}function Mr(e){if(!(t=Sr.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 Cr(e,t){var n=vr(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")}Er.prototype=Mr.prototype,Mr.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 Or={"%":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 Cr(100*e,t)},r:Cr,s:function(e,t){var n=vr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(xr=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")+vr(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 Tr(e){return e}var wr,Ar,Rr,kr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Nr(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)}):Tr,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):Tr,s=e.percent||"%";function l(e){var t=(e=Er(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,m=e.comma,p=e.precision,f=e.trim,h=e.type;"n"===h?(m=!0,h="g"):Or[h]||(null==p&&(p=12),f=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?i[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(h)?s:"",v=Or[h],b=/[defgprs%]/.test(h);function x(e){var i,s,c,x=g,S=y;if("c"===h)S=v(e)+S,e="";else{var E=(e=+e)<0;if(e=v(Math.abs(e),p),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)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?kr[8+xr/3]:"")+S+(E&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){S=(46===c?o+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!u&&(e=r(e,1/0));var M=x.length+e.length+S.length,C=M<d?new Array(d-M+1).join(t):"";switch(m&&u&&(e=r(C+e,C.length?d-S.length:1/0),C=""),n){case"<":e=x+e+S+C;break;case"=":e=x+C+e+S;break;case"^":e=C.slice(0,M=C.length>>1)+x+e+S+C.slice(M);break;default:e=C+x+e+S}return a(e)}return p=null==p?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Er(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(br(t)/3))),i=Math.pow(10,-r),o=kr[8+r/3];return function(e){return n(i*e)+o}}}}function Ir(e,t,n,r){var i,o=zt(e,t,n);switch((r=Er(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(br(t)/3)))-br(Math.abs(e)))}(o,a))||(r.precision=i),Rr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-br(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Ar(r)}function Lr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$t(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ir(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=$t(s,l,n))>0?r=$t(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=$t(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function Pr(){var e=yr(dr,dr);return e.copy=function(){return gr(e,Pr())},_t.apply(e,arguments),Lr(e)}wr=Nr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ar=wr.format,Rr=wr.formatPrefix;var Dr=new Date,qr=new Date;function $r(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 $r((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 Dr.setTime(+t),qr.setTime(+r),e(Dr),e(qr),Math.floor(n(Dr,qr))},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 zr=$r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));zr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?$r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):zr:null},zr.range;var _r=1e3,jr=6e4,Br=36e5,Fr=864e5,Hr=6048e5,Vr=$r((function(e){e.setTime(Math.floor(e/_r)*_r)}),(function(e,t){e.setTime(+e+t*_r)}),(function(e,t){return(t-e)/_r}),(function(e){return e.getUTCSeconds()}));Vr.range;var Ur=$r((function(e){e.setTime(Math.floor(e/jr)*jr)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getMinutes()}));Ur.range;var Wr=$r((function(e){var t=e.getTimezoneOffset()*jr%Br;t<0&&(t+=Br),e.setTime(Math.floor((+e-t)/Br)*Br+t)}),(function(e,t){e.setTime(+e+t*Br)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getHours()}));Wr.range;var Yr=$r((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())*jr)/Fr}),(function(e){return e.getDate()-1}));function Gr(e){return $r((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())*jr)/Hr}))}Yr.range;var Xr=Gr(0),Kr=Gr(1),Jr=Gr(2),Zr=Gr(3),Qr=Gr(4),ei=Gr(5),ti=Gr(6);Xr.range,Kr.range,Jr.range,Zr.range,Qr.range,ei.range,ti.range;var ni=$r((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()}));ni.range;var ri=$r((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()}));ri.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$r((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},ri.range;var ii=$r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getUTCMinutes()}));ii.range;var oi=$r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Br)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getUTCHours()}));oi.range;var ai=$r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getUTCDate()-1}));function si(e){return $r((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)/Hr}))}ai.range;var li=si(0),ci=si(1),ui=si(2),di=si(3),mi=si(4),pi=si(5),fi=si(6);li.range,ci.range,ui.range,di.range,mi.range,pi.range,fi.range;var hi=$r((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()}));hi.range;var gi=$r((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 yi(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 vi(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 bi(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}gi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?$r((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},gi.range;var xi,Si,Ei,Mi={"-":"",_:" ",0:"0"},Ci=/^\s*\d+/,Oi=/^%/,Ti=/[\\^$*+?|[\]().{}]/g;function wi(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 Ai(e){return e.replace(Ti,"\\$&")}function Ri(e){return new RegExp("^(?:"+e.map(Ai).join("|")+")","i")}function ki(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ni(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Li(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Pi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Di(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=Ci.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $i(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function zi(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 _i(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ji(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bi(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Fi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ui(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wi(e,t,n){var r=Ci.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yi(e,t,n){var r=Oi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ki(e,t){return wi(e.getDate(),t,2)}function Ji(e,t){return wi(e.getHours(),t,2)}function Zi(e,t){return wi(e.getHours()%12||12,t,2)}function Qi(e,t){return wi(1+Yr.count(ri(e),e),t,3)}function eo(e,t){return wi(e.getMilliseconds(),t,3)}function to(e,t){return eo(e,t)+"000"}function no(e,t){return wi(e.getMonth()+1,t,2)}function ro(e,t){return wi(e.getMinutes(),t,2)}function io(e,t){return wi(e.getSeconds(),t,2)}function oo(e){var t=e.getDay();return 0===t?7:t}function ao(e,t){return wi(Xr.count(ri(e),e),t,2)}function so(e,t){var n=e.getDay();return e=n>=4||0===n?Qr(e):Qr.ceil(e),wi(Qr.count(ri(e),e)+(4===ri(e).getDay()),t,2)}function lo(e){return e.getDay()}function co(e,t){return wi(Kr.count(ri(e),e),t,2)}function uo(e,t){return wi(e.getFullYear()%100,t,2)}function mo(e,t){return wi(e.getFullYear()%1e4,t,4)}function po(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+wi(t/60|0,"0",2)+wi(t%60,"0",2)}function fo(e,t){return wi(e.getUTCDate(),t,2)}function ho(e,t){return wi(e.getUTCHours(),t,2)}function go(e,t){return wi(e.getUTCHours()%12||12,t,2)}function yo(e,t){return wi(1+ai.count(gi(e),e),t,3)}function vo(e,t){return wi(e.getUTCMilliseconds(),t,3)}function bo(e,t){return vo(e,t)+"000"}function xo(e,t){return wi(e.getUTCMonth()+1,t,2)}function So(e,t){return wi(e.getUTCMinutes(),t,2)}function Eo(e,t){return wi(e.getUTCSeconds(),t,2)}function Mo(e){var t=e.getUTCDay();return 0===t?7:t}function Co(e,t){return wi(li.count(gi(e),e),t,2)}function Oo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?mi(e):mi.ceil(e),wi(mi.count(gi(e),e)+(4===gi(e).getUTCDay()),t,2)}function To(e){return e.getUTCDay()}function wo(e,t){return wi(ci.count(gi(e),e),t,2)}function Ao(e,t){return wi(e.getUTCFullYear()%100,t,2)}function Ro(e,t){return wi(e.getUTCFullYear()%1e4,t,4)}function ko(){return"+0000"}function No(){return"%"}function Io(e){return+e}function Lo(e){return Math.floor(+e/1e3)}!function(e){xi=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,c=Ri(i),u=ki(i),d=Ri(o),m=ki(o),p=Ri(a),f=ki(a),h=Ri(s),g=ki(s),y=Ri(l),v=ki(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:Ki,e:Ki,f:to,H:Ji,I:Zi,j:Qi,L:eo,m:no,M:ro,p:function(e){return i[+(e.getHours()>=12)]},Q:Io,s:Lo,S:io,u:oo,U:ao,V:so,w:lo,W:co,x:null,X:null,y:uo,Y:mo,Z:po,"%":No},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:fo,e:fo,f:bo,H:ho,I:go,j:yo,L:vo,m:xo,M:So,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Io,s:Lo,S:Eo,u:Mo,U:Co,V:Oo,w:To,W:wo,x:null,X:null,y:Ao,Y:Ro,Z:ko,"%":No},S={a:function(e,t,n){var r=p.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=m[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=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:ji,e:ji,f:Wi,H:Fi,I:Fi,j:Bi,L:Ui,m:_i,M:Hi,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Gi,s:Xi,S:Vi,u:Ii,U:Li,V:Pi,w:Ni,W:Di,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:$i,Y:qi,Z:zi,"%":Yi};function E(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Mi[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 M(e,t){return function(n){var r,i,o=bi(1900);if(C(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=vi(bi(o.y))).getUTCDay(),r=i>4||0===i?ci.ceil(r):ci(r),r=ai.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(bi(o.y))).getDay(),r=i>4||0===i?Kr.ceil(r):Kr(r),r=Yr.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?vi(bi(o.y)).getUTCDay():t(bi(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,vi(o)):t(o)}}function C(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=S[i in Mi?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=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",yi);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e,vi);return t.toString=function(){return e},t}}}(e),xi.format,xi.parse,Si=xi.utcFormat,Ei=xi.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 Po="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Si(Po),+new Date("2000-01-01T00:00:00.000Z")||Ei(Po);var Do=1e3,qo=60*Do,$o=60*qo,zo=24*$o,_o=7*zo,jo=30*zo,Bo=365*zo;function Fo(e){return new Date(e)}function Ho(e){return e instanceof Date?+e:+new Date(+e)}function Vo(e,t,n,r,i,o,a,s,l){var c=yr(dr,dr),u=c.invert,d=c.domain,m=l(".%L"),p=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,Do],[a,5,5*Do],[a,15,15*Do],[a,30,30*Do],[o,1,qo],[o,5,5*qo],[o,15,15*qo],[o,30,30*qo],[i,1,$o],[i,3,3*$o],[i,6,6*$o],[i,12,12*$o],[r,1,zo],[r,2,2*zo],[n,1,_o],[t,1,jo],[t,3,3*jo],[e,1,Bo]];function S(s){return(a(s)<s?m:o(s)<s?p:i(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function E(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=It((function(e){return e[2]})).right(x,o);a===x.length?(i=zt(n/Bo,r/Bo,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(zt(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Wt.call(e,Ho)):d().map(Fo)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=E(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return gr(c,Vo(e,t,n,r,i,o,a,s,l))},c}function Uo(){return _t.apply(Vo(gi,hi,li,ai,oi,ii,Vr,zr,Si).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Wo={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Yo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Go={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Wo[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Yo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Yo(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Xo({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ko;function Jo(){Ko=Ko||document.createElement("canvas").getContext("2d")}const Zo={measureTextWidth(e){Jo();const{width:t}=Ko.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Jo();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,m=e?e.split(/\s+/):[],p=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Ko.font=n),o=0;o<a.length;o++){for(d=a[o]||"",m=d.split(/\s+/),[p]=m,u="",i=1;i<m.length;i++)if(l=`${p} ${m[i]}`,c=Zo.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=m[i]):p=l,"number"==typeof r&&s.length>=r){u=m.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${p} ${u}`}return s},wordWrap(e,t,n,r,i){if(Jo(),!e||!e.length)return[];n&&(Ko.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Zo.measureTextWidth(c)<=t?o.push(c):(s=Zo.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Zo.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Zo.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Zo.measureTextWidth(c)>t&&(o[o.length-1]=Zo.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Jo();let i,o,a,s,l=e;const c=Zo.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ko.font=n),e&&t){if(Zo.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Zo.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Jo();let o,a=e,s="",l=[];if(Zo.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Zo.measureTextWidth(a)<=t));i--);return(!i&&!a||Zo.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Zo.measureTextWidth(s)>t?(s=Zo.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Jo(),e&&t?(n&&(Ko.font=n),Zo.explodeWord(e,t,r,Math.max(1,Zo.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Zo.lineWrap(e,t,n,r):[e],o=Zo.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Jo(),e&&(Ko.font=e),1.5*Zo.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Jo(),t&&(Ko.font=t);const s=Zo.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const m=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?m-u:e)}))):c=[Number.isNaN(r)||r<=0?m:Math.min(m,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<m&&(d=d.concat(Zo.wrapText(e,i,t,c[n])))})):d=Zo.wrapText(e,i,t,c[0],n),d}},Qo={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},ea=le.bind(null,!0),ta={},{isArray:na}=Array;function ra(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ia(e){return void 0===e}function oa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function aa(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]=ia(e[r||t])?o:e[t],e=e[r||t]})),e}function sa(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function la(e,t,n){let r=!0;if(ra(e)&&ra(t))return sa(e,n)===sa(t,n)&&(Object.keys(e).forEach((i=>{la(e[i],t[i],n)||(r=!1)})),r);if(na(e)&&na(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!la(e[r],t[r],n))return!1;return!0}return e===t}ta.compare=la,ta.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?ea({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;la(o,a)||oa(t,i)||(ia(a)?r.push({op:"add",path:s,value:o}):ra(o)&&ra(a)?r=r.concat(ta.generate(a,o,s)):na(o)&&na(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]&&ia(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(la(t,i))return r;if(!ia(t[0])&&ia(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(ta.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=>{ia(t[i])&&!oa(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},ta.apply=function(e,t){t.forEach((t=>{let n=aa(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(na(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(na(i)&&na(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ra(i)&&ra(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!oa(a,e)&&delete a[e]})),ea(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=aa(e,t.from);na(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(na(n)?n.splice(+r,1):delete n[r]);var a}))},ta.clone=function(e){return ea({},e)},ta.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},ta.updateObject=function(e,t){Object.keys(e).length?ta.apply(e,ta.generate(e,t)):ea(e,t)};const ca=[[2,4,6],[2,4],[3]],ua=[,[,,[[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 da(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 ma(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)da(e[r],t,n)}!function(){let e,t;for(ma(ca,1,10),e=0;e<ua.length;e++)if(ua[e])for(t=0;t<ua[e].length;t++)Array.isArray(ua[e][t])&&ma(ua[e][t])}();const pa={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=pa.findSegmentPositionMeetMin(e,t);return pa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=pa.findSegmentPositionMeetMax(e,n);return pa.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=pa.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=pa.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,pa.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)pa.layoutPositionFromMin(e,t,n,r),pa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=pa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},fa=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},ha=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ga=e=>e.filter(ha),ya=(e,t)=>ga(ge.getValue(e,t,[])),va=e=>ha(e)&&(!1!==e.showValue||!1!==e.showLabel),ba=e=>e.filter(va),xa=(e,t)=>ba(ge.getValue(e,t,[])),Sa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Ea=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ma=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Ca=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},Oa=({value:e,qMin:t})=>"NaN"!==t&&e<t,Ta=({value:e,qMax:t})=>"NaN"!==t&&e>t,wa={isRefLineVisible:ha,getVisibleRefLines:ga,getRefLines:ya,getMeasureRefLines:e=>ya(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ya(e,"refLine.dimRefLines"),isRefLineLabelVisible:va,getVisibleRefLineLabels:ba,getRefLineLabels:xa,getMeasureRefLineLabels:e=>xa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:xa(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=fa(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=fa(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=fa(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=ge.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ge.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ge.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+m,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),o},getInputValue:Sa,extractInfoFromInputValue:Ea,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Sa({refLineLayout:e,layoutService:n});return Ea(r,t,"id")},isDiscreteMinOutOfBounds:Ma,isDiscreteMaxOutOfBounds:Ca,isContinuousMinOutOfBounds:Oa,isContinuousMaxOutOfBounds:Ta,isOutOfRange:({value:e,qMin:t,qMax:n})=>Oa({value:e,qMin:t})||Ta({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Ca({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ma({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Aa="…";function Ra(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,3,n),i.maxNumLines=i.lines.length}}function ka({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Zo.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function Na({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>ka({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function Ia(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const La=3,Pa=2;function Da({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const qa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(wa.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(wa.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return wa.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:wa.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},$a={hasEngineFormat:Da,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=wa.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let m,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");m=e.qMin,p=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,f=qa({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:wa.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=Da({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,r.title=$a.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=Da({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=$a.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=$a.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((e=>t(e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=$a.getTotalNumLines(e)-r;if(t<=0)return;$a.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,$a.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;$a.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),Ia(e,"center"),$a.addLabelsNeighborInfo(e,r,i,o),Ra(e,a,s),$a.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&($a.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines.length>i.maxNumLines&&(i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,i.maxNumLines,n))}}(e,a,s)),$a.addLabelsSize(e,s,l,d),$a.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:m,background:p}=t;let f=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const p={type:"text",text:t,title:ka({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),dx:0,dy:0,maxWidth:n,width:n,fontSize:d,fontFamily:m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return p[l]=u,p[s]=e.segment.position,p.y+=(i-(r-1)/2)*o,p}));e.background&&f.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=La,padding:c={}}=a,{top:u=Pa,bottom:d=Pa,left:m=Pa,right:p=Pa}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(m+p),height:i.height+(u+d),value:i.value,dock:r};return h[n]=e,h[t]=i.segment.position,h.x-=i.width/2+m,h.y-=f*o/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:p})),f=f.concat(i)})),f}};function za(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function _a(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:i,bottom:o,maxLabelWidth:a}=t;let s=1;return $a.getMaxTextWidth(e)>a&&(Ra(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+i+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,$a.getMaxTextWidth(e))+n+r}(t,n)}function ja(e,t){return t?e.domain():[0,1]}function Ba(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function Fa(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function Ha(e,t){return e>9?t[1]:t[0]}function Va({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:m,minorAxis:p,minorDimension:f,dock:h}=s,g=i[f],y=Qo.createOob({oob:Qo.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=h;const v=`c${m}`,b=`c${p}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:Na({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[m]=a,[y,x,S]}function Ua(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:Zo.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Wa=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Ya={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=Wa(this.settings.labels),s=za(this.chart,this.settings.formatter,e);$a.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=ja(t,n);return Ba(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Ba(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Ua(t.label),{dock:n}=this.settings.layout;return $a.measureLabelsWidth(u,this.measureText),d=_a(n,u,e),d}const m=Fa(this.measureText),p=l?Ha(l,m):0,f=c?Ha(c,m):0;return d=Math.max(p,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=Wa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,{font:v,lineHeight:b,gap:x,maxLabelWidth:S}=Ua(n.label),E=za(this.chart,this.settings.formatter,e),M=y;$a.addLabelTitles({labels:c,formatter:E,isContinuous:o,canBeContinuous:l,localeInfo:s}),$a.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[C,O]=ja(e,o),{filteredLabels:T,lowerOobs:w,upperOobs:A,lowerCircleSize:R,upperCircleSize:k,lowerOobSpace:N,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=Ba(e,t,n,c),p="scaledValue"!==c&&wa.getInvert({orientation:r,rtl:i,isContinuous:o}),f=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=f.length,y=h.length,v=Fa(l),b=Ha(g,v),x=Ha(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:C,maxValue:O,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=N,P=y-I;Ia(w),Ia(A);const D=Va({alignment:0,dockValue:0,oobs:w,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+R/2,areaProps:p,radius:R/2,font:v}),q=Va({alignment:1,dockValue:1,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+k/2),areaProps:p,radius:k/2,font:v});$a.addLabelsInfo({labels:T,scale:e,majorSize:y,lowerLimit:L,upperLimit:P,font:v,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),pa.layout(T.map((e=>e.segment)),L,P,n.label.gap);const $=T.filter((e=>pa.isInside(e.segment,L,P,o)));return $a.createLabels({labels:$,style:n.label,maxLabelWidth:S,areaProps:p,area:f,lineHeight:b,font:v,theme:i}).concat([...D,...q])}};var Ga={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 Xa(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=le(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Ga;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==E(l,e)&&M(l,e,null);else{const e=t[0],n=t[1].split("].")[1];E(l,e,[]).forEach((e=>{void 0!==E(e,n)&&M(e,n,null)}))}})),l}var Ka={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,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"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+=u: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+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,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}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},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=Xa(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Xa(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Ja,extractInfoFromInputValue:Za,resolveValue:Qa}=wa;var es={resolveValue:Qa,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Ja({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ja({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const ts=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var m,p;const f={dir:l,line:{strokeWidth:(null==t||null===(m=t.style)||void 0===m?void 0:m.lineThickness)||2,strokeDasharray:null==t||null===(p=t.style)||void 0===p?void 0:p.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):(f.valueInfo=es.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=wa.getScaledPosition({scale:a.scale(s),value:es.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:f.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),f};function ns({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:m,minimumLayoutMode:p}){const f=e?t.dimensionRefLines:m?t.query.getRefLines(m):t.measureRefLines;if(!f.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(ts({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const rs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},is=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:Ka.refLineLabels.trackBy,compensateForLayoutChanges:Ka.refLineLabels.compensateForLayoutChanges}}),os=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>es.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>es.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>es.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function as({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:m,path:p}){const f=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!f.length)return[];const h=[],g=!e||n.meta.isContinuous,y=f.map((e=>os({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(is({isDimension:e,rtl:d,style:le(!0,rs,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function ss({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=xe.dimensionless(o),l=wa.getMeasureRefLines(o),c=wa.getDimensionRefLines(o,s),u=wa.getMeasureRefLineLabels(o),d=wa.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=wa.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return wa.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!p[t])return!1;if(!n&&i){const n={valueInfo:p[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return wa.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),h={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:p,dimensionValuesInfo:m,query:{getRefLines:e=>wa.getRefLines(o,e),getRefLineLabels:e=>wa.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=wa.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=wa.getInputValue({refLineLayout:t,layoutService:e});m[n]&&(p[n]?(p[n].innerValues=m[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,m[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,m[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||m[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||m[n].isMaxOrderOk):p[n]={id:m[n].id,qText:m[n].qText,innerValues:m[n].innerValues,minOrder:m[n].minOrder,maxOrder:m[n].maxOrder,isMinOrderOk:m[n].isMinOrderOk,isMaxOrderOk:m[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return h.update(),h}function ls(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var cs={DATA:{MAIN:"qHyperCube",REDUCED:"reduced-data"},SCALE:{MAJOR:"main-major",MAJOR_INNER:"major-inner",MINOR:{PRIMARY:"minor-primary",SECONDARY:"minor-secondary",REDUCED_PRIMARY:"reduced-minor-primary",REDUCED_SECONDARY:"reduced-minor-secondary"},COLOR:"color",REDUCED:"reduced-major"},COMPONENT:{BAR:"bar-series",BAR_LABEL:"bar-label",BAR_OOB_LABEL:"bar-oob-label",STACK_BAR:"stack-bar",STACK_BAR_LABEL:"stack-bar-label",AXIS:{MAJOR:"major-axis",MAJOR_CONTINUOUS:"major-axis-continuous",TIME_INNER:"major-axis-time-inner",TIME_OUTER:"major-axis-time-outer",MINOR:{PRIMARY:"minor-primary-axis",SECONDARY:"minor-secondary-axis"}},AXIS_OVERLAY:{TIME_INNER:"axis-overlay-time-inner",TIME_OUTER:"axis-overlay-time-outer",CONTINUOUS:"axis-overlay-continuous"},AXIS_TITLE:{MAJOR:"major-axis-title",MINOR:{PRIMARY:"minor-primary-axis-title",SECONDARY:"minor-secondary-axis-title"}},MARKER:"marker-series",MARKER_LABEL:"marker-label",LINE:"line-series",POINT:"point-component",LABEL_SPACE:"label-space-component",POINT_LABEL:"point-label",GRID_LINE:"grid-line",ZERO_LINE:"zero-line",LEGEND:"legend",LEGEND_CATEGORICAL:"legend-cat",LEGEND_TOOLTIP:"legend-tooltip",TOOLTIP:"tooltip-qcm",MINI_CHART:{BAR:"mini-chart-bar-series",LINE:"mini-chart-line-series",MARKER:"mini-chart-marker-series"},BAR_OOB:"bar-oob",GHOST_BAR_OOB:"ghost-bar-oob",SLICED_HAT:"sliced-hat",DATA_OOB_MARKER:"data-out-of-bounds-marker",PRIMARY_MEASURE_AXIS_REF_LINE:"primary-mes-axis-ref-line",SECONDARY_MEASURE_AXIS_REF_LINE:"secondary-mes-axis-ref-line",DIMENSION_REF_LINE:"dim-ref-line",PRIMARY_MEASURE_AXIS_REF_LINE_LABEL:"primary-mes-ref-line-label",SECONDARY_MEASURE_AXIS_REF_LINE_LABEL:"secondary-mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label"},COLLECTION:{PRIMARY:"primary-collection",SECONDARY:"secondary-collection",STACKED_PRIMARY:"stacked-collection-primary",STACKED_SECONDARY:"stacked-collection-secondary",STACKED_TOTAL_PRIMARY:"stacked-total-collection-primary",STACKED_TOTAL_SECONDARY:"stacked-total-collection-secondary",REDUCED:"reduced-collection",REDUCED_PRIMARY:"reduced-collection-primary",REDUCED_SECONDARY:"reduced-collection-secondary",REDUCED_STACKED_PRIMARY:"reduced-collection-stacked-primary",REDUCED_STACKED_SECONDARY:"reduced-collection-stacked-secondary",LINE:"line-collection"},FORMATTER:{PRIMARY:"primary-formatter",SECONDARY:"secondary-formatter"}},us={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ds={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 ms(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ps={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,c=o[t]*(n>l?1:n/l),u=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(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},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 fs(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}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 ps.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function hs(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",m=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){p=e;break}const f=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let h;if(-1!==p&&f[p]&&(h=f[p]),"media"===m&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return fs(u,d,s);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&&ms(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ps.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 ps.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&h&&h.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(ms(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ps.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[p],d,h)}return[]}const gs={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(hs(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;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},ys={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await gs.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>gs.checkIfPromisesExist({customTooltipModel:e})};const vs=(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:ds.CHART.CHART_PARENT_TYPE,qId:ds.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},bs=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:ds.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const xs={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=ds.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:ds.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await xs.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ds.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=ds.CHART.STATE,a=vs(t,o),s=await e.createSessionObject(a),l=bs(t);if(s.id!==ds.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,m;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var p,f;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(ds.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(m=s.miniChartToken.model)||void 0===m?void 0:m.genericType})}}catch(t){await xs.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(xs.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ds.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ds.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Ss(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Es(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ds.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function Ms(e){const t=Es();return e.filter((e=>t[e.id]))}const Cs={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 c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||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===c.value&&r.label===c.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}=Cs.getAttrExprData(a);o.length||n.length?ys.handlePromises({customTooltipModel:i,nodes:Cs.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&&xs.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>ys.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;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[ds.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[ds.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ds.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Ms(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[ds.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ds.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Ss(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===Ms(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=Ss(e)||[];[...i,t].forEach((e=>{const t=Ms(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Es(),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:Ae.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ae.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 Os(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case ds.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ds.CUSTOM.TITLE:case ds.CUSTOM.DESCRIPTION:case ds.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const Ts={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Os(t,e,r,n)}}};const ws={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[ds.CUSTOM.TITLE]:!0,[ds.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Cs.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ds.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===ds.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Re.getMeasure(e,t))),e,i)}};function As({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(ws.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:[]})}const{CUSTOM:Rs}=ds;function ks({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=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:Cs,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),m="rtl"===c.direction,p=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>p(),hideBasic:()=>p()&&E(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=As({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Cs.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>Cs.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=Cs.getDataNodes(o,r),{attrExps:a}=Cs.getAttrExprData(t);return ys.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(p()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>xs.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Cs.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>xs.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>xs.hide({app:n,customTooltipModel:d}),destroy:()=>xs.destroyVisualization({customTooltipModel:d})}}}function Ns({key:e,source:t,layoutService:n,fieldModel:r,colorService:i,series:o}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=o.filter((e=>e.type===us.TYPE.BAR)),c=n.meta.isContinuous?s:a,u=e=>"NaN"!==e.qNum?e.qNum:0;return[{key:e,data:{extract:l.map((({ref:e,typeIndex:r,refIndex:o})=>({source:t,field:a,value:n.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},segment:{field:e,value:u,reduceLabel:"none"},end:{field:e,value:u,reduceLabel:"none"},null:{fields:l.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},typeIndex:r,...i.getDatumProps(o),customTooltipAttrExps:Ts.getNode(n.getLayout(),n.meta),sumOfPositives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"}}}))),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}]}return[]}function Is({key:e,series:t,source:n,fieldModel:r,colorService:i,layoutService:o,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=o.meta.isContinuous?s:a;return[{key:e,data:{extract:t.map((({ref:e,refIndex:t,typeIndex:r,options:s},u)=>({source:n,field:a,value:o.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},end:{field:e,value:s.showAsZeros?l:void 0,reduceLabel:"none"},start:0,line:u,typeIndex:r,null:{field:e,value:e=>"NaN"===e.qNum,reduceLabel:"none"},customTooltipAttrExps:Ts.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function Ls({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:i}=t;if(i.isBarSeriesStacked){const{major:t,majorNumeric:o}=n.main,a=r.filter((e=>e.type===us.TYPE.BAR)),s=i.isContinuous?{field:o,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:i.isContinuous?o:t},null:{fields:a.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},sumOfPositives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},timeStart:s,timeEnd:s},value:i.isContinuous?e=>e.qNum:void 0}}}]}return[]}const Ps={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Ds={OPTIONS:Ps,DEFAULT:Ps.MINI_CHART};function qs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function $s({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const zs=e=>({miniChart:e===Ds.OPTIONS.MINI_CHART.value,bar:e===Ds.OPTIONS.BAR.value,none:e===Ds.OPTIONS.NONE.value}),_s=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return zs(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return zs(Ds.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return zs(!n&&(r||!r&&i)?Ds.OPTIONS.NONE.value:Ds.OPTIONS.MINI_CHART.value)};function js({layoutService:e,override:t}){const n=_s({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Ds.OPTIONS.MINI_CHART.value,n.bar=t.value===Ds.OPTIONS.BAR.value,n.none=t.value===Ds.OPTIONS.NONE.value),n}function Bs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===o.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=$s({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Fs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=$s({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Vs="data-scrollbar-handle";function Us({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Vs)||""}const Ws="scrollbarResize",Ys=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Ws}`,options:{event:Ws,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Ws]=this[Ws]||{},Ys(t)&&Us({e:t})&&(this[Ws].panningEvent=t.srcEvent),!!this[Ws].panningEvent))}},events:{[`${Ws}start`](n){n.preventDefault(),this[Ws]=this[Ws]||{},this[Ws].panningEvent&&t.component(e).emit("dragStart",this[Ws].panningEvent)},[`${Ws}move`](n){if(n.preventDefault(),this[Ws]=this[Ws]||{},!this[Ws].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=Us({e:this[Ws].panningEvent});let m="start"===d?Math.min(u,o.max):o.min,p="end"===d?Math.max(u,o.min):o.max;m===p&&(m-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:m,max:p}),t.component(e).emit("render")},[`${Ws}end`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")},[`${Ws}cancel`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")}}}}const Xs="scrollbarPan";function Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Xs}`,options:{event:Xs,threshold:0,enable(r,i){return this[Xs]=this[Xs]||{},!(i&&!this[Xs].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${Xs}start`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},this[Xs].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[Xs].relative=a.relative,this[Xs].zoom=r.get("zoom"),this[Xs].zoom.span=this[Xs].zoom.max-this[Xs].zoom.min,this[Xs].zoom.fullSpan=o-n}else if(a.onThumb)this[Xs].offset=a.thumb;else{const e=u();this[Xs].offset=a.beforeThumb?0:e.thumbSize}},[`${Xs}move`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},o.meta.isContinuous){const e=a.relative-this[Xs].relative,{fullSpan:t,span:n,min:o,max:s}=this[Xs].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[Xs].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Xs}end`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")},[`${Xs}cancel`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")}}}}function Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Zs({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}const Qs={background:"rgba(0, 0, 0, 0.1)"},el={top:-1,bottom:-1,width:6},tl={width:2,background:"#595959"};var nl={before:Qs,after:Qs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:el,endHandle:el,startHandleBorder:tl,endHandleBorder:tl};const rl={background:"rgba(0, 0, 0, 0.1)"},il={top:-1,bottom:-1,width:6},ol={width:2,background:"#595959"};var al={before:rl,after:rl,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:il,endHandle:il,startHandleBorder:ol,endHandleBorder:ol};const sl={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ll={pointerEvents:"initial"},cl={pointerEvents:"none"};const ul="ew-resize",dl="default";function ml(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function pl(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?ul:dl}function fl(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function hl(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function gl(){const{size:e,start:t,end:n}=ml.call(this);this.renderer.render(this.elements(this.h,fl.call(this,e,t,n)))}function yl(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?al:nl;return{container:{...sl},before:{...sl,...n.before,...t.before},after:{...sl,...n.after,...t.after},thumb:{...sl,...n.thumb,...t.thumb},startHandle:{...sl,...ll,...n.startHandle},endHandle:{...sl,...ll,...n.endHandle},startHandleBorder:{...sl,...cl,...n.startHandleBorder},endHandleBorder:{...sl,...cl,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var vl={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){gl.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!hl.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Us({e:e});t&&(this.state.hover[t]=!0),pl.call(this),gl.call(this)},leave(){this.state.locked||(this.state.hover.reset(),pl.call(this),gl.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Us({e:e});t&&(this.state.drag[t]=!0),pl.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),pl.call(this),gl.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=ml.call(this);return this.elements(e,fl.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},m={[i.start]:r},p={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?m:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:m},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Vs]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Vs]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:yl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function bl({layoutService:e}){return e.meta.isContinuous&&js({layoutService:e}).miniChart}function xl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(us.TYPE.LINE),l=[...Is({forceCreate:!0,key:cs.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...Ns({key:cs.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...Ns({key:cs.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return bl(e)&&(l.push(...Is({key:cs.COLLECTION.REDUCED,source:cs.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_PRIMARY,source:cs.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_SECONDARY,source:cs.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_PRIMARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_SECONDARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i}))),l}const Sl=({layoutService:e,dockService:t})=>"custom"!==e.getLayoutValue("dimensionAxis.axisDisplayMode")?Math.min(200,t.meta.chart.size["horizontal"===t.meta.major.orientation?"height":"width"]/4):void 0;function El({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,i=2===n.meta.measureAxes.length;if(i)return.5;const o=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!i){const e=n.meta.measureAxes[0].isPrimary?0:1;if("none"===r.getLayoutValue(`measureAxes.${e}.show`))return.5}return"horizontal"===t.meta.minor.orientation?"near"===o||"bottom"===o?1:0:"near"===o||"left"===o?0:1}const Ml=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}},Cl=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:i.meta.groupSize,maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}};function Ol({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:i}=t,{orientation:o}=i.meta.major;return{type:"linear",invert:"horizontal"===o&&"rtl"===n.options.direction,data:{extract:{field:r.main.majorNumeric}},ticks:{forceBounds:!0,count:e.get("zoom").min===e.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>e.get("zoom").min,max:()=>e.get("zoom").max}}function Tl({viewCache:e,mainMajor:t}){return le(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function wl({viewState:e,viewCache:t,layoutService:n}){return t.set("qTimeAxisCache",[]),{get:(e,n=0)=>{const r=t.get("qTimeAxisCache");return r[n]&&r[n][0]===e?r[n][1]:void 0},set:(e,n,r=0)=>{t.get("qTimeAxisCache")[r]=[e,n]},key:({distance:r})=>{const{min:i,max:o}=e.get("zoom"),a=(o-i)/(t.get("continuousMax")-t.get("continuousMin")),s=n.getHyperCubeValue("qAxisData.qAxis",[]).map((e=>e.qName));return[r,Number.parseFloat(a).toFixed(12),...s].toString()}}}function Al({picasso:e,viewState:t,viewCache:n,models:r,environment:i}){const{layoutService:o,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),m={type:"time",data:{field:u},qAxis:()=>o.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===i.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:o.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:e=>c({text:e,fontFamily:d.axis.label.name.fontFamily,fontSize:d.axis.label.name.fontSize})},ticks:{generator:{type:"d3",initialMin:t.get("zoom").min},anchor:"start",clamp:!0},cache:wl({viewState:t,viewCache:n,layoutService:o})};return{[cs.SCALE.MAJOR]:le(!0,{},m,{ticks:{level:"outer"}}),[cs.SCALE.MAJOR_INNER]:le(!0,{},m,{ticks:{level:"inner"}})}}function Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Al({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[cs.SCALE.MAJOR]:Ol({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[cs.SCALE.MAJOR]:Cl({models:t,environment:i})}:{[cs.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Cl({models:t,environment:i}):Ml({models:t,environment:i})};return bl(t)?{...a,[cs.SCALE.REDUCED]:Tl({viewCache:r,mainMajor:a[cs.SCALE.MAJOR]})}:a}function kl({fields:e,tickModel:t,dockService:n,environment:r}){const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===o||i,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function Nl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!bl({layoutService:e}))return;const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{type:"linear",invert:"vertical"===o||i,min:t.query.getMin,max:t.query.getMax}}function Il({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{layoutService:o,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[cs.SCALE.MINOR.PRIMARY]:kl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.SECONDARY]:kl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_PRIMARY]:Nl({layoutService:o,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_SECONDARY]:Nl({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var Ll={AXIS:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"SMALL"},VERTICAL:{width:"SMALL",height:"XSMALL"}},MINOR:"XSMALL"},AXIS_TITLE:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"MEDIUM"},VERTICAL:{width:"MEDIUM",height:"XSMALL"}},MINOR:"SMALL"},GRID_LINE:"XSMALL",VALUE_LABEL:"XSMALL",LABEL_SPACE:"XSMALL",OUT_OF_BOUNDS_MARKER:"XSMALL",REFERENCE_LINE:"SPARK"};const Pl=["all","labels"];function Dl({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:i,themeService:o,styleModel:a,animationsModel:s}=e,l=n.getLayoutValue("measureAxes");if(!l||!l.length)return[];const c=o.getStyles(),u=a.query.axis.label.getStyle(),{measureAxes:d}=i.meta;return d.filter((e=>{const t=e.isPrimary?0:1;return Pl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?cs.COMPONENT.AXIS.MINOR.PRIMARY:cs.COMPONENT.AXIS.MINOR.SECONDARY,renderer:ls(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS.MINOR},settings:{labels:{show:!0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{stroke:c.axis.line.major.color},ticks:{stroke:c.axis.line.major.color},minorTicks:{stroke:c.axis.line.minor.color}},animations:{enabled:s.enabled,trackBy:Ka.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var ql={INACTIVE:.5},$l={LOWER:3,UPPER:13};const zl=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return Ce.getAdjustedMaxGlyphCount(t,r,0,"qText")};function _l({models:e,environment:t,flags:n}){const{layoutService:r,dockService:i,styleModel:o,themeService:a,animationsModel:s}=e,l="rtl"===t.options.direction,c=r.getLayoutValue("dimensionAxis"),u=o.query.axis.label.getStyle(),d=zl({layoutService:r}),{orientation:m}=i.meta.major,p="horizontal"===m,f=p?c.label:"auto",h=a.getStyles(),{auto:g,spacing:y}=r.getLayoutValue("gridLine",{});return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR,renderer:ls(n),scale:cs.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[m.toUpperCase()]},settings:{labels:{mode:c.label,tiltAngle:l?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===f?void 0:i.meta.minor.size/4,maxGlyphCount:d,tiltThreshold:d>$l.LOWER&&d<$l.UPPER?1:void 0,fontFamily:u.fontFamily,fontSize:u.fontSize,fill:u.fill},line:{show:!g&&0===y,stroke:h.axis.line.major.color},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:ql.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Ka.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isHorizontal:p})}}}function jl({models:e,flags:t}){const{dockService:n,styleModel:r,themeService:i,layoutService:o,animationsModel:a}=e,{orientation:s}=n.meta.major,l=r.query.axis.label.getStyle(),c=i.getStyles(),{auto:u,spacing:d}=o.getLayoutValue("gridLine",{});return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:ls(t),scale:cs.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[s.toUpperCase()]},settings:{labels:{align:0,offset:4,fontFamily:l.fontFamily,fontSize:l.fontSize,fill:l.fill},line:{show:!u&&0===d,stroke:c.axis.line.major.color}},animations:{enabled:a.enabled,trackBy:Ka.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isContinuous:!0})}}}function Bl({models:e,environment:t,flags:n}){const{layoutService:r}=e,i=r.getLayoutValue("dimensionAxis");if(!i)return[];const{show:o}=i;return"none"===o||"title"===o?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:i,layoutService:o,animationsModel:a}=e,s="rtl"===t.options.direction,{orientation:l}=n.meta.major,c="bottom"===n.meta.major.dock?0:1,u=r.getStyles(),d=i.query.axis.label.getStyle(),m=s?1:0,{auto:p,spacing:f}=o.getLayoutValue("gridLine",{}),h={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[l]},preferredSize:()=>({size:2*parseFloat(d.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:s?"end":"start",label:{align:c,justify:m},guideLine:{major:{justify:m},minor:{align:c}},line:{show:!1}},style:{label:{fontFamily:d.fontFamily,fontSize:d.fontSize,fill:d.fill},majorGuideLine:{stroke:u.axis.line.major.color},minorGuideLine:{stroke:u.axis.line.minor.color}},animations:{enabled:a.enabled,trackBy:Ka.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ka.axes.compensateForLayoutChanges({isTime:!0})}};return[le(!0,{},h,{key:cs.COMPONENT.AXIS.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!p&&0===f}},style:{majorGuideLine:{stroke:u.axis.line.minor.color},minorGuideLine:{stroke:u.axis.line.major.color},line:{stroke:u.axis.line.major.color}}}),le(!0,{},h,{key:cs.COMPONENT.AXIS.TIME_OUTER,scale:cs.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[jl({models:e,flags:n})]:[_l({models:e,environment:t,flags:n})]}const Fl=({layoutService:e,axis:t})=>e.meta.isBarSeriesGrouped?({scale:e,datum:t})=>e([t.value,t.typeIndex.value])+e.bandwidth()/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:n})=>e([n.value,t])+e.bandwidth()/2:null,Hl=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:i})=>e([i.value,n&&"horizontal"===r?t.meta.barSeriesCount-1:0])+e.bandwidth()*t.meta.barSeriesCount/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:t})=>e([t.value,n&&"horizontal"===r?1:0])+e.bandwidth():null;function Vl({layoutService:e,active:t={},inactive:n={}}){return{consume:[{context:"selection",data:["selectionDimension","end","color","major"],style:{active:{strokeWidth:e.meta.isContinuous?0:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1},...t},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:ql.INACTIVE},...n}}}]}}var Ul={MAX:"max",MIN:"min"};function Wl(e,t){return function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r}(e,t)||function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r}(e,t)}const Yl=(e,t)=>`${e}-${t.id}`,Gl=4,Xl=12,Kl=4;function Jl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Kl}px`;const o={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!o.size){const n=e.component(r),s=t.resources.scale(cs.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Gl,Math.min(Xl,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const Zl=({series:e,isPrimary:t,seriesModel:n})=>e?"qMeasureInfo/0"===e.ref:t?n.meta.primarySeries.some((e=>"qMeasureInfo/0"===e.ref)):n.meta.secondarySeries.some((e=>"qMeasureInfo/0"===e.ref)),{isDark:Ql}=Rt;const ec=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:i,seriesModel:o,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,animationsModel:u}=t,d=a.getColor(),{fill:m,marker:p}=n.options,{isContinuous:f}=i.meta,h="rtl"===r.options.direction,{orientation:g}=s.meta.major,y="horizontal"===g,v=(n.isPrimary?l:c).query.getExtrema(),b=({end:e})=>{const{value:t}=e;return Wl(t,v)},x=Yl(cs.COMPONENT.MARKER,n);return{type:"point",key:x,data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{[y?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:i,seriesModel:o,rtl:h,orientation:g}),ref:f?"major":void 0},[y?"y":"x"]:{scale:n.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},fill:m||"bar"===p?d:"none",opacity:e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)||b(e.datum)?0:1},stroke:e=>{const t=d(e);return m?Ql(t)?function(e){return Ze(e).brighter(.5).toString()}(t):function(e){return Ze(e).darker().toString()}(t):t},size:Jl({chart:e,layoutService:i,dockService:s,markerKey:x,markerType:p}),shape:()=>(({marker:e,horizontal:t,rtl:n})=>{let r;return"triangle"!==e||t||(r=n?"left":"right"),"bar"===e&&(r=t?"horizontal":"vertical"),r?{type:e,direction:r}:{type:e}})({marker:p,horizontal:y,rtl:h})},brush:Vl({layoutService:i,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||b(e.data)?0:ql.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:Zl({series:n}),trackBy:Ka.markers.trackBy,compensateForLayoutChanges:Ka.markers.compensateForLayoutChanges}}};function tc({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(cs.SCALE.MAJOR),c=s(cs.SCALE.COLOR),u=t&&i?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const i="NaN"===n[e].value||Number.isNaN(n[e].value),o=u[r+1],a=o&&"NaN"!==o[e].value&&!Number.isNaN(o[e].value);return i?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const i=d[t],o=i.color&&i.color.value,a=n?o||r:c(o)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===i[e].value||Number.isNaN(i[e].value))v[t-1].virtual||v.push({virtual:!0});else{const n=d[t-1];n&&"NaN"!==n[e].value&&!Number.isNaN(n[e].value)?v.push({color:a,offset:s?0:Math.max(0,parseFloat((u-(u-y[t-1])/2).toFixed(5)))}):v.push({color:a,offset:u});const r=d[t+1];r&&"NaN"!==r[e].value&&!Number.isNaN(r[e].value)?v.push({color:a,offset:l?1:Math.max(0,parseFloat((u+(y[t+1]-u)/2).toFixed(5)))}):v.push({color:a,offset:u})}}const b=v.reduce(((e,t,n)=>{if(t.virtual){const t=v[n-1],r=v[n+1],i=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:i},{color:r.color,offset:i})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function nc({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:i,dockService:o}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=i.getSettingsForMeasure(n),d="horizontal"===o.meta.major.orientation;if(!l||"constant"===c)return i.getColor();if("measure"===l&&"categorical"===c)return i.getColor();const m=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=m&&m.on)return"byExpression"===m.mode?tc({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):i.getColor();const p=r.getLayoutValue("color",{}),f=!p.auto&&"byExpression"===p.mode,h=!!p.colorExpression;if(f&&!h)return u;const g=!p.auto&&"byMeasure"===p.mode&&p.byMeasureDef&&void 0!==p.byMeasureDef.activeMeasureIndex;return s||!g?tc({isHorizontal:d,isColor:"color"===c,fallback:u,rtl:a}):"continuous"===c?function({isHorizontal:e,rtl:t}){return function(n){const{datum:{points:r},resources:{scale:i}}=n,o=i(cs.SCALE.COLOR),a=r.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e))),offset:Math.min(1,Math.max(0,(e-s)/u))})));return{type:"gradient",x1:!e&&t?1:0,x2:e||t?0:1,y1:e?1:0,y2:0,stops:d}}}({isHorizontal:d,rtl:a}):function({isHorizontal:e,isArea:t,fallback:n,rtl:r}){return function(i){const{datum:{points:o},resources:{scale:a}}=i,s=a(cs.SCALE.COLOR),l=o.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),c=Math.min(...l),u=Math.max(...l),d=t?Math.min(0,c):c,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const i=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(i-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const rc=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:i,dockService:o,styleModel:a,animationsModel:s}=e,l="rtl"===t.options.direction,{orientation:c}=o.meta.major,u=Hl({layoutService:r,seriesModel:i,rtl:l,orientation:c});return{key:Yl(cs.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:cs.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:nc({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:o.meta.major.orientation},brush:Vl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:ql.INACTIVE},inactive:{opacity:ql.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!Zl({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}};var ic={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}},LINE:{CURVE:{LINEAR:"linear",MONOTONE:"monotone",STEP:"step"},WIDTH:{FULL:{DEFAULT:2,ACTIVE:2},LESS:{DEFAULT:1,ACTIVE:1}},TYPE:{SOLID:void 0,DASHED:"5, 5"}},POINT:{SIZE:{DEFAULT:6,ACTIVE:4}}};function oc({series:e,layoutService:t}){const{showAsConnections:n}=e.options,r=function({layoutService:e}){const{isDiscrete:t}=e.meta;return({item:e})=>{if(e.dummy)return t;const{value:n}=e.end;return"NaN"===n||Number.isNaN(n)}}({layoutService:t}),i=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),o=n?(e,t)=>e!==t.length-1&&t.slice(e+1,t.length).some((e=>!r({item:e}))):(e,t)=>e!==t.length-1&&!r({item:t[e+1]});return({index:e,items:t})=>({before:i(e,t),after:o(e,t)})}const ac=3,sc=20;function lc({models:e,series:t,environment:n}){const{layoutService:r,colorService:i,seriesModel:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u,animationsModel:d}=e,m=r.getLayoutValue("dataPoint.show",!1),{orientation:p}=a.meta.major,f="horizontal"===p,h="SPARK"===a.meta.chart.mode,g=i.getColor(),{POINT:y}=ic,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=oc({series:t,layoutService:e});return({item:e,items:t})=>{n.key!==t&&(n.key=t,n.map=function({items:e}){const t=e.reduce(((e,t)=>{const{value:n}=t.line;return e[n]||(e[n]={items:[],keys:[]}),e[n].items.push(t),e[n].keys.push(`${t.major.value}-${t.line.value}`),e}),{});return t}({items:t}));const{value:i}=e.line,o=n.map[i],a=`${e.major.value}-${i}`,s=o.keys.indexOf(a),{before:l,after:c}=r({index:s,items:o.items});return!l&&!c}}({series:t,layoutService:r}),b="rtl"===n.options.direction,x=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:S}=r.meta,E=({end:e})=>{const{value:t}=e;return Wl(t,x)};return{type:"point",key:Yl(cs.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:f?y.SIZE.DEFAULT/2:0}}),settings:{[f?"y":"x"]:{scale:t.scale,ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?e.scale.min():e.datum.end.value;return function(e){return Math.min(Math.max(0,e),1)}(e.scale(n))}},[f?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:r,seriesModel:o,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:ac,maxPx:sc},size:e=>{const{value:t}=e.datum.line;return`${s.query.point.getSize(t)}px`},fill:g,opacity:({datum:e,data:t})=>{var n;return null!==(n=e.null)&&void 0!==n&&n.value||E(e)?0:h?v({item:e,items:t.items})?1:0:m||v({item:e,items:t.items})?1:0}},brush:Vl({layoutService:r,active:{r:e=>e.r+ic.POINT.SIZE.ACTIVE/2,strokeWidth:1.5,stroke:"#FFFFFF",opacity:e=>{var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data))return 0;if(!S||m)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const i=[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return i?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.points.compensateForLayoutChanges}}}const cc=(e,{dataset:t})=>{const{value:n,label:r,source:i}=e.end,o=t(i.key).field(i.field);return ge.shouldUseFormat(o.raw())?o.formatter()(n):r};function uc({chart:e,models:t,environment:n,flags:r,series:i,lineSeries:o}){const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u,animationsModel:d}=t,{id:m}=i,p="rtl"===n.options.direction,f=a.getLayoutValue("dataPoint");if(!f)return!1;if(!f.show||!f.showLineLabels)return!1;const h=(i.isPrimary?c:u).query.getExtrema(),g=l.query.point.label.getStyle();return{type:"point-label",key:`${cs.COMPONENT.POINT_LABEL}-${m}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,connect:i.options.showAsConnections,label:t=>cc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${cs.COMPONENT.POINT}-${m}`,allPoints:o.map((e=>`${cs.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Wl(e.value,h))(e.data),labelSpace:{use:()=>{const t=e.component(cs.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:g.fontFamily,fontSize:g.fontSize,fill:g.fill},animations:{enabled:d.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}}const dc=({chart:e,models:t,environment:n,flags:r,series:i,markerSeries:o})=>{const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u,animationsModel:d}=t,{id:m}=i,p="rtl"===n.options.direction,f=(i.isPrimary?c:u).query.getExtrema(),h=l.query.marker.label.getStyle(),g=a.getLayoutValue("dataPoint");return!(!r.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL")||null==g||!g.showMarkerLabels)&&{type:"point-label",key:`${cs.COMPONENT.MARKER_LABEL}-${m}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,label:t=>cc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${cs.COMPONENT.MARKER}-${m}`,allPoints:o.map((e=>`${cs.COMPONENT.MARKER}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Wl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(cs.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10},marker:!0},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,fill:h.fill},animations:{enabled:d.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}},mc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`),i=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`),o=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`);return r?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`:i?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`:o&&(n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`),n},pc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function fc({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:i,dockService:o,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=i.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===o.meta.major.orientation,{show:d}=i.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=o.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const m=c?"left":"right";return{type:"label-space",key:cs.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:Ll.LABEL_SPACE,dock:mc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${cs.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],i=a.query.getExtrema(),o=e.scale(cs.SCALE.MINOR.PRIMARY)(i.implicit.line.max),l=u||c?o:1-o,d=r.filter((e=>e.isPrimary)).length>0,m=s.query.getExtrema(),p=e.scale(cs.SCALE.MINOR.SECONDARY)(m.implicit.line.max),f=u||c?p:1-p,h=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||h&&f<n?10:0}}}const hc={min:"Min",max:"Max"};function gc(e,t,n){const{hasExplicitMax:r}=n.meta,{max:i}=n.explicit;return!!r&&Math.max(e,t)>i&&i<=Math.min(e,t)}function yc(e,t,n){const{hasExplicitMin:r}=n.meta,{min:i}=n.explicit;return!!r&&Math.min(e,t)<i&&i>=Math.max(e,t)}function vc(e,t,n){return gc(e,t,n)||yc(e,t,n)}function bc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function xc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function Sc(e,t){return bc(e,t)||xc(e,t)}function Ec({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${hc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Ul.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Ul.MAX?!bc(r,e):!xc(r,e)}({extrema:e,type:t}))}var Mc=Object.freeze({__proto__:null,isMaxOutOfBounds:bc,isMinOutOfBounds:xc,isOutOfBounds:Sc,isSegmentMaxOutOfBounds:gc,isSegmentMinOutOfBounds:yc,isSegmentOutOfBounds:vc,shouldShowOob:Ec});const Cc={min:"Min",max:"Max"},Oc=({chart:e,models:t,markerSeries:n,lineSeries:r,barSeries:i,environment:o,type:a})=>{const{dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,primaryTickModel:u,secondaryTickModel:d,layoutService:m,seriesModel:p,themeService:f,fieldModel:h,animationsModel:g}=t,y="rtl"===o.options.direction,{dock:v,opposite:b,orientation:x}=s.meta.major,S=l.query.getExtrema(),E=c.query.getExtrema(),M=a===Ul.MAX,{isBarSeriesGrouped:C}=m.meta,O=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Ul.MAX?n:r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),l=e.component(cs.COMPONENT.LABEL_SPACE),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),d=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return o?i=`@${cs.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:s?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c||u||d?l&&t===Ul.MAX?i=`@${cs.COMPONENT.LABEL_SPACE}`:c?i=`@${cs.COMPONENT.BAR_OOB}-${t}`:u?i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:d&&(i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`):l&&t===Ul.MAX&&(i=`@${cs.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:b,dock:v}),T=Hl({layoutService:m,seriesModel:p,rtl:y,orientation:x}),w=r.concat(n);if(!w.length)return!1;const A=M?S.implicit.bar.max:S.implicit.bar.min,R=Number(A.toFixed(13));if(!C&&i.length&&Mc[`is${Cc[a]}OutOfBounds`](R,S))return!1;if(!S.meta.hasExplicit&&!E.meta.hasExplicit)return!1;const k=M?"max":"min",N=Math[k](Number(S.implicit.line[k].toFixed(13)),Number(S.implicit.marker[k].toFixed(13))),I=Math[k](Number(E.implicit.line[k].toFixed(13)),Number(E.implicit.marker[k].toFixed(13))),L=w.filter((e=>e.isPrimary)),P=w.filter((e=>!e.isPrimary)),D=L.length>0,q=P.length>0,{major:$,majorNumeric:z}=h.main,_=e=>"NaN"!==e.qNum?e.qNum:0,j=m.meta.isContinuous?z:$;return{type:"data-out-of-bounds-marker",key:`${cs.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:O,minimumLayoutMode:Ll.OUT_OF_BOUNDS_MARKER},data:{extract:w.map((({ref:e,typeIndex:t,options:n})=>({field:$,value:m.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:j},end:{field:e,value:n.showAsZeros?_:void 0},typeIndex:t,null:{field:e,value:e=>"NaN"===e.qNum}}})))},settings:{type:a,primaryExtremum:M?()=>u.query.getMax():()=>u.query.getMin(),secondaryExtremum:M?()=>d.query.getMax():()=>d.query.getMin(),primarySeries:L,secondarySeries:P,orientation:x,rtl:y,major:{scale:cs.SCALE.MAJOR,fn:T},markerOffset:pc({dockPosition:O,orientation:x,rtl:y})},brush:Vl({layoutService:m}),show:()=>{if(M){if(D&&N>u.query.getMax())return!0;if(q&&I>d.query.getMax())return!0}if(!M){if(D&&N<u.query.getMin())return!0;if(q&&I<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color},animations:{enabled:g.enabled,compensateForLayoutChanges:Ka.lineOobs.compensateForLayoutChanges}}},Tc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function wc({chart:e,models:t,viewState:n,viewCache:r,axis:i}){const o=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${cs.COMPONENT.BAR}-${i}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return o.get([e,t])||o.empty()&&!1})()||(()=>{const e=Tc[a.meta.chart.mode];return 0===Math.abs(r.get("continuousMax")-r.get("continuousMin"))&&e})()||(()=>{const{min:e,max:t}=n.get("zoom"),i=Math.abs(r.get("continuousMax")-r.get("continuousMin")),s=Math.abs(t-e),l=Tc[a.meta.chart.mode],c=function(e,t,n){return e*(1-n)+t*n}(2,l,1-Math.min(s/i/.2,1));return o.set([e,t],Math.max(2,Math.min(l,c)))})()}const Ac=({isContinuous:e,isBarSeriesGrouped:t,styleModel:n,discreteModel:r,isBarSeriesStackedInBothAxis:i})=>e?1:n.query.bar.getHasStyling()?n.query.bar.getHasStrokeWidth()?function(){const e=n.query.bar.getStrokeWidth()/r.query.getItemSize(),t=n.query.bar.getWidthFn()(),i=t+e;return i>1?t-(i-1):t}:n.query.bar.getWidthFn():t||i?.9:.7;function Rc(e){return Math.min(Math.max(0,e),1)}const kc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u,primaryExtremumModel:d,secondaryExtremumModel:m,animationsModel:p}=t,{isContinuous:f,isBarSeriesStacked:h,isBarSeriesGrouped:g,isBarSeriesStackedInBothAxis:y}=o.meta,v=e=>e.datum.start?e.datum.start.value:e.scale.min(),b=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,x=i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY;if(!(i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const S=h?{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Rc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return Rc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Rc(e.scale(t))}},end:{ref:"end",fn:e=>{var t;const n=!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)?v(e):e.datum.end.value;return Rc(e.scale(n))}}},E=(i?d:m).query.getExtrema(),M=h?({start:e,end:t})=>vc(e.value,t.value,E):({end:e})=>Sc(e.value,E);return{type:"box",key:`${cs.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?i?cs.COLLECTION.STACKED_PRIMARY:cs.COLLECTION.STACKED_SECONDARY:i?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Fl({layoutService:o,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:Ac({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?wc({chart:e,models:t,viewState:n,viewCache:r,axis:b}):void 0,fill:s.getColor(),strokeWidth:c.query.bar.getStrokeWidth(),stroke:c.query.bar.getStrokeColor(),minHeightPx:.3,opacity:e=>{var t;return!0===(null===(t=e.datum)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)||M(e.datum)?0:1}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:Vl({layoutService:o,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||M(e.data)?0:ql.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:Zl({isPrimary:i,seriesModel:l}),trackBy:Ka.bars.trackBy,compensateForLayoutChanges:Ka.bars.compensateForLayoutChanges}}},Nc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:m,isBarSeriesGrouped:p,isBarSeriesStackedInBothAxis:f}=o.meta,h=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${cs.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:cs.SCALE.MAJOR,fn:Fl({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Ac({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?wc({chart:e,models:t,viewState:n,viewCache:r,axis:h}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function Ic(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,i=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=i.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>Rt.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):i.fill;return function({simplifiedPlacement:e,fill:t,isHorizontal:n}){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:t,overflow:e.overflow,background:e.background,padding:r}}({simplifiedPlacement:e,fill:t,isHorizontal:n})})),label:t.label}}const Lc="vertical",Pc="horizontal";function Dc(e,t,n,r){const i=function(e,t){return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}(e,r);let o="up";return t===Lc&&i<0?o="down":t===Pc&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const qc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!n||!r},$c=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!!n&&(!!r||!1!==e)};function zc(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}const _c=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=i,u="rtl"===t.options.direction,d=s.getStyles(),m=a.query.bar.label.getStyle(),p=e.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),f=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!qc(p,c))return!1;let h;!c.isBarSeriesStacked&&(h=c.isBarSeriesStacked?1:0);const g={label:e=>cc(e.data,e),simplifiedPlacements:zc(h,0===h?1:0,c.isBarSeriesStacked?.5:1,c.isContinuous),style:d.label.value},y=[Ic(e,g)],v={component:`${cs.COMPONENT.BAR}-${f}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Dc(t.data.end.value,e.dockService.meta.minor.orientation,u,0),labels:y,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily}}},b=[v];return{type:"labels",key:`${cs.COMPONENT.BAR_LABEL}-${f}`,renderer:ls(n),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:b},animations:{enabled:l.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}};function jc(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#cce6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function Bc({chart:e,models:t,environment:n,flags:r,isPrimary:i}){const{meta:o}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),u=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!$c(c,o))return!1;const d=l.useContrastColor,m=e.formatter(i?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY)||(e=>e),p=e=>m(e),f={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":p(e.data.sumOfPositives.value),simplifiedPlacements:jc("outside",true,d,o.isContinuous),style:s.label.value},h={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":p(e.data.sumOfNegatives.value),simplifiedPlacements:jc("opposite",true,d,o.isContinuous),style:s.label.value},g=[Ic(t,f),Ic(t,h)];return{type:"labels",key:`${cs.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:[{component:`${cs.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Dc(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:g,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]},animations:{enabled:t.animationsModel.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}}var Fc=Object.freeze({__proto__:null,hasMaxHat:function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r>0},hasMinHat:function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r<0}});const Hc={min:"Min",max:"Max"},Vc=1e-12;function Uc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,discreteModel:d}=t,{isBarSeriesStacked:m,isContinuous:p,isBarSeriesGrouped:f,isBarSeriesStackedInBothAxis:h}=a.meta,g=m?Nc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Ul.MAX,b=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${Hc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!Fc[`has${Hc[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Hc[t]}`]&&r(e.explicit[t])}(y,n,v))return!1;let x="end";m&&(x=v?"sumOfPositives":"sumOfNegatives");const S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),i})({chart:e,type:n,isPrimary:o,dock:v?s.meta.minor.end:s.meta.minor.start}),M={type:"box-sliced-hat",key:`${cs.COMPONENT.SLICED_HAT}-${n}-${b}`,layout:{dock:E},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,hat:le({},g.settings.box,{fill:m?"#999":g.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=S(),n=function(e){if("number"!=typeof e)return e;const t=Math.round(e);return Math.abs(e-t)<Vc?t:e}(e.datum[x].value);return v?n>t:n<t},width:Ac({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Vl({layoutService:a})};return M}const Wc={min:"Min",max:"Max"},Yc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Gc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u,animationsModel:d}=t,{end:m,start:p}=s.meta.minor,{isBarSeriesStacked:f}=a.meta,h=f?Nc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),g=o?l.query.getExtrema():c.query.getExtrema(),y=n===Ul.MAX?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!h)return!1;if(!Mc[`is${Wc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Ul.MAX?n:r;const a=e.component(cs.COMPONENT.LABEL_SPACE),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),l=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return s?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:l?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c&&u&&!i?o=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:a&&t===Ul.MAX&&(o=`@${cs.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:m,start:p,isPrimary:o});let S="end";f&&(S=n===Ul.MAX?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${cs.COMPONENT.BAR_OOB}-${n}-${b}`,layout:{dock:x},data:h.data,settings:{orientation:h.settings.orientation,major:h.settings.major,minor:h.settings.minor,dockValue:Me.getDockValue(n===Ul.MAX?m:p),oob:le({},h.settings.box,{fill:u.getStyles().outOfRange.color,alignment:1,opacity:1,show:function(e){var t;if(!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value))return!1;const r=f&&0===e.datum[S].value,i=Mc[`is${Wc[n]}OutOfBounds`](e.datum[S].value,g,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Yc[n]].value;return 0!==i&&Mc[`is${Wc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:S,extrema:g}))&&i;return o}})},brush:Vl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Ka.barOobs.compensateForLayoutChanges}};return E}function Xc(e){return Math.min(Math.max(0,e),1)}const Kc=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:i,styleModel:o,seriesModel:a,layoutService:s}=t;if(!(r?a.meta.primaryBarSeriesCount:a.meta.secondaryBarSeriesCount))return!1;const{isBarSeriesStacked:l,isContinuous:c,isBarSeriesGrouped:u,isBarSeriesStackedInBothAxis:d}=s.meta,m=e.scale(r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY),p=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Ul.MAX;if(!Ec({extrema:f,type:n}))return!1;const g=e=>e.datum.start?e.datum.start.value:e.scale.min(),y=(e,t="end")=>e.datum[t]?e.datum[t].value:g(e),v={type:"box",key:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY:r?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Fl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Xc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Xc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Xc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Xc(e.scale(t))}}},box:{width:Ac({isContinuous:c,isBarSeriesGrouped:u,styleModel:o,discreteModel:i,isBarSeriesStackedInBothAxis:d}),stroke:"transparent",fill:"none",opacity:0,show:e=>{let t="end";l&&(t=h?"sumOfPositives":"sumOfNegatives");const n=e.datum[t]?e.datum[t].value:m.max();return h?n>m.max():n<m.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return v};function Jc(e,t,n,r,i){const o=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&o.push({position:"inside",onBackground:!1,justify:r||i?0:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),o}const Zc=({chart:e,models:t,type:n,environment:r,flags:i,isPrimary:o})=>{const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,styleModel:u,seriesModel:d,themeService:m,animationsModel:p}=t,f=m.getStyles(),h=u.query.bar.label.getStyle(),{meta:g}=a,{isBarSeriesStacked:y}=g,v=e.formatter(o?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint.showBarLabels",!1),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!qc(b,g)||y&&!$c(b,g))return!1;const E=o?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===Ul.MAX?E.implicit.bar.max:E.implicit.bar.min;if(!(n===Ul.MAX?bc(M,E):xc(M,E)))return!1;let C=e=>cc(e.data,e);g.isBarSeriesStacked&&(C=n===Ul.MAX?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(bc(e.data.sumOfPositives.value,E)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value;return v?v(t):t}return""}:function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(xc(e.data.sumOfNegatives.value,E)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return v?v(t):t}return""});const O={label:C,simplifiedPlacements:Jc("outside",true,g.isContinuous,x,S),style:f.label.value},T={label:C,simplifiedPlacements:Jc("opposite",true,g.isContinuous,x,S),style:f.label.value},w=[Ic(t,O),Ic(t,T)],A=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",k=[{component:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${A}`,selector:"rect",strategy:{type:"bar",settings:{direction:R,labels:w,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily}}}];return{key:`${cs.COMPONENT.BAR_OOB_LABEL}-${n}-${A}`,type:"labels",renderer:ls(i),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:k},animations:{enabled:p.enabled,trackBy:Ka.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ka.labels.compensateForLayoutChanges}}},Qc=({chart:e,models:t,viewState:n,viewCache:r})=>[kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],eu=({chart:e,models:t,viewState:n,viewCache:r})=>[Nc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Nc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],tu=({chart:e,models:t,environment:n,flags:r})=>{const{isBarSeriesStacked:i}=t.layoutService.meta;if(i){return[Bc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),Bc({chart:e,models:t,environment:n,flags:r,isPrimary:!1})]}return[_c({models:t,environment:n,flags:r,isPrimary:!0}),_c({models:t,environment:n,flags:r,isPrimary:!1})]},nu=({chart:e,models:t,viewCache:n,viewState:r})=>[Uc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Uc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Uc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Uc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],ru=({chart:e,models:t,viewCache:n,viewState:r})=>[Gc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Gc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Gc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Gc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],iu=({chart:e,models:t})=>[Kc({chart:e,models:t,type:"max",isPrimary:!0}),Kc({chart:e,models:t,type:"min",isPrimary:!0}),Kc({chart:e,models:t,type:"max",isPrimary:!1}),Kc({chart:e,models:t,type:"min",isPrimary:!1})],ou=({chart:e,models:t,environment:n,flags:r})=>[Zc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Zc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Zc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Zc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],au=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(us.TYPE.BAR).slice(-1),l=a.query.series(us.TYPE.LINE),c=a.query.series(us.TYPE.MARKER);return[...Qc({chart:e,models:r,viewState:i,viewCache:o}),...eu({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>rc({models:r,environment:t,series:e}))),...l.map((e=>lc({models:r,series:e,environment:t}))),...c.map((n=>ec({chart:e,models:r,series:n,environment:t}))),...l.map((i=>uc({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...c.map((i=>dc({chart:e,models:r,environment:t,flags:n,series:i,markerSeries:c}))),...tu({chart:e,models:r,environment:t,flags:n}),...nu({chart:e,models:r,viewCache:o,viewState:i}),...ru({chart:e,models:r,viewCache:o,viewState:i}),...iu({chart:e,models:r}),...ou({chart:e,models:r,environment:t,flags:n}),Oc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Oc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),fc({chart:e,models:r,environment:t,lineSeries:l})]},su={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function lu({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:i,animationsModel:o}=e,{auto:a,spacing:s,axis:l}=r.getLayoutValue("gridLine",{});if(!a&&s===su.NONE)return!1;const c=i.getStyles(),u=n.meta.primarySeries.length>0;return{key:cs.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===su.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===su.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,animations:{enabled:o.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}}function cu({models:e}){var t,n;const{primaryExtremumModel:r,primaryTickModel:i,themeService:o,dockService:a,seriesModel:s,secondaryExtremumModel:l,secondaryTickModel:c,layoutService:u,animationsModel:d}=e,m=0===(null!==(t=null===(n=u.getLayoutValue("gridLine",{}))||void 0===n?void 0:n.axis)&&void 0!==t?t:0),p=r.query.getExtrema(),f=l.query.getExtrema();if(!p.meta.includesZero&&!f.meta.includesZero)return!1;return{key:cs.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:Ll.GRID_LINE},show:()=>(()=>{const e=s.meta.primarySeries.length>0,t=s.meta.secondarySeries.length>0;return m&&e&&i.query.getMin()<=0&&i.query.getMax()>=0||!m&&t&&c.query.getMin()<=0&&c.query.getMax()>=0})(),lines:{["horizontal"===a.meta.minor.orientation?"x":"y"]:[{value:0,scale:m?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,line:{stroke:o.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}}}function uu({models:e}){const{layoutService:t,themeService:n,animationsModel:r}=e,{isContinuous:i,isTime:o}=t.meta;if(!i)return[];const a=n.getStyles(),s={type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}};return o?[le(!0,{},s,{key:"time-inner-grid",x:{scale:cs.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),le(!0,{},s,{key:"time-outer-grid",x:{scale:cs.SCALE.MAJOR}})]:[le(!0,{},s,{key:"continuous-grid",x:{scale:cs.SCALE.MAJOR},minorTicks:{show:!0}})]}function du({models:e}){return[lu({models:e}),cu({models:e}),...uu({models:e})]}function mu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),m=i.getLayoutValue("dimensionAxis");if(!m)return!1;const{show:p}=m;if("all"!==p&&"title"!==p)return!1;const{orientation:f}=o.meta.major,h=u.query.axis.title.getStyle();return{type:"data-title",key:cs.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:Ll.AXIS_TITLE.MAJOR[f.toUpperCase()]},settings:{hyperCube:i.getHyperCube(),hyperCubeDef:d&&d.qHyperCubeDef,isDimension:!0,disabled:()=>!n.interact.enabled(),model:l,app:s,translator:t.translator,rtl:"rtl"===t.options.direction,selections:c.getSelectionsObject(),isEnabled:r.isEnabled},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,color:h.color}}}const pu=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function fu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=s.query.getProperties(),p=i.getLayoutValue("measureAxes");if(!p||!p.length)return[];const f=d.query.axis.title.getStyle(),{measureAxes:h}=a.meta;return h.filter((e=>e.isPrimary?"all"===p[0].show||"title"===p[0].show:"all"===p[1].show||"title"===p[1].show)).map((e=>{const s=i.getHyperCube(),{isPrimary:d}=e,p=a.query.seriesByAxis(d).length>1,h={type:"data-title",key:d?cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:pu(a,s.qMeasureInfo,d),onChangeToAlternative:({oldItem:e,newItem:t})=>{t.qDef.series=e.qDef.series;const n=e.qAttributeExpressions.findIndex((e=>"colorByExpression"===e.id));if(-1!==n){const r=e.qAttributeExpressions.splice(n,1)[0];t.qAttributeExpressions.unshift(r)}},disabled:()=>!n.interact.enabled(),model:c,app:l,translator:t.translator,rtl:"rtl"===t.options.direction,selections:u.getSelectionsObject(),skipAttributeExpressions:!0,isEnabled:r.isEnabled},style:{fontFamily:f.fontFamily,fontSize:f.fontSize,color:f.color}};return p&&(h.settings.padding="0",h.settings.minWidth="auto"),h}))}function hu({models:e,environment:t,actions:n,flags:r}){return[mu({models:e,environment:t,actions:n,flags:r}),...fu({models:e,environment:t,actions:n,flags:r})]}function gu({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:i,layoutService:o,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=o.meta,m="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=js({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>$s({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[qs({layoutService:e,discrete:n})]),p}({viewState:n,viewCache:r,discrete:i,continuousDataModel:s,layoutService:o,dockService:a,themeService:l,rtl:m,scrollbarOverride:{predicate:()=>u,value:Ds.OPTIONS.BAR.value},deviceType:t.deviceType})}function yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;return a.key=`${cs.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?cs.COLLECTION.REDUCED_STACKED_PRIMARY:cs.COLLECTION.REDUCED_STACKED_SECONDARY:i?cs.COLLECTION.REDUCED_PRIMARY:cs.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=cs.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function vu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(us.TYPE.LINE).map((r=>{const i=rc({models:t,environment:e,series:r});return i.key=Yl(cs.COMPONENT.MINI_CHART.LINE,r),i.data.collection=cs.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=cs.SCALE.REDUCED,i.settings.layers.line.strokeWidth=1,i.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",i.layout={dock:"@scrollbar"},i}))}function bu({models:e,environment:t}){return e.seriesModel.query.series(us.TYPE.MARKER).map((n=>{const r=ec({models:e,environment:t,series:n});return r.key=Yl(cs.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=cs.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=cs.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function xu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return bl(t)?[yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),yu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...vu({environment:i,models:t}),...bu({models:t,environment:i})]:[]}function Su({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:i}=t.meta,o=t.getLayoutValue("dimensionAxis");if(!o||"none"===o.show||"title"===o.show)return[!1];if(!r)return[!1];const a=Ll.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function Eu({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:i,colorService:o,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c,animationsModel:u}=t,d=l.qLocaleInfo,{options:m,theme:p}=n,f="rtl"===m.direction,h=c.query.series(us.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(us.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(us.TYPE.LINE),v=c.query.series(us.TYPE.MARKER),b=c.query.all(),x=b.some((e=>e.isPrimary)),S=b.some((e=>!e.isPrimary)),E=x&&S,M={resolveUIColor:o.getPaletteColor},C=u.enabled,O=x?as({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:cs.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:cs.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],T=S?as({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:cs.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:cs.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&ns({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),!!S&&ns({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),ns({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:cs.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:cs.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`:g.length?`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`:y.length?`${cs.COMPONENT.LINE}-${y[0].id}`:v.length?`${cs.COMPONENT.MARKER}-${v[0].id}`:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,minimumLayoutMode:Ll.REFERENCE_LINE,animationsEnabled:C}),...O,...T,...as({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dock:a.meta.major.opposite,scale:cs.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:cs.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function Mu({layoutService:e}){return!!bl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:cs.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function Cu(e){return(null==e?void 0:e.type)||us.TYPE.BAR}function Ou({models:e,environment:t}){const{layoutService:n,colorService:r,dockService:i,seriesModel:o,selectionService:a}=e,{hasLineSeries:s,isContinuous:l,hasMultipleMeasures:c,isGroupedByMeasure:u}=n.meta;if(!s)return!1;const{options:d}=t,m=n.getLayoutValue("color",{}),p=e=>e.filter((e=>Cu(e)===us.TYPE.LINE)).map((e=>({key:Yl(cs.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),f=!m.auto&&"byMeasure"===m.mode&&m.byMeasureDef&&void 0!==m.byMeasureDef.activeMeasureIndex,h=n.getHyperCubeValue("qMeasureInfo").map((e=>{var t;return null===(t=e.color)||void 0===t?void 0:t.on}));return{type:"brush-highlighter",key:"brush-highlighter",data:{collection:cs.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:p(o.meta.primarySeries),secondary:p(o.meta.secondarySeries)},selectionValues:{"qHyperCube/qDimensionInfo/0":l?e=>e.value:e=>e.major.value,"qHyperCube/qDimensionInfo/0:numeric":e=>e.major.value,"qHyperCube/qDimensionInfo/0/qAttrExprInfo/0":e=>e.end.value,"qHyperCube/qMeasureInfo/X":e=>e.end.value},colorSettings:e=>r.getSettingsForMeasure(e),colorByData:e=>!h[e]&&f,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:o.meta.barSeriesCount,orientation:i.meta.major.orientation,rtl:"rtl"===d.direction}}}function Tu({models:{fieldModel:e}}){return{[cs.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[cs.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var wu={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Au}=wu;function Ru({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Au}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:ku}=wu,Nu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=ku}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Ru({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Iu}=wu,{MAX_NUM_POINTS:Lu,DEFAULT_NUM_POINTS:Pu,DEFAULT_NUM_LINES:Du}=wu,{DEFAULT_NUM_POINTS:qu}=wu,$u=({layoutService:e,largeDataService:t})=>{if(!Ru({layoutService:e,largeDataService:t})){const{maxNumPoints:e=qu}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=Du,maxNumPoints:o=Pu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Nu({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Du||o>Pu)?Math.min(c,Math.ceil(Lu/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Iu}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},zu=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:$u({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:Nu({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function _u({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Ru({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>$u({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Nu({layoutService:t,largeDataService:n}),fetch:(i,o)=>zu({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function ju(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Bu({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function Fu(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function Hu(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=Fu(),o=Fu();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function Vu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Uu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Hu(e,t,n.qMatrix),i=Vu(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const Wu=2**.5,Yu=1/Wu,Gu=1e-6,Xu=Yu**44;function Ku(e){return e.qIsOtherCell}function Ju({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Ku)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(Ku)||t++})),t}(n)}const Zu={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Qu={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const ed="…";function td(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function nd(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*i,1===e.end&&(u-=d));const m={x:u+i,y:i,width:d-2*i,height:t.height-2*i},p=s(`${l[0]}${ed}`).width,f=Math.max(0,m.width-c.width),h=Math.max(0,m.height-c.height),g=o*f,y=a*h;return{show:m.width>=Math.min(p,c.width),text:l,dx:g,dy:y,rect:m,style:n.label,segment:{x:u+g,width:c.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=td(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:td(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function rd(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=td(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:td(i,n.minorGuideLine.strokeWidth),x2:o,y2:td(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function id(e){return e.filter((e=>e.show)).map((e=>le({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var od={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=td(1,t.line.strokeWidth);return{show:n.line.show,x1:td(0,t.line.strokeWidth),y1:r,x2:td(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=nd(n,this),this.state.minor=rd(r,this)},render(){return[...id([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>le({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...id(this.state.major.map((e=>e.guideLine))),...id(this.state.minor.map((e=>e.guideLine)))];var e}};function ad(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function sd(e){return e.qTags.indexOf("$qualified")>-1}function ld({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];ad(o,a)?(sd(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function cd({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(i=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const ud=16;function dd({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+ud}))),r.clamp(n),i.rangeAndWidth}}}const md=6;function pd({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=md,canFitHalfDayTicks:n=>n>=t*e.count()}}function fd({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=dd,queryFactory:s=pd}={attributesFactory:dd,queryFactory:pd}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function hd({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=fd,mapper:a=ld,resolver:s=cd}={metaFactory:fd,mapper:ld,resolver:cd}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:i}),m=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=m.resolve(t);return n.set(r,i),i}}}const gd=86400,yd=864e5;function vd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(yd*(e-Math.floor(e)))))}const bd=vd(0).getTime();function xd(e){return(e.getTime()-bd)/gd/1e3}const Sd=new Date,Ed=new Date;function Md(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>Md((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((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=(t,r)=>(Sd.setTime(+t),Ed.setTime(+r),e(Sd),e(Ed),Math.floor(n(Sd,Ed))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const Cd=1e3,Od=6e4,Td=36e5,wd=864e5,Ad=6048e5,Rd=Md((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Cd)}),((e,t)=>(t-e)/Cd),(e=>e.getUTCSeconds()));Rd.range;const kd=Md((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd)}),((e,t)=>{e.setTime(+e+t*Od)}),((e,t)=>(t-e)/Od),(e=>e.getMinutes()));kd.range;const Nd=Md((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Od)}),((e,t)=>(t-e)/Od),(e=>e.getUTCMinutes()));Nd.range;const Id=Md((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Cd-e.getMinutes()*Od)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getHours()));Id.range;const Ld=Md((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getUTCHours()));Ld.range;const Pd=Md((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Od)/wd),(e=>e.getDate()-1));Pd.range;const Dd=Md((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/wd),(e=>e.getUTCDate()-1));Dd.range;const qd=Md((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/wd),(e=>Math.floor(e/wd)));function $d(e){return Md((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Od)/Ad))}qd.range;const zd=$d(0),_d=$d(1),jd=$d(2),Bd=$d(3),Fd=$d(4),Hd=$d(5),Vd=$d(6);function Ud(e){return Md((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/Ad))}zd.range,_d.range,jd.range,Bd.range,Fd.range,Hd.range,Vd.range;const Wd=Ud(0),Yd=Ud(1),Gd=Ud(2),Xd=Ud(3),Kd=Ud(4),Jd=Ud(5),Zd=Ud(6);Wd.range,Yd.range,Gd.range,Xd.range,Kd.range,Jd.range,Zd.range;const Qd=Md((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Qd.range;const em=Md((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));em.range;const tm=Md((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));tm.every=e=>isFinite(e=Math.floor(e))&&e>0?Md((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,tm.range;const nm=Md((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));nm.every=e=>isFinite(e=Math.floor(e))&&e>0?Md((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,nm.range;const rm={second:1,minute:2,hour:3,day:4,month:5,year:6};function im({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),c=i.key({distance:n});let u;i.get(c,1)?u=i.get(c,1):(u=function(e,t,n,r,i,o){function a(e){return nm.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Rd.count(e,t),l=Nd.count(e,t),c=Ld.count(e,t),u=Dd.count(e,t),d=Wd.count(e,t),m=em.count(e,t),p=nm.count(e,t),f=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:p,interval:nm.every(1),formatter:r.year.formatter,offset:e=>nm.offset(e,-1),floor:nm.floor};if(s<=f)v.type=rm.second,v.desc="second",v.count=s,v.interval=Rd.every(1),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-1),v.floor=Rd.floor;else if(s/2<=f)v.type=rm.second,v.desc="every other second",v.count=s/2,v.interval=Rd.every(2),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-2),v.floor=Rd.floor;else if(s/5<=f)v.type=rm.second,v.desc="every 5 second",v.count=s/5,v.interval=Rd.every(5),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-5),v.floor=Rd.floor;else if(s/15<=f)v.type=rm.second,v.desc="every 15 second",v.count=s/15,v.interval=Rd.every(15),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-15),v.floor=Rd.floor;else if(s/30<=f)v.type=rm.second,v.desc="every 30 second",v.count=s/30,v.interval=Rd.every(30),v.formatter=r.second.formatter,v.offset=e=>Rd.offset(e,-30),v.floor=Rd.floor;else if(l<=h)v.type=rm.minute,v.desc="minute",v.count=l,v.interval=Nd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=Nd.floor;else if(l/2<=h)v.type=rm.minute,v.desc="every 2 minute",v.count=l/2,v.interval=Nd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-2),v.floor=Nd.floor;else if(l/5<=h)v.type=rm.minute,v.desc="every 5 minute",v.count=l/5,v.interval=Nd.every(5),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-5),v.floor=Nd.floor;else if(l/10<=h)v.type=rm.minute,v.desc="every 10 minute",v.count=l/10,v.interval=Nd.every(10),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-10),v.floor=Nd.floor;else if(l/15<=h)v.type=rm.minute,v.desc="every 15 minute",v.count=l/15,v.interval=Nd.every(15),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-15),v.floor=Nd.floor;else if(l/30<=h)v.type=rm.minute,v.desc="every 30 minute",v.count=l/30,v.interval=Nd.every(30),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-30),v.floor=Nd.floor;else if(c<=h)v.type=rm.hour,v.desc="hour",v.count=c,v.interval=Ld.every(1),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-1),v.floor=Ld.floor;else if(c/2<=h)v.type=rm.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Ld.every(2),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-2),v.floor=Ld.floor;else if(c/3<=h)v.type=rm.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Ld.every(3),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-3),v.floor=Ld.floor;else if(c/6<=h)v.type=rm.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Ld.every(6),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-6),v.floor=Ld.floor;else if(c/12<=h||i)v.type=rm.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Ld.every(12),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-12),v.floor=Ld.floor;else if(u<=g)v.type=rm.day,v.desc="day",v.count=u,v.interval=Dd.every(1),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-1),v.floor=Dd.floor;else if(u/2<=g)v.type=rm.day,v.desc="every 2 day",v.count=u/2,v.interval=Dd.every(2),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-2),v.floor=Dd.floor;else if(u/3<=g)v.type=rm.day,v.desc="every 3 day",v.count=u/3,v.interval=Dd.every(3),v.formatter=r.date.formatter,v.offset=e=>Dd.offset(e,-3),v.floor=Dd.floor;else if(d<=g)v.type=rm.day,v.desc="week",v.count=d,v.interval=Wd.every(1),v.formatter=r.date.formatter,v.offset=e=>Wd.offset(e,-1),v.floor=Dd.floor;else if(d/2<=g)v.type=rm.day,v.desc="every 2 week",v.count=d/2,v.interval=Wd.every(2),v.formatter=r.date.formatter,v.offset=e=>Wd.offset(e,-2),v.floor=Dd.floor;else if(m<=g)v.type=rm.month,v.desc="month",v.count=m,v.interval=em.every(1),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-1),v.floor=Dd.floor;else if(m/3<=g)v.type=rm.month,v.desc="quarter",v.count=m/3,v.interval=em.every(3),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-3),v.floor=Dd.floor;else if(m/6<=g)v.type=rm.month,v.desc="half year",v.count=m/6,v.interval=em.every(6),v.formatter=r.date.formatter,v.offset=e=>em.offset(e,-6),v.floor=Dd.floor;else if(p<=y)v.type=rm.year,v.desc="year",v.count=p,v.interval=nm.every(1),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-1),v.floor=nm.floor;else if(p/2<=y)v.type=rm.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-2),v.floor=nm.floor;else if(p/5<=y)v.type=rm.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-5),v.floor=nm.floor;else if(p/10<=y)v.type=rm.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>nm.offset(e,-10),v.floor=nm.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=rm.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>nm.offset(t,-e),v.floor=nm.floor}return v}(s,l,n,t.all(),r,a),i.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const m=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let p=[];if(!o&&u.type<=rm.hour){const n=t.getFormat("date"),r=e.ticks(Dd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(Dd.offset(r[0],-1)),p=(r.length?r:[Dd.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:m,outer:p}}const om=86400,am=1440,sm={};function lm(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function cm(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Uo().domain([vd(l),vd(c)]);u.clamp(o),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let m;m="d3"===d.type?(e,i)=>im({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:vd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(sm[[t,n,r,r,o]])return sm[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=vd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/om,h=366*m,g=3*m*30,y=a.second.width/f,v=a.minute.width/p,b=a.date.width/g,x=a.year.width/h;let S,E,M,C=0,O=0,T=null,w=null,A=null,R=null,k=null,N=null;const I={outer:[],inner:[]};for(y<1?(T=1,O=1/om):y<2?(T=2,O=1/om*2):y<5?(T=5,O=1/om*5):y<10?(T=10,O=1/om*10):y<30?(T=30,O=1/om*30):v<1?(w=1,O=1/am):v<2?(w=2,O=1/am*2):v<5?(w=5,O=1/am*5):v<10?(w=10,O=1/am*10):v<30?(w=30,O=1/am*30):v<60?(A=1,O=1/24):v<120?(A=2,O=2/24):v<360?(A=6,O=.25):v<720?(A=12,O=.5):b<1/90?(O=1,R=1):b<2/90?(O=2,R=2):b<7/90?(O=7,R=7):b<31/90?(k=1,O=31):b<1?(k=3,O=90):x<1?(N=1,O=366):x<2?(N=2,O=732):x<5?(N=5,O=1826.25):(N=10,O=3652.5),E=Math.floor((d+n%1)/O);C<i;){M=E+1,S=N?lm("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?lm("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?lm("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?lm("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):w?lm("minute",[l,c,u,0,0+E*w],[l,c,u,0,0+M*w],a.minute.formatter):lm("second",[l,c,u,0,0,0+E*T],[l,c,u,0,0,0+M*T],a.second.formatter),C=xd(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:vd(e),end:vd(e+1),formatter:a.date.formatter,qStart:e};I.outer[I.outer.length-1]&&I.outer[I.outer.length-1].qStart===t.qStart||I.outer.push(t)}E++}return I.min=r,I.max=i,sm[[t,n,r,r,o]]=I,I}(n,e,d.min,l,c,"T"===s.qType);const p={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>m(t,n)[a].map((t=>{let n;return n="start"===i?xd(t.start):"end"===i?xd(t.end):(xd(t.start)+xd(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:xd(t.start),end:xd(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const um=41000.2343433,dm=/t+/i,mm=16,pm=60;const fm={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function hm(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const gm="continuousPan";var ym={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Zu,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=_u,snapshotFetcherFactory:c=Bu,cacheFetcherFactory:u=ju,cache:d={initial:{},merged:{}}}=s,m=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),p=c({layoutService:t,viewCache:i}),f=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",(n=y,r=v,Math.max(Gu,(r-n)*Xu))),g=t.meta.isSnapshot?p:m,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=p.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Vu(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>Uu(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=Vu(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>Uu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Uu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return le({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return le({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Ju(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=O(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return T(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),c=i?1-o:o,{min:u,max:d}=t.get("zoom"),m=Math.abs(d-u),p=m-(r>0?Yu:Wu)*m,f=u+p*c,h=d-p*(1-c),g=f<a?a-f:0,y=h>s?h-s:0;t.set("zoom",{min:Math.max(f-y,a),max:Math.min(h+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:gm,pointers:1,threshold:10,enable(r,i){return this.started===gm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${gm}start`](n){n.preventDefault(),this.started=gm;const{min:i,max:o}=r.get("zoom");this[gm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${gm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[gm],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${gm}end`](e){e.preventDefault(),this.started=!1},[`${gm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Qu,timeAxis:od},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=le(!0,{},t[i],o)})),r}(t,fm,n),{qAxis:i}=r,o=Pr(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const m=function(e){return Number.isNaN(+e)?NaN:o(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},m.invert=e=>o.invert(e),m.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),m.range=e=>Array.isArray(e)?o.range(e):o.range(),m.norm=e=>(hm(a,m),a.instance(e)),m.normInvert=e=>(hm(a,m),a.instance.invert(e)),m.copy=()=>e(t,n),m.clamp=(e=!0)=>(o.clamp(e),o.clamp()),m.min=()=>Math.min(s,l),m.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const p=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:pm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:pm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:pm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:pm,formatter:void 0}};return i&&dm.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(um)).width+mm)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=vd(t[0].data.start),i=vd(t[n-1].data.start);return Dd.count(r,i)/n>=1?o.date:Ld.count(r,i)/n>0?o.minute:Nd.count(r,i)/n>0?o.second:o.date},t}(r);return u=cm(o.copy(),r,p),c=hd({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*p.getFormat("minute").width,cache:r.cache,scale:m}),m.data=()=>({fields:[{formatter:m.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:E(n,"fields.0.raw",(()=>({})))}]}),m.formatter=()=>p.getFormatFromTicks(d).formatter,m}}};const vm=e=>e.meta.seriesComponentKeys[0],bm=(e,t)=>{if(t){const n=Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY;t.emit(n>=0?"next":"prev"),e.preventDefault()}};function xm({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=ym,{layoutService:s,seriesModel:l}=t,c=vm(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:i},{rtl:"rtl"===o.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},i=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=i.filter((e=>e.key===cs.COMPONENT.LEGEND_CATEGORICAL));bm(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const Sm="continuousPinchZoom";function Em({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=ym.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:m}=t,p="rtl"===n.options.direction,f=m.getInteractions(),h=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Zs({componentKey:e,chart:t,actions:n,layoutService:o})}}({componentKey:"scrollbar",chart:e,actions:o,viewState:r,viewCache:i,discrete:u,layoutService:l,dockService:c,rtl:p}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...h.gestures,...f.gestures]},y=[xm({chart:e,models:t,actions:o,viewState:r,viewCache:i,environment:n}),h.native,f.native];return l.meta.isDiscrete&&(g.gestures.push(...u.interactions.gestures),y.push(u.interactions.native)),l.meta.isContinuous&&g.gestures.push(s({targetKey:vm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i}),function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i,rtl:o}){const a={last:0,diff:0},s=ym.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:Sm,pointers:2,threshold:0,enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{[`${Sm}start`](e){a.last=e.scale,e.preventDefault()},[`${Sm}move`](e){const t=e.scale-a.last;Math.abs(t)>.01&&s(e.center,t>0?1:-1),a.last=e.scale,e.preventDefault()}}}}({targetKey:vm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const Mm=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},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}}}),Cm="lasso",Om=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Cm,enable(e,n){if(this.started===Cm||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==Cm&&(i.actions.select.emit("start",Cm),this.chart.component(e).emit("lassoStart",t),this.started=Cm)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",Cm),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Tm=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(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}}(t,this.chart),c=o.hitRadius?o.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=o.shapesAt?o.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),m=this.chart.component("tooltip"),p="mouse"!==t.pointerType&&m&&m.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(m&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,m,{nodes:n,opts:o,customTooltipModel:e})}else m.emit("show",t,{nodes:d})}else p&&m.emit("hide")}}}};const wm=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const Am=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function Rm(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:m}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:m?{bubbleEnd(){m()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=Am(e,t,"range");return{interactions:[e.onEdited?wm(e,t):null,r].filter(Boolean),components:[n]}}const km=/axis|legend/,Nm=e=>e.some((e=>km.test(e.type)));function Im({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...n.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...n.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,i={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(i.data=["selectionDimension"]),[i]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?i.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>Nm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Tm(e,t)],components:[]}}(s,l)}function Lm({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:i}=t,{isDiscrete:o,isDimensionLocked:a}=n.meta;if(!o||a)return!1;const s=[...i.meta.seriesComponentKeys,cs.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[Am(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[cs.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const Pm={components:[],interactions:[]};function Dm({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const i=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&Rm({eventName:"minorRange",key:"minor-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.PRIMARY,`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:cs.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pm,o=function({actions:e,models:t,isUnsupportedFeature:n}){const{dockService:r,seriesModel:i,layoutService:o}=t;return!(o.meta.isDimensionLocked||o.meta.isBarSeriesStacked||null!=n&&n("rangeSelections"))&&Rm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.SECONDARY,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:cs.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Pm,a=Lm({actions:e,models:n})||Pm,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:i,seriesModel:o}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Rm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...o.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...o.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?cs.SCALE.MAJOR_INNER:cs.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(cs.FORMATTER.PRIMARY),o=t.scale(cs.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||Pm,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[i]=n.custom.legendComponents(),o=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!i)return!1;const s=`${cs.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Rm({eventName:"legendRange",key:"legend-range-brush",targets:[c],fillTargets:[c],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:i.layout.dock,scale:s,bubblesPlacement:"outside",onEdited:()=>{e.select.emit("end","legendRange")}},{actions:e})}({actions:e,models:n})||Pm;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function qm({actions:e,models:t}){const{layoutService:n,seriesModel:r}=t,{seriesComponentKeys:i}=r.meta;if(n.meta.isDimensionLocked)return{components:[],interactions:[]};const o={key:"lasso",componentTargetKey:i[0],components:i.map((e=>({key:e,action:"add",contexts:["selection"],data:["selectionDimension"]})))};return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=Mm(n);return{interactions:[Om(n,t)],components:[r]}}(o,{actions:e})}function $m({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:d,options:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:de.getLayoutModes(),center:void 0!==h.minCenterRatio?{minWidthRatio:h.minCenterRatio,minHeightRatio:h.minCenterRatio}:void 0,logicalSize:h.logicalSize?{align:.5,preserveAspectRatio:!0,...h.logicalSize}:void 0});var h;const g=function({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,m=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:i,disclaimerService:o}=t,a=o.getDisclaimer();if(!a)return!1;const{fontFamily:s}=i.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:a.alignment},settings:{isRTL:"rtl"===r.direction,label:n.get(`Object.Disclaimer.${a.key}`)},style:{fontFamily:s}}}({environment:n,models:t});return d.getHasSuppressingDisclaimer()?[m]:[...du({models:t}),...Dl({models:t,flags:r}),...au({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Ou({models:t,environment:n}),...Bl({models:t,environment:n,flags:r}),...hu({models:t,environment:n,actions:a,flags:r}),Xo({viewState:i,viewCache:o,layoutService:l,dockService:c}),...Su({models:t}),...Eu({chart:e,models:t,environment:n}),gu({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),Mu(t),...xu({chart:e,models:t,viewState:i,viewCache:o,environment:n}),...u.getComponents(),m].filter(Boolean)}({chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s}),y=function({actions:e,chart:t,models:n,isUnsupportedFeature:r}){const{layoutService:i}=n,o=i.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),a=Im({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=Dm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=qm({actions:e,models:n});return{components:[...a.components,...s.components,...l.components],gestures:[...a.interactions,...s.interactions,...l.interactions]}}({actions:s,chart:t,models:n,isUnsupportedFeature:l}),v=u.extendComponents([...g,...y.components]);return{collections:xl({models:n}),scales:Il({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Tu({models:n}),interactions:Em({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const zm=({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})=>{const{width:d,height:m}=i(),[,p]=o((async()=>{if(!(null!=t&&t.update&&n&&r&&s))return;const{colorService:i,discreteModel:o,dockService:p,layoutService:f,refLineModel:h,animationsModel:g}=n;function y(){t.update({settings:$m({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})})}p.update({width:d,height:m}),i.custom.updateLegend(),h.update({picasso:e,chart:t,models:n,environment:r,viewState:s,viewCache:l,actions:c});const v=f.getDataPages();g.meta.isSizeChanging=!0,f.setDataPages([]),y(),f.setDataPages(v),f.meta.isContinuous||await o.command.initialize(),y()}),[d,m]);if(p)throw p},_m=[cs.COMPONENT.AXIS_TITLE.MAJOR,cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,cs.COMPONENT.GRID_LINE,cs.COMPONENT.ZERO_LINE],jm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:cs.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),Bm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:cs.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const Fm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Hm(e){return Fm[e]||e}function Vm(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"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=Hm(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=Hm(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(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}const Um={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Wm={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Ym={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},Gm={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"},Xm={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},Km={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"},Jm={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"},Zm={single:"N",drillDown:"H",cyclic:"C"},Qm={N:void 0,H:Um,C:Ym},ep=(e,t)=>{switch(e.qGrouping){case Zm.single:return;case Zm.drillDown:return{path:Um,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Zm.cyclic:return{path:t?Wm:Ym,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function tp(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=ta.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 np(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)),c=le(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),tp(e,a,c)}))}function rp(e){return e.qGrouping===Zm.single?e.qFallbackTitle||"":e.title||""}const ip=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case Zm.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,o)=>({id:`${e.cId}-${o}`,title:n,selected:e.qGroupPos===o,onSelect:()=>{t.drillUp(i,r,e.qGroupPos-o)}})));return{id:e.cId,icon:Um,groupItem:!0,title:e.title,selected:!1,children:n}}case Zm.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:Ym,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:rp(e)}}},op=(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))},ap=async(e,t,n,r,i)=>{const o=await op(e,n),a=n.filter((e=>!o.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===Zm.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),s=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,l=Qm[s],c=s!==Zm.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){np(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function sp({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Zm.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ip(l,i,a,e),n=c?await ap(a,i,r,o,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function lp(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Zm.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:ep(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Zm.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:rp(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function cp({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await op(n,t),u=t.filter((e=>!i.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){np(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function up(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function dp(){return dp=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},dp.apply(this,arguments)}var mp={exports:{}};function pp(){}function fp(){}fp.resetWarningCache=pp;mp.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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:fp,resetWarningCache:pp};return n.PropTypes=n,n}();var hp=J(mp.exports),gp={black:"#000",white:"#fff"},yp={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"},vp={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"},bp={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"},xp={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"},Sp={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"},Ep={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"},Mp={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 Cp(){return Cp=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},Cp.apply(this,arguments)}function Op(e){return Op="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},Op(e)}function Tp(e){return e&&"object"===Op(e)&&e.constructor===Object}function wp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Cp({},e):e;return Tp(e)&&Tp(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Tp(t[i])&&i in e?r[i]=wp(e[i],t[i],n):r[i]=t[i])})),r}function Ap(e){var t=function(e,t){if("object"!==Op(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Op(t)?t:String(t)}function Rp(e,t,n){return(t=Ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kp(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 Np(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 Ip(e){if(e.type)return e;if("#"===e.charAt(0))return Ip(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(kp(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 Lp(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 Pp(e){var t="hsl"===(e=Ip(e)).type?Ip(function(e){var t=(e=Ip(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])),Lp({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 Dp(e,t){return e=Ip(e),t=Np(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Lp(e)}function qp(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 $p(e,t){if(null==e)return{};var n,r,i=qp(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 zp=["xs","sm","md","lg","xl"];function _p(e,t,n){var r;return Cp({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")),Cp({paddingLeft:t(2),paddingRight:t(2)},n,Rp({},e.up("sm"),Cp({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Rp(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Rp(r,e.up("sm"),{minHeight:64}),r)},n)}var jp={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:gp.white,default:Mp[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}},Bp={text:{primary:gp.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:Mp[800],default:"#303030"},action:{active:gp.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 Fp(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=Ip(e),t=Np(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 Lp(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Ip(e),t=Np(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 Lp(e)}(e.main,o)))}function Hp(e){var t=e.primary,n=void 0===t?{light:bp[300],main:bp[500],dark:bp[700]}:t,r=e.secondary,i=void 0===r?{light:vp.A200,main:vp.A400,dark:vp.A700}:r,o=e.error,a=void 0===o?{light:yp[300],main:yp[500],dark:yp[700]}:o,s=e.warning,l=void 0===s?{light:Ep[300],main:Ep[500],dark:Ep[700]}:s,c=e.info,u=void 0===c?{light:xp[300],main:xp[500],dark:xp[700]}:c,d=e.success,m=void 0===d?{light:Sp[300],main:Sp[500],dark:Sp[700]}:d,p=e.type,f=void 0===p?"light":p,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=$p(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Pp(e),r=Pp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bp.text.primary)>=g?Bp.text.primary:jp.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Cp({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(kp(4,t));if("string"!=typeof e.main)throw new Error(kp(5,JSON.stringify(e.main)));return Fp(e,"light",n,v),Fp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Bp,light:jp};return wp(Cp({common:gp,type:f,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:Mp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function Vp(e){return Math.round(1e5*e)/1e5}function Up(e){return Vp(e)}var Wp={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function Gp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Yp:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,m=void 0===d?500:d,p=n.fontWeightBold,f=void 0===p?700:p,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=$p(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},E=function(e,t,n,r,o){return Cp({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===Yp?{letterSpacing:"".concat(Vp(r/t),"em")}:{},o,y)},M={h1:E(l,96,1.167,-1.5),h2:E(l,60,1.2,-.5),h3:E(u,48,1.167,0),h4:E(u,34,1.235,.25),h5:E(u,24,1.334,0),h6:E(m,20,1.6,.15),subtitle1:E(u,16,1.75,.15),subtitle2:E(m,14,1.57,.1),body1:E(u,16,1.5,.15),body2:E(u,14,1.43,.15),button:E(m,14,1.75,.4,Wp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,Wp)};return wp(Cp({htmlFontSize:g,pxToRem:S,round:Up,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Xp(){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 Kp=["none",Xp(0,2,1,-1,0,1,1,0,0,1,3,0),Xp(0,3,1,-2,0,2,2,0,0,1,5,0),Xp(0,3,3,-2,0,3,4,0,0,1,8,0),Xp(0,2,4,-1,0,4,5,0,0,1,10,0),Xp(0,3,5,-1,0,5,8,0,0,1,14,0),Xp(0,3,5,-1,0,6,10,0,0,1,18,0),Xp(0,4,5,-2,0,7,10,1,0,2,16,1),Xp(0,5,5,-3,0,8,10,1,0,3,14,2),Xp(0,5,6,-3,0,9,12,1,0,3,16,2),Xp(0,6,6,-3,0,10,14,1,0,4,18,3),Xp(0,6,7,-4,0,11,15,1,0,4,20,3),Xp(0,7,8,-4,0,12,17,2,0,5,22,4),Xp(0,7,8,-4,0,13,19,2,0,5,24,4),Xp(0,7,9,-4,0,14,21,2,0,5,26,4),Xp(0,8,9,-5,0,15,22,2,0,6,28,5),Xp(0,8,10,-5,0,16,24,2,0,6,30,5),Xp(0,8,11,-5,0,17,26,2,0,6,32,5),Xp(0,9,11,-5,0,18,28,2,0,7,34,6),Xp(0,9,12,-6,0,19,29,2,0,7,36,6),Xp(0,10,13,-6,0,20,31,3,0,8,38,7),Xp(0,10,13,-6,0,21,33,3,0,8,40,7),Xp(0,10,14,-6,0,22,35,3,0,8,42,7),Xp(0,11,14,-7,0,23,36,3,0,9,44,8),Xp(0,11,15,-7,0,24,38,3,0,9,46,8)],Jp={borderRadius:4};function Zp(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 Qp(e,t){if(e){if("string"==typeof e)return Zp(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)?Zp(e,t):void 0}}function ef(e){return function(e){if(Array.isArray(e))return Zp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qp(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 tf(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,c=!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){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Qp(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 nf(){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 rf={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)"},of={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function af(e){return"".concat(Math.round(e),"ms")}var sf={easing:rf,duration:of,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?of.standard:n,i=t.easing,o=void 0===i?rf.easeInOut:i,a=t.delay,s=void 0===a?0:a;return $p(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:af(r)," ").concat(o," ").concat("string"==typeof s?s:af(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))}},lf={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cf(){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,c=void 0===l?{}:l,u=$p(e,["breakpoints","mixins","palette","spacing","typography"]),d=Hp(a),m=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=$p(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 c(e,t){var r=zp.indexOf(t);return r===zp.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[zp[r+1]]?n[zp[r+1]]:t)-a/100).concat(i,")")}return Cp({keys:zp,values:n,up:l,down:function(e){var t=zp.indexOf(e)+1,r=n[zp[t]];return t===zp.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=nf(s),f=wp({breakpoints:m,direction:"ltr",mixins:_p(m,p,i),overrides:{},palette:d,props:{},shadows:Kp,typography:Gp(d,c),spacing:p,shape:Jp,transitions:sf,zIndex:lf},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return wp(e,t)}),f)}var uf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",df=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function mf(){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,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==df.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[uf]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function pf(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 ff="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},hf="object"===("undefined"==typeof window?"undefined":ff(window))&&"object"===("undefined"==typeof document?"undefined":ff(document))&&9===document.nodeType;function gf(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,Ap(r.key),r)}}function yf(e,t,n){return t&&gf(e.prototype,t),n&&gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vf(e,t)}function bf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vf(e,t)}function xf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Sf={}.constructor;function Ef(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Ef);if(e.constructor!==Sf)return e;var t={};for(var n in e)t[n]=Ef(e[n]);return t}function Mf(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Ef(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Cf=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Of=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+=Cf(e[n]," ");else t=Cf(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Tf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function wf(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Af(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=Tf(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var m in d){var p=d[m];null!=p&&(r&&(r+=l),r+=wf(m+":"+c+Of(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=wf(f+":"+c+Of(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=wf(g+":"+c+Of(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),wf(""+e+c+"{"+r,--o)+wf("}",o)):r}var Rf=/([[\].#*$><+~=|^:(),"'`\s])/g,kf="undefined"!=typeof CSS&&CSS.escape,Nf=function(e){return kf?kf(e):e.replace(Rf,"\\$1")},If=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}(),Lf=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(xf(xf(i)),s),i.selectorText="."+Nf(i.id)),i}bf(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]=Of(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Cp({},e,{allowEmpty:!0}):e;return Af(this.selectorText,this.style,n)},yf(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}(If),Pf={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Lf(e,t,n)}},Df={indent:1,children:!0},qf=/@([\w-]+)/,$f=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(qf);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new sh(Cp({},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=Df);var t=Tf(e).linebreak;if(null==e.indent&&(e.indent=Df.indent),null==e.children&&(e.children=Df.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),zf=/@container|@media|@supports\s+/,_f={onCreateRule:function(e,t,n){return zf.test(e)?new $f(e,t,n):null}},jf={indent:1,children:!0},Bf=/@keyframes\s+([\w-]+)/,Ff=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Bf);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:Nf(a(this,o)),this.rules=new sh(Cp({},n,{parent:this})),t)this.rules.add(s,t[s],Cp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=jf);var t=Tf(e).linebreak;if(null==e.indent&&(e.indent=jf.indent),null==e.children&&(e.children=jf.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}(),Hf=/@keyframes\s+/,Vf=/\$([\w-]+)/g,Uf=function(e,t){return"string"==typeof e?e.replace(Vf,(function(e,n){return n in t?t[n]:e})):e},Wf=function(e,t,n){var r=e[t],i=Uf(r,n);i!==r&&(e[t]=i)},Yf={onCreateRule:function(e,t,n){return"string"==typeof e&&Hf.test(e)?new Ff(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Wf(e,"animation-name",n.keyframes),"animation"in e&&Wf(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 Uf(e,r.keyframes);default:return e}}},Gf=function(e){function t(){return e.apply(this,arguments)||this}return bf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Cp({},e,{allowEmpty:!0}):e;return Af(this.key,this.style,n)},t}(If),Xf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Gf(e,t,n):null}},Kf=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=Tf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Af(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Af(this.at,this.style,e)},e}(),Jf=/@font-face/,Zf={onCreateRule:function(e,t,n){return Jf.test(e)?new Kf(e,t,n):null}},Qf=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 Af(this.key,this.style,e)},e}(),eh={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Qf(e,t,n):null}},th=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}(),nh={"@charset":!0,"@import":!0,"@namespace":!0},rh={onCreateRule:function(e,t,n){return e in nh?new th(e,t,n):null}},ih=[Pf,_f,Yf,Xf,Zf,eh,rh],oh={process:!0},ah={force:!0,process:!0},sh=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,c=r.scoped,u=Cp({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Nf(this.classes[d]));var m=Mf(d,t,u);if(!m)return null;this.register(m);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,m),m},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=Cp({},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 Lf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Ff&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Lf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Ff&&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=oh);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 c=t.style[l];c!==s[l]&&t.prop(l,c,ah)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,ah)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Tf(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}(),lh=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Cp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new sh(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}(),ch=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}(),uh=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=qp(t,["attached"]),i=Tf(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},yf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),dh=new uh,mh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ph="2f1acc6c3a606b082e5eef5e54414ffb";null==mh[ph]&&(mh[ph]=0);var fh=mh[ph]++,hh=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")+fh+i+t:o+n.key+"-"+fh+(i?"-"+i:"")+"-"+t}},gh=function(e){var t;return function(){return t||(t=e()),t}},yh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},vh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Of(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},bh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},xh=function(e,t){return e.selectorText=t,e.selectorText===t},Sh=gh((function(){return document.querySelector("head")}));function Eh(e){var t=dh.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=Sh(),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 Mh=gh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Ch=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]},Oh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Th=function(){function e(e){this.getPropertyValue=yh,this.setProperty=vh,this.removeProperty=bh,this.setSelector=xh,this.hasInsertedRules=!1,this.cssRules=[],e&&dh.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=Mh();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=Eh(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 Sh().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=Oh(n,t);if(!1===(i=Ch(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=Oh(n,t),l=Ch(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 lh&&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}(),wh=0,Ah=function(){function e(e){this.id=wh++,this.version="10.10.0",this.plugins=new ch,this.options={id:{minify:!1},createGenerateId:hh,Renderer:hf?Th:null,plugins:[]},this.generateId=hh({minify:!1});for(var t=0;t<ih.length;t++)this.plugins.use(ih[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=Cp({},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===dh.index?0:dh.index+1);var r=new lh(e,Cp({},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(),dh.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=Cp({},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=Mf(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}(),Rh=function(e){return new Ah(e)},kh="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Nh(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=Nh(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
- */Rh();var Ih=Date.now(),Lh="fnValues"+Ih,Ph="fnStyle"+ ++Ih,Dh=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Mf(e,{},n);return r[Ph]=t,r},onProcessStyle:function(e,t){if(Lh in t||Ph 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[Lh]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ph];o&&(i.style=o(e)||{});var a=i[Lh];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},qh="@global",zh="@global ",$h=function(){function e(e,t,n){for(var r in this.type="global",this.at=qh,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new sh(Cp({},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}(),_h=function(){function e(e,t,n){this.type="global",this.at=qh,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(zh.length);this.rule=n.jss.createRule(r,t,Cp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),jh=/\s*,\s*/g;function Fh(e,t){for(var n=e.split(jh),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Bh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===qh)return new $h(e,t,n);if("@"===e[0]&&e.substr(0,zh.length)===zh)return new _h(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[qh]:null;if(i){for(var o in i)t.addRule(o,i[o],Cp({},n,{selector:Fh(o,e.selector)}));delete r[qh]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,qh.length)===qh){var o=Fh(i.substr(qh.length),e.selector);t.addRule(o,r[i],Cp({},n,{selector:o})),delete r[i]}}(e,t))}}}var Hh=/\s*,\s*/g,Vh=/&/g,Uh=/\$([\w-]+)/g;function Wh(){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(Hh),r=e.split(Hh),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(Vh,a):a+" "+l}return i}function n(e,t,n){if(n)return Cp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Cp({},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,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),m="@"===u[0];if(d||m){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,o)),p=p.replace(Uh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Cp({},a,{selector:p})):c.addRule(f,r[u],Cp({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Yh=/[A-Z]/g,Gh=/^ms-/,Xh={};function Kh(e){return"-"+e.toLowerCase()}function Jh(e){if(Xh.hasOwnProperty(e))return Xh[e];var t=e.replace(Yh,Kh);return Xh[e]=Gh.test(t)?"-"+t:t}function Zh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Jh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Zh):t.fallbacks=Zh(e.fallbacks)),t}var Qh=kh&&CSS?CSS.px:"px",eg=kh&&CSS?CSS.ms:"ms",tg=kh&&CSS?CSS.percent:"%";function ng(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 rg=ng({"animation-delay":eg,"animation-duration":eg,"background-position":Qh,"background-position-x":Qh,"background-position-y":Qh,"background-size":Qh,border:Qh,"border-bottom":Qh,"border-bottom-left-radius":Qh,"border-bottom-right-radius":Qh,"border-bottom-width":Qh,"border-left":Qh,"border-left-width":Qh,"border-radius":Qh,"border-right":Qh,"border-right-width":Qh,"border-top":Qh,"border-top-left-radius":Qh,"border-top-right-radius":Qh,"border-top-width":Qh,"border-width":Qh,"border-block":Qh,"border-block-end":Qh,"border-block-end-width":Qh,"border-block-start":Qh,"border-block-start-width":Qh,"border-block-width":Qh,"border-inline":Qh,"border-inline-end":Qh,"border-inline-end-width":Qh,"border-inline-start":Qh,"border-inline-start-width":Qh,"border-inline-width":Qh,"border-start-start-radius":Qh,"border-start-end-radius":Qh,"border-end-start-radius":Qh,"border-end-end-radius":Qh,margin:Qh,"margin-bottom":Qh,"margin-left":Qh,"margin-right":Qh,"margin-top":Qh,"margin-block":Qh,"margin-block-end":Qh,"margin-block-start":Qh,"margin-inline":Qh,"margin-inline-end":Qh,"margin-inline-start":Qh,padding:Qh,"padding-bottom":Qh,"padding-left":Qh,"padding-right":Qh,"padding-top":Qh,"padding-block":Qh,"padding-block-end":Qh,"padding-block-start":Qh,"padding-inline":Qh,"padding-inline-end":Qh,"padding-inline-start":Qh,"mask-position-x":Qh,"mask-position-y":Qh,"mask-size":Qh,height:Qh,width:Qh,"min-height":Qh,"max-height":Qh,"min-width":Qh,"max-width":Qh,bottom:Qh,left:Qh,top:Qh,right:Qh,inset:Qh,"inset-block":Qh,"inset-block-end":Qh,"inset-block-start":Qh,"inset-inline":Qh,"inset-inline-end":Qh,"inset-inline-start":Qh,"box-shadow":Qh,"text-shadow":Qh,"column-gap":Qh,"column-rule":Qh,"column-rule-width":Qh,"column-width":Qh,"font-size":Qh,"font-size-delta":Qh,"letter-spacing":Qh,"text-decoration-thickness":Qh,"text-indent":Qh,"text-stroke":Qh,"text-stroke-width":Qh,"word-spacing":Qh,motion:Qh,"motion-offset":Qh,outline:Qh,"outline-offset":Qh,"outline-width":Qh,perspective:Qh,"perspective-origin-x":tg,"perspective-origin-y":tg,"transform-origin":tg,"transform-origin-x":tg,"transform-origin-y":tg,"transform-origin-z":tg,"transition-delay":eg,"transition-duration":eg,"vertical-align":Qh,"flex-basis":Qh,"shape-margin":Qh,size:Qh,gap:Qh,grid:Qh,"grid-gap":Qh,"row-gap":Qh,"grid-row-gap":Qh,"grid-column-gap":Qh,"grid-template-rows":Qh,"grid-template-columns":Qh,"grid-auto-rows":Qh,"grid-auto-columns":Qh,"box-shadow-x":Qh,"box-shadow-y":Qh,"box-shadow-blur":Qh,"box-shadow-spread":Qh,"font-line-height":Qh,"text-shadow-x":Qh,"text-shadow-y":Qh,"text-shadow-blur":Qh});function ig(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ig(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=ig(i,t[i],n);else for(var o in t)t[o]=ig(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||rg[e];return!a||0===t&&a===Qh?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function og(e){void 0===e&&(e={});var t=ng(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ig(r,e[r],t);return e},onChangeValue:function(e,n){return ig(n,e,t)}}}var ag="",sg="",lg="",cg="",ug=hf&&"ontouchstart"in document.documentElement;if(hf){var dg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},mg=document.createElement("p").style;for(var pg in dg)if(pg+"Transform"in mg){ag=pg,sg=dg[pg];break}"Webkit"===ag&&"msHyphens"in mg&&(ag="ms",sg=dg.ms,cg="edge"),"Webkit"===ag&&"-apple-trailing-word"in mg&&(lg="apple")}var fg={js:ag,css:sg,vendor:lg,browser:cg,isTouch:ug};var hg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===fg.js?"-webkit-"+e:fg.css+e)}},gg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===fg.js?fg.css+"print-"+e:e)}},yg=/[-\s]+(.)?/g;function vg(e,t){return t?t.toUpperCase():""}function bg(e){return e.replace(yg,vg)}function xg(e){return bg("-"+e)}var Sg,Eg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===fg.js){var n="mask-image";if(bg(n)in t)return e;if(fg.js+xg(n)in t)return fg.css+e}return e}},Mg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fg.vendor||fg.isTouch?e:fg.css+e)}},Cg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:fg.css+e)}},Og={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:fg.css+e)}},Tg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===fg.js||"ms"===fg.js&&"edge"!==fg.browser?fg.css+e:e)}},wg={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===fg.js||"ms"===fg.js||"apple"===fg.vendor?fg.css+e:e)}},Ag={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===fg.js?"WebkitColumn"+xg(e)in t&&fg.css+"column-"+e:"Moz"===fg.js&&("page"+xg(e)in t&&"page-"+e))}},Rg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===fg.js)return e;var n=e.replace("-inline","");return fg.js+xg(n)in t&&fg.css+n}},kg={supportedProperty:function(e,t){return bg(e)in t&&e}},Ng={supportedProperty:function(e,t){var n=xg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:fg.js+n in t?fg.css+e:"Webkit"!==fg.js&&"Webkit"+n in t&&"-webkit-"+e}},Ig={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===fg.js?""+fg.css+e:e)}},Lg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===fg.js?fg.css+"scroll-chaining":e)}},Pg={"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"},Dg={supportedProperty:function(e,t){var n=Pg[e];return!!n&&(fg.js+xg(n)in t&&fg.css+n)}},qg={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"},zg=Object.keys(qg),$g=function(e){return fg.css+e},_g={supportedProperty:function(e,t,n){var r=n.multiple;if(zg.indexOf(e)>-1){var i=qg[e];if(!Array.isArray(i))return fg.js+xg(i)in t&&fg.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(fg.js+xg(i[0])in t))return!1;return i.map($g)}return!1}},jg=[hg,gg,Eg,Mg,Cg,Og,Tg,wg,Ag,Rg,kg,Ng,Ig,Lg,Dg,_g],Fg=jg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bg=jg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ef(t.noPrefill)),e}),[]),Hg={};if(hf){Sg=document.createElement("p");var Vg=window.getComputedStyle(document.documentElement,"");for(var Ug in Vg)isNaN(Ug)||(Hg[Vg[Ug]]=Vg[Ug]);Bg.forEach((function(e){return delete Hg[e]}))}function Wg(e,t){if(void 0===t&&(t={}),!Sg)return e;if(null!=Hg[e])return Hg[e];"transition"!==e&&"transform"!==e||(t[e]=e in Sg.style);for(var n=0;n<Fg.length&&(Hg[e]=Fg[n](e,Sg.style,t),!Hg[e]);n++);try{Sg.style[e]=""}catch(e){return!1}return Hg[e]}var Yg,Gg={},Xg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Kg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Jg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Wg(t):", "+Wg(n);return r||(t||n)}function Zg(e,t){var n=t;if(!Yg||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Gg[r])return Gg[r];try{Yg.style[e]=n}catch(e){return Gg[r]=!1,!1}if(Xg[e])n=n.replace(Kg,Jg);else if(""===Yg.style[e]&&("-ms-flex"===(n=fg.css+n)&&(Yg.style[e]="-ms-flexbox"),Yg.style[e]=n,""===Yg.style[e]))return Gg[r]=!1,!1;return Yg.style[e]="",Gg[r]=n,Gg[r]}function Qg(){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=Wg(n);o&&o!==n&&(i=!0);var a=!1,s=Zg(o,Of(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"===fg.js?e:"@"+fg.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Zg(t,Of(e))||e}}}function ey(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function ty(){return{plugins:[Dh(),Bh(),Wh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Zh(e[t]);return e}return Zh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Jh(t);return t===r?e:(n.prop(r,e),null)}},og(),"undefined"==typeof window?null:Qg(),ey()]}}function ny(){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=Cp({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}hf&&(Yg=document.createElement("p"));var ry={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)}},iy=ry,oy=j.createContext(null);function ay(){return j.useContext(oy)}var sy,ly=Rh(ty()),cy={disableGeneration:!1,generateClassName:mf(),jss:ly,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},uy=j.createContext(cy);function dy(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=zp(e,["children","injectFirst","disableGeneration"]),s=Cp({},j.useContext(uy),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!sy){var l=document.head;sy=document.createComment("mui-inject-first"),l.insertBefore(sy,l.firstChild)}s.jss=Rh({plugins:ty().plugins,insertionPoint:sy})}return j.createElement(uy.Provider,{value:s},t)}var my=-1e9;var py={};function fy(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=iy.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},iy.set(i.sheetsManager,o,r,s));var l=Cp({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(0===s.refs){var u;i.sheetsCache&&(u=iy.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,Cp({link:!1},l))).attach(),i.sheetsCache&&iy.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Nh(d)}if(s.dynamicStyles){var m=i.jss.createStyleSheet(s.dynamicStyles,Cp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=ny({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function hy(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?py:o,s=zp(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=Cp({},i);return Object.keys(o).forEach((function(e){a[e]=wp(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:my+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ay()||a,r=Cp({},j.useContext(uy),s),o=j.useRef(),c=j.useRef();!function(e,t){var n,r=j.useRef([]),i=j.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),j.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return fy(i,e),c.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=iy.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(iy.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]),j.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var 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=ny({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function gy(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=gy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gy(e))&&(r&&(r+=" "),r+=t);return r}var vy={exports:{}},by={},xy="function"==typeof Symbol&&Symbol.for,Sy=xy?Symbol.for("react.element"):60103,Ey=xy?Symbol.for("react.portal"):60106,My=xy?Symbol.for("react.fragment"):60107,Cy=xy?Symbol.for("react.strict_mode"):60108,Oy=xy?Symbol.for("react.profiler"):60114,Ty=xy?Symbol.for("react.provider"):60109,wy=xy?Symbol.for("react.context"):60110,Ay=xy?Symbol.for("react.async_mode"):60111,Ry=xy?Symbol.for("react.concurrent_mode"):60111,ky=xy?Symbol.for("react.forward_ref"):60112,Ny=xy?Symbol.for("react.suspense"):60113,Iy=xy?Symbol.for("react.suspense_list"):60120,Ly=xy?Symbol.for("react.memo"):60115,Py=xy?Symbol.for("react.lazy"):60116,Dy=xy?Symbol.for("react.block"):60121,qy=xy?Symbol.for("react.fundamental"):60117,zy=xy?Symbol.for("react.responder"):60118,$y=xy?Symbol.for("react.scope"):60119;function _y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sy:switch(e=e.type){case Ay:case Ry:case My:case Oy:case Cy:case Ny:return e;default:switch(e=e&&e.$$typeof){case wy:case ky:case Py:case Ly:case Ty:return e;default:return t}}case Ey:return t}}}function jy(e){return _y(e)===Ry}by.AsyncMode=Ay,by.ConcurrentMode=Ry,by.ContextConsumer=wy,by.ContextProvider=Ty,by.Element=Sy,by.ForwardRef=ky,by.Fragment=My,by.Lazy=Py,by.Memo=Ly,by.Portal=Ey,by.Profiler=Oy,by.StrictMode=Cy,by.Suspense=Ny,by.isAsyncMode=function(e){return jy(e)||_y(e)===Ay},by.isConcurrentMode=jy,by.isContextConsumer=function(e){return _y(e)===wy},by.isContextProvider=function(e){return _y(e)===Ty},by.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sy},by.isForwardRef=function(e){return _y(e)===ky},by.isFragment=function(e){return _y(e)===My},by.isLazy=function(e){return _y(e)===Py},by.isMemo=function(e){return _y(e)===Ly},by.isPortal=function(e){return _y(e)===Ey},by.isProfiler=function(e){return _y(e)===Oy},by.isStrictMode=function(e){return _y(e)===Cy},by.isSuspense=function(e){return _y(e)===Ny},by.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===My||e===Ry||e===Oy||e===Cy||e===Ny||e===Iy||"object"==typeof e&&null!==e&&(e.$$typeof===Py||e.$$typeof===Ly||e.$$typeof===Ty||e.$$typeof===wy||e.$$typeof===ky||e.$$typeof===qy||e.$$typeof===zy||e.$$typeof===$y||e.$$typeof===Dy)},by.typeOf=_y,vy.exports=by;var Fy=vy.exports,By={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Hy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uy={};function Wy(e){return Fy.isMemo(e)?Vy:Uy[e.$$typeof]||By}Uy[Fy.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uy[Fy.Memo]=Vy;var Yy=Object.defineProperty,Gy=Object.getOwnPropertyNames,Xy=Object.getOwnPropertySymbols,Ky=Object.getOwnPropertyDescriptor,Jy=Object.getPrototypeOf,Zy=Object.prototype;var Qy=function e(t,n,r){if("string"!=typeof n){if(Zy){var i=Jy(n);i&&i!==Zy&&e(t,i,r)}var o=Gy(n);Xy&&(o=o.concat(Xy(n)));for(var a=Wy(t),s=Wy(n),l=0;l<o.length;++l){var c=o[l];if(!(Hy[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Ky(n,c);try{Yy(t,c,u)}catch(e){}}}}return t},ev=J(Qy);function tv(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=zp(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(Cp({theme:e},n))}}}:{root:t},l=hy(s,Cp({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 c=j.forwardRef((function(t,r){var i,o,a,s=t.children,c=t.className,u=t.clone,d=t.component,m=zp(t,["children","className","clone","component"]),p=yy(l(t).root,c),f=m;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),u)return j.cloneElement(s,Cp({className:yy(s.props.className,p)},f));if("function"==typeof s)return s(Cp({className:p},f));var h=d||e;return j.createElement(h,Cp({ref:r,className:p},f),s)}));return ev(c,e),c}}function nv(e){var t=e.children,n=e.theme,r=ay(),i=j.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Cp({},e,t)}(r,n);return null!=e&&(e[uf]=null!==r),e}),[n,r]);return j.createElement(oy.Provider,{value:i},t)}var rv=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=zp(t,["defaultTheme","withTheme","name"]),l=a,c=hy(e,Cp({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=j.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=zp(e,["classes","innerRef"]),u=c(Cp({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=ay()||r,a&&(d=pf({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),j.createElement(n,Cp({ref:s||t,classes:u},d))}));return ev(u,n),u}},iv=cf(),ov=function(e){var t=tv(e);return function(e,n){return t(e,Cp({defaultTheme:iv},n))}};function av(e,t){return rv(e,Cp({defaultTheme:iv},t))}function sv(e){if("string"!=typeof e)throw new Error(kp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lv(){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 cv(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=cv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function uv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cv(e))&&(r&&(r+=" "),r+=t);return r}function dv(e){return e&&e.ownerDocument||document}function mv(e){return dv(e).defaultView||window}function pv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var fv="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;function hv(e){var t=F.useRef(e);return fv((function(){t.current=e})),F.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function gv(e,t){return F.useMemo((function(){return null==e&&null==t?null:function(n){pv(e,n),pv(t,n)}}),[e,t])}var yv=!0,vv=!1,bv=null,xv={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 Sv(e){e.metaKey||e.altKey||e.ctrlKey||(yv=!0)}function Ev(){yv=!1}function Mv(){"hidden"===this.visibilityState&&vv&&(yv=!0)}function Cv(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return yv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!xv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ov(){vv=!0,window.clearTimeout(bv),bv=window.setTimeout((function(){vv=!1}),100)}function Tv(){var e=F.useCallback((function(e){var t,n=Y.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Sv,!0),t.addEventListener("mousedown",Ev,!0),t.addEventListener("pointerdown",Ev,!0),t.addEventListener("touchstart",Ev,!0),t.addEventListener("visibilitychange",Mv,!0))}),[]);return{isFocusVisible:Cv,onBlurVisible:Ov,ref:e}}var wv=!1,Av=j.createContext(null),Rv="unmounted",kv="exited",Nv="entering",Iv="entered",Lv="exiting",Pv=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=kv,r.appearStatus=Nv):i=Iv:i=t.unmountOnExit||t.mountOnEnter?Rv:kv,r.state={status:i},r.nextCallback=null,r}bf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rv?{status:kv}: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!==Nv&&n!==Iv&&(t=Nv):n!==Nv&&n!==Iv||(t=Lv)}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===Nv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:G.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kv&&this.setState({status:Rv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[G.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||wv?this.safeSetState({status:Iv},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Nv},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Iv},(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:G.findDOMNode(this);t&&!wv?(this.props.onExit(r),this.safeSetState({status:Lv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:kv},(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:G.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===Rv)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=qp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(Av.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function Dv(){}Pv.contextType=Av,Pv.propTypes={},Pv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dv,onEntering:Dv,onEntered:Dv,onExit:Dv,onExiting:Dv,onExited:Dv},Pv.UNMOUNTED=Rv,Pv.EXITED=kv,Pv.ENTERING=Nv,Pv.ENTERED=Iv,Pv.EXITING=Lv;var qv=Pv;function zv(e,t){var n=Object.create(null);return e&&B.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H(e)?t(e):e}(e)})),n}function $v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _v(e,t,n){var r=zv(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 c=i[l][r];s[i[l][r]]=n(c)}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(H(a)){var s=o in t,l=o in r,c=t[o],u=H(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&H(c)&&(i[o]=V(a,{onExited:n.bind(null,a),in:c.props.in,exit:$v(a,"exit",e),enter:$v(a,"enter",e)})):i[o]=V(a,{in:!1}):i[o]=V(a,{onExited:n.bind(null,a),in:!0,exit:$v(a,"exit",e),enter:$v(a,"enter",e)})}})),i}var jv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fv=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(xf(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}bf(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,zv(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:$v(e,"appear",n),enter:$v(e,"enter",n),exit:$v(e,"exit",n)})}))):_v(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=zv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Cp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=qp(e,["component","childFactory"]),i=this.state.contextValue,o=jv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(Av.Provider,{value:i},o):j.createElement(Av.Provider,{value:i},j.createElement(t,r,o))},t}(j.Component);Fv.propTypes={},Fv.defaultProps={component:"div",childFactory:function(e){return e}};var Bv=Fv;function Hv(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 Vv=F.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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,m=zp(e,["classes","className","component","square","elevation","variant"]);return F.createElement(o,Cp({className:uv(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),Uv=av((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Cp({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"})(Vv),Wv="undefined"==typeof window?F.useEffect:F.useLayoutEffect;function Yv(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,c=void 0===l?function(){}:l,u=e.timeout,d=F.useState(!1),m=d[0],p=d[1],f=uv(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=uv(t.child,m&&t.childLeaving,r&&t.childPulsate),y=hv(c);return Wv((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),F.createElement("span",{className:f,style:h},F.createElement("span",{className:g}))}var Gv=F.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=zp(e,["center","classes","className"]),s=F.useState([]),l=s[0],c=s[1],u=F.useRef(0),d=F.useRef(null);F.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var m=F.useRef(!1),p=F.useRef(null),f=F.useRef(null),h=F.useRef(null);F.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=F.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(ef(e),[F.createElement(Yv,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=F.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,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,y,v=c?null:h.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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,E=x.clientY;u=Math.round(S-b.left),d=Math.round(E-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(C,2))}e.touches?null===f.current&&(f.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=F.useCallback((function(){y({},{pulsate:!0})}),[y]),b=F.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(p.current=setTimeout((function(){b(e,t)})));f.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return F.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),F.createElement("span",Cp({className:uv(i.root,o),ref:h},a),F.createElement(Bv,{component:null,exit:!0},l))})),Xv=av((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"})(F.memo(Gv)),Kv=F.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,c=e.component,u=void 0===c?"button":c,d=e.disabled,m=void 0!==d&&d,p=e.disableRipple,f=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,E=e.onFocus,M=e.onFocusVisible,C=e.onKeyDown,O=e.onKeyUp,T=e.onMouseDown,w=e.onMouseLeave,A=e.onMouseUp,R=e.onTouchEnd,k=e.onTouchMove,N=e.onTouchStart,I=e.onDragLeave,L=e.tabIndex,P=void 0===L?0:L,D=e.TouchRippleProps,q=e.type,z=void 0===q?"button":q,$=zp(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),_=F.useRef(null);var j=F.useRef(null),B=F.useState(!1),H=B[0],V=B[1];m&&H&&V(!1);var U=Tv(),W=U.isFocusVisible,G=U.onBlurVisible,X=U.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return hv((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}F.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),_.current.focus()}}}),[]),F.useEffect((function(){H&&v&&!f&&j.current.pulsate()}),[f,v,H]);var J=K("start",T),Z=K("stop",I),Q=K("stop",A),ee=K("stop",(function(e){H&&e.preventDefault(),w&&w(e)})),te=K("start",N),ne=K("stop",R),re=K("stop",k),ie=K("stop",(function(e){H&&(G(e),V(!1)),x&&x(e)}),!1),oe=hv((function(e){_.current||(_.current=e.currentTarget),W(e)&&(V(!0),M&&M(e)),E&&E(e)})),ae=function(){var e=Y.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=F.useRef(!1),le=hv((function(e){v&&!se.current&&H&&j.current&&" "===e.key&&(se.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ce=hv((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),O&&O(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&$.href&&(ue="a");var de={};"button"===ue?(de.type=z,de.disabled=m):("a"===ue&&$.href||(de.role="button"),de["aria-disabled"]=m);var me=gv(r,t),pe=gv(X,_),fe=gv(me,pe),he=F.useState(!1),ge=he[0],ye=he[1];F.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!m;return F.createElement(ue,Cp({className:uv(s.root,l,H&&[s.focusVisible,b],m&&s.disabled),onBlur:ie,onClick:S,onFocus:oe,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:m?-1:P},de,$),a,ve?F.createElement(Xv,Cp({ref:j,center:o},D)):null)})),Jv=av({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"})(Kv),Zv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Qv=F.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,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,m=void 0!==d&&d,p=e.noWrap,f=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?Zv:b,S=zp(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Zv[v])||"span";return F.createElement(E,Cp({className:uv(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(sv(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(sv(r))],"initial"!==u&&i["display".concat(sv(u))]),ref:t},S))})),eb=av((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"})(Qv),tb=F.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,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,m=void 0!==d&&d,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,E=e.type,M=void 0===E?"button":E,C=e.variant,O=void 0===C?"text":C,T=zp(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),w=S&&F.createElement("span",{className:uv(r.startIcon,r["iconSize".concat(sv(x))])},S),A=h&&F.createElement("span",{className:uv(r.endIcon,r["iconSize".concat(sv(x))])},h);return F.createElement(Jv,Cp({className:uv(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(sv(a))],"medium"!==x&&[r["".concat(O,"Size").concat(sv(x))],r["size".concat(sv(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:uv(r.focusVisible,g),ref:t,type:M},T),F.createElement("span",{className:r.label},w,n,A))})),nb=av((function(e){return{root:Cp({},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:Dp(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:Dp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Dp(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(Dp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Dp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Dp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Dp(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"})(tb);var rb="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,ib=F.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=F.useState(null),l=s[0],c=s[1],u=gv(F.isValidElement(n)?n.ref:null,t);return rb((function(){o||c(function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(r)||document.body)}),[r,o]),rb((function(){if(l&&!o)return pv(t,l),function(){pv(t,null)}}),[t,l,o]),rb((function(){a&&(l||o)&&a()}),[a,l,o]),o?F.isValidElement(n)?F.cloneElement(n,{ref:u}):n:l?Y.createPortal(n,l):l})),ob=ib;function ab(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sb(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function lb(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(ef(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)&&ab(e,r)}))}function cb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function ub(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=dv(e);return t.body===e?mv(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(sb(o)+a,"px"),n=dv(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(sb(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 db=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 yf(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&&ab(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);lb(t,e.mountNode,e.modalRef,r,!0);var i=cb(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=cb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=ub(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=cb(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&&ab(e.modalRef,!0),lb(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&&ab(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function mb(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,c=e.isEnabled,u=e.open,d=F.useRef(),m=F.useRef(null),p=F.useRef(null),f=F.useRef(),h=F.useRef(null),g=F.useCallback((function(e){h.current=Y.findDOMNode(e)}),[]),y=gv(t.ref,g),v=F.useRef();return F.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),F.useEffect((function(){if(u){var e=dv(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!o&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():m.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,c,u]),F.createElement(F.Fragment,null,F.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),F.cloneElement(t,{ref:y}),F.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var pb={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"}},fb=F.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=zp(e,["invisible","open"]);return i?F.createElement("div",Cp({"aria-hidden":!0,ref:t},o,{style:Cp({},pb.root,r?pb.invisible:{},o.style)})):null}));var hb=new db,gb=F.forwardRef((function(e,t){var n=ay(),r=pf({name:"MuiModal",props:Cp({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?fb:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,m=void 0!==d&&d,p=r.disableBackdropClick,f=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,E=void 0!==S&&S,M=r.disableScrollLock,C=void 0!==M&&M,O=r.hideBackdrop,T=void 0!==O&&O,w=r.keepMounted,A=void 0!==w&&w,R=r.manager,k=void 0===R?hb:R,N=r.onBackdropClick,I=r.onClose,L=r.onEscapeKeyDown,P=r.onRendered,D=r.open,q=zp(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=F.useState(!0),$=z[0],_=z[1],j=F.useRef({}),B=F.useRef(null),H=F.useRef(null),V=gv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return dv(B.current)},G=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},X=function(){k.mount(G(),{disableScrollLock:C}),H.current.scrollTop=0},K=hv((function(){var e=function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(u)||W().body;k.add(G(),e),H.current&&X()})),J=F.useCallback((function(){return k.isTopModal(G())}),[k]),Z=hv((function(e){B.current=e,e&&(P&&P(),D&&J()?X():ab(H.current,!0))})),Q=F.useCallback((function(){k.remove(G())}),[k]);if(F.useEffect((function(){return function(){Q()}}),[Q]),F.useEffect((function(){D?K():U&&c||Q()}),[D,Q,U,c,K]),!A&&!D&&(!U||$))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:lf}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=lv((function(){_(!1)}),s.props.onEnter),te.onExited=lv((function(){_(!0),c&&Q()}),s.props.onExited)),F.createElement(ob,{ref:Z,container:u,disablePortal:x},F.createElement("div",Cp({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:Cp({},ee.root,!D&&$?ee.hidden:{},q.style)}),T?null:F.createElement(o,Cp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),F.createElement(mb,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:W,isEnabled:J,open:D},F.cloneElement(s,te))))})),yb=gb,vb=F.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,m=e.orientation,p=void 0===m?"horizontal":m,f=e.role,h=void 0===f?"hr"!==s?"separator":void 0:f,g=e.variant,y=void 0===g?"fullWidth":g,v=zp(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return F.createElement(s,Cp({className:uv(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===p&&i.vertical),role:h,ref:t},v))})),bb=av((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Dp(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(vb);function xb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Sb={entering:{opacity:1,transform:xb(1)},entered:{opacity:1,transform:"none"}},Eb=F.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,c=e.onExit,u=e.onExited,d=e.onExiting,m=e.style,p=e.timeout,f=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?qv:h,y=zp(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=F.useRef(),b=F.useRef(),x=ay()||iv,S=x.unstable_strictMode&&!i,E=F.useRef(null),M=gv(n.ref,t),C=gv(S?E:void 0,M),O=function(e){return function(t,n){if(e){var r=tf(S?[E.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},T=O(l),w=O((function(e,t){!function(e){e.scrollTop}(e);var n,r=Hv({style:m,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),A=O(s),R=O(d),k=O((function(e){var t,n=Hv({style:m,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=xb(.75),c&&c(e)})),N=O(u);return F.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),F.createElement(g,Cp({appear:!0,in:o,nodeRef:S?E:void 0,onEnter:w,onEntered:A,onEntering:T,onExit:k,onExited:N,onExiting:R,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===f?null:f},y),(function(e,t){return F.cloneElement(n,Cp({style:Cp({opacity:0,transform:xb(.75),visibility:"exited"!==e||o?void 0:"hidden"},Sb[e],m,n.props.style),ref:C},t))}))}));Eb.muiSupportAuto=!0;var Mb=Eb,Cb=F.createContext({}),Ob=F.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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,m=zp(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=F.useMemo((function(){return{dense:l}}),[l]);return F.createElement(Cb.Provider,{value:p},F.createElement(a,Cp({className:uv(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Tb=av({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ob),wb="undefined"==typeof window?F.useEffect:F.useLayoutEffect,Ab=F.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,c=e.classes,u=e.className,d=e.component,m=e.ContainerComponent,p=void 0===m?"li":m,f=e.ContainerProps,h=(f=void 0===f?{}:f).className,g=zp(f,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,E=void 0!==S&&S,M=e.divider,C=void 0!==M&&M,O=e.focusVisibleClassName,T=e.selected,w=void 0!==T&&T,A=zp(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=F.useContext(Cb),k={dense:v||R.dense||!1,alignItems:r},N=F.useRef(null);wb((function(){o&&N.current&&N.current.focus()}),[o]);var I,L,P=F.Children.toArray(l),D=P.length&&(I=P[P.length-1],L=["ListItemSecondaryAction"],F.isValidElement(I)&&-1!==L.indexOf(I.type.muiName)),q=gv(F.useCallback((function(e){N.current=Y.findDOMNode(e)}),[]),t),z=Cp({className:uv(c.root,u,k.dense&&c.dense,!E&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,D&&c.secondaryAction,w&&c.selected),disabled:x},A),$=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=uv(c.focusVisible,O),$=Jv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),F.createElement(Cb.Provider,{value:k},F.createElement(p,Cp({className:uv(c.container,h),ref:q},g),F.createElement($,z,P),P.pop()))):F.createElement(Cb.Provider,{value:k},F.createElement($,Cp({ref:q},z),P))})),Rb=av((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"})(Ab),kb=F.forwardRef((function(e,t){var n=e.classes,r=e.className,i=zp(e,["classes","className"]),o=F.useContext(Cb);return F.createElement("div",Cp({className:uv(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Nb=av((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(kb),Ib=F.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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,m=e.secondaryTypographyProps,p=zp(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=F.useContext(Cb).dense,h=null!=c?c:n;null==h||h.type===eb||a||(h=F.createElement(eb,Cp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===eb||a||(g=F.createElement(eb,Cp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),F.createElement("div",Cp({className:uv(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Lb=av({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ib);function Pb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Db(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function zb(e){return"function"==typeof e?e():e}var $b=F.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,c=e.children,u=e.classes,d=e.className,m=e.container,p=e.elevation,f=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,E=e.onExited,M=e.onExiting,C=e.open,O=e.PaperProps,T=void 0===O?{}:O,w=e.transformOrigin,A=void 0===w?{vertical:"top",horizontal:"left"}:w,R=e.TransitionComponent,k=void 0===R?Mb:R,N=e.transitionDuration,I=void 0===N?"auto":N,L=e.TransitionProps,P=void 0===L?{}:L,D=zp(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"]),q=F.useRef(),z=F.useCallback((function(e){if("anchorPosition"===l)return a;var t=zb(r),n=(t&&1===t.nodeType?t:dv(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+Pb(n,i),left:n.left+Db(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),$=F.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(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,h]),_=F.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Pb(e,A.vertical)+t,horizontal:Db(e,A.horizontal)}}),[A.horizontal,A.vertical]),j=F.useCallback((function(e){var t=$(e),n={width:e.offsetWidth,height:e.offsetHeight},i=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:qb(i)};var o=z(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=mv(zb(r)),m=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var f=a-y;a-=f,i.vertical+=f}else if(c>m){var h=c-m;a-=h,i.vertical+=h}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>p){var v=u-p;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:qb(i)}}),[r,l,z,$,_,y]),B=F.useCallback((function(){var e=q.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=F.useCallback((function(e){q.current=Y.findDOMNode(e)}),[]);F.useEffect((function(){C&&B()})),F.useImperativeHandle(n,(function(){return C?{updatePosition:function(){B()}}:null}),[C,B]),F.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,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(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,B]);var V=I;"auto"!==I||k.muiSupportAuto||(V=void 0);var U=m||(r?dv(zb(r)).body:void 0);return F.createElement(yb,Cp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:uv(u.root,d)},D),F.createElement(k,Cp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:lv((function(e,t){x&&x(e,t),B()}),P.onEntering)}),F.createElement(Uv,Cp({elevation:f,ref:H},T,{className:uv(u.paper,T.className)}),c)))})),_b=av({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})($b);function jb(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Fb({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:jb(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return j.createElement("i",{style:i},j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},j.createElement("path",{d:e})))}const Bb=ov(Rb)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Hb={menuItem:"alternative-menu-item"},Vb=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>hy((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return j.createElement(Rb,dp({className:`${i.root} ${n}`},r))},Ub=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Hb.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 Wb({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=Ae.detectTextDirection(e);return!s?j.createElement(Bb,{role:"menuitem",button:!0,onClick:n,className:Hb.menuItem,onKeyDown:Ub,autoFocus:t},j.createElement(Nb,{style:{minWidth:32}},j.createElement(Fb,{d:t?Xm.d:""})),j.createElement(Lb,{primaryTypographyProps:{dir:l}},e)):j.createElement(Vb,{nested:r,role:"menuitem",button:!0,onClick:n,className:Hb.menuItem,onKeyDown:Ub,dir:a,autoFocus:t},j.createElement(Lb,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),j.createElement(Nb,{style:{minWidth:16}},j.createElement(Fb,{d:t?Xm.d:""})),i&&j.createElement(Nb,{style:{minWidth:16}},j.createElement(Fb,{d:i.d})))}Wb.propTypes={title:hp.string.isRequired,selected:hp.bool,onClick:hp.func.isRequired,nested:hp.bool,icon:hp.shape({d:hp.string.isRequired}),bold:hp.bool,dir:hp.string.isRequired,isCyclicFFEnabled:hp.bool.isRequired},Wb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Vb.propTypes={nested:hp.bool,className:hp.string},Vb.defaultProps={nested:!1,className:Hb.menuItem};const Yb={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function Gb({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l,isCyclicFFEnabled:c}){const u=c,d=o.map(((t,i)=>{var s;return j.createElement(j.Fragment,{key:t.id},j.createElement(Wb,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r,isCyclicFFEnabled:c}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&j.createElement(Tb,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>j.createElement(Wb,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r,isCyclicFFEnabled:c})))),i<o.length-1&&u&&j.createElement(bb,{key:`divider-${t.id}`}))}));return j.createElement(_b,dp({anchorEl:t,open:s,onClose:a},Yb[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),j.createElement(Tb,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},d))}Gb.propTypes={alignTo:hp.any,currentId:hp.string.isRequired,dir:hp.string.isRequired,dock:hp.string.isRequired,list:hp.array,onClose:hp.func.isRequired,show:hp.bool.isRequired,instruction:hp.string.isRequired,isCyclicFFEnabled:hp.bool.isRequired},Gb.defaultProps={list:[],alignTo:null};const Xb="title-button",Kb="active-title-button",Jb=ov((({children:e,...t})=>j.createElement(nb,dp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Zb=ov(nb)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Qb extends j.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=j.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Xb}`);t&&t.classList.add(Kb)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Xb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Kb}`);e&&(e.classList.remove(Kb),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},m=t.breadcrumbs.length,p=i||Boolean(!t.drillUp)||this.state.inSelection,f=t.breadcrumbs.map(((e,n)=>j.createElement(Jb,{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:t.drillUp(m-n),title:e},j.createElement("span",{style:d},e),j.createElement(Fb,dp({},Jm,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||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",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Ae.detectTextDirection(t.text),S=j.createElement(Jb,{"aria-label":r.get(`Accessibility.${n&&h?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Xb} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&j.createElement(Fb,dp({},Gm,{size:"small",title:r.get("Tooltip.selections.locked")})),j.createElement("span",{style:d,dir:x},t.text),n&&h&&j.createElement(Fb,dp({},Km,{size:"small",style:{margin:"0 8px"}})));return j.createElement(j.Fragment,null,t.icon&&t.icon.onClick&&j.createElement(Zb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},j.createElement(Fb,dp({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&j.createElement(Fb,dp({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,j.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},S),n&&h&&j.createElement(Gb,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function ex(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function tx(e){function t(e){return!e.isDimension&&ge.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],E=r||i[a?"qDimensionInfo":"qMeasureInfo"],M=a?sp:cp,C=a?lp:up,O=Boolean(l&&l.colorSupport&&l.modifiers),T=O&&((w=this.settings.settings).isDimension&&ge.getValue(w,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var w;const A=g("PS_21223_CYCLIC_GROUPS"),R=E.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,g=C(t,o,l,e),v=r===E.length-1,b=A&&Boolean(e)&&a&&"N"!==t.qGrouping,x=O||b?M({column:o,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:ex(y),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:O,isCyclicFFEnabled:A}):void 0;return j.createElement(j.Fragment,{key:t.cId},j.createElement(Qb,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:x,titleData:g,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:h,isCyclicFFEnabled:A}),!v&&j.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return j.createElement("div",{style:b,dir:v},R)}}}Qb.propTypes={disabled:hp.bool.isRequired,padding:hp.string,minWidth:hp.string,titleData:hp.shape({breadcrumbs:hp.arrayOf(hp.string).isRequired,icon:hp.shape({path:hp.shape({d:hp.string.isRequired}),tooltip:hp.string.isRequired,onClick:hp.func}),index:hp.number.isRequired,locked:hp.bool.isRequired,text:hp.string.isRequired,popoverText:hp.string.isRequired,drillUp:hp.func,id:hp.string.isRequired}).isRequired,popover:hp.shape({dir:hp.string.isRequired,dock:hp.string.isRequired,getPopoverOptions:hp.func.isRequired}),translator:hp.shape({get:hp.func.isRequired}).isRequired,selections:hp.shape({isActive:hp.func,addListener:hp.func,removeListener:hp.func}),style:hp.shape({fontSize:hp.string,color:hp.string,fontFamily:hp.string}).isRequired,isDimension:hp.bool.isRequired,hasAlternative:hp.bool.isRequired,supportConditional:hp.bool.isRequired,isCyclicFFEnabled:hp.bool.isRequired,showGroupDimOptions:hp.bool.isRequired},Qb.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const nx=cf({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 rx=mf({productionPrefix:"qc8c9",disableGlobal:!0,seed:""});function ix(){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",G.render(function(e,t){return j.createElement(dy,{generateClassName:t},j.createElement(nv,{theme:nx},e))}(e,rx),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&G.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(G.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function ox(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:ox(i,t,n)},i}function ax(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),ox(i,a,l,e.invert)}))}const sx={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function lx({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=le({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const m=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:m}),f=(u-p)/2,h=f+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:f,rendWidth:t,rendHeight:n}}function cx({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=le(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const m=i.minor||{};let p;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{start:{scale:m.scale,ref:"start"},end:{scale:m.scale,ref:"end"},min:{scale:m.scale,ref:"min"},max:{scale:m.scale,ref:"max"},med:{scale:m.scale,ref:"med"}},m)})};for(let n=0,r=e.length;n<r;n++)p=e[n],f[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:c});return f}const ux=["oob"];const dx={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=cx({keys:ux,data:i,defaultSettings:{oob:sx.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=lx}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:m,rendWidth:p,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(sx.createOob({oob:d.oob,dockValue:a,boxCenter:m,rendWidth:p,rendHeight:f,flipXY:n,symbol:o}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:ux,symbol:s,dockValue:n});return d}},mx={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},px=["hat"];function fx(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 hx({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let m=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=le({},e.hat,{type:"path",d:fx(m)});m=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,le({},e.hat,{type:"path",d:fx(m)})]}const gx={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=cx({keys:px,data:r,defaultSettings:mx,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=lx}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...hx({item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:px});return c}};var yx={UNCLASSIFIED:"unclassified",EQUAL_EQUAL:"equal-equal",EQUAL_HIGHER:"equal-higher",EQUAL_LOWER:"equal-lower",EQUAL_VOID:"equal-void",HIGHER_EQUAL:"higher-equal",HIGHER_HIGHER_ACUTE:"higher-higher-acute",HIGHER_HIGHER_OBTUSE:"higher-higher-obtuse",HIGHER_LOWER_NEGATIVE:"higher-lower-negative",HIGHER_LOWER_POSITIVE:"higher-lower-positive",HIGHER_VOID:"higher-void",LOWER_EQUAL:"lower-equal",LOWER_HIGHER_NEGATIVE:"lower-higher-negative",LOWER_HIGHER_POSITIVE:"lower-higher-positive",LOWER_LOWER_ACUTE:"lower-lower-acute",LOWER_LOWER_OBTUSE:"lower-lower-obtuse",LOWER_VOID:"lower-void",VOID_EQUAL:"void-equal",VOID_HIGHER:"void-higher",VOID_LOWER:"void-lower",VOID_VOID:"void-void",MARKER:"marker"};function vx(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function bx(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function xx({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?yx.EQUAL_EQUAL:i<o?yx.EQUAL_HIGHER:yx.EQUAL_LOWER:i===o?r>i?yx.HIGHER_EQUAL:yx.LOWER_EQUAL:r>i?i<o?bx(e,t,n)>90?yx.HIGHER_HIGHER_OBTUSE:yx.HIGHER_HIGHER_ACUTE:vx(e,t)>vx(e,n)?yx.HIGHER_LOWER_POSITIVE:yx.HIGHER_LOWER_NEGATIVE:i>o?bx(e,t,n)>90?yx.LOWER_LOWER_OBTUSE:yx.LOWER_LOWER_ACUTE:vx(e,t)>vx(e,n)?yx.LOWER_HIGHER_POSITIVE:yx.LOWER_HIGHER_NEGATIVE:r===i?yx.EQUAL_VOID:r>i?yx.HIGHER_VOID:yx.LOWER_VOID:i===o?yx.VOID_EQUAL:i<o?yx.VOID_HIGHER:yx.VOID_LOWER:yx.VOID_VOID}function Sx({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const Ex={X:1,Y:0};function Mx({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const m=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:p}=e,{"stroke-width":f}=e.attrs,h=r.pointValue(e.data),g={x:p.x+p.width/2,y:p.y+p.height/2,width:m.width+2*Ex.X,height:m.height+2*Ex.Y},y=`${g.x}-${g.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(v?1-x:x)<=(b<=200?.25:.1),E={key:y,node:e,line:t,group:n,value:h,labelMeasurements:m,bounds:g,inside:Sx({bounds:p,size:a}),border:f?f/2:0,classification:yx.UNCLASSIFIED,setClassification(e){E.classification=e},preferences:[],setPreferences(e){E.preferences.push(...e)},placement:void 0,setPlacement(e){E.placement=e},duplicate:!1,setDuplicate(){E.duplicate=!0},extreme:c.getExtreme(y),elite:S,show:u(e)};return E}function Cx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:e}),c=function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,c)=>e.map((e=>({line:e.line,item:Mx({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{})));return c.filter((e=>Object.keys(e).length))}var Ox={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Tx={[yx.EQUAL_EQUAL]:[Ox.TOP,Ox.BOTTOM],[yx.EQUAL_HIGHER]:[Ox.BOTTOM,Ox.BOTTOM_RIGHT],[yx.EQUAL_LOWER]:[Ox.TOP,Ox.TOP_RIGHT],[yx.EQUAL_VOID]:[Ox.TOP,Ox.BOTTOM],[yx.HIGHER_EQUAL]:[Ox.LEFT,Ox.BOTTOM_LEFT,Ox.TOP,Ox.TOP_RIGHT],[yx.HIGHER_HIGHER_ACUTE]:[Ox.BOTTOM,Ox.BOTTOM_LEFT,Ox.LEFT,Ox.TOP_RIGHT],[yx.HIGHER_HIGHER_OBTUSE]:[Ox.BOTTOM,Ox.TOP],[yx.HIGHER_LOWER_NEGATIVE]:[Ox.TOP,Ox.TOP_RIGHT,Ox.RIGHT],[yx.HIGHER_LOWER_POSITIVE]:[Ox.BOTTOM,Ox.BOTTOM_LEFT,Ox.LEFT],[yx.HIGHER_VOID]:[Ox.TOP],[yx.LOWER_EQUAL]:[Ox.TOP],[yx.LOWER_HIGHER_NEGATIVE]:[Ox.TOP,Ox.TOP_LEFT],[yx.LOWER_HIGHER_POSITIVE]:[Ox.BOTTOM_RIGHT],[yx.LOWER_LOWER_ACUTE]:[Ox.TOP,Ox.TOP_LEFT,Ox.LEFT,Ox.TOP_RIGHT,Ox.RIGHT],[yx.LOWER_LOWER_OBTUSE]:[Ox.TOP,Ox.BOTTOM],[yx.LOWER_VOID]:[Ox.TOP],[yx.VOID_EQUAL]:[Ox.TOP],[yx.VOID_HIGHER]:[Ox.TOP,Ox.BOTTOM],[yx.VOID_LOWER]:[Ox.TOP,Ox.BOTTOM,Ox.LEFT],[yx.VOID_VOID]:[Ox.TOP],[yx.MARKER]:[Ox.TOP,Ox.BOTTOM,Ox.RIGHT,Ox.LEFT,Ox.TOP_RIGHT,Ox.BOTTOM_RIGHT,Ox.BOTTOM_LEFT,Ox.TOP_LEFT]};function wx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s,marker:l}){const c=Cx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...c.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[d]=u;let m=[];l||(m=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:c,threshold:d.node.localBounds.height}));const p={getItems:()=>u,getLines:()=>m};return function({groups:e,marker:t=!1}){for(let n=0;n<e.length;n++){const r=Object.keys(e[n]).map((t=>e[n][t]));for(let i=0;i<r.length;i++){const o=r[i],a=t?yx.MARKER:xx({previous:e[n-1]&&e[n-1][o.line],current:o,next:e[n+1]&&e[n+1][o.line]});o.setClassification(a)}}}({groups:c,marker:l}),p.getItems().forEach((e=>e.setPreferences(Tx[e.classification]))),p}function Ax({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function Rx({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function kx({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return Rx({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||Rx({line1:e,line2:a})||Rx({line1:e,line2:s})||Rx({line1:e,line2:l})}({line:t,rect:e})))}const Nx={x:0,width:0,y:0,height:0};var Ix={TOP:"top",BOTTOM:"bottom",RIGHT:"right",LEFT:"left",TOP_RIGHT:"top-right",BOTTOM_RIGHT:"bottom-right",BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left"};const Lx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Px=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Dx=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),qx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),zx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),$x=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),_x=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),jx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Fx={X:2.5,Y:4};const Bx=[Ox.TOP,Ox.TOP_LEFT,Ox.TOP_RIGHT],Hx=[Ox.BOTTOM,Ox.BOTTOM_LEFT,Ox.BOTTOM_RIGHT];function Vx({position:e}){const t={x:Fx.X,width:-2*Fx.X,y:0,height:0},n=Bx.indexOf(e)>-1,r=Hx.indexOf(e)>-1;return n&&(t.y=Fx.Y,t.height=-Fx.Y),r&&(t.height=-Fx.Y),t}function Ux({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function Wx({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}const Yx=15;function Gx({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=Yx){const a=Wx({coordinates:Ux({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=Yx){const a=Wx({coordinates:Ux({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const Xx=void 0;function Kx({item:e,validator:t,force:n=!1,marker:r=!1}){const i=[...e.preferences,...Object.keys(r?Ix:Ox).map((e=>Ox[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Ox.TOP]:Lx,[Ox.TOP_RIGHT]:Px,[Ox.RIGHT]:Dx,[Ox.BOTTOM_RIGHT]:qx,[Ox.BOTTOM]:zx,[Ox.BOTTOM_LEFT]:$x,[Ox.LEFT]:_x,[Ox.TOP_LEFT]:jx},a=[];for(let r=0;r<i.length;r++){const s=i[r],l=o[s]({item:e}),c=Vx({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&a.push(l),u.valid)return l}const s=()=>Gx({item:e,validator:t,force:n});if(n){const e=s();return e||(a[0]||Xx)}return(e.extreme||e.elite)&&s()||Xx}function Jx({model:e,size:t,all:n,marker:r}){const i={},o=e.getItems(),a=[...o.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],s=[],l=e.getLines();o.forEach((e=>{const{data:o}=e.node;if(!e.show||!e.inside||o.null&&o.null.value||o.interpolated&&o.interpolated.value)return;const{key:c}=e;if(i[c])return void e.setDuplicate();i[c]=!0;const u=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=Nx,ignoreLines:a=!1}){const s={inside:Ax({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=kx({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:l,placements:a}),d=Kx({item:e,validator:u,marker:r});d?(d.height=e.bounds.height,d.width=e.bounds.width,a.push(d),e.setPlacement(d)):n&&s.push({item:e,validator:u})})),s.forEach((e=>{const{item:t,validator:n}=e,i=Kx({item:t,validator:n,marker:r,force:!0});i&&(i.height=t.bounds.height,i.width=t.bounds.width,a.push(i),t.setPlacement(i))}))}var Zx={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10},marker:!1},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{target:t,enabled:n,marker:r}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:i}=t,o=i.length?e=>i.includes(e.key):e=>e.key===t.point;let a;if(a=r?this.chart.findShapes("path").concat(this.chart.findShapes("rect")).concat(this.chart.findShapes("circle")).filter(o):this.chart.findShapes("circle").filter(o),!a.length)return[];const s="horizontal"===e.orientation,l=s?"x":"y";a.sort(((e,t)=>e.localBounds[l]-t.localBounds[l]));const c={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:u,width:d,edgeBleed:m}=this.rect,p={height:u,width:d,edgeBleed:m,insideStrategy:e.insideStrategy},{style:f}=this,h=wx({nodes:a,extract:c,style:f,measureText:this.renderer.measureText,size:p,horizontal:s,rtl:e.rtl,showLabel:e.showLabel,marker:r});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:h}),Jx({model:h,size:p,all:e.all,marker:r}),h.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:c.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},Qx={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var eS={black:"#000",white:"#fff"};var tS={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"};var nS={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var rS={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"};var iS={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var oS={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"};var aS={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"};var sS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function lS(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var cS=Object.freeze({__proto__:null,default:lS}),uS="$$material";function dS(){return dS=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},dS.apply(this,arguments)}function mS(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 pS(){return pS=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},pS.apply(this,arguments)}function fS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var hS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gS=fS((function(e){return hS.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var yS=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),vS="-ms-",bS="-moz-",xS="-webkit-",SS="comm",ES="rule",MS="decl",CS="@keyframes",OS=Math.abs,TS=String.fromCharCode,wS=Object.assign;function AS(e){return e.trim()}function RS(e,t,n){return e.replace(t,n)}function kS(e,t){return e.indexOf(t)}function NS(e,t){return 0|e.charCodeAt(t)}function IS(e,t,n){return e.slice(t,n)}function LS(e){return e.length}function PS(e){return e.length}function DS(e,t){return t.push(e),e}var qS=1,zS=1,$S=0,_S=0,jS=0,FS="";function BS(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qS,column:zS,length:a,return:""}}function HS(e,t){return wS(BS("",null,null,"",null,null,0),e,{length:-e.length},t)}function VS(){return jS=_S>0?NS(FS,--_S):0,zS--,10===jS&&(zS=1,qS--),jS}function US(){return jS=_S<$S?NS(FS,_S++):0,zS++,10===jS&&(zS=1,qS++),jS}function WS(){return NS(FS,_S)}function YS(){return _S}function GS(e,t){return IS(FS,e,t)}function XS(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function KS(e){return qS=zS=1,$S=LS(FS=e),_S=0,[]}function JS(e){return FS="",e}function ZS(e){return AS(GS(_S-1,tE(91===e?e+2:40===e?e+1:e)))}function QS(e){for(;(jS=WS())&&jS<33;)US();return XS(e)>2||XS(jS)>3?"":" "}function eE(e,t){for(;--t&&US()&&!(jS<48||jS>102||jS>57&&jS<65||jS>70&&jS<97););return GS(e,YS()+(t<6&&32==WS()&&32==US()))}function tE(e){for(;US();)switch(jS){case e:return _S;case 34:case 39:34!==e&&39!==e&&tE(jS);break;case 40:41===e&&tE(e);break;case 92:US()}return _S}function nE(e,t){for(;US()&&e+jS!==57&&(e+jS!==84||47!==WS()););return"/*"+GS(t,_S-1)+"*"+TS(47===e?e:US())}function rE(e){for(;!XS(WS());)US();return GS(e,_S)}function iE(e){return JS(oE("",null,null,null,[""],e=KS(e),0,[0],e))}function oE(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,m=0,p=0,f=0,h=1,g=1,y=1,v=0,b="",x=i,S=o,E=r,M=b;g;)switch(f=v,v=US()){case 40:if(108!=f&&58==NS(M,d-1)){-1!=kS(M+=RS(ZS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=ZS(v);break;case 9:case 10:case 13:case 32:M+=QS(f);break;case 92:M+=eE(YS()-1,7);continue;case 47:switch(WS()){case 42:case 47:DS(sE(nE(US(),YS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=LS(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=RS(M,/\f/g,"")),p>0&&LS(M)-d&&DS(p>32?lE(M+";",r,n,d-1):lE(RS(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(DS(E=aE(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)oE(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===NS(M,3)?100:m){case 100:case 108:case 109:case 115:oE(e,E,E,r&&DS(aE(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:oE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+LS(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==VS())continue;switch(M+=TS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(LS(M)-1)*y,y=1;break;case 64:45===WS()&&(M+=ZS(US())),m=WS(),u=d=LS(b=M+=rE(YS())),v++;break;case 45:45===f&&2==LS(M)&&(h=0)}}return o}function aE(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=PS(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=IS(e,d+1,d=OS(h=a[f])),b=e;y<p;++y)(b=AS(h>0?m[y]+" "+v:RS(v,/&\f/g,m[y])))&&(l[g++]=b);return BS(e,t,n,0===i?ES:s,l,c,u)}function sE(e,t,n){return BS(e,t,n,SS,TS(jS),IS(e,2,-2),0)}function lE(e,t,n,r){return BS(e,t,n,MS,IS(e,0,r),IS(e,r+1,-1),r)}function cE(e,t){for(var n="",r=PS(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function uE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case MS:return e.return=e.return||e.value;case SS:return"";case CS:return e.return=e.value+"{"+cE(e.children,r)+"}";case ES:e.value=e.props.join(",")}return LS(n=cE(e.children,r))?e.return=e.value+"{"+n+"}":""}function dE(e){var t=PS(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var mE=function(e,t,n){for(var r=0,i=0;r=i,i=WS(),38===r&&12===i&&(t[n]=1),!XS(i);)US();return GS(e,_S)},pE=function(e,t){return JS(function(e,t){var n=-1,r=44;do{switch(XS(r)){case 0:38===r&&12===WS()&&(t[n]=1),e[n]+=mE(_S-1,t,n);break;case 2:e[n]+=ZS(r);break;case 4:if(44===r){e[++n]=58===WS()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=TS(r)}}while(r=US());return e}(KS(e),t))},fE=new WeakMap,hE=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||fE.get(n))&&!r){fE.set(e,!0);for(var i=[],o=pE(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},gE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function yE(e,t){switch(function(e,t){return 45^NS(e,0)?(((t<<2^NS(e,0))<<2^NS(e,1))<<2^NS(e,2))<<2^NS(e,3):0}(e,t)){case 5103:return xS+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xS+e+bS+e+vS+e+e;case 6828:case 4268:return xS+e+vS+e+e;case 6165:return xS+e+vS+"flex-"+e+e;case 5187:return xS+e+RS(e,/(\w+).+(:[^]+)/,xS+"box-$1$2"+vS+"flex-$1$2")+e;case 5443:return xS+e+vS+"flex-item-"+RS(e,/flex-|-self/,"")+e;case 4675:return xS+e+vS+"flex-line-pack"+RS(e,/align-content|flex-|-self/,"")+e;case 5548:return xS+e+vS+RS(e,"shrink","negative")+e;case 5292:return xS+e+vS+RS(e,"basis","preferred-size")+e;case 6060:return xS+"box-"+RS(e,"-grow","")+xS+e+vS+RS(e,"grow","positive")+e;case 4554:return xS+RS(e,/([^-])(transform)/g,"$1"+xS+"$2")+e;case 6187:return RS(RS(RS(e,/(zoom-|grab)/,xS+"$1"),/(image-set)/,xS+"$1"),e,"")+e;case 5495:case 3959:return RS(e,/(image-set\([^]*)/,xS+"$1$`$1");case 4968:return RS(RS(e,/(.+:)(flex-)?(.*)/,xS+"box-pack:$3"+vS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xS+e+e;case 4095:case 3583:case 4068:case 2532:return RS(e,/(.+)-inline(.+)/,xS+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(LS(e)-1-t>6)switch(NS(e,t+1)){case 109:if(45!==NS(e,t+4))break;case 102:return RS(e,/(.+:)(.+)-([^]+)/,"$1"+xS+"$2-$3$1"+bS+(108==NS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kS(e,"stretch")?yE(RS(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==NS(e,t+1))break;case 6444:switch(NS(e,LS(e)-3-(~kS(e,"!important")&&10))){case 107:return RS(e,":",":"+xS)+e;case 101:return RS(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xS+(45===NS(e,14)?"inline-":"")+"box$3$1"+xS+"$2$3$1"+vS+"$2box$3")+e}break;case 5936:switch(NS(e,t+11)){case 114:return xS+e+vS+RS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xS+e+vS+RS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xS+e+vS+RS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xS+e+vS+e+e}return e}var vE="undefined"!=typeof document,bE=vE?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return fS((function(){var e={};return function(t){return e[t]}}))})),xE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case MS:e.return=yE(e.value,e.length);break;case CS:return cE([HS(e,{value:RS(e.value,"@","@"+xS)})],r);case ES:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cE([HS(e,{props:[RS(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cE([HS(e,{props:[RS(t,/:(plac\w+)/,":"+xS+"input-$1")]}),HS(e,{props:[RS(t,/:(plac\w+)/,":-moz-$1")]}),HS(e,{props:[RS(t,/:(plac\w+)/,vS+"input-$1")]})],r)}return""}))}}],SE=function(e){var t=e.key;if(vE&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||xE,a={},s=[];vE&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[hE,gE];if(vE){var u,d=[uE,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],m=dE(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){cE(iE(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[uE],f=dE(c.concat(o,p)),h=bE(o)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return cE(iE(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new yS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},EE="undefined"!=typeof document;var ME=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===EE&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},CE=function(e,t,n){ME(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);EE||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!EE&&0!==i.length)return i}};var OE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TE=/[A-Z]|^ms/g,wE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,AE=function(e){return 45===e.charCodeAt(1)},RE=function(e){return null!=e&&"boolean"!=typeof e},kE=fS((function(e){return AE(e)?e:e.replace(TE,"-$&").toLowerCase()})),NE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wE,(function(e,t,n){return LE={name:t,styles:n,next:LE},t}))}return 1===OE[e]||AE(e)||"number"!=typeof t||0===t?t:t+"px"};function IE(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return LE={name:n.name,styles:n.styles,next:LE},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)LE={name:r.name,styles:r.styles,next:LE},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=IE(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":RE(a)&&(r+=kE(o)+":"+NE(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=IE(e,t,a);switch(o){case"animation":case"animationName":r+=kE(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)RE(a[l])&&(r+=kE(o)+":"+NE(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=LE,o=n(e);return LE=i,IE(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var LE,PE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,DE=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";LE=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=IE(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=IE(n,t,e[a]),r&&(i+=o[a]);PE.lastIndex=0;for(var s,l="";null!==(s=PE.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:LE}},qE="undefined"!=typeof document,zE=function(e){return e()},$E=!!F.useInsertionEffect&&F.useInsertionEffect,_E=qE&&$E||zE,jE=$E||F.useLayoutEffect,FE="undefined"!=typeof document,BE=F.createContext("undefined"!=typeof HTMLElement?SE({key:"css"}):null),HE=BE.Provider,VE=function(e){return U((function(t,n){var r=W(BE);return e(t,r,n)}))};FE||(VE=function(e){return function(t){var n=W(BE);return null===n?(n=SE({key:"css"}),F.createElement(BE.Provider,{value:n},e(t,n))):e(t,n)}});var UE=F.createContext({}),WE=VE((function(e,t){var n=e.styles,r=DE([n],void 0,F.useContext(UE));if(!FE){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:F.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=F.useRef();return jE((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),jE((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&CE(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function YE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return DE(t)}var GE=function(){var e=YE.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},XE=gS,KE=function(e){return"theme"!==e},JE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?XE:KE},ZE=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},QE="undefined"!=typeof document,eM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ME(t,n,r);var i=_E((function(){return CE(t,n,r)}));if(!QE&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return F.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},tM=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=ZE(t,n,o),l=s||JE(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p])}var f=VE((function(e,t,n){var r,o,u,m,p=c&&e.as||a,f="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=F.useContext(UE)}"string"==typeof e.className?(r=t.registered,o=h,u=e.className,m="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):m+=e+" "})),f=m):null!=e.className&&(f=e.className+" ");var v=DE(d.concat(h),t.registered,g);f+=t.key+"-"+v.name,void 0!==i&&(f+=" "+i);var b=c&&void 0===s?JE(p):l,x={};for(var S in e)c&&"as"===S||b(S)&&(x[S]=e[S]);return x.className=f,x.ref=n,F.createElement(F.Fragment,null,F.createElement(eM,{cache:t,serialized:v,isStringTag:"string"==typeof p}),F.createElement(p,x))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,pS({},n,r,{shouldForwardProp:ZE(f,r,!0)})).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){tM[e]=tM(e)}));var nM={exports:{}},rM={},iM=j,oM=Symbol.for("react.element"),aM=Symbol.for("react.fragment"),sM=Object.prototype.hasOwnProperty,lM=iM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cM={key:!0,ref:!0,__self:!0,__source:!0};function uM(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)sM.call(t,r)&&!cM.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:oM,type:e,key:o,ref:a,props:i,_owner:lM.current}}rM.Fragment=aM,rM.jsx=uM,rM.jsxs=uM,nM.exports=rM;var dM=nM.exports;let mM;"object"==typeof document&&(mM=SE({key:"css",prepend:!0}));var pM=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return dM.jsx(WE,{styles:r})}
14
+ */Rh();var Ih=Date.now(),Lh="fnValues"+Ih,Ph="fnStyle"+ ++Ih,Dh=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Mf(e,{},n);return r[Ph]=t,r},onProcessStyle:function(e,t){if(Lh in t||Ph 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[Lh]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ph];o&&(i.style=o(e)||{});var a=i[Lh];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},qh="@global",$h="@global ",zh=function(){function e(e,t,n){for(var r in this.type="global",this.at=qh,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new sh(Cp({},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}(),_h=function(){function e(e,t,n){this.type="global",this.at=qh,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr($h.length);this.rule=n.jss.createRule(r,t,Cp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),jh=/\s*,\s*/g;function Bh(e,t){for(var n=e.split(jh),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Fh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===qh)return new zh(e,t,n);if("@"===e[0]&&e.substr(0,$h.length)===$h)return new _h(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[qh]:null;if(i){for(var o in i)t.addRule(o,i[o],Cp({},n,{selector:Bh(o,e.selector)}));delete r[qh]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,qh.length)===qh){var o=Bh(i.substr(qh.length),e.selector);t.addRule(o,r[i],Cp({},n,{selector:o})),delete r[i]}}(e,t))}}}var Hh=/\s*,\s*/g,Vh=/&/g,Uh=/\$([\w-]+)/g;function Wh(){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(Hh),r=e.split(Hh),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(Vh,a):a+" "+l}return i}function n(e,t,n){if(n)return Cp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Cp({},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,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),m="@"===u[0];if(d||m){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,o)),p=p.replace(Uh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Cp({},a,{selector:p})):c.addRule(f,r[u],Cp({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Yh=/[A-Z]/g,Gh=/^ms-/,Xh={};function Kh(e){return"-"+e.toLowerCase()}function Jh(e){if(Xh.hasOwnProperty(e))return Xh[e];var t=e.replace(Yh,Kh);return Xh[e]=Gh.test(t)?"-"+t:t}function Zh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Jh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Zh):t.fallbacks=Zh(e.fallbacks)),t}var Qh=kh&&CSS?CSS.px:"px",eg=kh&&CSS?CSS.ms:"ms",tg=kh&&CSS?CSS.percent:"%";function ng(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 rg=ng({"animation-delay":eg,"animation-duration":eg,"background-position":Qh,"background-position-x":Qh,"background-position-y":Qh,"background-size":Qh,border:Qh,"border-bottom":Qh,"border-bottom-left-radius":Qh,"border-bottom-right-radius":Qh,"border-bottom-width":Qh,"border-left":Qh,"border-left-width":Qh,"border-radius":Qh,"border-right":Qh,"border-right-width":Qh,"border-top":Qh,"border-top-left-radius":Qh,"border-top-right-radius":Qh,"border-top-width":Qh,"border-width":Qh,"border-block":Qh,"border-block-end":Qh,"border-block-end-width":Qh,"border-block-start":Qh,"border-block-start-width":Qh,"border-block-width":Qh,"border-inline":Qh,"border-inline-end":Qh,"border-inline-end-width":Qh,"border-inline-start":Qh,"border-inline-start-width":Qh,"border-inline-width":Qh,"border-start-start-radius":Qh,"border-start-end-radius":Qh,"border-end-start-radius":Qh,"border-end-end-radius":Qh,margin:Qh,"margin-bottom":Qh,"margin-left":Qh,"margin-right":Qh,"margin-top":Qh,"margin-block":Qh,"margin-block-end":Qh,"margin-block-start":Qh,"margin-inline":Qh,"margin-inline-end":Qh,"margin-inline-start":Qh,padding:Qh,"padding-bottom":Qh,"padding-left":Qh,"padding-right":Qh,"padding-top":Qh,"padding-block":Qh,"padding-block-end":Qh,"padding-block-start":Qh,"padding-inline":Qh,"padding-inline-end":Qh,"padding-inline-start":Qh,"mask-position-x":Qh,"mask-position-y":Qh,"mask-size":Qh,height:Qh,width:Qh,"min-height":Qh,"max-height":Qh,"min-width":Qh,"max-width":Qh,bottom:Qh,left:Qh,top:Qh,right:Qh,inset:Qh,"inset-block":Qh,"inset-block-end":Qh,"inset-block-start":Qh,"inset-inline":Qh,"inset-inline-end":Qh,"inset-inline-start":Qh,"box-shadow":Qh,"text-shadow":Qh,"column-gap":Qh,"column-rule":Qh,"column-rule-width":Qh,"column-width":Qh,"font-size":Qh,"font-size-delta":Qh,"letter-spacing":Qh,"text-decoration-thickness":Qh,"text-indent":Qh,"text-stroke":Qh,"text-stroke-width":Qh,"word-spacing":Qh,motion:Qh,"motion-offset":Qh,outline:Qh,"outline-offset":Qh,"outline-width":Qh,perspective:Qh,"perspective-origin-x":tg,"perspective-origin-y":tg,"transform-origin":tg,"transform-origin-x":tg,"transform-origin-y":tg,"transform-origin-z":tg,"transition-delay":eg,"transition-duration":eg,"vertical-align":Qh,"flex-basis":Qh,"shape-margin":Qh,size:Qh,gap:Qh,grid:Qh,"grid-gap":Qh,"row-gap":Qh,"grid-row-gap":Qh,"grid-column-gap":Qh,"grid-template-rows":Qh,"grid-template-columns":Qh,"grid-auto-rows":Qh,"grid-auto-columns":Qh,"box-shadow-x":Qh,"box-shadow-y":Qh,"box-shadow-blur":Qh,"box-shadow-spread":Qh,"font-line-height":Qh,"text-shadow-x":Qh,"text-shadow-y":Qh,"text-shadow-blur":Qh});function ig(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ig(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=ig(i,t[i],n);else for(var o in t)t[o]=ig(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||rg[e];return!a||0===t&&a===Qh?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function og(e){void 0===e&&(e={});var t=ng(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ig(r,e[r],t);return e},onChangeValue:function(e,n){return ig(n,e,t)}}}var ag="",sg="",lg="",cg="",ug=hf&&"ontouchstart"in document.documentElement;if(hf){var dg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},mg=document.createElement("p").style;for(var pg in dg)if(pg+"Transform"in mg){ag=pg,sg=dg[pg];break}"Webkit"===ag&&"msHyphens"in mg&&(ag="ms",sg=dg.ms,cg="edge"),"Webkit"===ag&&"-apple-trailing-word"in mg&&(lg="apple")}var fg={js:ag,css:sg,vendor:lg,browser:cg,isTouch:ug};var hg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===fg.js?"-webkit-"+e:fg.css+e)}},gg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===fg.js?fg.css+"print-"+e:e)}},yg=/[-\s]+(.)?/g;function vg(e,t){return t?t.toUpperCase():""}function bg(e){return e.replace(yg,vg)}function xg(e){return bg("-"+e)}var Sg,Eg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===fg.js){var n="mask-image";if(bg(n)in t)return e;if(fg.js+xg(n)in t)return fg.css+e}return e}},Mg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fg.vendor||fg.isTouch?e:fg.css+e)}},Cg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:fg.css+e)}},Og={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:fg.css+e)}},Tg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===fg.js||"ms"===fg.js&&"edge"!==fg.browser?fg.css+e:e)}},wg={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===fg.js||"ms"===fg.js||"apple"===fg.vendor?fg.css+e:e)}},Ag={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===fg.js?"WebkitColumn"+xg(e)in t&&fg.css+"column-"+e:"Moz"===fg.js&&("page"+xg(e)in t&&"page-"+e))}},Rg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===fg.js)return e;var n=e.replace("-inline","");return fg.js+xg(n)in t&&fg.css+n}},kg={supportedProperty:function(e,t){return bg(e)in t&&e}},Ng={supportedProperty:function(e,t){var n=xg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:fg.js+n in t?fg.css+e:"Webkit"!==fg.js&&"Webkit"+n in t&&"-webkit-"+e}},Ig={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===fg.js?""+fg.css+e:e)}},Lg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===fg.js?fg.css+"scroll-chaining":e)}},Pg={"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"},Dg={supportedProperty:function(e,t){var n=Pg[e];return!!n&&(fg.js+xg(n)in t&&fg.css+n)}},qg={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"},$g=Object.keys(qg),zg=function(e){return fg.css+e},_g={supportedProperty:function(e,t,n){var r=n.multiple;if($g.indexOf(e)>-1){var i=qg[e];if(!Array.isArray(i))return fg.js+xg(i)in t&&fg.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(fg.js+xg(i[0])in t))return!1;return i.map(zg)}return!1}},jg=[hg,gg,Eg,Mg,Cg,Og,Tg,wg,Ag,Rg,kg,Ng,Ig,Lg,Dg,_g],Bg=jg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Fg=jg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,ef(t.noPrefill)),e}),[]),Hg={};if(hf){Sg=document.createElement("p");var Vg=window.getComputedStyle(document.documentElement,"");for(var Ug in Vg)isNaN(Ug)||(Hg[Vg[Ug]]=Vg[Ug]);Fg.forEach((function(e){return delete Hg[e]}))}function Wg(e,t){if(void 0===t&&(t={}),!Sg)return e;if(null!=Hg[e])return Hg[e];"transition"!==e&&"transform"!==e||(t[e]=e in Sg.style);for(var n=0;n<Bg.length&&(Hg[e]=Bg[n](e,Sg.style,t),!Hg[e]);n++);try{Sg.style[e]=""}catch(e){return!1}return Hg[e]}var Yg,Gg={},Xg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Kg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Jg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Wg(t):", "+Wg(n);return r||(t||n)}function Zg(e,t){var n=t;if(!Yg||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Gg[r])return Gg[r];try{Yg.style[e]=n}catch(e){return Gg[r]=!1,!1}if(Xg[e])n=n.replace(Kg,Jg);else if(""===Yg.style[e]&&("-ms-flex"===(n=fg.css+n)&&(Yg.style[e]="-ms-flexbox"),Yg.style[e]=n,""===Yg.style[e]))return Gg[r]=!1,!1;return Yg.style[e]="",Gg[r]=n,Gg[r]}function Qg(){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=Wg(n);o&&o!==n&&(i=!0);var a=!1,s=Zg(o,Of(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"===fg.js?e:"@"+fg.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Zg(t,Of(e))||e}}}function ey(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function ty(){return{plugins:[Dh(),Fh(),Wh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Zh(e[t]);return e}return Zh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Jh(t);return t===r?e:(n.prop(r,e),null)}},og(),"undefined"==typeof window?null:Qg(),ey()]}}function ny(){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=Cp({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}hf&&(Yg=document.createElement("p"));var ry={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)}},iy=ry,oy=j.createContext(null);function ay(){return j.useContext(oy)}var sy,ly=Rh(ty()),cy={disableGeneration:!1,generateClassName:mf(),jss:ly,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},uy=j.createContext(cy);function dy(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=$p(e,["children","injectFirst","disableGeneration"]),s=Cp({},j.useContext(uy),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!sy){var l=document.head;sy=document.createComment("mui-inject-first"),l.insertBefore(sy,l.firstChild)}s.jss=Rh({plugins:ty().plugins,insertionPoint:sy})}return j.createElement(uy.Provider,{value:s},t)}var my=-1e9;var py={};function fy(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=iy.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},iy.set(i.sheetsManager,o,r,s));var l=Cp({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=i.sheetsRegistry;if(0===s.refs){var u;i.sheetsCache&&(u=iy.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,Cp({link:!1},l))).attach(),i.sheetsCache&&iy.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Nh(d)}if(s.dynamicStyles){var m=i.jss.createStyleSheet(s.dynamicStyles,Cp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=ny({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function hy(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?py:o,s=$p(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=Cp({},i);return Object.keys(o).forEach((function(e){a[e]=wp(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:my+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ay()||a,r=Cp({},j.useContext(uy),s),o=j.useRef(),c=j.useRef();!function(e,t){var n,r=j.useRef([]),i=j.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),j.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return fy(i,e),c.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=iy.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(iy.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]),j.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var 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=ny({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function gy(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=gy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=gy(e))&&(r&&(r+=" "),r+=t);return r}var vy={exports:{}},by={},xy="function"==typeof Symbol&&Symbol.for,Sy=xy?Symbol.for("react.element"):60103,Ey=xy?Symbol.for("react.portal"):60106,My=xy?Symbol.for("react.fragment"):60107,Cy=xy?Symbol.for("react.strict_mode"):60108,Oy=xy?Symbol.for("react.profiler"):60114,Ty=xy?Symbol.for("react.provider"):60109,wy=xy?Symbol.for("react.context"):60110,Ay=xy?Symbol.for("react.async_mode"):60111,Ry=xy?Symbol.for("react.concurrent_mode"):60111,ky=xy?Symbol.for("react.forward_ref"):60112,Ny=xy?Symbol.for("react.suspense"):60113,Iy=xy?Symbol.for("react.suspense_list"):60120,Ly=xy?Symbol.for("react.memo"):60115,Py=xy?Symbol.for("react.lazy"):60116,Dy=xy?Symbol.for("react.block"):60121,qy=xy?Symbol.for("react.fundamental"):60117,$y=xy?Symbol.for("react.responder"):60118,zy=xy?Symbol.for("react.scope"):60119;function _y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Sy:switch(e=e.type){case Ay:case Ry:case My:case Oy:case Cy:case Ny:return e;default:switch(e=e&&e.$$typeof){case wy:case ky:case Py:case Ly:case Ty:return e;default:return t}}case Ey:return t}}}function jy(e){return _y(e)===Ry}by.AsyncMode=Ay,by.ConcurrentMode=Ry,by.ContextConsumer=wy,by.ContextProvider=Ty,by.Element=Sy,by.ForwardRef=ky,by.Fragment=My,by.Lazy=Py,by.Memo=Ly,by.Portal=Ey,by.Profiler=Oy,by.StrictMode=Cy,by.Suspense=Ny,by.isAsyncMode=function(e){return jy(e)||_y(e)===Ay},by.isConcurrentMode=jy,by.isContextConsumer=function(e){return _y(e)===wy},by.isContextProvider=function(e){return _y(e)===Ty},by.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Sy},by.isForwardRef=function(e){return _y(e)===ky},by.isFragment=function(e){return _y(e)===My},by.isLazy=function(e){return _y(e)===Py},by.isMemo=function(e){return _y(e)===Ly},by.isPortal=function(e){return _y(e)===Ey},by.isProfiler=function(e){return _y(e)===Oy},by.isStrictMode=function(e){return _y(e)===Cy},by.isSuspense=function(e){return _y(e)===Ny},by.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===My||e===Ry||e===Oy||e===Cy||e===Ny||e===Iy||"object"==typeof e&&null!==e&&(e.$$typeof===Py||e.$$typeof===Ly||e.$$typeof===Ty||e.$$typeof===wy||e.$$typeof===ky||e.$$typeof===qy||e.$$typeof===$y||e.$$typeof===zy||e.$$typeof===Dy)},by.typeOf=_y,vy.exports=by;var By=vy.exports,Fy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Hy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uy={};function Wy(e){return By.isMemo(e)?Vy:Uy[e.$$typeof]||Fy}Uy[By.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uy[By.Memo]=Vy;var Yy=Object.defineProperty,Gy=Object.getOwnPropertyNames,Xy=Object.getOwnPropertySymbols,Ky=Object.getOwnPropertyDescriptor,Jy=Object.getPrototypeOf,Zy=Object.prototype;var Qy=function e(t,n,r){if("string"!=typeof n){if(Zy){var i=Jy(n);i&&i!==Zy&&e(t,i,r)}var o=Gy(n);Xy&&(o=o.concat(Xy(n)));for(var a=Wy(t),s=Wy(n),l=0;l<o.length;++l){var c=o[l];if(!(Hy[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Ky(n,c);try{Yy(t,c,u)}catch(e){}}}}return t},ev=J(Qy);function tv(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=$p(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(Cp({theme:e},n))}}}:{root:t},l=hy(s,Cp({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 c=j.forwardRef((function(t,r){var i,o,a,s=t.children,c=t.className,u=t.clone,d=t.component,m=$p(t,["children","className","clone","component"]),p=yy(l(t).root,c),f=m;if(n&&(i=f,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),f=a),u)return j.cloneElement(s,Cp({className:yy(s.props.className,p)},f));if("function"==typeof s)return s(Cp({className:p},f));var h=d||e;return j.createElement(h,Cp({ref:r,className:p},f),s)}));return ev(c,e),c}}function nv(e){var t=e.children,n=e.theme,r=ay(),i=j.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Cp({},e,t)}(r,n);return null!=e&&(e[uf]=null!==r),e}),[n,r]);return j.createElement(oy.Provider,{value:i},t)}var rv=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=$p(t,["defaultTheme","withTheme","name"]),l=a,c=hy(e,Cp({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=j.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=$p(e,["classes","innerRef"]),u=c(Cp({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=ay()||r,a&&(d=pf({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),j.createElement(n,Cp({ref:s||t,classes:u},d))}));return ev(u,n),u}},iv=cf(),ov=function(e){var t=tv(e);return function(e,n){return t(e,Cp({defaultTheme:iv},n))}};function av(e,t){return rv(e,Cp({defaultTheme:iv},t))}function sv(e){if("string"!=typeof e)throw new Error(kp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lv(){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 cv(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=cv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function uv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cv(e))&&(r&&(r+=" "),r+=t);return r}function dv(e){return e&&e.ownerDocument||document}function mv(e){return dv(e).defaultView||window}function pv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var fv="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;function hv(e){var t=B.useRef(e);return fv((function(){t.current=e})),B.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function gv(e,t){return B.useMemo((function(){return null==e&&null==t?null:function(n){pv(e,n),pv(t,n)}}),[e,t])}var yv=!0,vv=!1,bv=null,xv={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 Sv(e){e.metaKey||e.altKey||e.ctrlKey||(yv=!0)}function Ev(){yv=!1}function Mv(){"hidden"===this.visibilityState&&vv&&(yv=!0)}function Cv(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return yv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!xv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ov(){vv=!0,window.clearTimeout(bv),bv=window.setTimeout((function(){vv=!1}),100)}function Tv(){var e=B.useCallback((function(e){var t,n=Y.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Sv,!0),t.addEventListener("mousedown",Ev,!0),t.addEventListener("pointerdown",Ev,!0),t.addEventListener("touchstart",Ev,!0),t.addEventListener("visibilitychange",Mv,!0))}),[]);return{isFocusVisible:Cv,onBlurVisible:Ov,ref:e}}var wv=!1,Av=j.createContext(null),Rv="unmounted",kv="exited",Nv="entering",Iv="entered",Lv="exiting",Pv=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=kv,r.appearStatus=Nv):i=Iv:i=t.unmountOnExit||t.mountOnEnter?Rv:kv,r.state={status:i},r.nextCallback=null,r}bf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rv?{status:kv}: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!==Nv&&n!==Iv&&(t=Nv):n!==Nv&&n!==Iv||(t=Lv)}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===Nv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:G.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kv&&this.setState({status:Rv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[G.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||wv?this.safeSetState({status:Iv},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Nv},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Iv},(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:G.findDOMNode(this);t&&!wv?(this.props.onExit(r),this.safeSetState({status:Lv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:kv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:kv},(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:G.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===Rv)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=qp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(Av.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function Dv(){}Pv.contextType=Av,Pv.propTypes={},Pv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dv,onEntering:Dv,onEntered:Dv,onExit:Dv,onExiting:Dv,onExited:Dv},Pv.UNMOUNTED=Rv,Pv.EXITED=kv,Pv.ENTERING=Nv,Pv.ENTERED=Iv,Pv.EXITING=Lv;var qv=Pv;function $v(e,t){var n=Object.create(null);return e&&F.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H(e)?t(e):e}(e)})),n}function zv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function _v(e,t,n){var r=$v(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 c=i[l][r];s[i[l][r]]=n(c)}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(H(a)){var s=o in t,l=o in r,c=t[o],u=H(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&H(c)&&(i[o]=V(a,{onExited:n.bind(null,a),in:c.props.in,exit:zv(a,"exit",e),enter:zv(a,"enter",e)})):i[o]=V(a,{in:!1}):i[o]=V(a,{onExited:n.bind(null,a),in:!0,exit:zv(a,"exit",e),enter:zv(a,"enter",e)})}})),i}var jv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Bv=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(xf(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}bf(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,$v(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:zv(e,"appear",n),enter:zv(e,"enter",n),exit:zv(e,"exit",n)})}))):_v(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=$v(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Cp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=qp(e,["component","childFactory"]),i=this.state.contextValue,o=jv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(Av.Provider,{value:i},o):j.createElement(Av.Provider,{value:i},j.createElement(t,r,o))},t}(j.Component);Bv.propTypes={},Bv.defaultProps={component:"div",childFactory:function(e){return e}};var Fv=Bv;function Hv(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 Vv=B.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,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,m=$p(e,["classes","className","component","square","elevation","variant"]);return B.createElement(o,Cp({className:uv(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),Uv=av((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Cp({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"})(Vv),Wv="undefined"==typeof window?B.useEffect:B.useLayoutEffect;function Yv(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,c=void 0===l?function(){}:l,u=e.timeout,d=B.useState(!1),m=d[0],p=d[1],f=uv(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=uv(t.child,m&&t.childLeaving,r&&t.childPulsate),y=hv(c);return Wv((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),B.createElement("span",{className:f,style:h},B.createElement("span",{className:g}))}var Gv=B.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=$p(e,["center","classes","className"]),s=B.useState([]),l=s[0],c=s[1],u=B.useRef(0),d=B.useRef(null);B.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var m=B.useRef(!1),p=B.useRef(null),f=B.useRef(null),h=B.useRef(null);B.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=B.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(ef(e),[B.createElement(Yv,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=B.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,c=void 0!==l&&l;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,y,v=c?null:h.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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,E=x.clientY;u=Math.round(S-b.left),d=Math.round(E-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(C,2))}e.touches?null===f.current&&(f.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},p.current=setTimeout((function(){f.current&&(f.current(),f.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=B.useCallback((function(){y({},{pulsate:!0})}),[y]),b=B.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&f.current)return e.persist(),f.current(),f.current=null,void(p.current=setTimeout((function(){b(e,t)})));f.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return B.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),B.createElement("span",Cp({className:uv(i.root,o),ref:h},a),B.createElement(Fv,{component:null,exit:!0},l))})),Xv=av((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"})(B.memo(Gv)),Kv=B.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,c=e.component,u=void 0===c?"button":c,d=e.disabled,m=void 0!==d&&d,p=e.disableRipple,f=void 0!==p&&p,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,S=e.onClick,E=e.onFocus,M=e.onFocusVisible,C=e.onKeyDown,O=e.onKeyUp,T=e.onMouseDown,w=e.onMouseLeave,A=e.onMouseUp,R=e.onTouchEnd,k=e.onTouchMove,N=e.onTouchStart,I=e.onDragLeave,L=e.tabIndex,P=void 0===L?0:L,D=e.TouchRippleProps,q=e.type,$=void 0===q?"button":q,z=$p(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"]),_=B.useRef(null);var j=B.useRef(null),F=B.useState(!1),H=F[0],V=F[1];m&&H&&V(!1);var U=Tv(),W=U.isFocusVisible,G=U.onBlurVisible,X=U.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return hv((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}B.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),_.current.focus()}}}),[]),B.useEffect((function(){H&&v&&!f&&j.current.pulsate()}),[f,v,H]);var J=K("start",T),Z=K("stop",I),Q=K("stop",A),ee=K("stop",(function(e){H&&e.preventDefault(),w&&w(e)})),te=K("start",N),ne=K("stop",R),re=K("stop",k),ie=K("stop",(function(e){H&&(G(e),V(!1)),x&&x(e)}),!1),oe=hv((function(e){_.current||(_.current=e.currentTarget),W(e)&&(V(!0),M&&M(e)),E&&E(e)})),ae=function(){var e=Y.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=B.useRef(!1),le=hv((function(e){v&&!se.current&&H&&j.current&&" "===e.key&&(se.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!m&&(e.preventDefault(),S&&S(e))})),ce=hv((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),O&&O(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&z.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=m):("a"===ue&&z.href||(de.role="button"),de["aria-disabled"]=m);var me=gv(r,t),pe=gv(X,_),fe=gv(me,pe),he=B.useState(!1),ge=he[0],ye=he[1];B.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!m;return B.createElement(ue,Cp({className:uv(s.root,l,H&&[s.focusVisible,b],m&&s.disabled),onBlur:ie,onClick:S,onFocus:oe,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:fe,tabIndex:m?-1:P},de,z),a,ve?B.createElement(Xv,Cp({ref:j,center:o},D)):null)})),Jv=av({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"})(Kv),Zv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Qv=B.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,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,m=void 0!==d&&d,p=e.noWrap,f=void 0!==p&&p,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?Zv:b,S=$p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Zv[v])||"span";return B.createElement(E,Cp({className:uv(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(sv(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(sv(r))],"initial"!==u&&i["display".concat(sv(u))]),ref:t},S))})),eb=av((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"})(Qv),tb=B.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,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,m=void 0!==d&&d,p=e.disableFocusRipple,f=void 0!==p&&p,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,S=e.startIcon,E=e.type,M=void 0===E?"button":E,C=e.variant,O=void 0===C?"text":C,T=$p(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),w=S&&B.createElement("span",{className:uv(r.startIcon,r["iconSize".concat(sv(x))])},S),A=h&&B.createElement("span",{className:uv(r.endIcon,r["iconSize".concat(sv(x))])},h);return B.createElement(Jv,Cp({className:uv(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(sv(a))],"medium"!==x&&[r["".concat(O,"Size").concat(sv(x))],r["size".concat(sv(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:uv(r.focusVisible,g),ref:t,type:M},T),B.createElement("span",{className:r.label},w,n,A))})),nb=av((function(e){return{root:Cp({},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:Dp(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:Dp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Dp(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(Dp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Dp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Dp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Dp(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"})(tb);var rb="undefined"!=typeof window?B.useLayoutEffect:B.useEffect,ib=B.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=B.useState(null),l=s[0],c=s[1],u=gv(B.isValidElement(n)?n.ref:null,t);return rb((function(){o||c(function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(r)||document.body)}),[r,o]),rb((function(){if(l&&!o)return pv(t,l),function(){pv(t,null)}}),[t,l,o]),rb((function(){a&&(l||o)&&a()}),[a,l,o]),o?B.isValidElement(n)?B.cloneElement(n,{ref:u}):n:l?Y.createPortal(n,l):l})),ob=ib;function ab(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sb(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function lb(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(ef(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)&&ab(e,r)}))}function cb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function ub(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=dv(e);return t.body===e?mv(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(sb(o)+a,"px"),n=dv(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(sb(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 db=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 yf(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&&ab(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);lb(t,e.mountNode,e.modalRef,r,!0);var i=cb(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=cb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=ub(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=cb(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&&ab(e.modalRef,!0),lb(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&&ab(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function mb(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,c=e.isEnabled,u=e.open,d=B.useRef(),m=B.useRef(null),p=B.useRef(null),f=B.useRef(),h=B.useRef(null),g=B.useCallback((function(e){h.current=Y.findDOMNode(e)}),[]),y=gv(t.ref,g),v=B.useRef();return B.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),B.useEffect((function(){if(u){var e=dv(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!o&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?p.current.focus():m.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,c,u]),B.createElement(B.Fragment,null,B.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),B.cloneElement(t,{ref:y}),B.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var pb={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"}},fb=B.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=$p(e,["invisible","open"]);return i?B.createElement("div",Cp({"aria-hidden":!0,ref:t},o,{style:Cp({},pb.root,r?pb.invisible:{},o.style)})):null}));var hb=new db,gb=B.forwardRef((function(e,t){var n=ay(),r=pf({name:"MuiModal",props:Cp({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?fb:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,m=void 0!==d&&d,p=r.disableBackdropClick,f=void 0!==p&&p,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,S=r.disableRestoreFocus,E=void 0!==S&&S,M=r.disableScrollLock,C=void 0!==M&&M,O=r.hideBackdrop,T=void 0!==O&&O,w=r.keepMounted,A=void 0!==w&&w,R=r.manager,k=void 0===R?hb:R,N=r.onBackdropClick,I=r.onClose,L=r.onEscapeKeyDown,P=r.onRendered,D=r.open,q=$p(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=B.useState(!0),z=$[0],_=$[1],j=B.useRef({}),F=B.useRef(null),H=B.useRef(null),V=gv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return dv(F.current)},G=function(){return j.current.modalRef=H.current,j.current.mountNode=F.current,j.current},X=function(){k.mount(G(),{disableScrollLock:C}),H.current.scrollTop=0},K=hv((function(){var e=function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(u)||W().body;k.add(G(),e),H.current&&X()})),J=B.useCallback((function(){return k.isTopModal(G())}),[k]),Z=hv((function(e){F.current=e,e&&(P&&P(),D&&J()?X():ab(H.current,!0))})),Q=B.useCallback((function(){k.remove(G())}),[k]);if(B.useEffect((function(){return function(){Q()}}),[Q]),B.useEffect((function(){D?K():U&&c||Q()}),[D,Q,U,c,K]),!A&&!D&&(!U||z))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:lf}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=lv((function(){_(!1)}),s.props.onEnter),te.onExited=lv((function(){_(!0),c&&Q()}),s.props.onExited)),B.createElement(ob,{ref:Z,container:u,disablePortal:x},B.createElement("div",Cp({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:Cp({},ee.root,!D&&z?ee.hidden:{},q.style)}),T?null:B.createElement(o,Cp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),B.createElement(mb,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:W,isEnabled:J,open:D},B.cloneElement(s,te))))})),yb=gb,vb=B.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,m=e.orientation,p=void 0===m?"horizontal":m,f=e.role,h=void 0===f?"hr"!==s?"separator":void 0:f,g=e.variant,y=void 0===g?"fullWidth":g,v=$p(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return B.createElement(s,Cp({className:uv(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===p&&i.vertical),role:h,ref:t},v))})),bb=av((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Dp(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(vb);function xb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Sb={entering:{opacity:1,transform:xb(1)},entered:{opacity:1,transform:"none"}},Eb=B.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,c=e.onExit,u=e.onExited,d=e.onExiting,m=e.style,p=e.timeout,f=void 0===p?"auto":p,h=e.TransitionComponent,g=void 0===h?qv:h,y=$p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=B.useRef(),b=B.useRef(),x=ay()||iv,S=x.unstable_strictMode&&!i,E=B.useRef(null),M=gv(n.ref,t),C=gv(S?E:void 0,M),O=function(e){return function(t,n){if(e){var r=tf(S?[E.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},T=O(l),w=O((function(e,t){!function(e){e.scrollTop}(e);var n,r=Hv({style:m,timeout:f},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===f?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),A=O(s),R=O(d),k=O((function(e){var t,n=Hv({style:m,timeout:f},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===f?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=xb(.75),c&&c(e)})),N=O(u);return B.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),B.createElement(g,Cp({appear:!0,in:o,nodeRef:S?E:void 0,onEnter:w,onEntered:A,onEntering:T,onExit:k,onExited:N,onExiting:R,addEndListener:function(e,t){var n=S?e:t;"auto"===f&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===f?null:f},y),(function(e,t){return B.cloneElement(n,Cp({style:Cp({opacity:0,transform:xb(.75),visibility:"exited"!==e||o?void 0:"hidden"},Sb[e],m,n.props.style),ref:C},t))}))}));Eb.muiSupportAuto=!0;var Mb=Eb,Cb=B.createContext({}),Ob=B.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,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,m=$p(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=B.useMemo((function(){return{dense:l}}),[l]);return B.createElement(Cb.Provider,{value:p},B.createElement(a,Cp({className:uv(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Tb=av({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ob),wb="undefined"==typeof window?B.useEffect:B.useLayoutEffect,Ab=B.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,c=e.classes,u=e.className,d=e.component,m=e.ContainerComponent,p=void 0===m?"li":m,f=e.ContainerProps,h=(f=void 0===f?{}:f).className,g=$p(f,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,S=e.disableGutters,E=void 0!==S&&S,M=e.divider,C=void 0!==M&&M,O=e.focusVisibleClassName,T=e.selected,w=void 0!==T&&T,A=$p(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=B.useContext(Cb),k={dense:v||R.dense||!1,alignItems:r},N=B.useRef(null);wb((function(){o&&N.current&&N.current.focus()}),[o]);var I,L,P=B.Children.toArray(l),D=P.length&&(I=P[P.length-1],L=["ListItemSecondaryAction"],B.isValidElement(I)&&-1!==L.indexOf(I.type.muiName)),q=gv(B.useCallback((function(e){N.current=Y.findDOMNode(e)}),[]),t),$=Cp({className:uv(c.root,u,k.dense&&c.dense,!E&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,D&&c.secondaryAction,w&&c.selected),disabled:x},A),z=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=uv(c.focusVisible,O),z=Jv),D?(z=$.component||d?z:"div","li"===p&&("li"===z?z="div":"li"===$.component&&($.component="div")),B.createElement(Cb.Provider,{value:k},B.createElement(p,Cp({className:uv(c.container,h),ref:q},g),B.createElement(z,$,P),P.pop()))):B.createElement(Cb.Provider,{value:k},B.createElement(z,Cp({ref:q},$),P))})),Rb=av((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"})(Ab),kb=B.forwardRef((function(e,t){var n=e.classes,r=e.className,i=$p(e,["classes","className"]),o=B.useContext(Cb);return B.createElement("div",Cp({className:uv(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Nb=av((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(kb),Ib=B.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,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,m=e.secondaryTypographyProps,p=$p(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=B.useContext(Cb).dense,h=null!=c?c:n;null==h||h.type===eb||a||(h=B.createElement(eb,Cp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===eb||a||(g=B.createElement(eb,Cp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),B.createElement("div",Cp({className:uv(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Lb=av({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Ib);function Pb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Db(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function qb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $b(e){return"function"==typeof e?e():e}var zb=B.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,c=e.children,u=e.classes,d=e.className,m=e.container,p=e.elevation,f=void 0===p?8:p,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,S=e.onExit,E=e.onExited,M=e.onExiting,C=e.open,O=e.PaperProps,T=void 0===O?{}:O,w=e.transformOrigin,A=void 0===w?{vertical:"top",horizontal:"left"}:w,R=e.TransitionComponent,k=void 0===R?Mb:R,N=e.transitionDuration,I=void 0===N?"auto":N,L=e.TransitionProps,P=void 0===L?{}:L,D=$p(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"]),q=B.useRef(),$=B.useCallback((function(e){if("anchorPosition"===l)return a;var t=$b(r),n=(t&&1===t.nodeType?t:dv(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+Pb(n,i),left:n.left+Db(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=B.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(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,h]),_=B.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Pb(e,A.vertical)+t,horizontal:Db(e,A.horizontal)}}),[A.horizontal,A.vertical]),j=B.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:qb(i)};var o=$(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=mv($b(r)),m=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var f=a-y;a-=f,i.vertical+=f}else if(c>m){var h=c-m;a-=h,i.vertical+=h}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>p){var v=u-p;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:qb(i)}}),[r,l,$,z,_,y]),F=B.useCallback((function(){var e=q.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=B.useCallback((function(e){q.current=Y.findDOMNode(e)}),[]);B.useEffect((function(){C&&F()})),B.useImperativeHandle(n,(function(){return C?{updatePosition:function(){F()}}:null}),[C,F]),B.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,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(){F()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,F]);var V=I;"auto"!==I||k.muiSupportAuto||(V=void 0);var U=m||(r?dv($b(r)).body:void 0);return B.createElement(yb,Cp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:uv(u.root,d)},D),B.createElement(k,Cp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:lv((function(e,t){x&&x(e,t),F()}),P.onEntering)}),B.createElement(Uv,Cp({elevation:f,ref:H},T,{className:uv(u.paper,T.className)}),c)))})),_b=av({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(zb);function jb(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Bb({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:jb(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return j.createElement("i",{style:i},j.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},j.createElement("path",{d:e})))}const Fb={menuItem:"alternative-menu-item"},Hb=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>hy((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return j.createElement(Rb,dp({className:`${i.root} ${n}`},r))},Vb=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Fb.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 Ub({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Ae.detectTextDirection(e);return j.createElement(Hb,{nested:r,role:"menuitem",button:!0,onClick:n,className:Fb.menuItem,onKeyDown:Vb,dir:a,autoFocus:t},j.createElement(Lb,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),j.createElement(Nb,{style:{minWidth:16}},j.createElement(Bb,{d:t?Xm.d:""})),i&&j.createElement(Nb,{style:{minWidth:16}},j.createElement(Bb,{d:i.d})))}Ub.propTypes={title:hp.string.isRequired,selected:hp.bool,onClick:hp.func.isRequired,nested:hp.bool,icon:hp.shape({d:hp.string.isRequired}),bold:hp.bool,dir:hp.string.isRequired},Ub.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Hb.propTypes={nested:hp.bool,className:hp.string},Hb.defaultProps={nested:!1,className:Fb.menuItem};const Wb={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function Yb({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return j.createElement(j.Fragment,{key:t.id},j.createElement(Ub,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&j.createElement(Tb,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>j.createElement(Ub,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&j.createElement(bb,{key:`divider-${t.id}`}))}));return j.createElement(_b,dp({anchorEl:t,open:s,onClose:a},Wb[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),j.createElement(Tb,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}Yb.propTypes={chartId:hp.string.isRequired,alignTo:hp.any,currentId:hp.string.isRequired,dir:hp.string.isRequired,dock:hp.string.isRequired,list:hp.array,onClose:hp.func.isRequired,show:hp.bool.isRequired,instruction:hp.string.isRequired},Yb.defaultProps={list:[],alignTo:null};const Gb="title-button",Xb="active-title-button",Kb=ov((({children:e,...t})=>j.createElement(nb,dp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Jb=ov(nb)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Zb extends j.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=j.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${Gb}`);t&&t.classList.add(Xb)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${Gb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Xb}`);e&&(e.classList.remove(Xb),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},m=t.breadcrumbs.length,p=i||Boolean(!t.drillUp)||this.state.inSelection,f=t.breadcrumbs.map(((e,n)=>j.createElement(Kb,{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:t.drillUp(m-n),title:e},j.createElement("span",{style:d},e),j.createElement(Bb,dp({},Jm,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||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",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Ae.detectTextDirection(t.text),S=j.createElement(Kb,{"aria-label":r.get(`Accessibility.${n&&h?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Gb} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&j.createElement(Bb,dp({},Gm,{size:"small",title:r.get("Tooltip.selections.locked")})),j.createElement("span",{style:d,dir:x},t.text),n&&h&&j.createElement(Bb,dp({},Km,{size:"small",style:{margin:"0 8px"}})));return j.createElement(j.Fragment,null,t.icon&&t.icon.onClick&&j.createElement(Jb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},j.createElement(Bb,dp({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&j.createElement(Bb,dp({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),f,j.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},S),n&&h&&j.createElement(Yb,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function Qb(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function ex(e){function t(e){return!e.isDimension&&ge.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],S=r||i[a?"qDimensionInfo":"qMeasureInfo"],E=a?sp:cp,M=a?lp:up,C=Boolean(l&&l.colorSupport&&l.modifiers),O=C&&((T=this.settings.settings).isDimension&&ge.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const w=S.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,o,l,e),v=r===S.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,T=C||b?E({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:Qb(g),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:C}):void 0;return j.createElement(j.Fragment,{key:t.cId},j.createElement(Zb,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:T,titleData:y,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:O,supportConditional:h}),!v&&j.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return j.createElement("div",{style:v,dir:y},w)}}}Zb.propTypes={chartId:hp.string.isRequired,disabled:hp.bool.isRequired,padding:hp.string,minWidth:hp.string,titleData:hp.shape({breadcrumbs:hp.arrayOf(hp.string).isRequired,icon:hp.shape({path:hp.shape({d:hp.string.isRequired}),tooltip:hp.string.isRequired,onClick:hp.func}),index:hp.number.isRequired,locked:hp.bool.isRequired,text:hp.string.isRequired,popoverText:hp.string.isRequired,drillUp:hp.func,id:hp.string.isRequired}).isRequired,popover:hp.shape({dir:hp.string.isRequired,dock:hp.string.isRequired,getPopoverOptions:hp.func.isRequired}),translator:hp.shape({get:hp.func.isRequired}).isRequired,selections:hp.shape({isActive:hp.func,addListener:hp.func,removeListener:hp.func}),style:hp.shape({fontSize:hp.string,color:hp.string,fontFamily:hp.string}).isRequired,isDimension:hp.bool.isRequired,hasAlternative:hp.bool.isRequired,supportConditional:hp.bool.isRequired,showGroupDimOptions:hp.bool.isRequired},Zb.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const tx=cf({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 nx=mf({productionPrefix:"qd986",disableGlobal:!0,seed:""});function rx(){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",G.render(function(e,t){return j.createElement(dy,{generateClassName:t},j.createElement(nv,{theme:tx},e))}(e,nx),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&G.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(G.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function ix(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:ix(i,t,n)},i}function ox(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),ix(i,a,l,e.invert)}))}const ax={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function sx({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=le({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const m=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:m}),f=(u-p)/2,h=f+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:f,rendWidth:t,rendHeight:n}}function lx({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=le(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const m=i.minor||{};let p;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{start:{scale:m.scale,ref:"start"},end:{scale:m.scale,ref:"end"},min:{scale:m.scale,ref:"min"},max:{scale:m.scale,ref:"max"},med:{scale:m.scale,ref:"med"}},m)})};for(let n=0,r=e.length;n<r;n++)p=e[n],f[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:c});return f}const cx=["oob"];const ux={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=lx({keys:cx,data:i,defaultSettings:{oob:ax.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=sx}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:m,rendWidth:p,rendHeight:f}=s({i:u,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(ax.createOob({oob:d.oob,dockValue:a,boxCenter:m,rendWidth:p,rendHeight:f,flipXY:n,symbol:o}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:u,settings:c,width:e,height:t,flipXY:r,resolved:l,keys:cx,symbol:s,dockValue:n});return d}},dx={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},mx=["hat"];function px(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 fx({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let m=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=le({},e.hat,{type:"path",d:px(m)});m=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,le({},e.hat,{type:"path",d:px(m)})]}const hx={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=lx({keys:mx,data:r,defaultSettings:dx,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=sx}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),f=s[l].data,h=[];c.hat.show&&h.push(...fx({item:c,boxWidth:u,boxPadding:d,rendWidth:m,rendHeight:p,flipXY:n}));const g={type:"container",data:f,collider:{type:"bounds"},children:h};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:mx});return c}};var gx={UNCLASSIFIED:"unclassified",EQUAL_EQUAL:"equal-equal",EQUAL_HIGHER:"equal-higher",EQUAL_LOWER:"equal-lower",EQUAL_VOID:"equal-void",HIGHER_EQUAL:"higher-equal",HIGHER_HIGHER_ACUTE:"higher-higher-acute",HIGHER_HIGHER_OBTUSE:"higher-higher-obtuse",HIGHER_LOWER_NEGATIVE:"higher-lower-negative",HIGHER_LOWER_POSITIVE:"higher-lower-positive",HIGHER_VOID:"higher-void",LOWER_EQUAL:"lower-equal",LOWER_HIGHER_NEGATIVE:"lower-higher-negative",LOWER_HIGHER_POSITIVE:"lower-higher-positive",LOWER_LOWER_ACUTE:"lower-lower-acute",LOWER_LOWER_OBTUSE:"lower-lower-obtuse",LOWER_VOID:"lower-void",VOID_EQUAL:"void-equal",VOID_HIGHER:"void-higher",VOID_LOWER:"void-lower",VOID_VOID:"void-void",MARKER:"marker"};function yx(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function vx(e,t,n){const r=Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),i=Math.sqrt((t.x-n.x)**2+(t.y-n.y)**2),o=Math.sqrt((n.x-e.x)**2+(n.y-e.y)**2);return Math.acos((i*i+r*r-o*o)/(2*i*r))*(180/Math.PI)}function bx({previous:e,current:t,next:n}){const r=e&&e.value,i=t&&t.value,o=n&&n.value;return e||n?e?n?r===i?i===o?gx.EQUAL_EQUAL:i<o?gx.EQUAL_HIGHER:gx.EQUAL_LOWER:i===o?r>i?gx.HIGHER_EQUAL:gx.LOWER_EQUAL:r>i?i<o?vx(e,t,n)>90?gx.HIGHER_HIGHER_OBTUSE:gx.HIGHER_HIGHER_ACUTE:yx(e,t)>yx(e,n)?gx.HIGHER_LOWER_POSITIVE:gx.HIGHER_LOWER_NEGATIVE:i>o?vx(e,t,n)>90?gx.LOWER_LOWER_OBTUSE:gx.LOWER_LOWER_ACUTE:yx(e,t)>yx(e,n)?gx.LOWER_HIGHER_POSITIVE:gx.LOWER_HIGHER_NEGATIVE:r===i?gx.EQUAL_VOID:r>i?gx.HIGHER_VOID:gx.LOWER_VOID:i===o?gx.VOID_EQUAL:i<o?gx.VOID_HIGHER:gx.VOID_LOWER:gx.VOID_VOID}function xx({bounds:e,size:t}){const{x:n,y:r,width:i,height:o}=e,{insideStrategy:a}=t;return"center"===a?Math.floor(n+i/2)>=0&&Math.ceil(n+i/2)<=t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height:Math.floor(n+i)>0&&Math.ceil(n)<t.width&&Math.floor(r+o/2)>=0&&Math.ceil(r+o/2)<=t.height}const Sx={X:1,Y:0};function Ex({node:e,line:t,groupIndex:n,extract:r,style:i,measureText:o,size:a,horizontal:s,rtl:l,meta:c,showLabel:u}){const d=r.label(e.data);if("string"!=typeof d&&"number"!=typeof d||""===d)return!1;const m=o({fontFamily:i.fontFamily,fontSize:i.fontSize,text:d}),{localBounds:p}=e,{"stroke-width":f}=e.attrs,h=r.pointValue(e.data),g={x:p.x+p.width/2,y:p.y+p.height/2,width:m.width+2*Sx.X,height:m.height+2*Sx.Y},y=`${g.x}-${g.y}`,v=!s&&!l,b=s?a.height:a.width,x=(s?g.y:g.x)/b,S=(v?1-x:x)<=(b<=200?.25:.1),E={key:y,node:e,line:t,group:n,value:h,labelMeasurements:m,bounds:g,inside:xx({bounds:p,size:a}),border:f?f/2:0,classification:gx.UNCLASSIFIED,setClassification(e){E.classification=e},preferences:[],setPreferences(e){E.preferences.push(...e)},placement:void 0,setPlacement(e){E.placement=e},duplicate:!1,setDuplicate(){E.duplicate=!0},extreme:c.getExtreme(y),elite:S,show:u(e)};return E}function Mx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=function({nodes:e}){const t={top:[],right:[],bottom:[],left:[]},n=e.map((e=>{const{localBounds:t}=e,n={x:t.x+t.width/2,y:t.y+t.height/2};return{key:`${n.x}-${n.y}`,center:n}})),r=n.reduce(((e,t)=>((!e.top||t.center.y<e.top.center.y)&&(e.top=t),(!e.right||t.center.x>e.right.center.x)&&(e.right=t),(!e.bottom||t.center.y>e.bottom.center.y)&&(e.bottom=t),(!e.left||t.center.x<e.left.center.x)&&(e.left=t),e)),{});return t.top=n.filter((e=>e.center.y===r.top.center.y)).map((e=>e.key)),t.right=n.filter((e=>e.center.x===r.right.center.x)).map((e=>e.key)),t.bottom=n.filter((e=>e.center.y===r.bottom.center.y)).map((e=>e.key)),t.left=n.filter((e=>e.center.x===r.left.center.x)).map((e=>e.key)),{getExtrema:e=>({top:-1!==t.top.indexOf(e),right:-1!==t.right.indexOf(e),bottom:-1!==t.bottom.indexOf(e),left:-1!==t.left.indexOf(e)}),getExtreme:e=>{const{top:n,right:r,bottom:i,left:o}=t;return[n,r,i,o].some((t=>-1!==t.indexOf(e)))}}}({nodes:e}),c=function({nodes:e,by:t,lineIndex:n}){const r=e.reduce(((e,r,i)=>{const o=t(r.data);return e[o]||(e[o]={items:[],index:i}),e[o].items.push({node:r,line:r.data[n].value}),e}),{});return Object.keys(r).map((e=>r[e])).sort(((e,t)=>e.index-t.index)).map((e=>e.items))}({nodes:e,by:t.majorValue,lineIndex:t.lineIndex}).map(((e,c)=>e.map((e=>({line:e.line,item:Ex({node:e.node,line:e.line,groupIndex:c,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,meta:l,showLabel:s})}))).filter((e=>e.item)).reduce(((e,t)=>(e[t.line]=t.item,e)),{})));return c.filter((e=>Object.keys(e).length))}var Cx={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Ox={[gx.EQUAL_EQUAL]:[Cx.TOP,Cx.BOTTOM],[gx.EQUAL_HIGHER]:[Cx.BOTTOM,Cx.BOTTOM_RIGHT],[gx.EQUAL_LOWER]:[Cx.TOP,Cx.TOP_RIGHT],[gx.EQUAL_VOID]:[Cx.TOP,Cx.BOTTOM],[gx.HIGHER_EQUAL]:[Cx.LEFT,Cx.BOTTOM_LEFT,Cx.TOP,Cx.TOP_RIGHT],[gx.HIGHER_HIGHER_ACUTE]:[Cx.BOTTOM,Cx.BOTTOM_LEFT,Cx.LEFT,Cx.TOP_RIGHT],[gx.HIGHER_HIGHER_OBTUSE]:[Cx.BOTTOM,Cx.TOP],[gx.HIGHER_LOWER_NEGATIVE]:[Cx.TOP,Cx.TOP_RIGHT,Cx.RIGHT],[gx.HIGHER_LOWER_POSITIVE]:[Cx.BOTTOM,Cx.BOTTOM_LEFT,Cx.LEFT],[gx.HIGHER_VOID]:[Cx.TOP],[gx.LOWER_EQUAL]:[Cx.TOP],[gx.LOWER_HIGHER_NEGATIVE]:[Cx.TOP,Cx.TOP_LEFT],[gx.LOWER_HIGHER_POSITIVE]:[Cx.BOTTOM_RIGHT],[gx.LOWER_LOWER_ACUTE]:[Cx.TOP,Cx.TOP_LEFT,Cx.LEFT,Cx.TOP_RIGHT,Cx.RIGHT],[gx.LOWER_LOWER_OBTUSE]:[Cx.TOP,Cx.BOTTOM],[gx.LOWER_VOID]:[Cx.TOP],[gx.VOID_EQUAL]:[Cx.TOP],[gx.VOID_HIGHER]:[Cx.TOP,Cx.BOTTOM],[gx.VOID_LOWER]:[Cx.TOP,Cx.BOTTOM,Cx.LEFT],[gx.VOID_VOID]:[Cx.TOP],[gx.MARKER]:[Cx.TOP,Cx.BOTTOM,Cx.RIGHT,Cx.LEFT,Cx.TOP_RIGHT,Cx.BOTTOM_RIGHT,Cx.BOTTOM_LEFT,Cx.TOP_LEFT]};function Tx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s,marker:l}){const c=Mx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),u=[...c.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[d]=u;let m=[];l||(m=function({groups:e,threshold:t}){const n=e.map((e=>Object.keys(e).map((t=>e[t])))),r={};for(let e=0;e<=n.length;e++){const t=n[e];if(t)for(let e=0;e<t.length;e++){const n=t[e],{line:i}=n;r[i]||(r[i]=[]),r[i].push(n.bounds)}}const i=Object.keys(r).map((e=>r[e])),o=[];for(let e=0;e<i.length;e++)for(let n=0;n<i[e].length-1;n++){const r=i[e][n],a=i[e][n+1],s={x1:r.x,y1:r.y,x2:a.x,y2:a.y},l=s.x1-s.x2,c=s.y1-s.y2;Math.sqrt(l*l+c*c)>t&&o.push(s)}return o}({groups:c,threshold:d.node.localBounds.height}));const p={getItems:()=>u,getLines:()=>m};return function({groups:e,marker:t=!1}){for(let n=0;n<e.length;n++){const r=Object.keys(e[n]).map((t=>e[n][t]));for(let i=0;i<r.length;i++){const o=r[i],a=t?gx.MARKER:bx({previous:e[n-1]&&e[n-1][o.line],current:o,next:e[n+1]&&e[n+1][o.line]});o.setClassification(a)}}}({groups:c,marker:l}),p.getItems().forEach((e=>e.setPreferences(Ox[e.classification]))),p}function wx({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function Ax({line1:e,line2:t}){const n=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(0===n)return!1;const r=((t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1))/n,i=((e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1))/n;return r>=0&&r<=1&&i>=0&&i<=1}function Rx({candidate:e,lines:t,rects:n}){return!!n.some((t=>function({rect1:e,rect2:t}){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)}({rect1:t,rect2:e})))||t.some((t=>function({line:e,rect:t}){const n={x:t.x,y:t.y},r={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:t.x,y:t.y+t.height},a={x1:r.x,y1:r.y,x2:i.x,y2:i.y},s={x1:i.x,y1:i.y,x2:o.x,y2:o.y},l={x1:o.x,y1:o.y,x2:n.x,y2:n.y};return Ax({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||Ax({line1:e,line2:a})||Ax({line1:e,line2:s})||Ax({line1:e,line2:l})}({line:t,rect:e})))}const kx={x:0,width:0,y:0,height:0};var Nx={TOP:"top",BOTTOM:"bottom",RIGHT:"right",LEFT:"left",TOP_RIGHT:"top-right",BOTTOM_RIGHT:"bottom-right",BOTTOM_LEFT:"bottom-left",TOP_LEFT:"top-left"};const Ix=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Lx=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Px=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),Dx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),qx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),$x=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),zx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),_x=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var jx={X:2.5,Y:4};const Bx=[Cx.TOP,Cx.TOP_LEFT,Cx.TOP_RIGHT],Fx=[Cx.BOTTOM,Cx.BOTTOM_LEFT,Cx.BOTTOM_RIGHT];function Hx({position:e}){const t={x:jx.X,width:-2*jx.X,y:0,height:0},n=Bx.indexOf(e)>-1,r=Fx.indexOf(e)>-1;return n&&(t.y=jx.Y,t.height=-jx.Y),r&&(t.height=-jx.Y),t}function Vx({cx:e,cy:t,r:n,degrees:r}){const i=r*(Math.PI/180);return{x:Math.round(e+n*Math.sin(i)),y:Math.round(t+n*-Math.cos(i))}}function Ux({coordinates:e,degrees:t,item:n}){const r={x:e.x,y:e.y};return t<=90?r.y-=n.bounds.height:t>180&&t<=270?r.x-=n.bounds.width:t>270&&(r.y-=n.bounds.height,r.x-=n.bounds.width),r}const Wx=15;function Yx({item:e,validator:t,force:n=!1}){const r=function({item:e}){return[e.node.localBounds.height/2*Math.sqrt(2)]}({item:e}),i=e.bounds.x,o=e.bounds.y;for(let a=0;a<r.length;a++){const s=r[a];for(let r=40;r<=180;r+=Wx){const a=Ux({coordinates:Vx({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}for(let r=320;r>180;r-=Wx){const a=Ux({coordinates:Vx({cx:i,cy:o,r:s,degrees:r}),degrees:r,item:e});if(t({item:e,placement:a,ignoreLines:n}).valid)return a}}return!1}const Gx=void 0;function Xx({item:e,validator:t,force:n=!1,marker:r=!1}){const i=[...e.preferences,...Object.keys(r?Nx:Cx).map((e=>Cx[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Cx.TOP]:Ix,[Cx.TOP_RIGHT]:Lx,[Cx.RIGHT]:Px,[Cx.BOTTOM_RIGHT]:Dx,[Cx.BOTTOM]:qx,[Cx.BOTTOM_LEFT]:$x,[Cx.LEFT]:zx,[Cx.TOP_LEFT]:_x},a=[];for(let r=0;r<i.length;r++){const s=i[r],l=o[s]({item:e}),c=Hx({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&a.push(l),u.valid)return l}const s=()=>Yx({item:e,validator:t,force:n});if(n){const e=s();return e||(a[0]||Gx)}return(e.extreme||e.elite)&&s()||Gx}function Kx({model:e,size:t,all:n,marker:r}){const i={},o=e.getItems(),a=[...o.map((e=>({x:e.node.localBounds.x-e.border+1,y:e.node.localBounds.y-e.border+1,height:e.node.localBounds.height+2*e.border-2,width:e.node.localBounds.width+2*e.border-2})))],s=[],l=e.getLines();o.forEach((e=>{const{data:o}=e.node;if(!e.show||!e.inside||o.null&&o.null.value||o.interpolated&&o.interpolated.value)return;const{key:c}=e;if(i[c])return void e.setDuplicate();i[c]=!0;const u=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=kx,ignoreLines:a=!1}){const s={inside:wx({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=Rx({candidate:{x:i.x+o.x,y:i.y+o.y,width:r.bounds.width+o.width,height:r.bounds.height+o.height},lines:a?[]:t,rects:n}),s.valid=!s.collides,s):s}}({size:t,lines:l,placements:a}),d=Xx({item:e,validator:u,marker:r});d?(d.height=e.bounds.height,d.width=e.bounds.width,a.push(d),e.setPlacement(d)):n&&s.push({item:e,validator:u})})),s.forEach((e=>{const{item:t,validator:n}=e,i=Xx({item:t,validator:n,marker:r,force:!0});i&&(i.height=t.bounds.height,i.width=t.bounds.width,a.push(i),t.setPlacement(i))}))}var Jx={require:["chart","renderer"],defaultSettings:{settings:{orientation:"horizontal",rtl:!1,connect:!1,all:!1,label:()=>{},showLabel:()=>!0,pointValue:()=>{},majorValue:()=>{},target:{point:"point-component",allPoints:[]},lineIndex:"line",insideStrategy:"edge",labelSpace:{use:()=>!1,size:10},marker:!1},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',fontSize:"12px",fill:"#333"}},preferredSize(){const e={edgeBleed:{top:0,right:0,left:0}},{orientation:t,rtl:n,labelSpace:r}=this.settings.settings,{use:i,size:o}=r;if(i()){const r="horizontal"===t;e.edgeBleed.top=r?o:0,e.edgeBleed[n?"left":"right"]=r?0:o}return e},render(){const{settings:e}=this.settings,{target:t,enabled:n,marker:r}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:i}=t,o=i.length?e=>i.includes(e.key):e=>e.key===t.point;let a;if(a=r?this.chart.findShapes("path").concat(this.chart.findShapes("rect")).concat(this.chart.findShapes("circle")).filter(o):this.chart.findShapes("circle").filter(o),!a.length)return[];const s="horizontal"===e.orientation,l=s?"x":"y";a.sort(((e,t)=>e.localBounds[l]-t.localBounds[l]));const c={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:u,width:d,edgeBleed:m}=this.rect,p={height:u,width:d,edgeBleed:m,insideStrategy:e.insideStrategy},{style:f}=this,h=Tx({nodes:a,extract:c,style:f,measureText:this.renderer.measureText,size:p,horizontal:s,rtl:e.rtl,showLabel:e.showLabel,marker:r});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:h}),Kx({model:h,size:p,all:e.all,marker:r}),h.getItems().filter((e=>e.placement&&e.node.key===this.settings.settings.target.point)).map((e=>({type:"text",x:e.placement.x+e.placement.width/2,y:e.placement.y+e.labelMeasurements.height/2,fontSize:f.fontSize,fontFamily:f.fontFamily,fill:f.fill,text:c.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},Zx={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var Qx={black:"#000",white:"#fff"};var eS={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"};var tS={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var nS={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"};var rS={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var iS={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"};var oS={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"};var aS={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function sS(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var lS=Object.freeze({__proto__:null,default:sS}),cS="$$material";function uS(){return uS=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},uS.apply(this,arguments)}function dS(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 mS(){return mS=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},mS.apply(this,arguments)}function pS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var fS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,hS=pS((function(e){return fS.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var gS=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),yS="-ms-",vS="-moz-",bS="-webkit-",xS="comm",SS="rule",ES="decl",MS="@keyframes",CS=Math.abs,OS=String.fromCharCode,TS=Object.assign;function wS(e){return e.trim()}function AS(e,t,n){return e.replace(t,n)}function RS(e,t){return e.indexOf(t)}function kS(e,t){return 0|e.charCodeAt(t)}function NS(e,t,n){return e.slice(t,n)}function IS(e){return e.length}function LS(e){return e.length}function PS(e,t){return t.push(e),e}var DS=1,qS=1,$S=0,zS=0,_S=0,jS="";function BS(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:DS,column:qS,length:a,return:""}}function FS(e,t){return TS(BS("",null,null,"",null,null,0),e,{length:-e.length},t)}function HS(){return _S=zS>0?kS(jS,--zS):0,qS--,10===_S&&(qS=1,DS--),_S}function VS(){return _S=zS<$S?kS(jS,zS++):0,qS++,10===_S&&(qS=1,DS++),_S}function US(){return kS(jS,zS)}function WS(){return zS}function YS(e,t){return NS(jS,e,t)}function GS(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function XS(e){return DS=qS=1,$S=IS(jS=e),zS=0,[]}function KS(e){return jS="",e}function JS(e){return wS(YS(zS-1,eE(91===e?e+2:40===e?e+1:e)))}function ZS(e){for(;(_S=US())&&_S<33;)VS();return GS(e)>2||GS(_S)>3?"":" "}function QS(e,t){for(;--t&&VS()&&!(_S<48||_S>102||_S>57&&_S<65||_S>70&&_S<97););return YS(e,WS()+(t<6&&32==US()&&32==VS()))}function eE(e){for(;VS();)switch(_S){case e:return zS;case 34:case 39:34!==e&&39!==e&&eE(_S);break;case 40:41===e&&eE(e);break;case 92:VS()}return zS}function tE(e,t){for(;VS()&&e+_S!==57&&(e+_S!==84||47!==US()););return"/*"+YS(t,zS-1)+"*"+OS(47===e?e:VS())}function nE(e){for(;!GS(US());)VS();return YS(e,zS)}function rE(e){return KS(iE("",null,null,null,[""],e=XS(e),0,[0],e))}function iE(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,m=0,p=0,f=0,h=1,g=1,y=1,v=0,b="",x=i,S=o,E=r,M=b;g;)switch(f=v,v=VS()){case 40:if(108!=f&&58==kS(M,d-1)){-1!=RS(M+=AS(JS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=JS(v);break;case 9:case 10:case 13:case 32:M+=ZS(f);break;case 92:M+=QS(WS()-1,7);continue;case 47:switch(US()){case 42:case 47:PS(aE(tE(VS(),WS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=IS(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=AS(M,/\f/g,"")),p>0&&IS(M)-d&&PS(p>32?sE(M+";",r,n,d-1):sE(AS(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(PS(E=oE(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)iE(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===kS(M,3)?100:m){case 100:case 108:case 109:case 115:iE(e,E,E,r&&PS(oE(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:iE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+IS(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==HS())continue;switch(M+=OS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(IS(M)-1)*y,y=1;break;case 64:45===US()&&(M+=JS(VS())),m=US(),u=d=IS(b=M+=nE(WS())),v++;break;case 45:45===f&&2==IS(M)&&(h=0)}}return o}function oE(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=LS(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=NS(e,d+1,d=CS(h=a[f])),b=e;y<p;++y)(b=wS(h>0?m[y]+" "+v:AS(v,/&\f/g,m[y])))&&(l[g++]=b);return BS(e,t,n,0===i?SS:s,l,c,u)}function aE(e,t,n){return BS(e,t,n,xS,OS(_S),NS(e,2,-2),0)}function sE(e,t,n,r){return BS(e,t,n,ES,NS(e,0,r),NS(e,r+1,-1),r)}function lE(e,t){for(var n="",r=LS(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function cE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ES:return e.return=e.return||e.value;case xS:return"";case MS:return e.return=e.value+"{"+lE(e.children,r)+"}";case SS:e.value=e.props.join(",")}return IS(n=lE(e.children,r))?e.return=e.value+"{"+n+"}":""}function uE(e){var t=LS(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var dE=function(e,t,n){for(var r=0,i=0;r=i,i=US(),38===r&&12===i&&(t[n]=1),!GS(i);)VS();return YS(e,zS)},mE=function(e,t){return KS(function(e,t){var n=-1,r=44;do{switch(GS(r)){case 0:38===r&&12===US()&&(t[n]=1),e[n]+=dE(zS-1,t,n);break;case 2:e[n]+=JS(r);break;case 4:if(44===r){e[++n]=58===US()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=OS(r)}}while(r=VS());return e}(XS(e),t))},pE=new WeakMap,fE=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pE.get(n))&&!r){pE.set(e,!0);for(var i=[],o=mE(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},hE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gE(e,t){switch(function(e,t){return 45^kS(e,0)?(((t<<2^kS(e,0))<<2^kS(e,1))<<2^kS(e,2))<<2^kS(e,3):0}(e,t)){case 5103:return bS+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bS+e+vS+e+yS+e+e;case 6828:case 4268:return bS+e+yS+e+e;case 6165:return bS+e+yS+"flex-"+e+e;case 5187:return bS+e+AS(e,/(\w+).+(:[^]+)/,bS+"box-$1$2"+yS+"flex-$1$2")+e;case 5443:return bS+e+yS+"flex-item-"+AS(e,/flex-|-self/,"")+e;case 4675:return bS+e+yS+"flex-line-pack"+AS(e,/align-content|flex-|-self/,"")+e;case 5548:return bS+e+yS+AS(e,"shrink","negative")+e;case 5292:return bS+e+yS+AS(e,"basis","preferred-size")+e;case 6060:return bS+"box-"+AS(e,"-grow","")+bS+e+yS+AS(e,"grow","positive")+e;case 4554:return bS+AS(e,/([^-])(transform)/g,"$1"+bS+"$2")+e;case 6187:return AS(AS(AS(e,/(zoom-|grab)/,bS+"$1"),/(image-set)/,bS+"$1"),e,"")+e;case 5495:case 3959:return AS(e,/(image-set\([^]*)/,bS+"$1$`$1");case 4968:return AS(AS(e,/(.+:)(flex-)?(.*)/,bS+"box-pack:$3"+yS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bS+e+e;case 4095:case 3583:case 4068:case 2532:return AS(e,/(.+)-inline(.+)/,bS+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(IS(e)-1-t>6)switch(kS(e,t+1)){case 109:if(45!==kS(e,t+4))break;case 102:return AS(e,/(.+:)(.+)-([^]+)/,"$1"+bS+"$2-$3$1"+vS+(108==kS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~RS(e,"stretch")?gE(AS(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kS(e,t+1))break;case 6444:switch(kS(e,IS(e)-3-(~RS(e,"!important")&&10))){case 107:return AS(e,":",":"+bS)+e;case 101:return AS(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bS+(45===kS(e,14)?"inline-":"")+"box$3$1"+bS+"$2$3$1"+yS+"$2box$3")+e}break;case 5936:switch(kS(e,t+11)){case 114:return bS+e+yS+AS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bS+e+yS+AS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bS+e+yS+AS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bS+e+yS+e+e}return e}var yE="undefined"!=typeof document,vE=yE?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return pS((function(){var e={};return function(t){return e[t]}}))})),bE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ES:e.return=gE(e.value,e.length);break;case MS:return lE([FS(e,{value:AS(e.value,"@","@"+bS)})],r);case SS:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lE([FS(e,{props:[AS(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lE([FS(e,{props:[AS(t,/:(plac\w+)/,":"+bS+"input-$1")]}),FS(e,{props:[AS(t,/:(plac\w+)/,":-moz-$1")]}),FS(e,{props:[AS(t,/:(plac\w+)/,yS+"input-$1")]})],r)}return""}))}}],xE=function(e){var t=e.key;if(yE&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||bE,a={},s=[];yE&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[fE,hE];if(yE){var u,d=[cE,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],m=uE(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){lE(rE(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[cE],f=uE(c.concat(o,p)),h=vE(o)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return lE(rE(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new gS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},SE="undefined"!=typeof document;var EE=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===SE&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ME=function(e,t,n){EE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);SE||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!SE&&0!==i.length)return i}};var CE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},OE=/[A-Z]|^ms/g,TE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wE=function(e){return 45===e.charCodeAt(1)},AE=function(e){return null!=e&&"boolean"!=typeof e},RE=pS((function(e){return wE(e)?e:e.replace(OE,"-$&").toLowerCase()})),kE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(TE,(function(e,t,n){return IE={name:t,styles:n,next:IE},t}))}return 1===CE[e]||wE(e)||"number"!=typeof t||0===t?t:t+"px"};function NE(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return IE={name:n.name,styles:n.styles,next:IE},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)IE={name:r.name,styles:r.styles,next:IE},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=NE(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":AE(a)&&(r+=RE(o)+":"+kE(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=NE(e,t,a);switch(o){case"animation":case"animationName":r+=RE(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)AE(a[l])&&(r+=RE(o)+":"+kE(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=IE,o=n(e);return IE=i,NE(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var IE,LE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,PE=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";IE=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=NE(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=NE(n,t,e[a]),r&&(i+=o[a]);LE.lastIndex=0;for(var s,l="";null!==(s=LE.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:IE}},DE="undefined"!=typeof document,qE=function(e){return e()},$E=!!B.useInsertionEffect&&B.useInsertionEffect,zE=DE&&$E||qE,_E=$E||B.useLayoutEffect,jE="undefined"!=typeof document,BE=B.createContext("undefined"!=typeof HTMLElement?xE({key:"css"}):null),FE=BE.Provider,HE=function(e){return U((function(t,n){var r=W(BE);return e(t,r,n)}))};jE||(HE=function(e){return function(t){var n=W(BE);return null===n?(n=xE({key:"css"}),B.createElement(BE.Provider,{value:n},e(t,n))):e(t,n)}});var VE=B.createContext({}),UE=HE((function(e,t){var n=e.styles,r=PE([n],void 0,B.useContext(VE));if(!jE){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:B.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=B.useRef();return _E((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),_E((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ME(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function WE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return PE(t)}var YE=function(){var e=WE.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},GE=hS,XE=function(e){return"theme"!==e},KE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?GE:XE},JE=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ZE="undefined"!=typeof document,QE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;EE(t,n,r);var i=zE((function(){return ME(t,n,r)}));if(!ZE&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return B.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},eM=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=JE(t,n,o),l=s||KE(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p])}var f=HE((function(e,t,n){var r,o,u,m,p=c&&e.as||a,f="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=B.useContext(VE)}"string"==typeof e.className?(r=t.registered,o=h,u=e.className,m="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):m+=e+" "})),f=m):null!=e.className&&(f=e.className+" ");var v=PE(d.concat(h),t.registered,g);f+=t.key+"-"+v.name,void 0!==i&&(f+=" "+i);var b=c&&void 0===s?KE(p):l,x={};for(var S in e)c&&"as"===S||b(S)&&(x[S]=e[S]);return x.className=f,x.ref=n,B.createElement(B.Fragment,null,B.createElement(QE,{cache:t,serialized:v,isStringTag:"string"==typeof p}),B.createElement(p,x))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,mS({},n,r,{shouldForwardProp:JE(f,r,!0)})).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){eM[e]=eM(e)}));var tM={exports:{}},nM={},rM=j,iM=Symbol.for("react.element"),oM=Symbol.for("react.fragment"),aM=Object.prototype.hasOwnProperty,sM=rM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lM={key:!0,ref:!0,__self:!0,__source:!0};function cM(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)aM.call(t,r)&&!lM.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:iM,type:e,key:o,ref:a,props:i,_owner:sM.current}}nM.Fragment=oM,nM.jsx=cM,nM.jsxs=cM,tM.exports=nM;var uM=tM.exports;let dM;"object"==typeof document&&(dM=xE({key:"css",prepend:!0}));var mM=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return uM.jsx(UE,{styles:r})}
15
15
  /**
16
16
  * @mui/styled-engine v5.15.14
17
17
  *
18
18
  * @license MIT
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
- */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&mM?dM.jsx(HE,{value:mM,children:n}):n},ThemeContext:UE,css:YE,default:function(e,t){return tM(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:GE});function fM(){return fM=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},fM.apply(this,arguments)}function hM(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 gM(){return gM=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},gM.apply(this,arguments)}function yM(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function vM(e){if(!yM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=vM(e[n])})),t}function bM(e,t,n={clone:!0}){const r=n.clone?gM({},e):e;return yM(e)&&yM(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(yM(t[i])&&i in e&&yM(e[i])?r[i]=bM(e[i],t[i],n):n.clone?r[i]=yM(t[i])?vM(t[i]):t[i]:r[i]=t[i])})),r}var xM=Object.freeze({__proto__:null,default:bM,isPlainObject:yM});const SM=["values","unit","step"],EM=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>fM({},e,{[t.key]:t.val})),{})};function MM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=hM(e,SM),o=EM(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return fM({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var CM={borderRadius:4};function OM(e,t){return t?bM(e,t,{clone:!1}):e}const TM={xs:0,sm:600,md:900,lg:1200,xl:1536},wM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${TM[e]}px)`};function AM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||wM;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||wM;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||TM).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function RM(e){if("string"!=typeof e)throw new Error(lS(7));return e.charAt(0).toUpperCase()+e.slice(1)}var kM=Object.freeze({__proto__:null,default:RM});function NM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function IM(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:NM(e,n)||r,t&&(i=t(i,r,e)),i}function LM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=NM(e.theme,r)||{};return AM(e,o,(e=>{let r=IM(a,i,e);return e===r&&"string"==typeof e&&(r=IM(a,i,`${t}${"default"===e?"":RM(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const PM={m:"margin",p:"padding"},DM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qM[e])return[e];e=qM[e]}const[t,n]=e.split(""),r=PM[t],i=DM[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),$M=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_M=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jM(e,t,n,r){var i;const o=null!=(i=NM(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function FM(e){return jM(e,"spacing",8)}function BM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function HM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=BM(t,n),e)),{})}(zM(n),r);return AM(e,e[n],i)}function VM(e,t){const n=FM(e.theme);return Object.keys(e).map((r=>HM(e,t,r,n))).reduce(OM,{})}function UM(e){return VM(e,$M)}function WM(e){return VM(e,_M)}function YM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?OM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function GM(e){return"number"!=typeof e?e:`${e}px solid`}function XM(e,t){return LM({prop:e,themeKey:"borders",transform:t})}UM.propTypes={},UM.filterProps=$M,WM.propTypes={},WM.filterProps=_M;const KM=XM("border",GM),JM=XM("borderTop",GM),ZM=XM("borderRight",GM),QM=XM("borderBottom",GM),eC=XM("borderLeft",GM),tC=XM("borderColor"),nC=XM("borderTopColor"),rC=XM("borderRightColor"),iC=XM("borderBottomColor"),oC=XM("borderLeftColor"),aC=XM("outline",GM),sC=XM("outlineColor"),lC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:BM(t,e)});return AM(e,e.borderRadius,n)}return null};lC.propTypes={},lC.filterProps=["borderRadius"],YM(KM,JM,ZM,QM,eC,tC,nC,rC,iC,oC,lC,aC,sC);const cC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jM(e.theme,"spacing",8),n=e=>({gap:BM(t,e)});return AM(e,e.gap,n)}return null};cC.propTypes={},cC.filterProps=["gap"];const uC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jM(e.theme,"spacing",8),n=e=>({columnGap:BM(t,e)});return AM(e,e.columnGap,n)}return null};uC.propTypes={},uC.filterProps=["columnGap"];const dC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jM(e.theme,"spacing",8),n=e=>({rowGap:BM(t,e)});return AM(e,e.rowGap,n)}return null};dC.propTypes={},dC.filterProps=["rowGap"];function mC(e,t){return"grey"===t?t:e}YM(cC,uC,dC,LM({prop:"gridColumn"}),LM({prop:"gridRow"}),LM({prop:"gridAutoFlow"}),LM({prop:"gridAutoColumns"}),LM({prop:"gridAutoRows"}),LM({prop:"gridTemplateColumns"}),LM({prop:"gridTemplateRows"}),LM({prop:"gridTemplateAreas"}),LM({prop:"gridArea"}));function pC(e){return e<=1&&0!==e?100*e+"%":e}YM(LM({prop:"color",themeKey:"palette",transform:mC}),LM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mC}),LM({prop:"backgroundColor",themeKey:"palette",transform:mC}));const fC=LM({prop:"width",transform:pC}),hC=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||TM[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:pC(t)}};return AM(e,e.maxWidth,t)}return null};hC.filterProps=["maxWidth"];const gC=LM({prop:"minWidth",transform:pC}),yC=LM({prop:"height",transform:pC}),vC=LM({prop:"maxHeight",transform:pC}),bC=LM({prop:"minHeight",transform:pC});LM({prop:"size",cssProperty:"width",transform:pC}),LM({prop:"size",cssProperty:"height",transform:pC});YM(fC,hC,gC,yC,vC,bC,LM({prop:"boxSizing"}));var xC={border:{themeKey:"borders",transform:GM},borderTop:{themeKey:"borders",transform:GM},borderRight:{themeKey:"borders",transform:GM},borderBottom:{themeKey:"borders",transform:GM},borderLeft:{themeKey:"borders",transform:GM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:GM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lC},color:{themeKey:"palette",transform:mC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mC},backgroundColor:{themeKey:"palette",transform:mC},p:{style:WM},pt:{style:WM},pr:{style:WM},pb:{style:WM},pl:{style:WM},px:{style:WM},py:{style:WM},padding:{style:WM},paddingTop:{style:WM},paddingRight:{style:WM},paddingBottom:{style:WM},paddingLeft:{style:WM},paddingX:{style:WM},paddingY:{style:WM},paddingInline:{style:WM},paddingInlineStart:{style:WM},paddingInlineEnd:{style:WM},paddingBlock:{style:WM},paddingBlockStart:{style:WM},paddingBlockEnd:{style:WM},m:{style:UM},mt:{style:UM},mr:{style:UM},mb:{style:UM},ml:{style:UM},mx:{style:UM},my:{style:UM},margin:{style:UM},marginTop:{style:UM},marginRight:{style:UM},marginBottom:{style:UM},marginLeft:{style:UM},marginX:{style:UM},marginY:{style:UM},marginInline:{style:UM},marginInlineStart:{style:UM},marginInlineEnd:{style:UM},marginBlock:{style:UM},marginBlockStart:{style:UM},marginBlockEnd:{style:UM},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cC},rowGap:{style:dC},columnGap:{style:uC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pC},maxWidth:{style:hC},minWidth:{transform:pC},height:{transform:pC},maxHeight:{transform:pC},minHeight:{transform:pC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function SC(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=NM(n,s)||{};if(c)return c(i);return AM(i,t,(t=>{let n=IM(u,l,t);return t===n&&"string"==typeof t&&(n=IM(u,l,`${e}${"default"===t?"":RM(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:xC;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=OM(l,e(n,i,o,a));else{const e=AM({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=OM(l,e):l[n]=t({sx:i,theme:o})}else l=OM(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const EC=SC();EC.filterProps=["sx"];var MC=EC;function CC(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const OC=["breakpoints","palette","spacing","shape"];function TC(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=hM(e,OC),s=MM(n),l=function(e=8){if(e.mui)return e;const t=FM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=bM({breakpoints:s,direction:"ltr",components:{},palette:fM({mode:"light"},r),spacing:l,shape:fM({},CM,o)},a);return c.applyStyles=CC,c=t.reduce(((e,t)=>bM(e,t)),c),c.unstable_sxConfig=fM({},xC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return MC({sx:e,theme:this})},c}var wC=Object.freeze({__proto__:null,default:TC,private_createBreakpoints:MM,unstable_applyStyles:CC});function AC(e=null){const t=F.useContext(UE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const RC=TC();const kC=["sx"];var NC=Object.freeze({__proto__:null,default:MC,extendSxProp:function(e){const{sx:t}=e,n=hM(e,kC),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xC;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return yM(n)?fM({},r,n):r}:fM({},r,t),fM({},i,{sx:o})},unstable_createStyleFunctionSx:SC,unstable_defaultSxConfig:xC});const IC=e=>e;var LC=(()=>{let e=IC;return{configure(t){e=t},generate:t=>e(t),reset(){e=IC}}})();function PC(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=PC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function DC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=PC(e))&&(r&&(r+=" "),r+=t);return r}const qC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function zC(e,t,n="Mui"){const r=qC[t];return r?`${n}-${r}`:`${LC.generate(e)}-${t}`}function $C(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=zC(e,t,n)})),r}var _C,jC={exports:{}},FC={},BC=Symbol.for("react.element"),HC=Symbol.for("react.portal"),VC=Symbol.for("react.fragment"),UC=Symbol.for("react.strict_mode"),WC=Symbol.for("react.profiler"),YC=Symbol.for("react.provider"),GC=Symbol.for("react.context"),XC=Symbol.for("react.server_context"),KC=Symbol.for("react.forward_ref"),JC=Symbol.for("react.suspense"),ZC=Symbol.for("react.suspense_list"),QC=Symbol.for("react.memo"),eO=Symbol.for("react.lazy"),tO=Symbol.for("react.offscreen");function nO(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case BC:switch(e=e.type){case VC:case WC:case UC:case JC:case ZC:return e;default:switch(e=e&&e.$$typeof){case XC:case GC:case KC:case eO:case QC:case YC:return e;default:return t}}case HC:return t}}}_C=Symbol.for("react.module.reference"),FC.ContextConsumer=GC,FC.ContextProvider=YC,FC.Element=BC,FC.ForwardRef=KC,FC.Fragment=VC,FC.Lazy=eO,FC.Memo=QC,FC.Portal=HC,FC.Profiler=WC,FC.StrictMode=UC,FC.Suspense=JC,FC.SuspenseList=ZC,FC.isAsyncMode=function(){return!1},FC.isConcurrentMode=function(){return!1},FC.isContextConsumer=function(e){return nO(e)===GC},FC.isContextProvider=function(e){return nO(e)===YC},FC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===BC},FC.isForwardRef=function(e){return nO(e)===KC},FC.isFragment=function(e){return nO(e)===VC},FC.isLazy=function(e){return nO(e)===eO},FC.isMemo=function(e){return nO(e)===QC},FC.isPortal=function(e){return nO(e)===HC},FC.isProfiler=function(e){return nO(e)===WC},FC.isStrictMode=function(e){return nO(e)===UC},FC.isSuspense=function(e){return nO(e)===JC},FC.isSuspenseList=function(e){return nO(e)===ZC},FC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===VC||e===WC||e===UC||e===JC||e===ZC||e===tO||"object"==typeof e&&null!==e&&(e.$$typeof===eO||e.$$typeof===QC||e.$$typeof===YC||e.$$typeof===GC||e.$$typeof===KC||e.$$typeof===_C||void 0!==e.getModuleId)},FC.typeOf=nO,jC.exports=FC;var rO=jC.exports;const iO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oO(e){const t=`${e}`.match(iO);return t&&t[1]||""}function aO(e,t=""){return e.displayName||e.name||oO(e)||t}function sO(e,t,n){const r=aO(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var lO=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return aO(e,"Component");if("object"==typeof e)switch(e.$$typeof){case rO.ForwardRef:return sO(e,e.render,"ForwardRef");case rO.Memo:return sO(e,e.type,"memo");default:return}}},getFunctionName:oO});function cO(e,t){const n=gM({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=gM({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=gM({},o),Object.keys(i).forEach((e=>{n[r][e]=cO(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function uO({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=RC){return AC(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?cO(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var dO="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;var mO=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function pO(){return pO=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},pO.apply(this,arguments)}function fO(e){const t=F.useRef(e);return dO((()=>{t.current=e})),F.useRef(((...e)=>(0,t.current)(...e))).current}function hO(...e){return F.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const gO={};const yO=[];class vO{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new vO}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function bO(){const e=function(e,t){const n=F.useRef(gO);return n.current===gO&&(n.current=e(t)),n}(vO.create).current;var t;return t=e.disposeEffect,F.useEffect(t,yO),e}let xO=!0,SO=!1;const EO=new vO,MO={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 CO(e){e.metaKey||e.altKey||e.ctrlKey||(xO=!0)}function OO(){xO=!1}function TO(){"hidden"===this.visibilityState&&SO&&(xO=!0)}function wO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return xO||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!MO[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function AO(){const e=F.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",CO,!0),t.addEventListener("mousedown",OO,!0),t.addEventListener("pointerdown",OO,!0),t.addEventListener("touchstart",OO,!0),t.addEventListener("visibilitychange",TO,!0))}),[]),t=F.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wO(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(SO=!0,EO.start(100,(()=>{SO=!1})),t.current=!1,!0)},ref:e}}function RO(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var kO=F.createContext(null);function NO(){return F.useContext(kO)}var IO="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function LO(e){const{children:t,theme:n}=e,r=NO(),i=F.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return pO({},e,t)}(r,n);return null!=e&&(e[IO]=null!==r),e}),[n,r]);return dM.jsx(kO.Provider,{value:i,children:t})}const PO=["value"],DO=F.createContext();function qO(e){let{value:t}=e,n=hM(e,PO);return dM.jsx(DO.Provider,fM({value:null==t||t},n))}const zO={};function $O(e,t,n,r=!1){return F.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?fM({},t,{[e]:o}):o;return r?()=>a:a}return fM({},t,e?{[e]:n}:n)}),[e,t,n,r])}function _O(e){const{children:t,theme:n,themeId:r}=e,i=AC(zO),o=NO()||zO,a=$O(r,i,n),s=$O(r,o,n,!0),l="rtl"===a.direction;return dM.jsx(LO,{theme:s,children:dM.jsx(UE.Provider,{value:a,children:dM.jsx(qO,{value:l,children:t})})})}var jO,FO={},BO={exports:{}};(jO=BO).exports=function(e){return e&&e.__esModule?e:{default:e}},jO.exports.__esModule=!0,jO.exports.default=jO.exports;var HO=BO.exports,VO=Z(cS),UO=Z(mO),WO=HO;Object.defineProperty(FO,"__esModule",{value:!0});var YO=FO.alpha=aT;FO.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=tT(e),a=tT(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return rT({type:"rgb",values:s})},FO.colorChannel=void 0;var GO=FO.darken=sT;FO.decomposeColor=tT,FO.emphasize=function(e,t=.15){return oT(e)>.5?sT(e,t):lT(e,t)};var XO=FO.getContrastRatio=function(e,t){const n=oT(e),r=oT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};FO.getLuminance=oT,FO.hexToRgb=eT,FO.hslToRgb=iT;var KO=FO.lighten=lT;FO.private_safeAlpha=function(e,t,n){try{return aT(e,t)}catch(t){return e}},FO.private_safeColorChannel=void 0,FO.private_safeDarken=function(e,t,n){try{return sT(e,t)}catch(t){return e}},FO.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},FO.private_safeLighten=function(e,t,n){try{return lT(e,t)}catch(t){return e}},FO.recomposeColor=rT,FO.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=tT(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var JO=WO(VO),ZO=WO(UO);function QO(e,t=0,n=1){return(0,ZO.default)(e,t,n)}function eT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function tT(e){if(e.type)return e;if("#"===e.charAt(0))return tT(eT(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,JO.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,JO.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const nT=e=>{const t=tT(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};FO.colorChannel=nT;function rT(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function iT(e){e=tT(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),rT({type:s,values:l})}function oT(e){let t="hsl"===(e=tT(e)).type||"hsla"===e.type?tT(iT(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function aT(e,t){return e=tT(e),t=QO(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,rT(e)}function sT(e,t){if(e=tT(e),t=QO(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return rT(e)}function lT(e,t){if(e=tT(e),t=QO(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return rT(e)}FO.private_safeColorChannel=(e,t)=>{try{return nT(e)}catch(t){return e}};const cT=["mode","contrastThreshold","tonalOffset"],uT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:eS.white,default:eS.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dT={text:{primary:eS.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:eS.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 mT(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=KO(e.main,i):"dark"===t&&(e.dark=GO(e.main,o)))}function pT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=mS(e,cT),o=e.primary||function(e="light"){return"dark"===e?{main:rS[200],light:rS[50],dark:rS[400]}:{main:rS[700],light:rS[400],dark:rS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:nS[200],light:nS[50],dark:nS[400]}:{main:nS[500],light:nS[300],dark:nS[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:tS[500],light:tS[300],dark:tS[700]}:{main:tS[700],light:tS[400],dark:tS[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:iS[400],light:iS[300],dark:iS[700]}:{main:iS[700],light:iS[500],dark:iS[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:oS[400],light:oS[300],dark:oS[700]}:{main:oS[800],light:oS[500],dark:oS[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:aS[400],light:aS[300],dark:aS[700]}:{main:"#ed6c02",light:aS[500],dark:aS[900]}}(t);function d(e){return XO(e,dT.text.primary)>=n?dT.text.primary:uT.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=dS({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(lS(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(lS(12,t?` (${t})`:"",JSON.stringify(e.main)));return mT(e,"light",i,r),mT(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:dT,light:uT};return bM(dS({common:dS({},eS),mode:t,primary:m({color:o,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:u,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:c,name:"success"}),grey:sS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const fT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const hT={textTransform:"uppercase"},gT='"Roboto", "Helvetica", "Arial", sans-serif';function yT(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=gT,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=mS(n,fT),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return dS({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===gT?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,u);var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,hT),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,hT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bM(dS({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function vT(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var bT=["none",vT(0,2,1,-1,0,1,1,0,0,1,3,0),vT(0,3,1,-2,0,2,2,0,0,1,5,0),vT(0,3,3,-2,0,3,4,0,0,1,8,0),vT(0,2,4,-1,0,4,5,0,0,1,10,0),vT(0,3,5,-1,0,5,8,0,0,1,14,0),vT(0,3,5,-1,0,6,10,0,0,1,18,0),vT(0,4,5,-2,0,7,10,1,0,2,16,1),vT(0,5,5,-3,0,8,10,1,0,3,14,2),vT(0,5,6,-3,0,9,12,1,0,3,16,2),vT(0,6,6,-3,0,10,14,1,0,4,18,3),vT(0,6,7,-4,0,11,15,1,0,4,20,3),vT(0,7,8,-4,0,12,17,2,0,5,22,4),vT(0,7,8,-4,0,13,19,2,0,5,24,4),vT(0,7,9,-4,0,14,21,2,0,5,26,4),vT(0,8,9,-5,0,15,22,2,0,6,28,5),vT(0,8,10,-5,0,16,24,2,0,6,30,5),vT(0,8,11,-5,0,17,26,2,0,6,32,5),vT(0,9,11,-5,0,18,28,2,0,7,34,6),vT(0,9,12,-6,0,19,29,2,0,7,36,6),vT(0,10,13,-6,0,20,31,3,0,8,38,7),vT(0,10,13,-6,0,21,33,3,0,8,40,7),vT(0,10,14,-6,0,22,35,3,0,8,42,7),vT(0,11,14,-7,0,23,36,3,0,9,44,8),vT(0,11,15,-7,0,24,38,3,0,9,46,8)];const xT=["duration","easing","delay"],ST={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)"},ET={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MT(e){return`${Math.round(e)}ms`}function CT(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function OT(e){const t=dS({},ST,e.easing),n=dS({},ET,e.duration);return dS({getAutoHeightDuration:CT,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return mS(r,xT),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:MT(i)} ${o} ${"string"==typeof a?a:MT(a)}`)).join(",")}},e,{easing:t,duration:n})}var TT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function AT(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=mS(e,wT);if(e.vars)throw new Error(lS(18));const s=pT(r),l=TC(e);let c=bM(l,{mixins:(u=l.breakpoints,d=n,dS({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:bT.slice(),typography:yT(s,o),transitions:OT(i),zIndex:dS({},TT)});var u,d;return c=bM(c,a),c=t.reduce(((e,t)=>bM(e,t)),c),c.unstable_sxConfig=dS({},xC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return MC({sx:e,theme:this})},c}var RT=AT();function kT({props:e,name:t}){return uO({props:e,name:t,defaultTheme:RT,themeId:uS})}var NT,IT={},LT={exports:{}};var PT,DT={exports:{}};var qT=Z(pM),zT=Z(xM),$T=Z(kM),_T=Z(lO),jT=Z(wC),FT=Z(NC),BT=HO;Object.defineProperty(IT,"__esModule",{value:!0});var HT=IT.default=function(e={}){const{themeId:t,defaultTheme:n=tw,rootShouldForwardProp:r=ew,slotShouldForwardProp:i=ew}=e,o=e=>(0,XT.default)((0,VT.default)({},e,{theme:rw((0,VT.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,WT.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=iw(nw(l))}=a,m=(0,UT.default)(a,ZT),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=ew;"Root"===l||"root"===l?h=r:l?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,WT.default)(e,(0,VT.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,YT.isPlainObject)(e)?r=>ow(e,(0,VT.default)({},r,{theme:rw({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=rw((0,VT.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=ow(n,(0,VT.default)({},e,{theme:r}))})),d(e,o)})),s&&!p&&l.push((e=>{var r;const i=rw((0,VT.default)({},e,{defaultTheme:n,themeId:t}));return ow({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,VT.default)({},e,{theme:i}))})),f||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};IT.shouldForwardProp=ew,IT.systemDefaultTheme=void 0;var VT=BT((NT||(NT=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(LT)),LT.exports)),UT=BT((PT||(PT=1,function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(DT)),DT.exports)),WT=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=QT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(qT),YT=zT;BT($T),BT(_T);var GT=BT(jT),XT=BT(FT);const KT=["ownerState"],JT=["variants"],ZT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function QT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(QT=function(e){return e?n:t})(e)}function ew(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const tw=IT.systemDefaultTheme=(0,GT.default)(),nw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function rw({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function iw(e){return e?(t,n)=>n[e]:null}function ow(e,t){let{ownerState:n}=t,r=(0,UT.default)(t,KT);const i="function"==typeof e?e((0,VT.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>ow(e,(0,VT.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,UT.default)(i,JT);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,VT.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,VT.default)({ownerState:n},r,n)):e.style))})),t}return i}var aw=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var sw=HT({themeId:uS,defaultTheme:RT,rootShouldForwardProp:aw});const lw=["theme"];function cw(e){let{theme:t}=e,n=mS(e,lw);const r=t[uS];return dM.jsx(_O,dS({},n,{themeId:r?uS:void 0,theme:r||t}))}function uw(e){return zC("MuiSvgIcon",e)}$C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dw=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mw=sw("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${RM(n.color)}`],t[`fontSize${RM(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,m,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(m=(e.vars||e).palette)||null==(m=m[t.color])?void 0:m.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),pw=F.forwardRef((function(e,t){const n=kT({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,m=mS(n,dw),p=F.isValidElement(r)&&"svg"===r.type,f=dS({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return RO({root:["root","inherit"!==t&&`color${RM(t)}`,`fontSize${RM(n)}`]},uw,r)})(f);return dM.jsxs(mw,dS({as:a,className:DC(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,m,p&&r.props,{ownerState:f,children:[p?r.props.children:r,u?dM.jsx("title",{children:u}):null]}))}));pw.muiName="SvgIcon";var fw=pw;var hw=$C("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const gw=["center","classes","className"];let yw,vw,bw,xw,Sw=e=>e;const Ew=GE(yw||(yw=Sw`
21
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&dM?uM.jsx(FE,{value:dM,children:n}):n},ThemeContext:VE,css:WE,default:function(e,t){return eM(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:YE});function pM(){return pM=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},pM.apply(this,arguments)}function fM(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 hM(){return hM=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},hM.apply(this,arguments)}function gM(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function yM(e){if(!gM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=yM(e[n])})),t}function vM(e,t,n={clone:!0}){const r=n.clone?hM({},e):e;return gM(e)&&gM(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(gM(t[i])&&i in e&&gM(e[i])?r[i]=vM(e[i],t[i],n):n.clone?r[i]=gM(t[i])?yM(t[i]):t[i]:r[i]=t[i])})),r}var bM=Object.freeze({__proto__:null,default:vM,isPlainObject:gM});const xM=["values","unit","step"],SM=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>pM({},e,{[t.key]:t.val})),{})};function EM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=fM(e,xM),o=SM(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return pM({keys:a,values:o,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var MM={borderRadius:4};function CM(e,t){return t?vM(e,t,{clone:!1}):e}const OM={xs:0,sm:600,md:900,lg:1200,xl:1536},TM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${OM[e]}px)`};function wM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||TM;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||TM;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||OM).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function AM(e){if("string"!=typeof e)throw new Error(sS(7));return e.charAt(0).toUpperCase()+e.slice(1)}var RM=Object.freeze({__proto__:null,default:AM});function kM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function NM(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:kM(e,n)||r,t&&(i=t(i,r,e)),i}function IM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=kM(e.theme,r)||{};return wM(e,o,(e=>{let r=NM(a,i,e);return e===r&&"string"==typeof e&&(r=NM(a,i,`${t}${"default"===e?"":AM(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const LM={m:"margin",p:"padding"},PM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},DM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!DM[e])return[e];e=DM[e]}const[t,n]=e.split(""),r=LM[t],i=PM[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),$M=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _M(e,t,n,r){var i;const o=null!=(i=kM(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function jM(e){return _M(e,"spacing",8)}function BM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function FM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=BM(t,n),e)),{})}(qM(n),r);return wM(e,e[n],i)}function HM(e,t){const n=jM(e.theme);return Object.keys(e).map((r=>FM(e,t,r,n))).reduce(CM,{})}function VM(e){return HM(e,$M)}function UM(e){return HM(e,zM)}function WM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?CM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function YM(e){return"number"!=typeof e?e:`${e}px solid`}function GM(e,t){return IM({prop:e,themeKey:"borders",transform:t})}VM.propTypes={},VM.filterProps=$M,UM.propTypes={},UM.filterProps=zM;const XM=GM("border",YM),KM=GM("borderTop",YM),JM=GM("borderRight",YM),ZM=GM("borderBottom",YM),QM=GM("borderLeft",YM),eC=GM("borderColor"),tC=GM("borderTopColor"),nC=GM("borderRightColor"),rC=GM("borderBottomColor"),iC=GM("borderLeftColor"),oC=GM("outline",YM),aC=GM("outlineColor"),sC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_M(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:BM(t,e)});return wM(e,e.borderRadius,n)}return null};sC.propTypes={},sC.filterProps=["borderRadius"],WM(XM,KM,JM,ZM,QM,eC,tC,nC,rC,iC,sC,oC,aC);const lC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_M(e.theme,"spacing",8),n=e=>({gap:BM(t,e)});return wM(e,e.gap,n)}return null};lC.propTypes={},lC.filterProps=["gap"];const cC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_M(e.theme,"spacing",8),n=e=>({columnGap:BM(t,e)});return wM(e,e.columnGap,n)}return null};cC.propTypes={},cC.filterProps=["columnGap"];const uC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_M(e.theme,"spacing",8),n=e=>({rowGap:BM(t,e)});return wM(e,e.rowGap,n)}return null};uC.propTypes={},uC.filterProps=["rowGap"];function dC(e,t){return"grey"===t?t:e}WM(lC,cC,uC,IM({prop:"gridColumn"}),IM({prop:"gridRow"}),IM({prop:"gridAutoFlow"}),IM({prop:"gridAutoColumns"}),IM({prop:"gridAutoRows"}),IM({prop:"gridTemplateColumns"}),IM({prop:"gridTemplateRows"}),IM({prop:"gridTemplateAreas"}),IM({prop:"gridArea"}));function mC(e){return e<=1&&0!==e?100*e+"%":e}WM(IM({prop:"color",themeKey:"palette",transform:dC}),IM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dC}),IM({prop:"backgroundColor",themeKey:"palette",transform:dC}));const pC=IM({prop:"width",transform:mC}),fC=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||OM[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:mC(t)}};return wM(e,e.maxWidth,t)}return null};fC.filterProps=["maxWidth"];const hC=IM({prop:"minWidth",transform:mC}),gC=IM({prop:"height",transform:mC}),yC=IM({prop:"maxHeight",transform:mC}),vC=IM({prop:"minHeight",transform:mC});IM({prop:"size",cssProperty:"width",transform:mC}),IM({prop:"size",cssProperty:"height",transform:mC});WM(pC,fC,hC,gC,yC,vC,IM({prop:"boxSizing"}));var bC={border:{themeKey:"borders",transform:YM},borderTop:{themeKey:"borders",transform:YM},borderRight:{themeKey:"borders",transform:YM},borderBottom:{themeKey:"borders",transform:YM},borderLeft:{themeKey:"borders",transform:YM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:YM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sC},color:{themeKey:"palette",transform:dC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dC},backgroundColor:{themeKey:"palette",transform:dC},p:{style:UM},pt:{style:UM},pr:{style:UM},pb:{style:UM},pl:{style:UM},px:{style:UM},py:{style:UM},padding:{style:UM},paddingTop:{style:UM},paddingRight:{style:UM},paddingBottom:{style:UM},paddingLeft:{style:UM},paddingX:{style:UM},paddingY:{style:UM},paddingInline:{style:UM},paddingInlineStart:{style:UM},paddingInlineEnd:{style:UM},paddingBlock:{style:UM},paddingBlockStart:{style:UM},paddingBlockEnd:{style:UM},m:{style:VM},mt:{style:VM},mr:{style:VM},mb:{style:VM},ml:{style:VM},mx:{style:VM},my:{style:VM},margin:{style:VM},marginTop:{style:VM},marginRight:{style:VM},marginBottom:{style:VM},marginLeft:{style:VM},marginX:{style:VM},marginY:{style:VM},marginInline:{style:VM},marginInlineStart:{style:VM},marginInlineEnd:{style:VM},marginBlock:{style:VM},marginBlockStart:{style:VM},marginBlockEnd:{style:VM},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lC},rowGap:{style:uC},columnGap:{style:cC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mC},maxWidth:{style:fC},minWidth:{transform:mC},height:{transform:mC},maxHeight:{transform:mC},minHeight:{transform:mC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xC(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=kM(n,s)||{};if(c)return c(i);return wM(i,t,(t=>{let n=NM(u,l,t);return t===n&&"string"==typeof t&&(n=NM(u,l,`${e}${"default"===t?"":AM(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:bC;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=CM(l,e(n,i,o,a));else{const e=wM({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=CM(l,e):l[n]=t({sx:i,theme:o})}else l=CM(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const SC=xC();SC.filterProps=["sx"];var EC=SC;function MC(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const CC=["breakpoints","palette","spacing","shape"];function OC(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=fM(e,CC),s=EM(n),l=function(e=8){if(e.mui)return e;const t=jM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=vM({breakpoints:s,direction:"ltr",components:{},palette:pM({mode:"light"},r),spacing:l,shape:pM({},MM,o)},a);return c.applyStyles=MC,c=t.reduce(((e,t)=>vM(e,t)),c),c.unstable_sxConfig=pM({},bC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return EC({sx:e,theme:this})},c}var TC=Object.freeze({__proto__:null,default:OC,private_createBreakpoints:EM,unstable_applyStyles:MC});function wC(e=null){const t=B.useContext(VE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const AC=OC();const RC=["sx"];var kC=Object.freeze({__proto__:null,default:EC,extendSxProp:function(e){const{sx:t}=e,n=fM(e,RC),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:bC;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return gM(n)?pM({},r,n):r}:pM({},r,t),pM({},i,{sx:o})},unstable_createStyleFunctionSx:xC,unstable_defaultSxConfig:bC});const NC=e=>e;var IC=(()=>{let e=NC;return{configure(t){e=t},generate:t=>e(t),reset(){e=NC}}})();function LC(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=LC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function PC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=LC(e))&&(r&&(r+=" "),r+=t);return r}const DC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qC(e,t,n="Mui"){const r=DC[t];return r?`${n}-${r}`:`${IC.generate(e)}-${t}`}function $C(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=qC(e,t,n)})),r}var zC,_C={exports:{}},jC={},BC=Symbol.for("react.element"),FC=Symbol.for("react.portal"),HC=Symbol.for("react.fragment"),VC=Symbol.for("react.strict_mode"),UC=Symbol.for("react.profiler"),WC=Symbol.for("react.provider"),YC=Symbol.for("react.context"),GC=Symbol.for("react.server_context"),XC=Symbol.for("react.forward_ref"),KC=Symbol.for("react.suspense"),JC=Symbol.for("react.suspense_list"),ZC=Symbol.for("react.memo"),QC=Symbol.for("react.lazy"),eO=Symbol.for("react.offscreen");function tO(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case BC:switch(e=e.type){case HC:case UC:case VC:case KC:case JC:return e;default:switch(e=e&&e.$$typeof){case GC:case YC:case XC:case QC:case ZC:case WC:return e;default:return t}}case FC:return t}}}zC=Symbol.for("react.module.reference"),jC.ContextConsumer=YC,jC.ContextProvider=WC,jC.Element=BC,jC.ForwardRef=XC,jC.Fragment=HC,jC.Lazy=QC,jC.Memo=ZC,jC.Portal=FC,jC.Profiler=UC,jC.StrictMode=VC,jC.Suspense=KC,jC.SuspenseList=JC,jC.isAsyncMode=function(){return!1},jC.isConcurrentMode=function(){return!1},jC.isContextConsumer=function(e){return tO(e)===YC},jC.isContextProvider=function(e){return tO(e)===WC},jC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===BC},jC.isForwardRef=function(e){return tO(e)===XC},jC.isFragment=function(e){return tO(e)===HC},jC.isLazy=function(e){return tO(e)===QC},jC.isMemo=function(e){return tO(e)===ZC},jC.isPortal=function(e){return tO(e)===FC},jC.isProfiler=function(e){return tO(e)===UC},jC.isStrictMode=function(e){return tO(e)===VC},jC.isSuspense=function(e){return tO(e)===KC},jC.isSuspenseList=function(e){return tO(e)===JC},jC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===HC||e===UC||e===VC||e===KC||e===JC||e===eO||"object"==typeof e&&null!==e&&(e.$$typeof===QC||e.$$typeof===ZC||e.$$typeof===WC||e.$$typeof===YC||e.$$typeof===XC||e.$$typeof===zC||void 0!==e.getModuleId)},jC.typeOf=tO,_C.exports=jC;var nO=_C.exports;const rO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function iO(e){const t=`${e}`.match(rO);return t&&t[1]||""}function oO(e,t=""){return e.displayName||e.name||iO(e)||t}function aO(e,t,n){const r=oO(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var sO=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return oO(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nO.ForwardRef:return aO(e,e.render,"ForwardRef");case nO.Memo:return aO(e,e.type,"memo");default:return}}},getFunctionName:iO});function lO(e,t){const n=hM({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=hM({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=hM({},o),Object.keys(i).forEach((e=>{n[r][e]=lO(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function cO({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=AC){return wC(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?lO(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var uO="undefined"!=typeof window?B.useLayoutEffect:B.useEffect;var dO=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function mO(){return mO=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},mO.apply(this,arguments)}function pO(e){const t=B.useRef(e);return uO((()=>{t.current=e})),B.useRef(((...e)=>(0,t.current)(...e))).current}function fO(...e){return B.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const hO={};const gO=[];class yO{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new yO}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function vO(){const e=function(e,t){const n=B.useRef(hO);return n.current===hO&&(n.current=e(t)),n}(yO.create).current;var t;return t=e.disposeEffect,B.useEffect(t,gO),e}let bO=!0,xO=!1;const SO=new yO,EO={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 MO(e){e.metaKey||e.altKey||e.ctrlKey||(bO=!0)}function CO(){bO=!1}function OO(){"hidden"===this.visibilityState&&xO&&(bO=!0)}function TO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return bO||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!EO[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function wO(){const e=B.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",MO,!0),t.addEventListener("mousedown",CO,!0),t.addEventListener("pointerdown",CO,!0),t.addEventListener("touchstart",CO,!0),t.addEventListener("visibilitychange",OO,!0))}),[]),t=B.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!TO(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(xO=!0,SO.start(100,(()=>{xO=!1})),t.current=!1,!0)},ref:e}}function AO(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var RO=B.createContext(null);function kO(){return B.useContext(RO)}var NO="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function IO(e){const{children:t,theme:n}=e,r=kO(),i=B.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mO({},e,t)}(r,n);return null!=e&&(e[NO]=null!==r),e}),[n,r]);return uM.jsx(RO.Provider,{value:i,children:t})}const LO=["value"],PO=B.createContext();function DO(e){let{value:t}=e,n=fM(e,LO);return uM.jsx(PO.Provider,pM({value:null==t||t},n))}const qO={};function $O(e,t,n,r=!1){return B.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?pM({},t,{[e]:o}):o;return r?()=>a:a}return pM({},t,e?{[e]:n}:n)}),[e,t,n,r])}function zO(e){const{children:t,theme:n,themeId:r}=e,i=wC(qO),o=kO()||qO,a=$O(r,i,n),s=$O(r,o,n,!0),l="rtl"===a.direction;return uM.jsx(IO,{theme:s,children:uM.jsx(VE.Provider,{value:a,children:uM.jsx(DO,{value:l,children:t})})})}var _O,jO={},BO={exports:{}};(_O=BO).exports=function(e){return e&&e.__esModule?e:{default:e}},_O.exports.__esModule=!0,_O.exports.default=_O.exports;var FO=BO.exports,HO=Z(lS),VO=Z(dO),UO=FO;Object.defineProperty(jO,"__esModule",{value:!0});var WO=jO.alpha=oT;jO.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=eT(e),a=eT(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return nT({type:"rgb",values:s})},jO.colorChannel=void 0;var YO=jO.darken=aT;jO.decomposeColor=eT,jO.emphasize=function(e,t=.15){return iT(e)>.5?aT(e,t):sT(e,t)};var GO=jO.getContrastRatio=function(e,t){const n=iT(e),r=iT(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};jO.getLuminance=iT,jO.hexToRgb=QO,jO.hslToRgb=rT;var XO=jO.lighten=sT;jO.private_safeAlpha=function(e,t,n){try{return oT(e,t)}catch(t){return e}},jO.private_safeColorChannel=void 0,jO.private_safeDarken=function(e,t,n){try{return aT(e,t)}catch(t){return e}},jO.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},jO.private_safeLighten=function(e,t,n){try{return sT(e,t)}catch(t){return e}},jO.recomposeColor=nT,jO.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=eT(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var KO=UO(HO),JO=UO(VO);function ZO(e,t=0,n=1){return(0,JO.default)(e,t,n)}function QO(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function eT(e){if(e.type)return e;if("#"===e.charAt(0))return eT(QO(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,KO.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,KO.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const tT=e=>{const t=eT(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};jO.colorChannel=tT;function nT(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function rT(e){e=eT(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),nT({type:s,values:l})}function iT(e){let t="hsl"===(e=eT(e)).type||"hsla"===e.type?eT(rT(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oT(e,t){return e=eT(e),t=ZO(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nT(e)}function aT(e,t){if(e=eT(e),t=ZO(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nT(e)}function sT(e,t){if(e=eT(e),t=ZO(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nT(e)}jO.private_safeColorChannel=(e,t)=>{try{return tT(e)}catch(t){return e}};const lT=["mode","contrastThreshold","tonalOffset"],cT={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qx.white,default:Qx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},uT={text:{primary:Qx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qx.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 dT(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=XO(e.main,i):"dark"===t&&(e.dark=YO(e.main,o)))}function mT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=dS(e,lT),o=e.primary||function(e="light"){return"dark"===e?{main:nS[200],light:nS[50],dark:nS[400]}:{main:nS[700],light:nS[400],dark:nS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:tS[200],light:tS[50],dark:tS[400]}:{main:tS[500],light:tS[300],dark:tS[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:eS[500],light:eS[300],dark:eS[700]}:{main:eS[700],light:eS[400],dark:eS[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:rS[400],light:rS[300],dark:rS[700]}:{main:rS[700],light:rS[500],dark:rS[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:iS[400],light:iS[300],dark:iS[700]}:{main:iS[800],light:iS[500],dark:iS[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:oS[400],light:oS[300],dark:oS[700]}:{main:"#ed6c02",light:oS[500],dark:oS[900]}}(t);function d(e){return GO(e,uT.text.primary)>=n?uT.text.primary:cT.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=uS({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(sS(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(sS(12,t?` (${t})`:"",JSON.stringify(e.main)));return dT(e,"light",i,r),dT(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:uT,light:cT};return vM(uS({common:uS({},Qx),mode:t,primary:m({color:o,name:"primary"}),secondary:m({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:s,name:"error"}),warning:m({color:u,name:"warning"}),info:m({color:l,name:"info"}),success:m({color:c,name:"success"}),grey:aS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const pT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const fT={textTransform:"uppercase"},hT='"Roboto", "Helvetica", "Arial", sans-serif';function gT(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=hT,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=dS(n,pT),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return uS({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===hT?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,u);var a},g={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,fT),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,fT),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vM(uS({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function yT(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var vT=["none",yT(0,2,1,-1,0,1,1,0,0,1,3,0),yT(0,3,1,-2,0,2,2,0,0,1,5,0),yT(0,3,3,-2,0,3,4,0,0,1,8,0),yT(0,2,4,-1,0,4,5,0,0,1,10,0),yT(0,3,5,-1,0,5,8,0,0,1,14,0),yT(0,3,5,-1,0,6,10,0,0,1,18,0),yT(0,4,5,-2,0,7,10,1,0,2,16,1),yT(0,5,5,-3,0,8,10,1,0,3,14,2),yT(0,5,6,-3,0,9,12,1,0,3,16,2),yT(0,6,6,-3,0,10,14,1,0,4,18,3),yT(0,6,7,-4,0,11,15,1,0,4,20,3),yT(0,7,8,-4,0,12,17,2,0,5,22,4),yT(0,7,8,-4,0,13,19,2,0,5,24,4),yT(0,7,9,-4,0,14,21,2,0,5,26,4),yT(0,8,9,-5,0,15,22,2,0,6,28,5),yT(0,8,10,-5,0,16,24,2,0,6,30,5),yT(0,8,11,-5,0,17,26,2,0,6,32,5),yT(0,9,11,-5,0,18,28,2,0,7,34,6),yT(0,9,12,-6,0,19,29,2,0,7,36,6),yT(0,10,13,-6,0,20,31,3,0,8,38,7),yT(0,10,13,-6,0,21,33,3,0,8,40,7),yT(0,10,14,-6,0,22,35,3,0,8,42,7),yT(0,11,14,-7,0,23,36,3,0,9,44,8),yT(0,11,15,-7,0,24,38,3,0,9,46,8)];const bT=["duration","easing","delay"],xT={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)"},ST={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ET(e){return`${Math.round(e)}ms`}function MT(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function CT(e){const t=uS({},xT,e.easing),n=uS({},ST,e.duration);return uS({getAutoHeightDuration:MT,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return dS(r,bT),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:ET(i)} ${o} ${"string"==typeof a?a:ET(a)}`)).join(",")}},e,{easing:t,duration:n})}var OT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const TT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wT(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=dS(e,TT);if(e.vars)throw new Error(sS(18));const s=mT(r),l=OC(e);let c=vM(l,{mixins:(u=l.breakpoints,d=n,uS({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:vT.slice(),typography:gT(s,o),transitions:CT(i),zIndex:uS({},OT)});var u,d;return c=vM(c,a),c=t.reduce(((e,t)=>vM(e,t)),c),c.unstable_sxConfig=uS({},bC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return EC({sx:e,theme:this})},c}var AT=wT();function RT({props:e,name:t}){return cO({props:e,name:t,defaultTheme:AT,themeId:cS})}var kT,NT={},IT={exports:{}};var LT,PT={exports:{}};var DT=Z(mM),qT=Z(bM),$T=Z(RM),zT=Z(sO),_T=Z(TC),jT=Z(kC),BT=FO;Object.defineProperty(NT,"__esModule",{value:!0});var FT=NT.default=function(e={}){const{themeId:t,defaultTheme:n=ew,rootShouldForwardProp:r=QT,slotShouldForwardProp:i=QT}=e,o=e=>(0,GT.default)((0,HT.default)({},e,{theme:nw((0,HT.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,UT.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=rw(tw(l))}=a,m=(0,VT.default)(a,JT),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=QT;"Root"===l||"root"===l?h=r:l?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,UT.default)(e,(0,HT.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,WT.isPlainObject)(e)?r=>iw(e,(0,HT.default)({},r,{theme:nw({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=nw((0,HT.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=iw(n,(0,HT.default)({},e,{theme:r}))})),d(e,o)})),s&&!p&&l.push((e=>{var r;const i=nw((0,HT.default)({},e,{defaultTheme:n,themeId:t}));return iw({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,HT.default)({},e,{theme:i}))})),f||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};NT.shouldForwardProp=QT,NT.systemDefaultTheme=void 0;var HT=BT((kT||(kT=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(IT)),IT.exports)),VT=BT((LT||(LT=1,function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(PT)),PT.exports)),UT=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ZT(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(DT),WT=qT;BT($T),BT(zT);var YT=BT(_T),GT=BT(jT);const XT=["ownerState"],KT=["variants"],JT=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ZT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ZT=function(e){return e?n:t})(e)}function QT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ew=NT.systemDefaultTheme=(0,YT.default)(),tw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function nw({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function rw(e){return e?(t,n)=>n[e]:null}function iw(e,t){let{ownerState:n}=t,r=(0,VT.default)(t,XT);const i="function"==typeof e?e((0,HT.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>iw(e,(0,HT.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,VT.default)(i,KT);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,HT.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,HT.default)({ownerState:n},r,n)):e.style))})),t}return i}var ow=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var aw=FT({themeId:cS,defaultTheme:AT,rootShouldForwardProp:ow});const sw=["theme"];function lw(e){let{theme:t}=e,n=dS(e,sw);const r=t[cS];return uM.jsx(zO,uS({},n,{themeId:r?cS:void 0,theme:r||t}))}function cw(e){return qC("MuiSvgIcon",e)}$C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uw=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dw=aw("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${AM(n.color)}`],t[`fontSize${AM(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,m,p,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(m=(e.vars||e).palette)||null==(m=m[t.color])?void 0:m.main)?d:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),mw=B.forwardRef((function(e,t){const n=RT({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,m=dS(n,uw),p=B.isValidElement(r)&&"svg"===r.type,f=uS({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return AO({root:["root","inherit"!==t&&`color${AM(t)}`,`fontSize${AM(n)}`]},cw,r)})(f);return uM.jsxs(dw,uS({as:a,className:PC(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,m,p&&r.props,{ownerState:f,children:[p?r.props.children:r,u?uM.jsx("title",{children:u}):null]}))}));mw.muiName="SvgIcon";var pw=mw;var fw=$C("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const hw=["center","classes","className"];let gw,yw,vw,bw,xw=e=>e;const Sw=YE(gw||(gw=xw`
22
22
  0% {
23
23
  transform: scale(0);
24
24
  opacity: 0.1;
@@ -28,7 +28,7 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
28
28
  transform: scale(1);
29
29
  opacity: 0.3;
30
30
  }
31
- `)),Mw=GE(vw||(vw=Sw`
31
+ `)),Ew=YE(yw||(yw=xw`
32
32
  0% {
33
33
  opacity: 1;
34
34
  }
@@ -36,7 +36,7 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
36
36
  100% {
37
37
  opacity: 0;
38
38
  }
39
- `)),Cw=GE(bw||(bw=Sw`
39
+ `)),Mw=YE(vw||(vw=xw`
40
40
  0% {
41
41
  transform: scale(1);
42
42
  }
@@ -48,7 +48,7 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
48
48
  100% {
49
49
  transform: scale(1);
50
50
  }
51
- `)),Ow=sw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Tw=sw((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=F.useState(!1),m=DC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=DC(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),F.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),dM.jsx("span",{className:m,style:p,children:dM.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(xw||(xw=Sw`
51
+ `)),Cw=aw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ow=aw((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=B.useState(!1),m=PC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=PC(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),B.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),uM.jsx("span",{className:m,style:p,children:uM.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(bw||(bw=xw`
52
52
  opacity: 0;
53
53
  position: absolute;
54
54
 
@@ -91,4 +91,4 @@ System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.
91
91
  animation-iteration-count: infinite;
92
92
  animation-delay: 200ms;
93
93
  }
94
- `),hw.rippleVisible,Ew,550,(({theme:e})=>e.transitions.easing.easeInOut),hw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),hw.child,hw.childLeaving,Mw,550,(({theme:e})=>e.transitions.easing.easeInOut),hw.childPulsate,Cw,(({theme:e})=>e.transitions.easing.easeInOut)),ww=F.forwardRef((function(e,t){const n=kT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=mS(n,gw),[s,l]=F.useState([]),c=F.useRef(0),u=F.useRef(null);F.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=F.useRef(!1),m=bO(),p=F.useRef(null),f=F.useRef(null),h=F.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,dM.jsx(Tw,{classes:{ripple:DC(i.ripple,hw.ripple),rippleVisible:DC(i.rippleVisible,hw.rippleVisible),ripplePulsate:DC(i.ripplePulsate,hw.ripplePulsate),child:DC(i.child,hw.child),childLeaving:DC(i.childLeaving,hw.childLeaving),childPulsate:DC(i.childPulsate,hw.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=F.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},m.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,m]),y=F.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=F.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void m.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return F.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),dM.jsx(Ow,dS({className:DC(hw.root,i.root,o),ref:f},a,{children:dM.jsx(Bv,{component:null,exit:!0,children:s})}))}));var Aw=ww;function Rw(e){return zC("MuiButtonBase",e)}var kw=$C("MuiButtonBase",["root","disabled","focusVisible"]);const Nw=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Iw=sw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Lw=F.forwardRef((function(e,t){const n=kT({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:p,onClick:f,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:M,onTouchEnd:C,onTouchMove:O,onTouchStart:T,tabIndex:w=0,TouchRippleProps:A,touchRippleRef:R,type:k}=n,N=mS(n,Nw),I=F.useRef(null),L=F.useRef(null),P=hO(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=AO(),[_,j]=F.useState(!1);l&&_&&j(!1),F.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),I.current.focus()}})),[]);const[B,H]=F.useState(!1);F.useEffect((()=>{H(!0)}),[]);const V=B&&!c&&!l;function U(e,t,n=u){return fO((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}F.useEffect((()=>{_&&d&&!c&&B&&L.current.pulsate()}),[c,d,_,B]);const W=U("start",S),Y=U("stop",h),G=U("stop",g),X=U("stop",M),K=U("stop",(e=>{_&&e.preventDefault(),E&&E(e)})),J=U("start",T),Z=U("stop",C),Q=U("stop",O),ee=U("stop",(e=>{z(e),!1===D.current&&j(!1),p&&p(e)}),!1),te=fO((e=>{I.current||(I.current=e.currentTarget),q(e),!0===D.current&&(j(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=F.useRef(!1),ie=fO((e=>{d&&!re.current&&_&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))})),oe=fO((e=>{d&&" "===e.key&&L.current&&_&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),x&&x(e),f&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let ae=s;"button"===ae&&(N.href||N.to)&&(ae=m);const se={};"button"===ae?(se.type=void 0===k?"button":k,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=hO(t,$,I),ce=dS({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:w,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=RO({root:["root",t&&"disabled",n&&"focusVisible"]},Rw,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return dM.jsxs(Iw,dS({as:ae,className:DC(ue.root,a),ownerState:ce,onBlur:ee,onClick:f,onContextMenu:Y,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:w,type:k},se,N,{children:[o,V?dM.jsx(Aw,dS({ref:P,center:i},A)):null]}))}));var Pw=Lw;function Dw(e){return zC("MuiButton",e)}var qw=$C("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var zw=F.createContext({});var $w=F.createContext(void 0);const _w=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],jw=e=>dS({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Fw=sw(Pw,{shouldForwardProp:e=>aw(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${RM(n.color)}`],t[`size${RM(n.size)}`],t[`${n.variant}Size${RM(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return dS({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":dS({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:YO(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:YO(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:YO(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":dS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${qw.focusVisible}`]:dS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${qw.disabled}`]:dS({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${YO(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${qw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${qw.disabled}`]:{boxShadow:"none"}})),Bw=sw("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${RM(n.size)}`]]}})((({ownerState:e})=>dS({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},jw(e)))),Hw=sw("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${RM(n.size)}`]]}})((({ownerState:e})=>dS({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},jw(e)))),Vw=F.forwardRef((function(e,t){const n=F.useContext(zw),r=F.useContext($w),i=kT({props:cO(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:m,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=i,b=mS(i,_w),x=dS({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:f,size:h,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return dS({},a,RO({root:["root",o,`${o}${RM(t)}`,`size${RM(i)}`,`${o}Size${RM(i)}`,`color${RM(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${RM(i)}`],endIcon:["icon","endIcon",`iconSize${RM(i)}`]},Dw,a))})(x),E=g&&dM.jsx(Bw,{className:S.startIcon,ownerState:x,children:g}),M=m&&dM.jsx(Hw,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return dM.jsxs(Fw,dS({ownerState:x,className:DC(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:DC(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var Uw=Vw;var Ww=F.createContext({});function Yw(e){return zC("MuiListItemButton",e)}var Gw=$C("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const Xw=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Kw=sw(Pw,{shouldForwardProp:e=>aw(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>dS({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:YO(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:YO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:YO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:YO(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Jw=F.forwardRef((function(e,t){const n=kT({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:m}=n,p=mS(n,Xw),f=F.useContext(Ww),h=F.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=F.useRef(null);dO((()=>{i&&g.current&&g.current.focus()}),[i]);const y=dS({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return dS({},n,RO({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Yw,n))})(y),b=hO(g,t);return dM.jsx(Ww.Provider,{value:h,children:dM.jsx(Kw,dS({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:DC(v.focusVisible,u),ownerState:y,className:DC(v.root,m)},p,{classes:v,children:a}))})}));var Zw=Jw;function Qw(e){return zC("MuiListItemIcon",e)}$C("MuiListItemIcon",["root","alignItemsFlexStart"]);const eA=["className"],tA=sw("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>dS({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),nA=F.forwardRef((function(e,t){const n=kT({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=mS(n,eA),o=dS({},n,{alignItems:F.useContext(Ww).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return RO({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qw,n)})(o);return dM.jsx(tA,dS({className:DC(a.root,r),ownerState:o,ref:t},i))}));var rA=nA;function iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iA(Object(n),!0).forEach((function(t){aA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sA=function(e){var t=e.className,n=e.path,r=e.fillRule;return j.createElement(fw,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},j.createElement("path",{d:n}),r?j.createElement("use",{fillRule:r}):void 0)},lA={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};sw(Uw,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:lA.ICONS.COLOR.SECONDARY}})),sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:lA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:lA.ICONS.COLOR.DISABLED}}})),sw(Uw,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var cA={color:lA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:lA.ICONS.COLOR.DISABLED}};sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return cA})),sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return cA})),sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"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"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:lA.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),sw(Zw)((function(){return{padding:"4px 12px","&:focus":oA({},lA.FOCUS)}})),sw(rA)((function(){return{marginRight:0,justifyContent:"center"}})),sw((function(e){var t=e.className;return j.createElement(sA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:lA.ICONS.COLOR.SECONDARY}}));var uA=Object.prototype.hasOwnProperty,dA=Object.prototype.toString,mA=Object.defineProperty,pA=Object.getOwnPropertyDescriptor,fA=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===dA.call(e)},hA=function(e){if(!e||"[object Object]"!==dA.call(e))return!1;var t,n=uA.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&uA.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||uA.call(e,t)},gA=function(e,t){mA&&"__proto__"===t.name?mA(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},yA=function(e,t){if("__proto__"===t){if(!uA.call(e,t))return;if(pA)return pA(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=yA(s,n),s!==(i=yA(t,n))&&(u&&i&&(hA(i)||(o=fA(i)))?(o?(o=!1,a=r&&fA(r)?r:[]):a=r&&hA(r)?r:{},gA(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&gA(s,{name:n,newValue:i}));return s}));var vA,bA=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return j.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},xA={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return j.createElement("div",{dir:o,style:a},j.createElement(bA,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},SA=G;vA=SA.createRoot,SA.hydrateRoot;var EA=AT({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function MA(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function CA(){var e={rendererBox:MA(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=MA(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=vA(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return j.createElement(j.StrictMode,null,j.createElement(cw,{theme:EA},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var OA={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,m=l.length&&void 0!==u;if(!d&&!m)return[];const p=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=e.filter((e=>p.includes(e.end.source.field))),g=e.filter((e=>f.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))}));const l=(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:h,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),E=o/2*i,{fill:M}=this.settings.style,C=x.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:S,x:v?b*e.major:E,y:v?E:b*e.major,data:e.data})));return C}};function TA({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function wA({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function AA({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function RA({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(cs.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function kA({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let m=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&m.push((e=>e.color.value)),!i&&u&&(m=[e=>e.color.value]),!m.length)return[];const p=function({brush:e,chart:t}){return("value"===e.type?AA:RA)({brush:e,chart:t})}({brush:s,chart:o});return p?n.reduce(((e,t,n)=>(m.some((e=>p({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function NA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function IA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function LA({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const m=r[e];if("gradient"!==m.type)return m;const{type:p,nil:f}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(cs.SCALE.MAJOR),d=e.scale(cs.SCALE.COLOR),m=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),p=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===o&&c?p.reverse():p).map((e=>e.item)),h=f.map((e=>m(e.major.value))),g=Math.min(...h),y=Math.max(...h)-g,v=0===y?1:y,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/v)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===f.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:m,fallback:f,orientation:u,isColorCode:"color"===p,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===p?NA:IA)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function PA({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:m,count:p}){const f=t.getLine(l,c),{attrs:h}=f,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:m}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:LA({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:m})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:m,count:p})))}function DA({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,rtl:p}){const f=function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),h=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:f,seriesInfo:n}),{lines:g}=h.reduce(((n,o)=>{const f=kA({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:f});return h.length?(n.lines.push(...PA({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,lineKey:o.lineKey,primary:o.primary,selected:f,connections:h,rtl:p,count:o.items.length})),n):n}),{lines:[]}),y=[];return g.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var qA={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:wA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=DA({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=wA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return DA({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const zA=()=>{const e=$();return e.use(_),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Vm(e))};e.interaction("hammer",Vm(Hammer))}(z)),e.use(ax),e.use((function(e){e.renderer("react",ix()),e.component("data-title",tx(e.renderer("svg")()))})),e.renderer("react-qcm",CA),e.component("disclaimer",xA),e.component("scrollbar",vl),e.component("point-label",Zx),e.component("label-space",Qx),e.component("time-axis",ym.picassoComponents.timeAxis),e.component("axis-overlay",ym.picassoComponents.axisOverlay),e.component("reference-line-labels",Ya),e.component("box-sliced-hat",gx),e.component("box-out-of-bounds",dx),e.component("data-out-of-bounds-marker",OA),e.component("scroll-hint",Go),e.component("brush-highlighter",qA),e.scale("time",ym.picassoScales.time),e.symbol("line-point",TA),e};const $A={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},_A=e=>void 0===e.marker?$A.circle:$A[e.marker],jA=e=>void 0===e.markerFill||e.markerFill;function FA({series:e,layoutService:t}){switch(Cu(e)){case us.TYPE.MARKER:return(e=>({marker:_A(e),fill:jA(e)}))(e);case us.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case us.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function BA(e=us.NOPE_SERIES,t){return t?e.axis===us.AXIS.PRIMARY:e.axis===us.AXIS.PRIMARY||Cu(e)===us.TYPE.BAR}var HA={exports:{}};var VA={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const UA="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var WA=UA;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=VA,o=WA,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[d,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of m)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),p("FULL",`^${l[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),p("LOOSE",`^${l[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),p("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[c.COERCE],!0),p("COERCERTLFULL",l[c.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(HA,HA.exports);var YA=HA.exports;const GA=Object.freeze({loose:!0}),XA=Object.freeze({});var KA=e=>e?"object"!=typeof e?GA:e:XA;const JA=/^[0-9]+$/,ZA=(e,t)=>{const n=JA.test(e),r=JA.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var QA={compareIdentifiers:ZA,rcompareIdentifiers:(e,t)=>ZA(t,e)};const eR=WA,{MAX_LENGTH:tR,MAX_SAFE_INTEGER:nR}=VA,{safeRe:rR,t:iR}=YA,oR=KA,{compareIdentifiers:aR}=QA;var sR=class e{constructor(t,n){if(n=oR(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>tR)throw new TypeError(`version is longer than ${tR} characters`);eR("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?rR[iR.LOOSE]:rR[iR.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>nR||this.major<0)throw new TypeError("Invalid major version");if(this.minor>nR||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>nR||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<nR)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(eR("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),aR(this.major,t.major)||aR(this.minor,t.minor)||aR(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(eR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return aR(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(eR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return aR(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===aR(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const lR=sR;var cR=(e,t,n=!1)=>{if(e instanceof lR)return e;try{return new lR(e,t)}catch(e){if(!n)return null;throw e}};const uR=cR;var dR=(e,t)=>{const n=uR(e,t);return n?n.version:null};const mR=cR;var pR=(e,t)=>{const n=mR(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const fR=sR;var hR=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new fR(e instanceof fR?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const gR=cR;var yR=(e,t)=>{const n=gR(e,null,!0),r=gR(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const vR=sR;var bR=(e,t)=>new vR(e,t).major;const xR=sR;var SR=(e,t)=>new xR(e,t).minor;const ER=sR;var MR=(e,t)=>new ER(e,t).patch;const CR=cR;var OR=(e,t)=>{const n=CR(e,t);return n&&n.prerelease.length?n.prerelease:null};const TR=sR;var wR=(e,t,n)=>new TR(e,n).compare(new TR(t,n));const AR=wR;var RR=(e,t,n)=>AR(t,e,n);const kR=wR;var NR=(e,t)=>kR(e,t,!0);const IR=sR;var LR=(e,t,n)=>{const r=new IR(e,n),i=new IR(t,n);return r.compare(i)||r.compareBuild(i)};const PR=LR;var DR=(e,t)=>e.sort(((e,n)=>PR(e,n,t)));const qR=LR;var zR=(e,t)=>e.sort(((e,n)=>qR(n,e,t)));const $R=wR;var _R=(e,t,n)=>$R(e,t,n)>0;const jR=wR;var FR=(e,t,n)=>jR(e,t,n)<0;const BR=wR;var HR=(e,t,n)=>0===BR(e,t,n);const VR=wR;var UR=(e,t,n)=>0!==VR(e,t,n);const WR=wR;var YR=(e,t,n)=>WR(e,t,n)>=0;const GR=wR;var XR=(e,t,n)=>GR(e,t,n)<=0;const KR=HR,JR=UR,ZR=_R,QR=YR,ek=FR,tk=XR;var nk=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return KR(e,n,r);case"!=":return JR(e,n,r);case">":return ZR(e,n,r);case">=":return QR(e,n,r);case"<":return ek(e,n,r);case"<=":return tk(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const rk=sR,ik=cR,{safeRe:ok,t:ak}=YA;var sk,lk,ck,uk,dk,mk,pk,fk,hk,gk,yk=(e,t)=>{if(e instanceof rk)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?ok[ak.COERCERTLFULL]:ok[ak.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?ok[ak.COERCEFULL]:ok[ak.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return ik(`${r}.${i}.${o}${a}${s}`,t)};function vk(){if(uk)return ck;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}uk=1,ck=e,e.Node=i,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(lk?sk:(lk=1,sk=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return ck}function bk(){if(fk)return pk;fk=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,w(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(f(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}pk=e;const t=function(){if(mk)return dk;mk=1;const e=vk(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,m=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(p(e,t)){if(h(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;p(e,o)&&(h(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return dk=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,f(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,m=this[r](i,e);if(this[c].has(e)){if(m>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=m-r.length,r.length=m,this.get(e),f(this),!0}const p=new g(e,i,m,d,u);return p.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=p.length,this[l].unshift(p),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!p(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>m(this,t,!1)))}},dk}(),n=new t({max:1e3}),r=KA,i=xk(),o=WA,a=sR,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=YA,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=VA,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=O(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},O=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),T=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),w=e=>(t,n,r,i,o,a,s,l,c,u,d,m,p)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return pk}function xk(){if(gk)return hk;gk=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}hk=t;const n=KA,{safeRe:r,t:i}=YA,o=nk,a=WA,s=sR,l=bk();return hk}const Sk=bk();var Ek=(e,t,n)=>{try{t=new Sk(t,n)}catch(e){return!1}return t.test(e)};const Mk=bk();var Ck=(e,t)=>new Mk(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Ok=sR,Tk=bk();var wk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Tk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new Ok(r,n)))})),r};const Ak=sR,Rk=bk();var kk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Rk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new Ak(r,n)))})),r};const Nk=sR,Ik=bk(),Lk=_R;var Pk=(e,t)=>{e=new Ik(e,t);let n=new Nk("0.0.0");if(e.test(n))return n;if(n=new Nk("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new Nk(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!Lk(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!Lk(n,i)||(n=i)}return n&&e.test(n)?n:null};const Dk=bk();var qk=(e,t)=>{try{return new Dk(e,t).range||"*"}catch(e){return null}};const zk=sR,$k=xk(),{ANY:_k}=$k,jk=bk(),Fk=Ek,Bk=_R,Hk=FR,Vk=XR,Uk=YR;var Wk=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new zk(e,r),t=new jk(t,r),n){case">":i=Bk,o=Vk,a=Hk,s=">",l=">=";break;case"<":i=Hk,o=Uk,a=Bk,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Fk(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===_k&&(e=new $k(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const Yk=Wk;var Gk=(e,t,n)=>Yk(e,t,">",n);const Xk=Wk;var Kk=(e,t,n)=>Xk(e,t,"<",n);const Jk=bk();var Zk=(e,t,n)=>(e=new Jk(e,n),t=new Jk(t,n),e.intersects(t,n));const Qk=Ek,eN=wR;const tN=bk(),nN=xk(),{ANY:rN}=nN,iN=Ek,oN=wR,aN=[new nN(">=0.0.0-0")],sN=[new nN(">=0.0.0")],lN=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===rN){if(1===t.length&&t[0].semver===rN)return!0;e=n.includePrerelease?aN:sN}if(1===t.length&&t[0].semver===rN){if(n.includePrerelease)return!0;t=sN}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=cN(i,t,n):"<"===t.operator||"<="===t.operator?o=uN(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=oN(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!iN(e,String(i),n))return null;if(o&&!iN(e,String(o),n))return null;for(const r of t)if(!iN(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,m=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=cN(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!iN(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=uN(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!iN(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!m&&!d))},cN=(e,t,n)=>{if(!e)return t;const r=oN(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},uN=(e,t,n)=>{if(!e)return t;const r=oN(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var dN=(e,t,n={})=>{if(e===t)return!0;e=new tN(e,n),t=new tN(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=lN(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const mN=YA,pN=VA,fN=sR,hN=QA,gN=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>eN(e,t,n)));for(const e of a){Qk(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var yN=J({parse:cR,valid:dR,clean:pR,inc:hR,diff:yR,major:bR,minor:SR,patch:MR,prerelease:OR,compare:wR,rcompare:RR,compareLoose:NR,compareBuild:LR,sort:DR,rsort:zR,gt:_R,lt:FR,eq:HR,neq:UR,gte:YR,lte:XR,cmp:nk,coerce:yk,Comparator:xk(),Range:bk(),satisfies:Ek,toComparators:Ck,maxSatisfying:wk,minSatisfying:kk,minVersion:Pk,validRange:qk,outside:Wk,gtr:Gk,ltr:Kk,intersects:Zk,simplifyRange:gN,subset:dN,SemVer:fN,re:mN.re,src:mN.src,tokens:mN.t,SEMVER_SPEC_VERSION:pN.SEMVER_SPEC_VERSION,RELEASE_TYPES:pN.RELEASE_TYPES,compareIdentifiers:hN.compareIdentifiers,rcompareIdentifiers:hN.rcompareIdentifiers}),vN={BAR_IN_SECONDARY_AXIS:"0.23.1"};const bN=e=>!e||yN.lt(yN.coerce(e),yN.coerce(vN.BAR_IN_SECONDARY_AXIS)),xN=({layoutService:e})=>{const t=!bN(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[us.TYPE.BAR]:0,[us.TYPE.LINE]:0,[us.TYPE.MARKER]:0};return({series:r=us.NOPE_SERIES},i)=>{const o=BA(r,t),a=Cu(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,collection:o?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY,options:FA({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Cu(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,us.TYPE.BAR),l=r(i,us.TYPE.BAR),c=r(o,us.TYPE.BAR),u=e=>n.filter((t=>Cu(t)===e)),d=u(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),m=u(us.TYPE.MARKER).map((e=>({key:Yl(cs.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`),c>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=cs.COMPONENT,y=u(us.TYPE.LINE).map((e=>Yl(g.LINE,e))),v=u(us.TYPE.MARKER).map((e=>Yl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${us.AXIS.PRIMARY}`,`${g.BAR}-${us.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:p,barComponentKeys:f,seriesComponentKeys:h,miniComponentKeys:b,markers:m},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:BA}}};function SN({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function EN({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Ee).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:SN({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function MN({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):EN({genericObjectModel:e,layoutService:t})}const CN=e=>"number"==typeof e&&!Number.isNaN(e);function ON({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Cu(e.series)===us.TYPE.BAR)),a=i.filter((e=>Cu(e.series)===us.TYPE.LINE)),s=i.filter((e=>Cu(e.series)===us.TYPE.MARKER));return{min:Math.min(...i.filter((e=>CN(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>CN(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>CN(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>CN(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>CN(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>CN(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>CN(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>CN(e.qMax))).map((e=>e.qMax)))}}}}function TN({isPrimary:e,layoutService:t,seriesModel:n}){const r=ON({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function wN({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,i=n.query.series(us.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?ON({isPrimary:e,layoutService:t,seriesModel:n}):TN({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>Cu(e)===us.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),m=Number((u?Math.max(r,0):r).toFixed(13)),p=Number((u?Math.min(s.min,0):s.min).toFixed(13)),f=Number((u?Math.max(s.max,0):s.max).toFixed(13)),h=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(m)?m:0,o.implicit.bar.min=Number.isFinite(p)?p:0,o.implicit.bar.max=Number.isFinite(f)?f:0,o.implicit.line.min=Number.isFinite(h)?h:0,o.implicit.line.max=Number.isFinite(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}const AN=.2;function RN({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function kN({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=Pr().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const NN=50,IN=100,LN=200,PN=125,DN=e=>{switch(e){case.5:return NN;case 1:return IN;case 2:return LN;default:return e*PN}};function qN({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=function({config:{measureAxesRef:e},layoutService:t,size:n}){const r=t.getLayoutValue(`${e}.spacing`,1),i=DN(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=kN({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},m="horizontal"===r.meta.major.orientation?"height":"width",p=e=>i(e)[m],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(p))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}const zN=.3;function $N({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function _N({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const jN=10;function FN({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=kN({min:r,max:i,count:jN,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(jN),l=function({ticks:e}){const t=Math.round(e.length*zN),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?$N:_N;o.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=o.ticks.map(u),m=d.some(((e,t)=>d.indexOf(e)!==t));return m&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function BN({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function HN({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=qN({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return RN({extrema:i,ticks:c.ticks})?c:FN({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),m=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:c,count:1}),p=[...BN({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...m.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:p}}function VN({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-t*AN*Math.sign(t),max:n+n*AN*Math.sign(n)}}({extrema:o});return HN({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function UN({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=$.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),u=r.query.getExtrema();return VN({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function WN({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return xe.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function YN({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:us.TYPE.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===us.TYPE.LINE?2:t!==us.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==us.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function GN({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function XN({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:m,translator:p}=i,f={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=w({picasso:s,model:o,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:m,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:cs.SCALE.COLOR}},config:{auto:GN,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>f.wrappedScales,legendComponents:()=>f.legendComponents,legendInteractions:()=>f.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:cs.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:YN({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),m=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=m[`${cs.SCALE.COLOR}Range`];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:d,scales:m}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});f.wrappedScales=o,f.legendComponents=t,f.legendInteractions=n}}}),d}const KN="REJECTED",JN=()=>{},ZN=1e4,QN={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},eI=50,tI=10,nI=100;var rI={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-tI<=t.qTop,i=n.qLeft+n.qWidth+tI>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+tI>=t.qTop+t.qHeight,a=n.qLeft-tI<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var iI={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-tI<=t.qTop,i=n.qTop+n.qHeight+tI>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var oI={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const aI="pages";const sI="discretePan",lI=10;function cI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:sI,pointers:1,threshold:lI,enable(r,i){return this.started===sI||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${sI}start`](e){e.preventDefault(),this.started=sI;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-lI:lI},[`${sI}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${sI}end`](e){e.preventDefault(),this.started=!1},[`${sI}cancel`](e){e.preventDefault(),this.started=!1}}}}function uI({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*nI;r.scroll(s)}}function dI({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(ZN/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(QN.MAXIMUM,n));return{width:e,height:Math.max(QN.MINIMUM,Math.min(n*QN.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function mI(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(KN),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(KN),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(KN),n=null)},i}const pI={command:{update:()=>{}}};function fI({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=pI,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:dI({layoutService:r}),request:c({definitionPath:o}),process:mI(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=T(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==KN)throw e}))}),eI);return function(e,{onProcessing:t=JN,onDataPage:n=JN}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var hI={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var gI={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function yI(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function vI(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function bI(e){return vI(e.qMatrix,(e=>e[0].qElemNumber))-1}var xI={inTotal:function({layoutService:e}){const t=yI(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=yI(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=yI(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=bI(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const SI=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),EI=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function MI(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return SI(e,n);const r=EI(t.qMatrix,n);return r.successful?r.count:SI(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return SI(e,n);return vI(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var CI={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=MI(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:c}=n,u=MI(t).area(e(),l,a.qArea),d=bI(a),m=a.qArea.qHeight+d,p=c===o?(r.inView-m)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[p,r.inView>=r.inTotal?p+1:p+m/r.inView]}};function OI({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:m,LABELLESS:p}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=f?t.width:t.height,b=v/l>=m;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:m}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return m>o;const p=(90-d)*(Math.PI/180);return m>Math.cos(p)*o}({chart:e,isHorizontal:f,axisKey:i,renderer:o,isGrouped:a,itemSize:m,label:y})?v/d:l:v/d}}function TI({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:m}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?hI:n?r?xI:CI:gI}({layoutService:r}),p=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,f=e=>e?p()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:OI({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(ZN/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,h(n,r))),o=r?Math.abs(r*i/p()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:p(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=m({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}function wI({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:m,rtl:p}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const f=TI({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:p}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=h(),a=g({pixelOffset:e,items:r}),s=f.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((f.validate.offset({pixelOffset:e,items:r})||m.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item})));m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=h();n.set("itemSize",f.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=m.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});m.preventSet("viewRange",f.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=f.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:u.start,items:a})),m.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function AI({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:m,renderer:p,areaBuffer:f,processDataPage:h=(()=>{})}={}}){const g=C(),y=function({qMode:e}){switch(e){case"S":default:return rI;case"K":return iI;case"T":return oI}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(aI,[]),{add:t=>{const n=e.get(aI);n.length=0,n.push(t)},getCurrent:()=>e.get(aI)[0],getAll:()=>e.get(aI),contains:n=>t(e.get(aI)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:f}),x=fI({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=wI({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:m,renderer:p,areaBuffer:b,viewState:l,rtl:c}),M=function({layoutService:e,dataStore:t}){return function(n){const r=E(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),O=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[cI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:uI({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:O,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var RI={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function kI({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function NI({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=ic,s=n.getStyles(),l=kI({layoutService:e,key:"bar"}),c=kI({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("marker"))||void 0===t||null===(t=t.marker)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("marker"))||void 0===r||null===(r=r.marker)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("marker"))||void 0===o||null===(o=o.marker)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function II({layoutService:e}){return A({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function LI({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return ge.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function PI({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=cs.COMPONENT,{PRIMARY:f,SECONDARY:h}=us.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=cs.COMPONENT,{PRIMARY:a,SECONDARY:s}=us.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return R({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:cs.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[cs.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:m},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${p}-max-${f}`,`${p}-max-${h}`,`${p}-min-${f}`,`${p}-min-${h}`,`${cs.COMPONENT.BAR_OOB}-max-${f}`,`${cs.COMPONENT.BAR_OOB}-max-${h}`,`${cs.COMPONENT.BAR_OOB}-min-${f}`,`${cs.COMPONENT.BAR_OOB}-min-${h}`,`${cs.COMPONENT.DATA_OOB_MARKER}-max`,`${cs.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:m},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:m},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:cs.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:LI({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:m}=o.data;return c.isEnabled()&&m&&u.push(...m.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:cs.COMPONENT.LEGEND_TOOLTIP,component:cs.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:DI}=ym,qI=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{const v=a(),{width:b,height:x}=i(),[S,M]=n(),[C,O]=n(),T=s(),w=l(),A=c(),R=u(),P=d();r((()=>{if(!(v&&null!=t&&t.update&&m&&f&&y))return;const n=k({source:v,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.LINE)),i=xe.continuous(e,(()=>r&&fe.isTime(!0,e))),o=!bN(E(e,"version","")),a=n.filter((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.BAR)),s=a.length,l=a.filter((({series:e=us.NOPE_SERIES})=>e.axis!==us.AXIS.SECONDARY)).length,c=a.filter((({series:e=us.NOPE_SERIES})=>e.axis===us.AXIS.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==E(e,"barGrouping.grouping")||i)&&u,m=!d&&s>1,p=o&&d&&(l>0&&c>1||l>1&&c>0),f=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:fe.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:fe.isTime(i,e),isSnapshot:xe.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:p,isGrouped:m||p,isGroupedByMeasure:m||p,isDimensionLocked:f,groupSize:p?2:s,hasLineSeries:r}}}),{options:r,translator:i}=m,{direction:o}=r,a="rtl"===o,s=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=MN({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:T,layoutService:n}),l=N({chart:t,layoutService:n,config:{logicalSize:{width:b,height:x},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),c=xN({layoutService:n,flags:p}),u=n.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return AI({chart:e,actions:s,componentKey:vm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:RI,options:{axisKey:cs.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:t,genericObjectModel:T,layoutService:n,dockService:l,seriesModel:c,viewState:f,rtl:"rtl"===m.options.direction,actions:g,picasso:e}):void 0,d=n.meta.isContinuous?DI({model:T,layoutService:n,viewState:f,viewCache:h}):void 0,S=I({theme:m.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),C=NI({layoutService:n,dockService:l,themeService:S,flags:p}),O=XN({actions:g,appLayoutModel:A,appModel:w,chart:t,environment:m,flags:p,genericObjectModel:T,layoutService:n,picasso:e,seriesModel:c,viewState:f,styleModel:C}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:n,seriesModel:c}),q=wN({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=wN({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=II({layoutService:n}),_=UN({config:{measureAxesRef:"measureAxes.0",formatter:cs.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:S}),j=UN({config:{measureAxesRef:"measureAxes.1",formatter:cs.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:z,dockService:l,seriesModel:c,themeService:S}),F=WN({genericObjectModel:T,layoutService:n}),B=ks({flags:p,layout:v,app:w,model:T,picasso:e,chart:t,translator:i,localeInfo:A.qLocaleInfo,embed:P,options:r}),H=PI({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:S,propertiesModel:F,custom:B}),V=ss({layoutService:n,discreteModel:u}),U=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:cs.SCALE.MAJOR,MAJOR_INNER:cs.SCALE.MAJOR_INNER,MINOR:{PRIMARY:cs.SCALE.MINOR.PRIMARY,SECONDARY:cs.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,BAR_SECONDARY:`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,AXIS:{MAJOR:cs.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:cs.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:cs.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:cs.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:cs.COLLECTION.MAIN}}}}(n),W=L({picassoInstance:e,plugins:R,pluginArgs:U}),Y=function({options:e,flags:t,viewCache:n,layoutService:r}){const i={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||!t.isEnabled("IM_6894_ANIMATIONS_COMBO")||i.hasSlicedHats||i.isPartialUpdating||i.isSizeChanging||Ka.propertiesHaveChanged({viewCache:n,layout:r.getLayout()})),meta:i}}({options:r,flags:p,viewCache:h,layoutService:n});M({selectionService:y,genericObjectModel:T,appModel:w,dockService:l,styleModel:C,layoutService:n,fieldModel:D,seriesModel:c,reducedModel:s,primaryExtremumModel:q,secondaryExtremumModel:z,primaryTickModel:_,secondaryTickModel:j,propertiesModel:F,colorService:O,themeService:S,appLayoutModel:A,tooltipService:H,disclaimerService:$,flags:p,...u&&{discreteModel:u},...d&&{continuousModel:d},refLineModel:V,pluginService:W,animationsModel:Y})}),[v,T,w,A,m,null==t?void 0:t.update,f,y]);const[,D]=o((()=>{if(!S)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:r,secondaryExtremumModel:i,propertiesModel:o,continuousModel:a,discreteModel:s,pluginService:l,disclaimerService:c}=S,u=a?()=>{var t;a.update(e.getLayout());const n=a.initialFetch(),r=!e.meta.isSnapshot&&(null==m||null===(t=m.options)||void 0===t||null===(t=t.viewState)||void 0===t?void 0:t.zoom);return r&&f.preventSet("zoom",r),n}:()=>Promise.resolve(),d=t.initialize().then((()=>{const e=t.getSettings().field;y&&y.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([l.initialize(),n.command.initialize(),T?o.command.initialize():Promise.resolve(),d,u(),g.scroll.attachDiscreteModel(s)]).then((()=>Promise.all([r.command.initialize(),i.command.initialize()]).then((()=>{c.initialize(),O(S)}))))}),[S]);if(D)throw D;return C};const zI={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"}}]};const $I={query:{getCanScroll:()=>!0}};function _I({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function jI({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===cs.COMPONENT.LEGEND_CATEGORICAL}),r()}function FI({chart:e,actions:t}){const i=b(),o=a(),[s,l]=n();return r((()=>{if(null==e||!e.update||!e.scale)return null;const n=e.scale(cs.SCALE.MAJOR),r=D({chart:e,actions:t,selections:i,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:_I},selectionEvents:{start:jI}}});r.setLayout(o);const{destroy:a}=r;return l(r),()=>{a()}}),[i,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=s&&s.setLayout&&o&&s.setLayout(o)}),[o]),s}const BI={version:"1.30.0",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var HI=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Cu(n[e].qDef.series),i===us.TYPE.BAR?r[0]=1:i===us.TYPE.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},VI=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===us.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===us.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function UI(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Cu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===us.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function WI(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:HI(t),added(e,t){Cs.addCallbackCustomTooltip(t)},moved(e,t){Cs.moveCallbackCustomTooltip(t,e)},removed(e,t){Cs.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Cs.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:VI(t),added({qDef:e},t){var n;UI(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:us.TYPE.LINE,axis:us.AXIS.SECONDARY}:e.series={type:us.TYPE.BAR,axis:us.AXIS.PRIMARY})},moved(e,t){UI(t)}}}}function YI(e){const t=WI(e);return{properties:BI,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=X.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&le(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const GI=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=o.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(r),c.command.setSnapshotData(r)):l.setSnapshotData(r),a.getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),S((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const XI=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function KI(e,t,n){const r=q({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...XI("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:XI("line.label.value","label.value",r,t)}}}:void 0}},markerSection:(null==e?void 0:e.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL"))&&{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:XI("marker.label.value","label.value",r,t)}}}}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:XI("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:XI("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:XI("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:XI("legend.label","legend.label",r,t)}}}:void 0}};const i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>Cu(e.qDef.series)===us.TYPE.LINE));return!xe.continuous(n.layout,r&&fe.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},u={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const JI={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function ZI(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.LINE));return xe.continuous(e,(()=>t&&fe.isTime(!0,e)))}function QI(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function eL(e){var t,n;return QI(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function tL(e){var t;return QI(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function nL(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function rL(e){return tL(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function iL(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...nL(n),...rL(e)]:rL(e)}(t,n,e)))}function oL(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||ZI(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},r={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>QI(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme;return{items:{series:{type:"items",items:{supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:o,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:eL},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:tL}}}}}}}}}}}}const aL=10,sL=!0;function lL(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?BA(t,sL):!BA(t,sL)}))}function cL(e,t){return t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.LINE)).length>0}function uL(e,t,n){const r=t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==us.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>n}const dL=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||ZI(t.layout)?"y":"x",o=lL(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function mL(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>iL(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>QI(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),m=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>QI(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},p=(e,t)=>0!==e.filter((e=>e.qDef.series.axis===t)).length,f={items:{disclaimer:{show:(e,t)=>m(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!m(e,t)}}},h={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&uL(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&cL(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",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)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(lL(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&lL(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&lL(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},g={uses:"settings",items:{simpleStyling:JI,simpleLabels:h,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:KI(o,s,i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>uL(0,t,1)&&!ZI(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>ZI(n.layout),convertFunctions:(y="vertical",{get:(e,t,n)=>ZI(n.layout)?y:e(t.type),set(e,t,n,r){t(n.type,ZI(r.layout)?y:e,y)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!ZI(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>cL(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>cL(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>uL(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",show:(e,t)=>o.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL")&&function(e,t){return t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.MARKER)).length>0}(0,t),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],show:()=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e){const t=[],n=e.qHyperCubeDef.qMeasures,r=p(n,0),i=p(n,1);return r&&t.push({translation:"properties.axis.primary",value:0}),i&&t.push({translation:"properties.axis.secondary",value:1}),t},show:e=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")&&e.gridLine&&!e.gridLine.auto&&0!==e.qHyperCubeDef.qMeasures.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=r.qHyperCubeDef.qMeasures,s=p(a,0),l=p(a,1);return 0===o&&!s&&l?(M(r,"gridLine.axis",1),1):1===o&&s&&!l?(M(r,"gridLine.axis",0),0):o}}},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")&&e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:f,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||ZI(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||ZI(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!ZI(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:aL,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=aL:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>dL(e,t,i,0),show:(e,t)=>lL(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>dL(e,t,i,0),show:(e,t)=>lL(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&BA(null==e?void 0:e.series,sL)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&lL(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||ZI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&lL(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>lL(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.0.autoMinMax",!1),M(i,"measureAxes.0.minMax","min"),M(i,"measureAxes.0.min",0)):M(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>dL(e,t,i,1),show:(e,t)=>lL(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>dL(e,t,i,1),show:(e,t)=>lL(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!BA(null==e?void 0:e.series,sL)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&lL(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||ZI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&lL(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>lL(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.1.autoMinMax",!1),M(i,"measureAxes.1.minMax","min"),M(i,"measureAxes.1.min",0)):M(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var y;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(g.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});const v={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!ZI(n.layout)}}}},measures:oL(e)}},b={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>BA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,sL)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!BA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,sL)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:v,sorting:{uses:"sortingWithDisclaimer"},addons:b,settings:g}}}function pL(e){return e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.LINE)).length>0}function fL(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>pL(e)||!ZI(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===us.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>1:n.length>1}(e,!bN(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!ZI(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!ZI(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>pL(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>pL(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>QI(e)))}}}}}}const hL={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function gL(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=hL[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function yL(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});gL(r,o,t,n,"bar"),gL(r,o,t,n,"line"),gL(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function vL(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const bL=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function xL(e){return{definition:mL(e),softDefinition:fL(),support:{snapshot:bL,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:yL,extendMetrics:vL,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:WI(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&le(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),iL(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(kt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(kt)}(e),function(e){return bN(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=us.NOPE_SERIES),void 0===t.series.type&&(t.series.type=us.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===us.TYPE.BAR?us.AXIS.PRIMARY:us.AXIS.SECONDARY),t.series.type===us.TYPE.BAR&&t.series.axis===us.AXIS.SECONDARY&&(t.series.axis=us.AXIS.PRIMARY)})),e.version=vN.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
94
+ `),fw.rippleVisible,Sw,550,(({theme:e})=>e.transitions.easing.easeInOut),fw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),fw.child,fw.childLeaving,Ew,550,(({theme:e})=>e.transitions.easing.easeInOut),fw.childPulsate,Mw,(({theme:e})=>e.transitions.easing.easeInOut)),Tw=B.forwardRef((function(e,t){const n=RT({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=dS(n,hw),[s,l]=B.useState([]),c=B.useRef(0),u=B.useRef(null);B.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=B.useRef(!1),m=vO(),p=B.useRef(null),f=B.useRef(null),h=B.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,uM.jsx(Ow,{classes:{ripple:PC(i.ripple,fw.ripple),rippleVisible:PC(i.rippleVisible,fw.rippleVisible),ripplePulsate:PC(i.ripplePulsate,fw.ripplePulsate),child:PC(i.child,fw.child),childLeaving:PC(i.childLeaving,fw.childLeaving),childPulsate:PC(i.childPulsate,fw.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=B.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:f.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===p.current&&(p.current=()=>{h({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},m.start(80,(()=>{p.current&&(p.current(),p.current=null)}))):h({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,m]),y=B.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=B.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&p.current)return p.current(),p.current=null,void m.start(0,(()=>{v(e,t)}));p.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[m]);return B.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),uM.jsx(Cw,uS({className:PC(fw.root,i.root,o),ref:f},a,{children:uM.jsx(Fv,{component:null,exit:!0,children:s})}))}));var ww=Tw;function Aw(e){return qC("MuiButtonBase",e)}var Rw=$C("MuiButtonBase",["root","disabled","focusVisible"]);const kw=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Nw=aw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Rw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Iw=B.forwardRef((function(e,t){const n=RT({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:m="a",onBlur:p,onClick:f,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:M,onTouchEnd:C,onTouchMove:O,onTouchStart:T,tabIndex:w=0,TouchRippleProps:A,touchRippleRef:R,type:k}=n,N=dS(n,kw),I=B.useRef(null),L=B.useRef(null),P=fO(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:$,ref:z}=wO(),[_,j]=B.useState(!1);l&&_&&j(!1),B.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),I.current.focus()}})),[]);const[F,H]=B.useState(!1);B.useEffect((()=>{H(!0)}),[]);const V=F&&!c&&!l;function U(e,t,n=u){return pO((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}B.useEffect((()=>{_&&d&&!c&&F&&L.current.pulsate()}),[c,d,_,F]);const W=U("start",S),Y=U("stop",h),G=U("stop",g),X=U("stop",M),K=U("stop",(e=>{_&&e.preventDefault(),E&&E(e)})),J=U("start",T),Z=U("stop",C),Q=U("stop",O),ee=U("stop",(e=>{$(e),!1===D.current&&j(!1),p&&p(e)}),!1),te=pO((e=>{I.current||(I.current=e.currentTarget),q(e),!0===D.current&&(j(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=B.useRef(!1),ie=pO((e=>{d&&!re.current&&_&&L.current&&" "===e.key&&(re.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),f&&f(e))})),oe=pO((e=>{d&&" "===e.key&&L.current&&_&&!e.defaultPrevented&&(re.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),x&&x(e),f&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let ae=s;"button"===ae&&(N.href||N.to)&&(ae=m);const se={};"button"===ae?(se.type=void 0===k?"button":k,se.disabled=l):(N.href||N.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=fO(t,z,I),ce=uS({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:w,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=AO({root:["root",t&&"disabled",n&&"focusVisible"]},Aw,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return uM.jsxs(Nw,uS({as:ae,className:PC(ue.root,a),ownerState:ce,onBlur:ee,onClick:f,onContextMenu:Y,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:X,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:w,type:k},se,N,{children:[o,V?uM.jsx(ww,uS({ref:P,center:i},A)):null]}))}));var Lw=Iw;function Pw(e){return qC("MuiButton",e)}var Dw=$C("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var qw=B.createContext({});var $w=B.createContext(void 0);const zw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_w=e=>uS({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),jw=aw(Lw,{shouldForwardProp:e=>ow(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${AM(n.color)}`],t[`size${AM(n.size)}`],t[`${n.variant}Size${AM(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return uS({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":uS({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:WO(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WO(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:WO(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":uS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Dw.focusVisible}`]:uS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Dw.disabled}`]:uS({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${WO(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Dw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Dw.disabled}`]:{boxShadow:"none"}})),Bw=aw("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${AM(n.size)}`]]}})((({ownerState:e})=>uS({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},_w(e)))),Fw=aw("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${AM(n.size)}`]]}})((({ownerState:e})=>uS({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},_w(e)))),Hw=B.forwardRef((function(e,t){const n=B.useContext(qw),r=B.useContext($w),i=RT({props:lO(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:m,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=i,b=dS(i,zw),x=uS({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:f,size:h,type:y,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return uS({},a,AO({root:["root",o,`${o}${AM(t)}`,`size${AM(i)}`,`${o}Size${AM(i)}`,`color${AM(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${AM(i)}`],endIcon:["icon","endIcon",`iconSize${AM(i)}`]},Pw,a))})(x),E=g&&uM.jsx(Bw,{className:S.startIcon,ownerState:x,children:g}),M=m&&uM.jsx(Fw,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return uM.jsxs(jw,uS({ownerState:x,className:PC(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:PC(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var Vw=Hw;var Uw=B.createContext({});function Ww(e){return qC("MuiListItemButton",e)}var Yw=$C("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const Gw=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Xw=aw(Lw,{shouldForwardProp:e=>ow(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>uS({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Yw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WO(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Yw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Yw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WO(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Yw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Yw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),Kw=B.forwardRef((function(e,t){const n=RT({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:m}=n,p=dS(n,Gw),f=B.useContext(Uw),h=B.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=B.useRef(null);uO((()=>{i&&g.current&&g.current.focus()}),[i]);const y=uS({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return uS({},n,AO({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Ww,n))})(y),b=fO(g,t);return uM.jsx(Uw.Provider,{value:h,children:uM.jsx(Xw,uS({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:PC(v.focusVisible,u),ownerState:y,className:PC(v.root,m)},p,{classes:v,children:a}))})}));var Jw=Kw;function Zw(e){return qC("MuiListItemIcon",e)}$C("MuiListItemIcon",["root","alignItemsFlexStart"]);const Qw=["className"],eA=aw("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>uS({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),tA=B.forwardRef((function(e,t){const n=RT({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=dS(n,Qw),o=uS({},n,{alignItems:B.useContext(Uw).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return AO({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Zw,n)})(o);return uM.jsx(eA,uS({className:PC(a.root,r),ownerState:o,ref:t},i))}));var nA=tA;function rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rA(Object(n),!0).forEach((function(t){oA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aA=function(e){var t=e.className,n=e.path,r=e.fillRule;return j.createElement(pw,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},j.createElement("path",{d:n}),r?j.createElement("use",{fillRule:r}):void 0)},sA={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};aw(Vw,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:sA.ICONS.COLOR.SECONDARY}})),aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:sA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.ICONS.COLOR.DISABLED}}})),aw(Vw,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var lA={color:sA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:sA.ICONS.COLOR.DISABLED}};aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return lA})),aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return lA})),aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"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"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:sA.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),aw(Jw)((function(){return{padding:"4px 12px","&:focus":iA({},sA.FOCUS)}})),aw(nA)((function(){return{marginRight:0,justifyContent:"center"}})),aw((function(e){var t=e.className;return j.createElement(aA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:sA.ICONS.COLOR.SECONDARY}}));var cA=Object.prototype.hasOwnProperty,uA=Object.prototype.toString,dA=Object.defineProperty,mA=Object.getOwnPropertyDescriptor,pA=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===uA.call(e)},fA=function(e){if(!e||"[object Object]"!==uA.call(e))return!1;var t,n=cA.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&cA.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||cA.call(e,t)},hA=function(e,t){dA&&"__proto__"===t.name?dA(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},gA=function(e,t){if("__proto__"===t){if(!cA.call(e,t))return;if(mA)return mA(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=gA(s,n),s!==(i=gA(t,n))&&(u&&i&&(fA(i)||(o=pA(i)))?(o?(o=!1,a=r&&pA(r)?r:[]):a=r&&fA(r)?r:{},hA(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&hA(s,{name:n,newValue:i}));return s}));var yA,vA=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return j.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},bA={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return j.createElement("div",{dir:o,style:a},j.createElement(vA,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},xA=G;yA=xA.createRoot,xA.hydrateRoot;var SA=wT({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function EA(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function MA(){var e={rendererBox:EA(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=EA(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=yA(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return j.createElement(j.StrictMode,null,j.createElement(lw,{theme:SA},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var CA={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,m=l.length&&void 0!==u;if(!d&&!m)return[];const p=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=e.filter((e=>p.includes(e.end.source.field))),g=e.filter((e=>f.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))}));const l=(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:h,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),E=o/2*i,{fill:M}=this.settings.style,C=x.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:S,x:v?b*e.major:E,y:v?E:b*e.major,data:e.data})));return C}};function OA({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function TA({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function wA({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function AA({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(cs.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function RA({brush:e,selectionInfo:t,items:n,selectionValues:r,colorByData:i,chart:o}){const a=e.brushes();if(!a.length)return[];const s=a[0],{minorRange:l,legendRange:c,legendTap:u}=t,d=0===s.id.indexOf("qHyperCube/qMeasureInfo/")?"qHyperCube/qMeasureInfo/X":s.id;let m=[c?e=>e.color.value:r[d]].filter(Boolean);if(i&&l&&m.push((e=>e.color.value)),!i&&u&&(m=[e=>e.color.value]),!m.length)return[];const p=function({brush:e,chart:t}){return("value"===e.type?wA:AA)({brush:e,chart:t})}({brush:s,chart:o});return p?n.reduce(((e,t,n)=>(m.some((e=>p({value:e(t)})))&&e.push({item:t,index:n}),e)),[]):[]}function kA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function NA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function IA({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const m=r[e];if("gradient"!==m.type)return m;const{type:p,nil:f}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(cs.SCALE.MAJOR),d=e.scale(cs.SCALE.COLOR),m=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),p=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===o&&c?p.reverse():p).map((e=>e.item)),h=f.map((e=>m(e.major.value))),g=Math.min(...h),y=Math.max(...h)-g,v=0===y?1:y,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/v)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===f.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:m,fallback:f,orientation:u,isColorCode:"color"===p,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===p?kA:NA)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function LA({chart:e,pathModel:t,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,lineKey:l,primary:c,selected:u,connections:d,rtl:m,count:p}){const f=t.getLine(l,c),{attrs:h}=f,g=function({d:e}){return e.replace("Z","").split(/(?=[LMC])/).map((e=>{const t=e.substring(0,1),n={letter:t,x:0,y:0,raw:e},r=e.substring(1).split(",");return"M"===t||"L"===t?([n.x]=r,[,n.y]=r):"C"===t&&([,,,,n.x]=r,[,,,,,n.y]=r),n}))}({d:h.d});return d.map((t=>function({chart:e,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,selected:s,connection:l,commands:c,attrs:u,rtl:d,count:m}){return{path:l.map(((e,t)=>{const n=c[e];return 0!==t||"M"===n.letter?n.raw:`M${n.x},${n.y}`})).join(""),attrs:u,stroke:IA({property:"stroke",chart:e,connection:l,attrs:u,selected:s,colorSettings:t,colorByData:n,hasMultipleMeasures:r,groupedByMeasure:i,itemsPerGroup:o,orientation:a,rtl:d,count:m})}}({chart:e,colorSettings:n,colorByData:r,hasMultipleMeasures:i,groupedByMeasure:o,itemsPerGroup:a,orientation:s,selected:u,connection:t,commands:g,attrs:h,rtl:m,count:p})))}function PA({chart:e,pathModel:t,seriesInfo:n,brush:r,selectionInfo:i,items:o,selectionValues:a,colorSettings:s,colorByData:l,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,rtl:p}){const f=function({items:e,selectionInfo:t,seriesInfo:n}){return e.filter((e=>{if("NaN"===e.end.value||Number.isNaN(e.end.value))return!1;const{minorRange:r,minorRangePrimary:i}=t;return!r||(i?n.primary:n.secondary).some((t=>t.typeIndex===e.typeIndex.value))}))}({items:o,selectionInfo:i,seriesInfo:n}),h=function({items:e,seriesInfo:t}){const n=e.reduce(((e,n,r)=>{const i=n.typeIndex.value;var o;return e[i]||(e[i]={key:i,items:[],index:r,measureIx:null===(o=n.colorMeasureIdx)||void 0===o?void 0:o.value,primary:t.primary.some((e=>e.typeIndex===i))}),e[i].items.push(n),e}),{});return Object.keys(n).map((e=>n[e])).sort(((e,t)=>e.index-t.index)).map((e=>({lineKey:e.key,items:e.items,primary:e.primary,measureIx:e.measureIx})))}({items:f,seriesInfo:n}),{lines:g}=h.reduce(((n,o)=>{const f=RA({brush:r,selectionInfo:i,items:o.items,selectionValues:a,colorByData:l,chart:e});if(f.length<2)return n;const h=function({selected:e}){return e.reduce(((e,t)=>{const{index:n}=t;if(e.length){const t=e[e.length-1];n===t[t.length-1]+1?t.push(n):e.push([n])}else e.push([n]);return e}),[]).filter((e=>e.length>1))}({selected:f});return h.length?(n.lines.push(...LA({chart:e,pathModel:t,colorSettings:s(o.measureIx),colorByData:l(o.measureIx),hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:d,orientation:m,lineKey:o.lineKey,primary:o.primary,selected:f,connections:h,rtl:p,count:o.items.length})),n):n}),{lines:[]}),y=[];return g.forEach((e=>y.push({type:"path",d:e.path,stroke:e.stroke,strokeLinejoin:e.attrs["stroke-linejoin"],strokeWidth:e.attrs["stroke-width"],strokeDasharray:e.attrs["stroke-dasharray"],fill:"none"}))),y}var DA={require:["chart","renderer"],defaultSettings:{settings:{seriesInfo:{primary:[],secondary:[]},selectionValues:{},colorSettings:void 0,colorByData:!1,isColorCode:!1,hasMultipleMeasures:!1,groupedByMeasure:!1,itemsPerGroup:1,orientation:"vertical",rtl:!1}},addListener(e,t){this.state.brush.addListener(e,t),this.state.listeners.push({type:e,fn:t})},removeListeners(){this.state.listeners.forEach((e=>this.state.brush.removeListener(e.type,e.fn))),this.state.listeners.length=0},created(){this.state={pathModel:TA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),brush:this.chart.brush("selection"),listeners:[],selectionInfo:{minorRange:!1,minorRangePrimary:!1,legendRange:!1,legendTap:!1}}},mounted(){this.addListener("update",(()=>{this.state.selectionInfo=this.settings.settings.getSelectionInfo();const e=PA({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl});this.renderer.render(e)})),this.addListener("end",(()=>{this.renderer.render([])}))},render(){this.state.pathModel=TA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return PA({chart:this.chart,pathModel:this.state.pathModel,seriesInfo:this.settings.settings.seriesInfo,brush:this.state.brush,selectionInfo:this.state.selectionInfo,items:this.data.items,selectionValues:this.settings.settings.selectionValues,colorSettings:this.settings.settings.colorSettings,colorByData:this.settings.settings.colorByData,isColorCode:this.settings.settings.isColorCode,hasMultipleMeasures:this.settings.settings.hasMultipleMeasures,groupedByMeasure:this.settings.settings.groupedByMeasure,itemsPerGroup:this.settings.settings.itemsPerGroup,orientation:this.settings.settings.orientation,rtl:this.settings.settings.rtl})},destroyed(){this.removeListeners()}};const qA=()=>{const e=z();return e.use(_),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Vm(e))};e.interaction("hammer",Vm(Hammer))}($)),e.use(ox),e.use((function(e){e.renderer("react",rx()),e.component("data-title",ex(e.renderer("svg")()))})),e.renderer("react-qcm",MA),e.component("disclaimer",bA),e.component("scrollbar",vl),e.component("point-label",Jx),e.component("label-space",Zx),e.component("time-axis",ym.picassoComponents.timeAxis),e.component("axis-overlay",ym.picassoComponents.axisOverlay),e.component("reference-line-labels",Ya),e.component("box-sliced-hat",hx),e.component("box-out-of-bounds",ux),e.component("data-out-of-bounds-marker",CA),e.component("scroll-hint",Go),e.component("brush-highlighter",DA),e.scale("time",ym.picassoScales.time),e.symbol("line-point",OA),e},$A=e=>"[object Object]"===Object.prototype.toString.call(e),zA=e=>Array.isArray(e);function _A(e,t){if(e===t)return!0;if(zA(e)){if(!zA(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!_A(e[n],t[n]))return!1;return!0}if($A(e)){if(!$A(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!_A(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function jA({enable:e=!0}={}){const t=a(),i=()=>Date.now().toString()+Math.random(),[o,s]=n(i()),l={properties:void 0};return r((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const n=()=>{t.getEffectiveProperties().then((e=>{const t=le(!0,{},e);if(!l.properties)return void(l.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=le(!0,{},e),l=le(!0,{},t);return a.exclude=!_A(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!_A(s,l),a}(l.properties,t);l.properties=t,n.exclude&&!n.properties&&s(i())}))};return t.on("changed",n),n(),()=>{t.removeListener("changed",n)}}),[e]),o}const BA={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},FA=e=>void 0===e.marker?BA.circle:BA[e.marker],HA=e=>void 0===e.markerFill||e.markerFill;function VA({series:e,layoutService:t}){switch(Cu(e)){case us.TYPE.MARKER:return(e=>({marker:FA(e),fill:HA(e)}))(e);case us.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case us.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function UA(e=us.NOPE_SERIES,t){return t?e.axis===us.AXIS.PRIMARY:e.axis===us.AXIS.PRIMARY||Cu(e)===us.TYPE.BAR}var WA={exports:{}};var YA={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const GA="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var XA=GA;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=YA,o=XA,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",i],[d,r]],p=(e,t,n)=>{const r=(e=>{for(const[t,n]of m)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=u++;o(e,i,t),c[e]=i,l[i]=t,a[i]=new RegExp(t,n?"g":void 0),s[i]=new RegExp(r,n?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),p("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${d}+`),p("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),p("FULL",`^${l[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),p("LOOSE",`^${l[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),p("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),p("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[c.COERCE],!0),p("COERCERTLFULL",l[c.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(WA,WA.exports);var KA=WA.exports;const JA=Object.freeze({loose:!0}),ZA=Object.freeze({});var QA=e=>e?"object"!=typeof e?JA:e:ZA;const eR=/^[0-9]+$/,tR=(e,t)=>{const n=eR.test(e),r=eR.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var nR={compareIdentifiers:tR,rcompareIdentifiers:(e,t)=>tR(t,e)};const rR=XA,{MAX_LENGTH:iR,MAX_SAFE_INTEGER:oR}=YA,{safeRe:aR,t:sR}=KA,lR=QA,{compareIdentifiers:cR}=nR;var uR=class e{constructor(t,n){if(n=lR(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>iR)throw new TypeError(`version is longer than ${iR} characters`);rR("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?aR[sR.LOOSE]:aR[sR.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>oR||this.major<0)throw new TypeError("Invalid major version");if(this.minor>oR||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>oR||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<oR)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(rR("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),cR(this.major,t.major)||cR(this.minor,t.minor)||cR(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(rR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return cR(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(rR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return cR(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===cR(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const dR=uR;var mR=(e,t,n=!1)=>{if(e instanceof dR)return e;try{return new dR(e,t)}catch(e){if(!n)return null;throw e}};const pR=mR;var fR=(e,t)=>{const n=pR(e,t);return n?n.version:null};const hR=mR;var gR=(e,t)=>{const n=hR(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const yR=uR;var vR=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new yR(e instanceof yR?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const bR=mR;var xR=(e,t)=>{const n=bR(e,null,!0),r=bR(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const SR=uR;var ER=(e,t)=>new SR(e,t).major;const MR=uR;var CR=(e,t)=>new MR(e,t).minor;const OR=uR;var TR=(e,t)=>new OR(e,t).patch;const wR=mR;var AR=(e,t)=>{const n=wR(e,t);return n&&n.prerelease.length?n.prerelease:null};const RR=uR;var kR=(e,t,n)=>new RR(e,n).compare(new RR(t,n));const NR=kR;var IR=(e,t,n)=>NR(t,e,n);const LR=kR;var PR=(e,t)=>LR(e,t,!0);const DR=uR;var qR=(e,t,n)=>{const r=new DR(e,n),i=new DR(t,n);return r.compare(i)||r.compareBuild(i)};const $R=qR;var zR=(e,t)=>e.sort(((e,n)=>$R(e,n,t)));const _R=qR;var jR=(e,t)=>e.sort(((e,n)=>_R(n,e,t)));const BR=kR;var FR=(e,t,n)=>BR(e,t,n)>0;const HR=kR;var VR=(e,t,n)=>HR(e,t,n)<0;const UR=kR;var WR=(e,t,n)=>0===UR(e,t,n);const YR=kR;var GR=(e,t,n)=>0!==YR(e,t,n);const XR=kR;var KR=(e,t,n)=>XR(e,t,n)>=0;const JR=kR;var ZR=(e,t,n)=>JR(e,t,n)<=0;const QR=WR,ek=GR,tk=FR,nk=KR,rk=VR,ik=ZR;var ok=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return QR(e,n,r);case"!=":return ek(e,n,r);case">":return tk(e,n,r);case">=":return nk(e,n,r);case"<":return rk(e,n,r);case"<=":return ik(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const ak=uR,sk=mR,{safeRe:lk,t:ck}=KA;var uk,dk,mk,pk,fk,hk,gk,yk,vk,bk,xk=(e,t)=>{if(e instanceof ak)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?lk[ck.COERCERTLFULL]:lk[ck.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?lk[ck.COERCEFULL]:lk[ck.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return sk(`${r}.${i}.${o}${a}${s}`,t)};function Sk(){if(pk)return mk;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}pk=1,mk=e,e.Node=i,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(dk?uk:(dk=1,uk=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return mk}function Ek(){if(yk)return gk;yk=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,w(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(f(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}gk=e;const t=function(){if(hk)return fk;hk=1;const e=Sk(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,m=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(p(e,t)){if(h(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;p(e,o)&&(h(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return fk=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,f(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,m=this[r](i,e);if(this[c].has(e)){if(m>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=m-r.length,r.length=m,this.get(e),f(this),!0}const p=new g(e,i,m,d,u);return p.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=p.length,this[l].unshift(p),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!p(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>m(this,t,!1)))}},fk}(),n=new t({max:1e3}),r=QA,i=Mk(),o=XA,a=uR,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=KA,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=YA,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=O(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},O=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),T=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),w=e=>(t,n,r,i,o,a,s,l,c,u,d,m,p)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return gk}function Mk(){if(bk)return vk;bk=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,i){if(i=n(i),r instanceof t){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],o=t.match(n);if(!o)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==o[1]?o[1]:"","="===this.operator&&(this.operator=""),o[2]?this.semver=new s(o[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return o(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):(!(r=n(r)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(o(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}vk=t;const n=QA,{safeRe:r,t:i}=KA,o=ok,a=XA,s=uR,l=Ek();return vk}const Ck=Ek();var Ok=(e,t,n)=>{try{t=new Ck(t,n)}catch(e){return!1}return t.test(e)};const Tk=Ek();var wk=(e,t)=>new Tk(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Ak=uR,Rk=Ek();var kk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Rk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new Ak(r,n)))})),r};const Nk=uR,Ik=Ek();var Lk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Ik(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new Nk(r,n)))})),r};const Pk=uR,Dk=Ek(),qk=FR;var $k=(e,t)=>{e=new Dk(e,t);let n=new Pk("0.0.0");if(e.test(n))return n;if(n=new Pk("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new Pk(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!qk(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!qk(n,i)||(n=i)}return n&&e.test(n)?n:null};const zk=Ek();var _k=(e,t)=>{try{return new zk(e,t).range||"*"}catch(e){return null}};const jk=uR,Bk=Mk(),{ANY:Fk}=Bk,Hk=Ek(),Vk=Ok,Uk=FR,Wk=VR,Yk=ZR,Gk=KR;var Xk=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new jk(e,r),t=new Hk(t,r),n){case">":i=Uk,o=Yk,a=Wk,s=">",l=">=";break;case"<":i=Wk,o=Gk,a=Uk,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Vk(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===Fk&&(e=new Bk(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const Kk=Xk;var Jk=(e,t,n)=>Kk(e,t,">",n);const Zk=Xk;var Qk=(e,t,n)=>Zk(e,t,"<",n);const eN=Ek();var tN=(e,t,n)=>(e=new eN(e,n),t=new eN(t,n),e.intersects(t,n));const nN=Ok,rN=kR;const iN=Ek(),oN=Mk(),{ANY:aN}=oN,sN=Ok,lN=kR,cN=[new oN(">=0.0.0-0")],uN=[new oN(">=0.0.0")],dN=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===aN){if(1===t.length&&t[0].semver===aN)return!0;e=n.includePrerelease?cN:uN}if(1===t.length&&t[0].semver===aN){if(n.includePrerelease)return!0;t=uN}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=mN(i,t,n):"<"===t.operator||"<="===t.operator?o=pN(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=lN(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!sN(e,String(i),n))return null;if(o&&!sN(e,String(o),n))return null;for(const r of t)if(!sN(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,m=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=mN(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!sN(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=pN(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!sN(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!m&&!d))},mN=(e,t,n)=>{if(!e)return t;const r=lN(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},pN=(e,t,n)=>{if(!e)return t;const r=lN(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var fN=(e,t,n={})=>{if(e===t)return!0;e=new iN(e,n),t=new iN(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=dN(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const hN=KA,gN=YA,yN=uR,vN=nR,bN=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>rN(e,t,n)));for(const e of a){nN(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var xN=J({parse:mR,valid:fR,clean:gR,inc:vR,diff:xR,major:ER,minor:CR,patch:TR,prerelease:AR,compare:kR,rcompare:IR,compareLoose:PR,compareBuild:qR,sort:zR,rsort:jR,gt:FR,lt:VR,eq:WR,neq:GR,gte:KR,lte:ZR,cmp:ok,coerce:xk,Comparator:Mk(),Range:Ek(),satisfies:Ok,toComparators:wk,maxSatisfying:kk,minSatisfying:Lk,minVersion:$k,validRange:_k,outside:Xk,gtr:Jk,ltr:Qk,intersects:tN,simplifyRange:bN,subset:fN,SemVer:yN,re:hN.re,src:hN.src,tokens:hN.t,SEMVER_SPEC_VERSION:gN.SEMVER_SPEC_VERSION,RELEASE_TYPES:gN.RELEASE_TYPES,compareIdentifiers:vN.compareIdentifiers,rcompareIdentifiers:vN.rcompareIdentifiers}),SN={BAR_IN_SECONDARY_AXIS:"0.23.1"};const EN=e=>!e||xN.lt(xN.coerce(e),xN.coerce(SN.BAR_IN_SECONDARY_AXIS)),MN=({layoutService:e})=>{const t=!EN(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[us.TYPE.BAR]:0,[us.TYPE.LINE]:0,[us.TYPE.MARKER]:0};return({series:r=us.NOPE_SERIES},i)=>{const o=UA(r,t),a=Cu(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,collection:o?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY,options:VA({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Cu(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,us.TYPE.BAR),l=r(i,us.TYPE.BAR),c=r(o,us.TYPE.BAR),u=e=>n.filter((t=>Cu(t)===e)),d=u(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),m=u(us.TYPE.MARKER).map((e=>({key:Yl(cs.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`),c>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=cs.COMPONENT,y=u(us.TYPE.LINE).map((e=>Yl(g.LINE,e))),v=u(us.TYPE.MARKER).map((e=>Yl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${us.AXIS.PRIMARY}`,`${g.BAR}-${us.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:p,barComponentKeys:f,seriesComponentKeys:h,miniComponentKeys:b,markers:m},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:UA}}};function CN({layoutService:e}){const{dimensionCount:t,measureCount:n}=e.meta;return{qTop:0,qLeft:0,qWidth:t+n,qHeight:Math.min(2e3,1e4/(n+1))}}function ON({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Ee).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:CN({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function TN({genericObjectModel:e,layoutService:t}){const{isSnapshot:n,isContinuous:r}=t.meta;return n?function({layoutService:e}){return function(){return Promise.resolve({reducedCube:e.getLayoutValue("reducedHyperCube")||e.getHyperCube()})}}({layoutService:t}):r?function({layoutService:e}){return function(){const t=e.getHyperCube();return Promise.resolve({reducedCube:{...t,qDataPages:[...t.qDataPages]}})}}({layoutService:t}):ON({genericObjectModel:e,layoutService:t})}const wN=e=>"number"==typeof e&&!Number.isNaN(e);function AN({isPrimary:e,layoutService:t,seriesModel:n}){return function(){const r=t.getHyperCubeValue("qMeasureInfo"),i=n.query.seriesByAxis(e).map((e=>r[e.refIndex])),o=i.filter((e=>Cu(e.series)===us.TYPE.BAR)),a=i.filter((e=>Cu(e.series)===us.TYPE.LINE)),s=i.filter((e=>Cu(e.series)===us.TYPE.MARKER));return{min:Math.min(...i.filter((e=>wN(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>wN(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>wN(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>wN(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>wN(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>wN(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>wN(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>wN(e.qMax))).map((e=>e.qMax)))}}}}function RN({isPrimary:e,layoutService:t,seriesModel:n}){const r=AN({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function kN({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,i=n.query.series(us.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?AN({isPrimary:e,layoutService:t,seriesModel:n}):RN({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>Cu(e)===us.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),m=Number((u?Math.max(r,0):r).toFixed(13)),p=Number((u?Math.min(s.min,0):s.min).toFixed(13)),f=Number((u?Math.max(s.max,0):s.max).toFixed(13)),h=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(m)?m:0,o.implicit.bar.min=Number.isFinite(p)?p:0,o.implicit.bar.max=Number.isFinite(f)?f:0,o.implicit.line.min=Number.isFinite(h)?h:0,o.implicit.line.max=Number.isFinite(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}const NN=.2;function IN({extrema:e,ticks:t}){const n=e.meta.hasExplicit?2:3;return t.filter((t=>(t=>!e.meta.hasExplicitMin||t>=e.explicit.min)(t)&&(t=>!e.meta.hasExplicitMax||t<=e.explicit.max)(t))).length>=n}function LN({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=Pr().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const PN=50,DN=100,qN=200,$N=125,zN=e=>{switch(e){case.5:return PN;case 1:return DN;case 2:return qN;default:return e*$N}};function _N({config:e,chart:t,layoutService:n,dockService:r,measureText:i,size:o,min:a,max:s}){const l=function({config:{measureAxesRef:e},layoutService:t,size:n}){const r=t.getLayoutValue(`${e}.spacing`,1),i=zN(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=LN({min:a,max:s,count:l,threshold:.05,disable:!0}),u=c.domain(),d={roundedMin:u[0],roundedMax:u[1],ticks:c.ticks(l)},m="horizontal"===r.meta.major.orientation?"height":"width",p=e=>i(e)[m],f=t.formatter(e.formatter),h=()=>{const e=d.ticks.map(f),t=e.some(((t,n)=>e.indexOf(t)!==n));return!t&&(e=>{const t=o/d.ticks.length;return Math.max(...e.map(p))<=t})(e)};for(let e=l-1;e>0&&!h();e--)c.domain([a,s]),c.nice(e),[d.roundedMin,d.roundedMax]=c.domain(),d.ticks=c.ticks(e);return d}const jN=.3;function BN({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function FN({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const HN=10;function VN({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=LN({min:r,max:i,count:HN,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(HN),l=function({ticks:e}){const t=Math.round(e.length*jN),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?BN:FN;o.ticks=s.filter(((e,t,n)=>c({tick:e,index:t,ticks:n})));o.ticks.length%2==0&&!l&&!n.meta.hasExplicit&&s.length>1&&(o.ticks=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const u=t.formatter(e.formatter),d=o.ticks.map(u),m=d.some(((e,t)=>d.indexOf(e)!==t));return m&&(o.ticks=[o.ticks[0],o.ticks[o.ticks.length-1]]),o}function UN({ticks:e,extrema:t}){let n=[...e];return t.meta.hasExplicit&&e.length?(t.meta.hasExplicitMin&&!e.some((e=>e===t.explicit.min))&&(n.unshift(t.explicit.min),n=n.filter((e=>e>=t.explicit.min))),t.meta.hasExplicitMax&&!e.some((e=>e===t.explicit.max))&&(n.push(t.explicit.max),n=n.filter((e=>e<=t.explicit.max))),n):n}function WN({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){const{ticks:c,roundedMin:u,roundedMax:d}=function({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}){if("SPARK"===r.meta.chart.mode)return function({min:e,max:t}){return{roundedMin:e,roundedMax:t,ticks:[]}}({min:s,max:l});const c=_N({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return IN({extrema:i,ticks:c.ticks})?c:VN({config:e,chart:t,extrema:i,min:s,max:l})}({config:e,chart:t,layoutService:n,dockService:r,extrema:i,measureText:o,size:a,min:s,max:l}),m=function({ticks:e,count:t}){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}({ticks:c,count:1}),p=[...UN({ticks:c,extrema:i}).map((e=>({value:e,isMinor:!1}))),...m.map((e=>({value:e,isMinor:!0})))].sort(((e,t)=>e.value-t.value));return{min:u,max:d,values:p}}function YN({config:e,chart:t,layoutService:n,dockService:r,measureText:i,extrema:o,size:a}){const{min:s,max:l}=function({extrema:e}){const{min:t,max:n}=e;return t!==n?{min:t,max:n}:0===t||1===t?{min:t-1,max:n+1}:{min:t-t*NN*Math.sign(t),max:n+n*NN*Math.sign(n)}}({extrema:o});return WN({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function GN({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=z.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),u=r.query.getExtrema();return YN({config:t,chart:e,layoutService:i,dockService:n,measureText:e=>s({text:e,fontFamily:l.axis.label.name.fontFamily,fontSize:l.axis.label.name.fontSize}),extrema:u,size:c})}}({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}),u=()=>(s.locked&&s.resolved||(s.resolved=c()),s.resolved);return{query:{getValues:()=>u().values,getMin:()=>l().meta.hasExplicitMin?l().explicit.min:u().min,getMax:()=>l().meta.hasExplicitMax?l().explicit.max:u().max},command:{lock:()=>{s.locked=!0},unlock:()=>{s.locked=!1}}}}function XN({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return xe.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function KN({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:us.TYPE.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===us.TYPE.LINE?2:t!==us.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==us.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function JN({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function ZN({actions:e,appLayoutModel:t,appModel:n,chart:r,environment:i,genericObjectModel:o,layoutService:a,picasso:s,seriesModel:l,viewState:c,styleModel:u}){let d;const{theme:m,translator:p}=i,f={wrappedScales:void 0,legendComponents:void 0,legendInteractions:void 0};return d=w({picasso:s,model:o,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:m,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:cs.SCALE.COLOR}},config:{auto:JN,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>f.wrappedScales,legendComponents:()=>f.legendComponents,legendInteractions:()=>f.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:cs.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:KN({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),m=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=m[`${cs.SCALE.COLOR}Range`];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:d,scales:m}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});f.wrappedScales=o,f.legendComponents=t,f.legendInteractions=n}}}),d}const QN="REJECTED",eI=()=>{},tI=1e4,nI={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},rI=50,iI=10,oI=100;var aI={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),c=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-iI<=t.qTop,i=n.qLeft+n.qWidth+iI>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+iI>=t.qTop+t.qHeight,a=n.qLeft-iI<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var sI={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-iI<=t.qTop,i=n.qTop+n.qHeight+iI>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var lI={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const cI="pages";const uI="discretePan",dI=10;function mI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:uI,pointers:1,threshold:dI,enable(r,i){return this.started===uI||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${uI}start`](e){e.preventDefault(),this.started=uI;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-dI:dI},[`${uI}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${uI}end`](e){e.preventDefault(),this.started=!1},[`${uI}cancel`](e){e.preventDefault(),this.started=!1}}}}function pI({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*oI;r.scroll(s)}}function fI({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(tI/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(nI.MAXIMUM,n));return{width:e,height:Math.max(nI.MINIMUM,Math.min(n*nI.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function hI(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(QN),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(QN),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(QN),n=null)},i}const gI={command:{update:()=>{}}};function yI({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=gI,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:c}=t,u=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&c&&c();const u=r(l);return o(i(u)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:fI({layoutService:r}),request:c({definitionPath:o}),process:hI(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=T(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==QN)throw e}))}),rI);return function(e,{onProcessing:t=eI,onDataPage:n=eI}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var vI={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var bI={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function xI(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function SI(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function EI(e){return SI(e.qMatrix,(e=>e[0].qElemNumber))-1}var MI={inTotal:function({layoutService:e}){const t=xI(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=xI(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=xI(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=EI(o),c=o.qArea.qHeight*i+l,u=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const CI=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),OI=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function TI(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return CI(e,n);const r=OI(t.qMatrix,n);return r.successful?r.count:CI(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return CI(e,n);return SI(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var wI={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=TI(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:c}=n,u=TI(t).area(e(),l,a.qArea),d=EI(a),m=a.qArea.qHeight+d,p=c===o?(r.inView-m)*s/i:(c+(a.qArea.qTop+u)*s)/i;return[p,r.inView>=r.inTotal?p+1:p+m/r.inView]}};function AI({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:m,LABELLESS:p}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=f?t.width:t.height,b=v/l>=m;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:m}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return m>o;const p=(90-d)*(Math.PI/180);return m>Math.cos(p)*o}({chart:e,isHorizontal:f,axisKey:i,renderer:o,isGrouped:a,itemSize:m,label:y})?v/d:l:v/d}}function RI({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:m}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?vI:n?r?MI:wI:bI}({layoutService:r}),p=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,f=e=>e?p()/e:0,h=(e,t)=>-(e-t)*f(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:AI({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(tI/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return f(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,h(n,r))),o=r?Math.abs(r*i/p()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:p(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=m({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:p(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*f(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(f(r)*n)}}}}function kI({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:m,rtl:p}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const f=RI({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:p}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=h(),a=g({pixelOffset:e,items:r}),s=f.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((f.validate.offset({pixelOffset:e,items:r})||m.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item})));m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=h();n.set("itemSize",f.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=m.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});m.preventSet("viewRange",f.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=f.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:u.start,items:a})),m.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function NI({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:c,options:{definitionPath:u="/qHyperCubeDef",getRect:d,axisKey:m,renderer:p,areaBuffer:f,processDataPage:h=(()=>{})}={}}){const g=C(),y=function({qMode:e}){switch(e){case"S":default:return aI;case"K":return sI;case"T":return lI}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(cI,[]),{add:t=>{const n=e.get(cI);n.length=0,n.push(t)},getCurrent:()=>e.get(cI)[0],getAll:()=>e.get(cI),contains:n=>t(e.get(cI)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:f}),x=yI({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=kI({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:m,renderer:p,areaBuffer:b,viewState:l,rtl:c}),M=function({layoutService:e,dataStore:t}){return function(n){const r=E(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),O=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[mI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:pI({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:c,scroller:S});return{interactions:O,query:{getCanScroll:()=>S.enabled(),getItemSize:()=>S.itemSize(),getScaleRange:()=>S.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>S.initialize(),scrollTo:e=>S.scrollToRelative(e),setSnapshotData:e=>M(e)}}}var II={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}};function LI({layoutService:e,key:t}){const{style:n}=e.getLayoutValue("components",[]).filter((e=>e.key===t))[0]||{};return({property:e,defaultValue:t})=>n&&Object.hasOwnProperty.call(n,e)?n[e]:t}function PI({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=ic,s=n.getStyles(),l=LI({layoutService:e,key:"bar"}),c=LI({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},marker:{label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("marker"))||void 0===t||null===(t=t.marker)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("marker"))||void 0===r||null===(r=r.marker)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("marker"))||void 0===o||null===(o=o.marker)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},axis:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.axis.title.fontFamily,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.title.fontSize,color:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.axis.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.axis.label.name.color,fontSize:null!==(n=null===(r=d("axis"))||void 0===r||null===(r=r.axis)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.axis.label.name.fontSize,fontFamily:null!==(i=null===(o=d("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.title.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.title)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.title.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.title.color}}},label:{getStyle:()=>{var e,t,n,r,i,o;return{fontFamily:null!==(e=null===(t=d("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:s.legend.label.fontFamily,fontSize:null!==(n=null===(r=d("legend"))||void 0===r||null===(r=r.legend)||void 0===r||null===(r=r.label)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.legend.label.fontSize,color:null!==(i=null===(o=d("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.color)||void 0===o?void 0:o.color)&&void 0!==i?i:s.legend.label.color}}}}}}}function DI({layoutService:e}){return A({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function qI({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return ge.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function $I({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=cs.COMPONENT,{PRIMARY:f,SECONDARY:h}=us.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=cs.COMPONENT,{PRIMARY:a,SECONDARY:s}=us.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return R({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:cs.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[cs.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:m},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${p}-max-${f}`,`${p}-max-${h}`,`${p}-min-${f}`,`${p}-min-${h}`,`${cs.COMPONENT.BAR_OOB}-max-${f}`,`${cs.COMPONENT.BAR_OOB}-max-${h}`,`${cs.COMPONENT.BAR_OOB}-min-${f}`,`${cs.COMPONENT.BAR_OOB}-min-${h}`,`${cs.COMPONENT.DATA_OOB_MARKER}-max`,`${cs.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:m},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:m},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:cs.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:qI({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:m}=o.data;return c.isEnabled()&&m&&u.push(...m.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:cs.COMPONENT.LEGEND_TOOLTIP,component:cs.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:zI}=ym,_I=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{var v;const b=s(),{width:x,height:S}=i(),[M,C]=n(),[O,T]=n(),w=a(),A=l(),R=c(),P=u(),D=d(),q=jA({enable:!1===(null==M||null===(v=M.layoutService)||void 0===v||null===(v=v.meta)||void 0===v?void 0:v.isSnapshot)});r((()=>{if(!(b&&null!=t&&t.update&&m&&f&&y))return;const n=k({source:b,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.LINE)),i=xe.continuous(e,(()=>r&&fe.isTime(!0,e))),o=!EN(E(e,"version","")),a=n.filter((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.BAR)),s=a.length,l=a.filter((({series:e=us.NOPE_SERIES})=>e.axis!==us.AXIS.SECONDARY)).length,c=a.filter((({series:e=us.NOPE_SERIES})=>e.axis===us.AXIS.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==E(e,"barGrouping.grouping")||i)&&u,m=!d&&s>1,p=o&&d&&(l>0&&c>1||l>1&&c>0),f=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:fe.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:fe.isTime(i,e),isSnapshot:xe.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:p,isGrouped:m||p,isGroupedByMeasure:m||p,isDimensionLocked:f,groupSize:p?2:s,hasLineSeries:r}}}),{options:r,translator:i}=m,{direction:o}=r,a="rtl"===o,s=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=TN({genericObjectModel:e,layoutService:t});return{query:{getCube:()=>n.cube,getIsReduced:()=>n.on},command:{initialize:()=>r().then((({reducedCube:e})=>{n.cube=e,n.on=!!(n.cube&&n.cube.qDataPages[0]&&n.cube.qDataPages[0].qIsReduced)})),setSnapshotData:e=>{e.reducedHyperCube=n.cube}}}}({genericObjectModel:w,layoutService:n}),l=N({chart:t,layoutService:n,config:{logicalSize:{width:x,height:S},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),c=MN({layoutService:n,flags:p}),u=n.meta.isDiscrete?function({chart:e,genericObjectModel:t,layoutService:n,dockService:r,seriesModel:i,viewState:o,rtl:a,actions:s,picasso:l}){return NI({chart:e,actions:s,componentKey:vm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:II,options:{axisKey:cs.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:t,genericObjectModel:w,layoutService:n,dockService:l,seriesModel:c,viewState:f,rtl:"rtl"===m.options.direction,actions:g,picasso:e}):void 0,d=n.meta.isContinuous?zI({model:w,layoutService:n,viewState:f,viewCache:h}):void 0,v=I({theme:m.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),M=PI({layoutService:n,dockService:l,themeService:v,flags:p}),O=ZN({actions:g,appLayoutModel:R,appModel:A,chart:t,environment:m,flags:p,genericObjectModel:w,layoutService:n,picasso:e,seriesModel:c,viewState:f,styleModel:M}),T=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:n,seriesModel:c}),q=kN({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=kN({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=DI({layoutService:n}),_=GN({config:{measureAxesRef:"measureAxes.0",formatter:cs.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:v}),j=GN({config:{measureAxesRef:"measureAxes.1",formatter:cs.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:$,dockService:l,seriesModel:c,themeService:v}),B=XN({genericObjectModel:w,layoutService:n}),F=ks({flags:p,layout:b,app:A,model:w,picasso:e,chart:t,translator:i,localeInfo:R.qLocaleInfo,embed:D,options:r}),H=$I({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:v,propertiesModel:B,custom:F}),V=ss({layoutService:n,discreteModel:u}),U=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:cs.SCALE.MAJOR,MAJOR_INNER:cs.SCALE.MAJOR_INNER,MINOR:{PRIMARY:cs.SCALE.MINOR.PRIMARY,SECONDARY:cs.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,BAR_SECONDARY:`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,AXIS:{MAJOR:cs.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:cs.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:cs.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:cs.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:cs.COLLECTION.MAIN}}}}(n),W=L({picassoInstance:e,plugins:P,pluginArgs:U}),Y=function({options:e,flags:t,viewCache:n,layoutService:r}){const i={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||!t.isEnabled("IM_6894_ANIMATIONS_COMBO")||i.hasSlicedHats||i.isPartialUpdating||i.isSizeChanging||Ka.propertiesHaveChanged({viewCache:n,layout:r.getLayout()})),meta:i}}({options:r,flags:p,viewCache:h,layoutService:n});C({selectionService:y,genericObjectModel:w,appModel:A,dockService:l,styleModel:M,layoutService:n,fieldModel:T,seriesModel:c,reducedModel:s,primaryExtremumModel:q,secondaryExtremumModel:$,primaryTickModel:_,secondaryTickModel:j,propertiesModel:B,colorService:O,themeService:v,appLayoutModel:R,tooltipService:H,disclaimerService:z,flags:p,...u&&{discreteModel:u},...d&&{continuousModel:d},refLineModel:V,pluginService:W,animationsModel:Y})}),[b,w,A,R,m,null==t?void 0:t.update,f,y]);const[,$]=o((()=>{if(!M)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:r,secondaryExtremumModel:i,propertiesModel:o,continuousModel:a,discreteModel:s,pluginService:l,disclaimerService:c}=M,u=a?()=>{var t;a.update(e.getLayout());const n=a.initialFetch(),r=!e.meta.isSnapshot&&(null==m||null===(t=m.options)||void 0===t||null===(t=t.viewState)||void 0===t?void 0:t.zoom);return r&&f.preventSet("zoom",r),n}:()=>Promise.resolve(),d=t.initialize().then((()=>{const e=t.getSettings().field;y&&y.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([l.initialize(),n.command.initialize(),w?o.command.initialize():Promise.resolve(),d,u(),g.scroll.attachDiscreteModel(s)]).then((()=>Promise.all([r.command.initialize(),i.command.initialize()]).then((()=>{c.initialize(),T({...M})}))))}),[M,q]);if($)throw $;return O};const jI={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"}}]};const BI={query:{getCanScroll:()=>!0}};function FI({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function HI({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===cs.COMPONENT.LEGEND_CATEGORICAL}),r()}function VI({chart:e,actions:t}){const i=b(),o=s(),[a,l]=n();return r((()=>{if(null==e||!e.update||!e.scale)return null;const n=e.scale(cs.SCALE.MAJOR),r=D({chart:e,actions:t,selections:i,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:FI},selectionEvents:{start:HI}}});r.setLayout(o);const{destroy:a}=r;return l(r),()=>{a()}}),[i,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=a&&a.setLayout&&o&&a.setLayout(o)}),[o]),a}const UI={version:"1.30.2",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var WI=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=Cu(n[e].qDef.series),i===us.TYPE.BAR?r[0]=1:i===us.TYPE.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},YI=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===us.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===us.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function GI(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&Cu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===us.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function XI(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:WI(t),added(e,t){Cs.addCallbackCustomTooltip(t)},moved(e,t){Cs.moveCallbackCustomTooltip(t,e)},removed(e,t){Cs.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Cs.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:YI(t),added({qDef:e},t){var n;GI(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:us.TYPE.LINE,axis:us.AXIS.SECONDARY}:e.series={type:us.TYPE.BAR,axis:us.AXIS.PRIMARY})},moved(e,t){GI(t)}}}}function KI(e){const t=XI(e);return{properties:UI,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=X.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&le(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const JI=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=o.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(r),c.command.setSnapshotData(r)):l.setSnapshotData(r),a.getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),S((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const ZI=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function QI(e,t,n){const r=q({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...ZI("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:ZI("line.label.value","label.value",r,t)}}}:void 0}},markerSection:(null==e?void 0:e.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL"))&&{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:ZI("marker.label.value","label.value",r,t)}}}}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:ZI("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:ZI("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:ZI("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:ZI("legend.label","legend.label",r,t)}}}:void 0}};const i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",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"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>Cu(e.qDef.series)===us.TYPE.LINE));return!xe.continuous(n.layout,r&&fe.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},u={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const eL={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function tL(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=us.NOPE_SERIES})=>Cu(e)===us.TYPE.LINE));return xe.continuous(e,(()=>t&&fe.isTime(!0,e)))}function nL(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function rL(e){var t,n;return nL(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function iL(e){var t;return nL(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function oL(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function aL(e){return iL(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function sL(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...oL(n),...aL(e)]:aL(e)}(t,n,e)))}function lL(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||tL(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},r={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return Cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Cu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>nL(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme;return{items:{series:{type:"items",items:{supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:o,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:rL},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:iL}}}}}}}}}}}}const cL=10,uL=!0;function dL(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?UA(t,uL):!UA(t,uL)}))}function mL(e,t){return t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.LINE)).length>0}function pL(e,t,n){const r=t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==us.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>n}const fL=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||tL(t.layout)?"y":"x",o=dL(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function hL(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>sL(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>nL(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),m=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>nL(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},p=(e,t)=>0!==e.filter((e=>e.qDef.series.axis===t)).length,f={items:{disclaimer:{show:(e,t)=>m(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!m(e,t)}}},h={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&pL(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&mL(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",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)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(dL(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&dL(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&dL(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},g={uses:"settings",items:{simpleStyling:eL,simpleLabels:h,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:QI(o,s,i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>pL(0,t,1)&&!tL(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>tL(n.layout),convertFunctions:(y="vertical",{get:(e,t,n)=>tL(n.layout)?y:e(t.type),set(e,t,n,r){t(n.type,tL(r.layout)?y:e,y)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!tL(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>mL(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>mL(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>pL(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",show:(e,t)=>o.isEnabled("IM_6752_COMBO_CHART_MARKER_LABEL")&&function(e,t){return t.getMeasures().filter((e=>Cu(e.qDef.series)===us.TYPE.MARKER)).length>0}(0,t),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],show:()=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e){const t=[],n=e.qHyperCubeDef.qMeasures,r=p(n,0),i=p(n,1);return r&&t.push({translation:"properties.axis.primary",value:0}),i&&t.push({translation:"properties.axis.secondary",value:1}),t},show:e=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")&&e.gridLine&&!e.gridLine.auto&&0!==e.qHyperCubeDef.qMeasures.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=r.qHyperCubeDef.qMeasures,s=p(a,0),l=p(a,1);return 0===o&&!s&&l?(M(r,"gridLine.axis",1),1):1===o&&s&&!l?(M(r,"gridLine.axis",0),0):o}}},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>o.isEnabled("IM_6751_COMBO_CHART_GRID_LINE")&&e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:f,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||tL(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||tL(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!tL(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:cL,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=cL:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>fL(e,t,i,0),show:(e,t)=>dL(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>fL(e,t,i,0),show:(e,t)=>dL(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&UA(null==e?void 0:e.series,uL)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&dL(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||tL(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&dL(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>dL(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.0.autoMinMax",!1),M(i,"measureAxes.0.minMax","min"),M(i,"measureAxes.0.min",0)):M(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>fL(e,t,i,1),show:(e,t)=>dL(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>fL(e,t,i,1),show:(e,t)=>dL(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!UA(null==e?void 0:e.series,uL)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&dL(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||tL(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&dL(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>dL(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.1.autoMinMax",!1),M(i,"measureAxes.1.minMax","min"),M(i,"measureAxes.1.min",0)):M(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var y;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(g.items.dimensionAxis.items.othersGroup.items.label={options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]});const v={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!tL(n.layout)}}}},measures:lL(e)}},b={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},primaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines",translation:"properties.primaryMeasureAxisReferenceLines",title:{translation:"properties.primaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>UA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,uL)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!UA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,uL)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:v,sorting:{uses:"sortingWithDisclaimer"},addons:b,settings:g}}}function gL(e){return e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.LINE)).length>0}function yL(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>gL(e)||!tL(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>Cu(e.qDef.series)===us.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===us.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>1:n.length>1}(e,!EN(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!tL(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!tL(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>gL(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>gL(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>nL(e)))}}}}}}const vL={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function bL(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=vL[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function xL(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});bL(r,o,t,n,"bar"),bL(r,o,t,n,"line"),bL(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function SL(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const EL=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function ML(e){return{definition:hL(e),softDefinition:yL(),support:{snapshot:EL,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:xL,extendMetrics:SL,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:XI(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&le(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),sL(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(kt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(kt)}(e),function(e){return EN(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=us.NOPE_SERIES),void 0===t.series.type&&(t.series.type=us.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===us.TYPE.BAR?us.AXIS.PRIMARY:us.AXIS.SECONDARY),t.series.type===us.TYPE.BAR&&t.series.axis===us.AXIS.SECONDARY&&(t.series.axis=us.AXIS.PRIMARY)})),e.version=SN.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));