@nebula.js/sn-combo-chart 1.31.19 → 1.31.21

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.31.19
2
+ * @nebula.js/sn-combo-chart v1.31.21
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","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.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){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(Z).forEach((t=>{e.add(Z[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=ow();return{qae:Xk(e),ext:CN(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:_k,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=jk;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||jk}},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=Hk({chart:b,actions:u}),S=$k({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}}=mm,[,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:[...Pm,...y]}),g.meta.isPartialUpdating=!1};function M(o=!1){const c=Im({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),u=o&&[Dm({models:n}),...qm({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),Wa.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}),Lm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),Kk({models:S,chart:b,viewState:i})}}}));var K,J,Z={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 Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ee(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 te=function(){if(J)return K;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},K}(),ne=Q(te);const re=[["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}]],ie={};re.forEach((([e,{width:t,height:n}])=>{ie[e]={width:t,height:n}}));const oe={getLayoutModes:()=>ie,getLayoutMode(e,t){let n;for(n=0;n<re.length;++n)if(e>=re[n][1].width&&t>=re[n][1].height)return re[n][0];return"SPARK"}};const ae=["$date","$timestamp","$time"],se=["D","TS","T"],le={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ae.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&se.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(le.hasTimeTag(t)&&le.hasUnknownFormat(t)||le.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&le.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)&&le.canBeContinuousDimension(r[0])},maxNumberOfLines:12},ce=/^[A-Z][A-z0-9_]*$/i,ue={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||ce.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)},de=e=>ue.getValue(e,"qHyperCube.qDimensionInfo",[]),me=e=>ue.getValue(e,"qHyperCube.qMeasureInfo",[]),pe=e=>ue.getValue(e,"barGrouping.grouping"),fe={continuous:(e,t=!1)=>!!le.canBeContinuous(e)&&(ue.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!de(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===pe(e)&&(de(e).length>1||me(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&de(e).length>1&&1===me(e).length},groupedByMeasure(e){return this.grouped(e)&&1===de(e).length&&me(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==pe(e)&&"butterfly"!==pe(e)||this.continuous(e))&&(de(e).length>1||me(e).length>1)},stackedByDimension(e){return this.stacked(e)&&de(e).length>1&&1===me(e).length},stackedByMeasure(e){return this.stacked(e)&&1===de(e).length&&me(e).length>1},simple:e=>0===de(e).length||1===de(e).length&&1===me(e).length,snapshot:e=>!!ue.getValue(e,"snapshotData")};function he(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ge=e=>{throw e.isHandled=!0,e};const ye={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?ye.getVerticalDock(t):n?ye.getOppositeDock(ye.getHorizontalDock(t)):ye.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},ve={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=ve.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=ve.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=ve.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(ve.stringWidthOverMWidth(o)+1.0909090909090908*a)}},be=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),xe=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),Se=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ee={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>be.test(e),isRtlChar:e=>xe.test(e)||Se.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ee.isLtrChar(r))return"ltr";if(Ee.isRtlChar(r))return"rtl"}return"ltr"}},Me={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?Me.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Ee.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Ee.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:Ee.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Ee.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ee.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Me.getColorSymbol(e,t)]:[Me.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=Ee.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ee.detectTextDirection(e.value);let l;return l=i?r?[e.value,Me.getColorSymbol(t,n)]:[Me.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 Ce(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Oe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Te(){}var we=.7,Ae=1/we,Re="\\s*([+-]?\\d+)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ie=/^#([0-9a-f]{3,8})$/,Le=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Pe=new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`),De=new RegExp(`^rgba\\(${Re},${Re},${Re},${ke}\\)$`),qe=new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${ke}\\)$`),ze=new RegExp(`^hsl\\(${ke},${Ne},${Ne}\\)$`),$e=new RegExp(`^hsla\\(${ke},${Ne},${Ne},${ke}\\)$`),_e={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 je(){return this.rgb().formatHex()}function Fe(){return this.rgb().formatRgb()}function Be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?He(t):3===n?new Ye(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ve(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ve(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=Le.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Pe.exec(e))?new Ye(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=De.exec(e))?Ve(t[1],t[2],t[3],t[4]):(t=qe.exec(e))?Ve(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ze.exec(e))?Qe(t[1],t[2]/100,t[3]/100,1):(t=$e.exec(e))?Qe(t[1],t[2]/100,t[3]/100,t[4]):_e.hasOwnProperty(e)?He(_e[e]):"transparent"===e?new Ye(NaN,NaN,NaN,0):null}function He(e){return new Ye(e>>16&255,e>>8&255,255&e,1)}function Ve(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function Ue(e){return e instanceof Te||(e=Be(e)),e?new Ye((e=e.rgb()).r,e.g,e.b,e.opacity):new Ye}function We(e,t,n,r){return 1===arguments.length?Ue(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ge(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}`}function Xe(){const e=Ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ze(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Qe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,n,r)}function et(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Te||(e=Be(e)),!e)return new tt;if(e instanceof tt)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 tt(a,s,l,e.opacity)}function tt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nt(e){return(e=(e||0)%360)<0?e+360:e}function rt(e){return Math.max(0,Math.min(1,e||0))}function it(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ce(Te,Be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:je,formatHex:je,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:Fe,toString:Fe}),Ce(Ye,We,Oe(Te,{brighter(e){return e=null==e?Ae:Math.pow(Ae,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?we:Math.pow(we,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(Je(this.r),Je(this.g),Je(this.b),Ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ge,formatHex:Ge,formatHex8:function(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}${Ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xe,toString:Xe})),Ce(tt,(function(e,t,n,r){return 1===arguments.length?et(e):new tt(e,t,n,null==r?1:r)}),Oe(Te,{brighter(e){return e=null==e?Ae:Math.pow(Ae,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?we:Math.pow(we,e),new tt(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 Ye(it(e>=240?e-240:e+120,i,r),it(e,i,r),it(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new tt(nt(this.h),rt(this.s),rt(this.l),Ke(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ke(this.opacity);return`${1===e?"hsl(":"hsla("}${nt(this.h)}, ${100*rt(this.s)}%, ${100*rt(this.l)}%${1===e?")":`, ${e})`}`}}));const ot=Math.PI/180,at=180/Math.PI,st=.96422,lt=1,ct=.82521,ut=4/29,dt=6/29,mt=3*dt*dt,pt=dt*dt*dt;function ft(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof St)return Et(e);e instanceof Ye||(e=Ue(e));var t,n,r=bt(e.r),i=bt(e.g),o=bt(e.b),a=gt((.2225045*r+.7168786*i+.0606169*o)/lt);return r===i&&i===o?t=n=a:(t=gt((.4360747*r+.3850649*i+.1430804*o)/st),n=gt((.0139322*r+.0971045*i+.7141733*o)/ct)),new ht(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ht(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function gt(e){return e>pt?Math.pow(e,1/3):e/mt+ut}function yt(e){return e>dt?e*e*e:mt*(e-ut)}function vt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function xt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof St)return new St(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=ft(e)),0===e.a&&0===e.b)return new St(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*at;return new St(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new St(e,t,n,null==r?1:r)}function St(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Et(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*ot;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ce(ht,(function(e,t,n,r){return 1===arguments.length?ft(e):new ht(e,t,n,null==r?1:r)}),Oe(Te,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ye(vt(3.1338561*(t=st*yt(t))-1.6168667*(e=lt*yt(e))-.4906146*(n=ct*yt(n))),vt(-.9787684*t+1.9161415*e+.033454*n),vt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ce(St,xt,Oe(Te,{brighter(e){return new St(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new St(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Et(this).rgb()}}));var Mt={isDark:function(e){return xt(e).l<70}};function Ct(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Ot(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Tt(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ot(t(e),n)}),{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 wt=Tt(Ot).right,At=Math.sqrt(50),Rt=Math.sqrt(10),kt=Math.sqrt(2);function Nt(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>=At?10:o>=Rt?5:o>=kt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=At?10:o>=Rt?5:o>=kt?2:1)}function It(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>=At?i*=10:o>=Rt?i*=5:o>=kt&&(i*=2),t<e?-i:i}function Lt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Pt="$";function Dt(){}function qt(e,t){var n=new Dt;if(e instanceof Dt)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 zt(){}Dt.prototype=qt.prototype={constructor:Dt,has:function(e){return Pt+e in this},get:function(e){return this[Pt+e]},set:function(e,t){return this[Pt+e]=t,this},remove:function(e){var t=Pt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Pt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Pt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Pt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Pt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Pt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Pt)return!1;return!0},each:function(e){for(var t in this)t[0]===Pt&&e(this[t],t.slice(1),this)}};var $t=qt.prototype;zt.prototype={constructor:zt,has:$t.has,add:function(e){return this[Pt+(e+="")]=e,this},remove:$t.remove,clear:$t.clear,values:$t.keys,size:$t.size,empty:$t.empty,each:$t.each};var _t=Array.prototype,jt=_t.map,Ft=_t.slice;function Bt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ht(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vt(){}var Ut=.7,Wt=1/Ut,Yt="\\s*([+-]?\\d+)\\s*",Gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kt=/^#([0-9a-f]{3})$/,Jt=/^#([0-9a-f]{6})$/,Zt=new RegExp("^rgb\\("+[Yt,Yt,Yt]+"\\)$"),Qt=new RegExp("^rgb\\("+[Xt,Xt,Xt]+"\\)$"),en=new RegExp("^rgba\\("+[Yt,Yt,Yt,Gt]+"\\)$"),tn=new RegExp("^rgba\\("+[Xt,Xt,Xt,Gt]+"\\)$"),nn=new RegExp("^hsl\\("+[Gt,Xt,Xt]+"\\)$"),rn=new RegExp("^hsla\\("+[Gt,Xt,Xt,Gt]+"\\)$"),on={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 an(e){var t;return e=(e+"").trim().toLowerCase(),(t=Kt.exec(e))?new dn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Jt.exec(e))?sn(parseInt(t[1],16)):(t=Zt.exec(e))?new dn(t[1],t[2],t[3],1):(t=Qt.exec(e))?new dn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=en.exec(e))?ln(t[1],t[2],t[3],t[4]):(t=tn.exec(e))?ln(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nn.exec(e))?pn(t[1],t[2]/100,t[3]/100,1):(t=rn.exec(e))?pn(t[1],t[2]/100,t[3]/100,t[4]):on.hasOwnProperty(e)?sn(on[e]):"transparent"===e?new dn(NaN,NaN,NaN,0):null}function sn(e){return new dn(e>>16&255,e>>8&255,255&e,1)}function ln(e,t,n,r){return r<=0&&(e=t=n=NaN),new dn(e,t,n,r)}function cn(e){return e instanceof Vt||(e=an(e)),e?new dn((e=e.rgb()).r,e.g,e.b,e.opacity):new dn}function un(e,t,n,r){return 1===arguments.length?cn(e):new dn(e,t,n,null==r?1:r)}function dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function mn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function pn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fn(e,t,n,r)}function fn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Bt(Vt,an,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Bt(dn,un,Ht(Vt,{brighter:function(e){return e=null==e?Wt:Math.pow(Wt,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Ut:Math.pow(Ut,e),new dn(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"#"+mn(this.r)+mn(this.g)+mn(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+")")}})),Bt(fn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof fn)return new fn(e.h,e.s,e.l,e.opacity);if(e instanceof Vt||(e=an(e)),!e)return new fn;if(e instanceof fn)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 fn(a,s,l,e.opacity)}(e):new fn(e,t,n,null==r?1:r)}),Ht(Vt,{brighter:function(e){return e=null==e?Wt:Math.pow(Wt,e),new fn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ut:Math.pow(Ut,e),new fn(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 dn(hn(e>=240?e-240:e+120,i,r),hn(e,i,r),hn(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 gn=Math.PI/180,yn=180/Math.PI,vn=.96422,bn=1,xn=.82521,Sn=4/29,En=6/29,Mn=3*En*En,Cn=En*En*En;function On(e){if(e instanceof Tn)return new Tn(e.l,e.a,e.b,e.opacity);if(e instanceof Nn){if(isNaN(e.h))return new Tn(e.l,0,0,e.opacity);var t=e.h*gn;return new Tn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof dn||(e=cn(e));var n,r,i=kn(e.r),o=kn(e.g),a=kn(e.b),s=wn((.2225045*i+.7168786*o+.0606169*a)/bn);return i===o&&o===a?n=r=s:(n=wn((.4360747*i+.3850649*o+.1430804*a)/vn),r=wn((.0139322*i+.0971045*o+.7141733*a)/xn)),new Tn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Tn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function wn(e){return e>Cn?Math.pow(e,1/3):e/Mn+Sn}function An(e){return e>En?e*e*e:Mn*(e-Sn)}function Rn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Bt(Tn,(function(e,t,n,r){return 1===arguments.length?On(e):new Tn(e,t,n,null==r?1:r)}),Ht(Vt,{brighter:function(e){return new Tn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Tn(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 dn(Rn(3.1338561*(t=vn*An(t))-1.6168667*(e=bn*An(e))-.4906146*(n=xn*An(n))),Rn(-.9787684*t+1.9161415*e+.033454*n),Rn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Bt(Nn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nn)return new Nn(e.h,e.c,e.l,e.opacity);if(e instanceof Tn||(e=On(e)),0===e.a&&0===e.b)return new Nn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yn;return new Nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Nn(e,t,n,null==r?1:r)}),Ht(Vt,{brighter:function(e){return new Nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return On(this).rgb()}}));var In=-.14861,Ln=1.78277,Pn=-.29227,Dn=-.90649,qn=1.97294,zn=qn*Dn,$n=qn*Ln,_n=Ln*Pn-Dn*In;function jn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Fn)return new Fn(e.h,e.s,e.l,e.opacity);e instanceof dn||(e=cn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(_n*r+zn*t-$n*n)/(_n+zn-$n),o=r-i,a=(qn*(n-i)-Pn*o)/Dn,s=Math.sqrt(a*a+o*o)/(qn*i*(1-i)),l=s?Math.atan2(a,o)*yn-120:NaN;return new Fn(l<0?l+360:l,s,i,e.opacity)}(e):new Fn(e,t,n,null==r?1:r)}function Fn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Bn(e){return function(){return e}}function Hn(e,t){return function(n){return e+n*t}}function Vn(e){return 1==(e=+e)?Un: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):Bn(isNaN(t)?n:t)}}function Un(e,t){var n=t-e;return n?Hn(e,n):Bn(isNaN(e)?t:e)}Bt(Fn,jn,Ht(Vt,{brighter:function(e){return e=null==e?Wt:Math.pow(Wt,e),new Fn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Ut:Math.pow(Ut,e),new Fn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*gn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new dn(255*(t+n*(In*r+Ln*i)),255*(t+n*(Pn*r+Dn*i)),255*(t+n*(qn*r)),this.opacity)}}));var Wn=function e(t){var n=Vn(t);function r(e,t){var r=n((e=un(e)).r,(t=un(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Un(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 Yn(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]=er(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 Gn(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function Xn(e,t){return t-=e=+e,function(n){return e+t*n}}function Kn(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]=er(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Jn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zn=new RegExp(Jn.source,"g");function Qn(e,t){var n,r,i,o=Jn.lastIndex=Zn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Jn.exec(e))&&(r=Zn.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:Xn(n,r)})),o=Zn.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 er(e,t){var n,r=typeof t;return null==t||"boolean"===r?Bn(t):("number"===r?Xn:"string"===r?(n=an(t))?(t=n,Wn):Qn:t instanceof an?Wn:t instanceof Date?Gn:Array.isArray(t)?Yn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Kn:Xn)(e,t)}function tr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function nr(e){return function t(n){function r(t,r){var i=e((t=jn(t)).h,(r=jn(r)).h),o=Un(t.s,r.s),a=Un(t.l,r.l),s=Un(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 rr(e){return+e}nr((function(e,t){var n=t-e;return n?Hn(e,n>180||n<-180?n-360*Math.round(n/360):n):Bn(isNaN(e)?t:e)})),nr(Un);var ir=[0,1];function or(e){return e}function ar(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function sr(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 lr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=ar(i,r),o=n(a,o)):(r=ar(r,i),o=n(o,a)),function(e){return o(r(e))}}function cr(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]=ar(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=wt(e,t,1,r)-1;return o[n](i[n](t))}}function ur(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dr(e,t){return function(){var e,t,n,r,i,o,a=ir,s=ir,l=er,c=or;function u(){return r=Math.min(a.length,s.length)>2?cr:lr,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),Xn)))(n)))},d.domain=function(e){return arguments.length?(a=jt.call(e,rr),c===or||(c=sr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Ft.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Ft.call(e),l=tr,u()},d.clamp=function(e){return arguments.length?(c=e?sr(a):or,d):c!==or},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 mr(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 pr(e){return(e=mr(Math.abs(e)))?e[1]:NaN}var fr,hr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gr(e){return new yr(e)}function yr(e){if(!(t=hr.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 vr(e,t){var n=mr(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")}gr.prototype=yr.prototype,yr.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 br={"%":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 vr(100*e,t)},r:vr,s:function(e,t){var n=mr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(fr=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")+mr(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 xr(e){return e}var Sr,Er,Mr,Cr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Or(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)}):xr,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):xr,s=e.percent||"%";function l(e){var t=(e=gr(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"):br[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=br[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?Cr[8+fr/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=gr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pr(t)/3))),i=Math.pow(10,-r),o=Cr[8+r/3];return function(e){return n(i*e)+o}}}}function Tr(e,t,n,r){var i,o=It(e,t,n);switch((r=gr(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(pr(t)/3)))-pr(Math.abs(e)))}(o,a))||(r.precision=i),Mr(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,pr(t)-pr(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,-pr(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Er(r)}function wr(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=Nt(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 Tr(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=Nt(s,l,n))>0?r=Nt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Nt(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 Ar(){var e=dr(or,or);return e.copy=function(){return ur(e,Ar())},Lt.apply(e,arguments),wr(e)}Sr=Or({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Er=Sr.format,Mr=Sr.formatPrefix;var Rr=new Date,kr=new Date;function Nr(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 Nr((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 Rr.setTime(+t),kr.setTime(+r),e(Rr),e(kr),Math.floor(n(Rr,kr))},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 Ir=Nr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Ir.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Nr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Ir:null},Ir.range;var Lr=1e3,Pr=6e4,Dr=36e5,qr=864e5,zr=6048e5,$r=Nr((function(e){e.setTime(Math.floor(e/Lr)*Lr)}),(function(e,t){e.setTime(+e+t*Lr)}),(function(e,t){return(t-e)/Lr}),(function(e){return e.getUTCSeconds()}));$r.range;var _r=Nr((function(e){e.setTime(Math.floor(e/Pr)*Pr)}),(function(e,t){e.setTime(+e+t*Pr)}),(function(e,t){return(t-e)/Pr}),(function(e){return e.getMinutes()}));_r.range;var jr=Nr((function(e){var t=e.getTimezoneOffset()*Pr%Dr;t<0&&(t+=Dr),e.setTime(Math.floor((+e-t)/Dr)*Dr+t)}),(function(e,t){e.setTime(+e+t*Dr)}),(function(e,t){return(t-e)/Dr}),(function(e){return e.getHours()}));jr.range;var Fr=Nr((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())*Pr)/qr}),(function(e){return e.getDate()-1}));function Br(e){return Nr((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())*Pr)/zr}))}Fr.range;var Hr=Br(0),Vr=Br(1),Ur=Br(2),Wr=Br(3),Yr=Br(4),Gr=Br(5),Xr=Br(6);Hr.range,Vr.range,Ur.range,Wr.range,Yr.range,Gr.range,Xr.range;var Kr=Nr((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()}));Kr.range;var Jr=Nr((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()}));Jr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Nr((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},Jr.range;var Zr=Nr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Pr)}),(function(e,t){return(t-e)/Pr}),(function(e){return e.getUTCMinutes()}));Zr.range;var Qr=Nr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Dr)}),(function(e,t){return(t-e)/Dr}),(function(e){return e.getUTCHours()}));Qr.range;var ei=Nr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/qr}),(function(e){return e.getUTCDate()-1}));function ti(e){return Nr((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)/zr}))}ei.range;var ni=ti(0),ri=ti(1),ii=ti(2),oi=ti(3),ai=ti(4),si=ti(5),li=ti(6);ni.range,ri.range,ii.range,oi.range,ai.range,si.range,li.range;var ci=Nr((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()}));ci.range;var ui=Nr((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 di(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 mi(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 pi(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}ui.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Nr((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},ui.range;var fi,hi,gi,yi={"-":"",_:" ",0:"0"},vi=/^\s*\d+/,bi=/^%/,xi=/[\\^$*+?|[\]().{}]/g;function Si(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 Ei(e){return e.replace(xi,"\\$&")}function Mi(e){return new RegExp("^(?:"+e.map(Ei).join("|")+")","i")}function Ci(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Oi(e,t,n){var r=vi.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ti(e,t,n){var r=vi.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ai(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ri(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ki(e,t,n){var r=vi.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ni(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ii(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 Li(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pi(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Di(e,t,n){var r=vi.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zi(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $i(e,t,n){var r=vi.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _i(e,t,n){var r=vi.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ji(e,t,n){var r=vi.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fi(e,t,n){var r=bi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Bi(e,t,n){var r=vi.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=vi.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Vi(e,t){return Si(e.getDate(),t,2)}function Ui(e,t){return Si(e.getHours(),t,2)}function Wi(e,t){return Si(e.getHours()%12||12,t,2)}function Yi(e,t){return Si(1+Fr.count(Jr(e),e),t,3)}function Gi(e,t){return Si(e.getMilliseconds(),t,3)}function Xi(e,t){return Gi(e,t)+"000"}function Ki(e,t){return Si(e.getMonth()+1,t,2)}function Ji(e,t){return Si(e.getMinutes(),t,2)}function Zi(e,t){return Si(e.getSeconds(),t,2)}function Qi(e){var t=e.getDay();return 0===t?7:t}function eo(e,t){return Si(Hr.count(Jr(e),e),t,2)}function to(e,t){var n=e.getDay();return e=n>=4||0===n?Yr(e):Yr.ceil(e),Si(Yr.count(Jr(e),e)+(4===Jr(e).getDay()),t,2)}function no(e){return e.getDay()}function ro(e,t){return Si(Vr.count(Jr(e),e),t,2)}function io(e,t){return Si(e.getFullYear()%100,t,2)}function oo(e,t){return Si(e.getFullYear()%1e4,t,4)}function ao(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Si(t/60|0,"0",2)+Si(t%60,"0",2)}function so(e,t){return Si(e.getUTCDate(),t,2)}function lo(e,t){return Si(e.getUTCHours(),t,2)}function co(e,t){return Si(e.getUTCHours()%12||12,t,2)}function uo(e,t){return Si(1+ei.count(ui(e),e),t,3)}function mo(e,t){return Si(e.getUTCMilliseconds(),t,3)}function po(e,t){return mo(e,t)+"000"}function fo(e,t){return Si(e.getUTCMonth()+1,t,2)}function ho(e,t){return Si(e.getUTCMinutes(),t,2)}function go(e,t){return Si(e.getUTCSeconds(),t,2)}function yo(e){var t=e.getUTCDay();return 0===t?7:t}function vo(e,t){return Si(ni.count(ui(e),e),t,2)}function bo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?ai(e):ai.ceil(e),Si(ai.count(ui(e),e)+(4===ui(e).getUTCDay()),t,2)}function xo(e){return e.getUTCDay()}function So(e,t){return Si(ri.count(ui(e),e),t,2)}function Eo(e,t){return Si(e.getUTCFullYear()%100,t,2)}function Mo(e,t){return Si(e.getUTCFullYear()%1e4,t,4)}function Co(){return"+0000"}function Oo(){return"%"}function To(e){return+e}function wo(e){return Math.floor(+e/1e3)}!function(e){fi=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=Mi(i),u=Ci(i),d=Mi(o),m=Ci(o),p=Mi(a),f=Ci(a),h=Mi(s),g=Ci(s),y=Mi(l),v=Ci(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:Vi,e:Vi,f:Xi,H:Ui,I:Wi,j:Yi,L:Gi,m:Ki,M:Ji,p:function(e){return i[+(e.getHours()>=12)]},Q:To,s:wo,S:Zi,u:Qi,U:eo,V:to,w:no,W:ro,x:null,X:null,y:io,Y:oo,Z:ao,"%":Oo},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:so,e:so,f:po,H:lo,I:co,j:uo,L:mo,m:fo,M:ho,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:To,s:wo,S:go,u:yo,U:vo,V:bo,w:xo,W:So,x:null,X:null,y:Eo,Y:Mo,Z:Co,"%":Oo},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:Pi,e:Pi,f:ji,H:qi,I:qi,j:Di,L:_i,m:Li,M:zi,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:Bi,s:Hi,S:$i,u:Ti,U:wi,V:Ai,w:Oi,W:Ri,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Ni,Y:ki,Z:Ii,"%":Fi};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=yi[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=pi(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=mi(pi(o.y))).getUTCDay(),r=i>4||0===i?ri.ceil(r):ri(r),r=ei.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(pi(o.y))).getDay(),r=i>4||0===i?Vr.ceil(r):Vr(r),r=Fr.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?mi(pi(o.y)).getUTCDay():t(pi(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,mi(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 yi?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+="",di);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,mi);return t.toString=function(){return e},t}}}(e),fi.format,fi.parse,hi=fi.utcFormat,gi=fi.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 Ao="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||hi(Ao),+new Date("2000-01-01T00:00:00.000Z")||gi(Ao);var Ro=1e3,ko=60*Ro,No=60*ko,Io=24*No,Lo=7*Io,Po=30*Io,Do=365*Io;function qo(e){return new Date(e)}function zo(e){return e instanceof Date?+e:+new Date(+e)}function $o(e,t,n,r,i,o,a,s,l){var c=dr(or,or),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,Ro],[a,5,5*Ro],[a,15,15*Ro],[a,30,30*Ro],[o,1,ko],[o,5,5*ko],[o,15,15*ko],[o,30,30*ko],[i,1,No],[i,3,3*No],[i,6,6*No],[i,12,12*No],[r,1,Io],[r,2,2*Io],[n,1,Lo],[t,1,Po],[t,3,3*Po],[e,1,Do]];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=Tt((function(e){return e[2]})).right(x,o);a===x.length?(i=It(n/Do,r/Do,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(It(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(jt.call(e,zo)):d().map(qo)},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 ur(c,$o(e,t,n,r,i,o,a,s,l))},c}function _o(){return Lt.apply($o(ui,ci,ni,ei,Qr,Zr,$r,Ir,hi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const jo={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"}}},Fo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Bo={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=jo[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Fo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Fo(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 Ho({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 Vo;function Uo(){Vo=Vo||document.createElement("canvas").getContext("2d")}const Wo={measureTextWidth(e){Uo();const{width:t}=Vo.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Uo();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&&(Vo.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=Wo.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(Uo(),!e||!e.length)return[];n&&(Vo.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||Wo.measureTextWidth(c)<=t?o.push(c):(s=Wo.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]?Wo.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]=Wo.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Wo.measureTextWidth(c)>t&&(o[o.length-1]=Wo.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Uo();let i,o,a,s,l=e;const c=Wo.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Vo.font=n),e&&t){if(Wo.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Wo.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;Uo();let o,a=e,s="",l=[];if(Wo.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),!(Wo.measureTextWidth(a)<=t));i--);return(!i&&!a||Wo.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Wo.measureTextWidth(s)>t?(s=Wo.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Uo(),e&&t?(n&&(Vo.font=n),Wo.explodeWord(e,t,r,Math.max(1,Wo.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Wo.lineWrap(e,t,n,r):[e],o=Wo.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Uo(),e&&(Vo.font=e),1.5*Wo.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Uo(),t&&(Vo.font=t);const s=Wo.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(Wo.wrapText(e,i,t,c[n])))})):d=Wo.wrapText(e,i,t,c[0],n),d}},Yo={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(ne({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Go=ne.bind(null,!0),Xo={},{isArray:Ko}=Array;function Jo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zo(e){return void 0===e}function Qo(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ea(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]=Zo(e[r||t])?o:e[t],e=e[r||t]})),e}function ta(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function na(e,t,n){let r=!0;if(Jo(e)&&Jo(t))return ta(e,n)===ta(t,n)&&(Object.keys(e).forEach((i=>{na(e[i],t[i],n)||(r=!1)})),r);if(Ko(e)&&Ko(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!na(e[r],t[r],n))return!1;return!0}return e===t}Xo.compare=na,Xo.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Go({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;na(o,a)||Qo(t,i)||(Zo(a)?r.push({op:"add",path:s,value:o}):Jo(o)&&Jo(a)?r=r.concat(Xo.generate(a,o,s)):Ko(o)&&Ko(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]&&Zo(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(na(t,i))return r;if(!Zo(t[0])&&Zo(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(Xo.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=>{Zo(t[i])&&!Qo(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Xo.apply=function(e,t){t.forEach((t=>{let n=ea(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(Ko(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Ko(i)&&Ko(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(Jo(i)&&Jo(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Qo(a,e)&&delete a[e]})),Go(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=ea(e,t.from);Ko(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(Ko(n)?n.splice(+r,1):delete n[r]);var a}))},Xo.clone=function(e){return Go({},e)},Xo.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},Xo.updateObject=function(e,t){Object.keys(e).length?Xo.apply(e,Xo.generate(e,t)):Go(e,t)};const ra=[[2,4,6],[2,4],[3]],ia=[,[,,[[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 oa(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 aa(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)oa(e[r],t,n)}!function(){let e,t;for(aa(ra,1,10),e=0;e<ia.length;e++)if(ia[e])for(t=0;t<ia[e].length;t++)Array.isArray(ia[e][t])&&aa(ia[e][t])}();const sa={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=sa.findSegmentPositionMeetMin(e,t);return sa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=sa.findSegmentPositionMeetMax(e,n);return sa.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=sa.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=sa.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,sa.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)sa.layoutPositionFromMin(e,t,n,r),sa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=sa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},la=(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},ca=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ua=e=>e.filter(ca),da=(e,t)=>ua(ue.getValue(e,t,[])),ma=e=>ca(e)&&(!1!==e.showValue||!1!==e.showLabel),pa=e=>e.filter(ma),fa=(e,t)=>pa(ue.getValue(e,t,[])),ha=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ga=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},ya=({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},va=({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},ba=({value:e,qMin:t})=>"NaN"!==t&&e<t,xa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Sa={isRefLineVisible:ca,getVisibleRefLines:ua,getRefLines:da,getMeasureRefLines:e=>da(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:da(e,"refLine.dimRefLines"),isRefLineLabelVisible:ma,getVisibleRefLineLabels:pa,getRefLineLabels:fa,getMeasureRefLineLabels:e=>fa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:fa(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=la(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=la(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=la(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=ue.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ue.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ue.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,dataNode:u[e]})}})():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}],dataNode:u[t]},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,dataNode:u[e]})}})(),o},getInputValue:ha,extractInfoFromInputValue:ga,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=ha({refLineLayout:e,layoutService:n});return ga(r,t,"id")},isDiscreteMinOutOfBounds:ya,isDiscreteMaxOutOfBounds:va,isContinuousMinOutOfBounds:ba,isContinuousMaxOutOfBounds:xa,isOutOfRange:({value:e,qMin:t,qMax:n})=>ba({value:e,qMin:t})||xa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&va({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&ya({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Ea=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" "),Ma="…";function Ca(e){return e.showValue?`${Ma} ${e.valueString}`:Ma}function Oa(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=Ea({label:i,labelStyle:t});i.lines=Wo.tokenize(i.title,o,Ca(i),3,n),i.maxNumLines=i.lines.length}}function Ta({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Wo.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 wa({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>Ta({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 Aa(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Ra=3,ka=2;function Na({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 Ia=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Sa.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Sa.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Sa.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Sa.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},La={hasEngineFormat:Na,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=Sa.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=Ia({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Sa.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=Na({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ee.lrm}(${o})${Ee.lrm}`,r.title=La.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=Na({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ee.lrm}(${o})${Ee.lrm}`,n.title=La.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ee.lrm}(${o})${Ee.lrm}`,n.title=La.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,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=La.getTotalNumLines(e)-r;if(t<=0)return;La.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,La.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,labelStyle: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;La.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),Aa(e,"center"),La.addLabelsNeighborInfo(e,r,i,o),Oa(e,a,s),La.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(La.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=Ea({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Wo.tokenize(i.title,o,Ca(i),i.maxNumLines,n))}}(e,a,s)),La.addLabelsSize(e,s,l,d),La.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,fontStyle:p,fontWeight:f,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:Ta({title:e.title,font:a,ellipsis:Ca(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||m,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||f,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=Ra,padding:c={}}=a,{top:u=ka,bottom:d=ka,left:m=ka,right:p=ka}=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:g})),y=y.concat(i)})),y}};function Pa(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 Da(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return La.getMaxTextWidth(e)>o&&(Oa(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,La.getMaxTextWidth(e))+n+r}(t,n)}function qa(e,t){return t?e.domain():[0,1]}function za(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 $a(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 _a(e,t){return e>9?t[1]:t[0]}function ja({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=Yo.createOob({oob:Yo.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:wa({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]}const Fa=e=>{const t=Ea({labelStyle:e}),n=Wo.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},Ba=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 Ha={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=Ba(this.settings.labels),s=Pa(this.chart,this.settings.formatter,e);La.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]=qa(t,n);return za(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return za(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=Fa(t.label),{dock:n}=this.settings.layout;return La.measureLabelsWidth(u,this.measureText),d=Da(n,u,e),d}const m=$a(this.measureText),p=l?_a(l,m):0,f=c?_a(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=Ba(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,v=Fa(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:E}=v,M=Pa(this.chart,this.settings.formatter,e),C=y;La.addLabelTitles({labels:c,formatter:M,isContinuous:o,canBeContinuous:l,localeInfo:s}),La.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[O,T]=qa(e,o),{filteredLabels:w,lowerOobs:A,upperOobs:R,lowerCircleSize:k,upperCircleSize:N,lowerOobSpace:I,upperOobSpace:L}=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}=za(e,t,n,c),p="scaledValue"!==c&&Sa.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=$a(l),b=_a(g,v),x=_a(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:O,maxValue:T,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),P=I,D=y-L;Aa(A),Aa(R);const q=ja({alignment:0,dockValue:0,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+k/2,areaProps:p,radius:k/2,font:b}),z=ja({alignment:1,dockValue:1,oobs:R,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+N/2),areaProps:p,radius:N/2,font:b});La.addLabelsInfo({labels:w,scale:e,majorSize:y,lowerLimit:P,upperLimit:D,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:E,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),sa.layout(w.map((e=>e.segment)),P,D,n.label.gap);const $=w.filter((e=>sa.isInside(e.segment,P,D,o)));return La.createLabels({labels:$,style:n.label,maxLabelWidth:E,areaProps:p,area:f,lineHeight:x,font:b,theme:i}).concat([...q,...z])}};var Va={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 Ua(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=ne(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Va;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 Wa={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=Ua(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ua(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Ya,extractInfoFromInputValue:Ga,resolveValue:Xa}=Sa;var Ka={resolveValue:Xa,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Ya({refLineLayout:e,layoutService:n});return Ga(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Ya({refLineLayout:e,layoutService:n});return Ga(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Ya({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ya({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const Ja=({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=Ka.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=Sa.getScaledPosition({scale:a.scale(s),value:Ka.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 Za({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:Wa.lines.trackBy,compensateForLayoutChanges:Wa.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(Ja({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 Qa={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},es=({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,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,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:Wa.refLineLabels.trackBy,compensateForLayoutChanges:Wa.refLineLabels.compensateForLayoutChanges}}),ts=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=i,h.value=e.refLineExpr.value):(h.value=()=>Ka.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>Ka.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>Ka.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function ns({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=>ts({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(es({isDimension:e,rtl:d,style:ne(!0,Qa,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function rs({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=fe.dimensionless(o),l=Sa.getMeasureRefLines(o),c=Sa.getDimensionRefLines(o,s),u=Sa.getMeasureRefLineLabels(o),d=Sa.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=Sa.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return Sa.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 Sa.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=>Sa.getRefLines(o,e),getRefLineLabels:e=>Sa.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=Sa.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=Sa.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 is(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 os={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"}},as={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ss={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 ls(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const cs={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 us(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 cs.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function ds(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 us(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&&ls(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await cs.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 cs.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(ls(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await cs.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 ms={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(ds(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}},ps={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await ms.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>ms.checkIfPromisesExist({customTooltipModel:e})};const fs=(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:ss.CHART.CHART_PARENT_TYPE,qId:ss.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},hs=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:ss.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const gs={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=ss.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:ss.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 gs.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ss.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=ss.CHART.STATE,a=fs(t,o),s=await e.createSessionObject(a),l=hs(t);if(s.id!==ss.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(ss.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 gs.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(gs.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ss.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ss.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 ys(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function vs(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ss.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function bs(e){const t=vs();return e.filter((e=>t[e.id]))}const xs={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}=xs.getAttrExprData(a);o.length||n.length?ps.handlePromises({customTooltipModel:i,nodes:xs.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&&gs.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>ps.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[ss.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[ss.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ss.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(bs(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[ss.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ss.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=ys(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===bs(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=ys(e)||[];[...i,t].forEach((e=>{const t=bs(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=vs(),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:Ee.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ee.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 Ss(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 ss.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ss.CUSTOM.TITLE:case ss.CUSTOM.DESCRIPTION:case ss.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 Es={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Ss(t,e,r,n)}}};const Ms={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={[ss.CUSTOM.TITLE]:!0,[ss.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=xs.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ss.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===ss.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Me.getMeasure(e,t))),e,i)}};function Cs({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Ms.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:Os}=ss;function Ts({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:xs,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=Cs({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Os.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Os.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>xs.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>xs.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=xs.getDataNodes(o,r),{attrExps:a}=xs.getAttrExprData(t);return ps.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})=>gs.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>xs.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>gs.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:()=>gs.hide({app:n,customTooltipModel:d}),destroy:()=>gs.destroyVisualization({customTooltipModel:d})}}}function ws({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===as.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:Es.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 As({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:Es.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function Rs({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===as.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 ks={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Ns={OPTIONS:ks,DEFAULT:ks.MINI_CHART};function Is({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 Ls({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 Ps=e=>({miniChart:e===Ns.OPTIONS.MINI_CHART.value,bar:e===Ns.OPTIONS.BAR.value,none:e===Ns.OPTIONS.NONE.value}),Ds=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Ps(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Ps(Ns.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return Ps(!n&&(r||!r&&i)?Ns.OPTIONS.NONE.value:Ns.OPTIONS.MINI_CHART.value)};function qs({layoutService:e,override:t}){const n=Ds({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Ns.OPTIONS.MINI_CHART.value,n.bar=t.value===Ns.OPTIONS.BAR.value,n.none=t.value===Ns.OPTIONS.NONE.value),n}function zs({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]=Ls({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 $s({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]=Ls({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function _s({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=zs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=$s({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 js="data-scrollbar-handle";function Fs({e:e}){return(e.srcEvent||e).srcElement.getAttribute(js)||""}const Bs="scrollbarResize",Hs=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Vs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=zs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Bs}`,options:{event:Bs,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Bs]=this[Bs]||{},Hs(t)&&Fs({e:t})&&(this[Bs].panningEvent=t.srcEvent),!!this[Bs].panningEvent))}},events:{[`${Bs}start`](n){n.preventDefault(),this[Bs]=this[Bs]||{},this[Bs].panningEvent&&t.component(e).emit("dragStart",this[Bs].panningEvent)},[`${Bs}move`](n){if(n.preventDefault(),this[Bs]=this[Bs]||{},!this[Bs].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=Fs({e:this[Bs].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")},[`${Bs}end`](n){n.preventDefault(),this[Bs]=this[Bs]||{},delete this[Bs].panningEvent,t.component(e).emit("dragEnd")},[`${Bs}cancel`](n){n.preventDefault(),this[Bs]=this[Bs]||{},delete this[Bs].panningEvent,t.component(e).emit("dragEnd")}}}}const Us="scrollbarPan";function Ws({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=zs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=$s({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Us}`,options:{event:Us,threshold:0,enable(r,i){return this[Us]=this[Us]||{},!(i&&!this[Us].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:{[`${Us}start`](n){n.preventDefault();const a=c(n);if(this[Us]=this[Us]||{},this[Us].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[Us].relative=a.relative,this[Us].zoom=r.get("zoom"),this[Us].zoom.span=this[Us].zoom.max-this[Us].zoom.min,this[Us].zoom.fullSpan=o-n}else if(a.onThumb)this[Us].offset=a.thumb;else{const e=u();this[Us].offset=a.beforeThumb?0:e.thumbSize}},[`${Us}move`](n){n.preventDefault();const a=c(n);if(this[Us]=this[Us]||{},o.meta.isContinuous){const e=a.relative-this[Us].relative,{fullSpan:t,span:n,min:o,max:s}=this[Us].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[Us].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Us}end`](n){n.preventDefault(),this[Us]=this[Us]||{},this[Us].isPanning=!1,t.component(e).emit("unlockState")},[`${Us}cancel`](n){n.preventDefault(),this[Us]=this[Us]||{},this[Us].isPanning=!1,t.component(e).emit("unlockState")}}}}function Ys({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[_s({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Vs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Ws({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Gs({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 Xs={background:"rgba(0, 0, 0, 0.1)"},Ks={top:-1,bottom:-1,width:6},Js={width:2,background:"#595959"};var Zs={before:Xs,after:Xs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Ks,endHandle:Ks,startHandleBorder:Js,endHandleBorder:Js};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:"#B0AFAE",border:"transparent"},startHandle:el,endHandle:el,startHandleBorder:tl,endHandleBorder:tl};const rl={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},il={pointerEvents:"initial"},ol={pointerEvents:"none"};const al="ew-resize",sl="default";function ll(){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 cl(){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?al:sl}function ul(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 dl(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function ml(){const{size:e,start:t,end:n}=ll.call(this);this.renderer.render(this.elements(this.h,ul.call(this,e,t,n)))}function pl(){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?nl:Zs;return{container:{...rl},before:{...rl,...n.before,...t.before},after:{...rl,...n.after,...t.after},thumb:{...rl,...n.thumb,...t.thumb},startHandle:{...rl,...il,...n.startHandle},endHandle:{...rl,...il,...n.endHandle},startHandleBorder:{...rl,...ol,...n.startHandleBorder},endHandleBorder:{...rl,...ol,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var fl={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(){ml.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||!dl.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Fs({e:e});t&&(this.state.hover[t]=!0),cl.call(this),ml.call(this)},leave(){this.state.locked||(this.state.hover.reset(),cl.call(this),ml.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Fs({e:e});t&&(this.state.drag[t]=!0),cl.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),cl.call(this),ml.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}=ll.call(this);return this.elements(e,ul.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",[js]:"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",[js]:"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:pl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function hl({layoutService:e}){return e.meta.isContinuous&&qs({layoutService:e}).miniChart}function gl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(as.TYPE.LINE),l=[...As({forceCreate:!0,key:os.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...As({key:os.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...As({key:os.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...ws({key:os.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...ws({key:os.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...Rs({key:os.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...Rs({key:os.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return hl(e)&&(l.push(...As({key:os.COLLECTION.REDUCED,source:os.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...As({key:os.COLLECTION.REDUCED_PRIMARY,source:os.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...As({key:os.COLLECTION.REDUCED_SECONDARY,source:os.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...ws({key:os.COLLECTION.REDUCED_STACKED_PRIMARY,source:os.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===as.TYPE.BAR)),colorService:i})),l.push(...ws({key:os.COLLECTION.REDUCED_STACKED_SECONDARY,source:os.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===as.TYPE.BAR)),colorService:i}))),l}const yl=({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 vl({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 bl=({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:yl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:vl({models:e})}},xl=({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:yl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:vl({models:e})}};function Sl({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 El({viewCache:e,mainMajor:t}){return ne(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function Ml({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 Cl({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:Ml({viewState:t,viewCache:n,layoutService:o})};return{[os.SCALE.MAJOR]:ne(!0,{},m,{ticks:{level:"outer"}}),[os.SCALE.MAJOR_INNER]:ne(!0,{},m,{ticks:{level:"inner"}})}}function Ol({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Cl({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[os.SCALE.MAJOR]:Sl({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[os.SCALE.MAJOR]:xl({models:t,environment:i})}:{[os.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?xl({models:t,environment:i}):bl({models:t,environment:i})};return hl(t)?{...a,[os.SCALE.REDUCED]:El({viewCache:r,mainMajor:a[os.SCALE.MAJOR]})}:a}function Tl({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 wl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!hl({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 Al({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{...Ol({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[os.SCALE.MINOR.PRIMARY]:Tl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[os.SCALE.MINOR.SECONDARY]:Tl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[os.SCALE.MINOR.REDUCED_PRIMARY]:wl({layoutService:o,tickModel:s,dockService:u,environment:i}),[os.SCALE.MINOR.REDUCED_SECONDARY]:wl({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var Rl={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 kl=["all","labels"];function Nl({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 kl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?os.COMPONENT.AXIS.MINOR.PRIMARY:os.COMPONENT.AXIS.MINOR.SECONDARY,renderer:is(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:Rl.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:Wa.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Wa.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var Il={INACTIVE:.5},Ll={LOWER:3,UPPER:13};const Pl=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return ve.getAdjustedMaxGlyphCount(t,r,0,"qText")};function Dl({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=Pl({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:os.COMPONENT.AXIS.MAJOR,renderer:is(n),scale:os.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:Rl.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>Ll.LOWER&&d<Ll.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:Il.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Wa.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Wa.axes.compensateForLayoutChanges({isHorizontal:p})}}}function ql({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:os.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:is(t),scale:os.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:Rl.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:Wa.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Wa.axes.compensateForLayoutChanges({isContinuous:!0})}}}function zl({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:Rl.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:Wa.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Wa.axes.compensateForLayoutChanges({isTime:!0})}};return[ne(!0,{},h,{key:os.COMPONENT.AXIS.TIME_INNER,scale:os.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}}}),ne(!0,{},h,{key:os.COMPONENT.AXIS.TIME_OUTER,scale:os.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[ql({models:e,flags:n})]:[Dl({models:e,environment:t,flags:n})]}const $l=({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,_l=({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 jl({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:Il.INACTIVE},...n}}}]}}var Fl={MAX:"max",MIN:"min"};function Bl(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 Hl=(e,t)=>`${e}-${t.id}`,Vl=4,Ul=12,Wl=4;function Yl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Wl}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(os.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Vl,Math.min(Ul,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const Gl=({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:Xl}=Mt;const Kl=({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 Bl(t,v)},x=Hl(os.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:os.SCALE.MAJOR,fn:_l({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?Xl(t)?function(e){return We(e).brighter(.5).toString()}(t):function(e){return We(e).darker().toString()}(t):t},size:Yl({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:jl({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:Il.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:Gl({series:n}),trackBy:Wa.markers.trackBy,compensateForLayoutChanges:Wa.markers.compensateForLayoutChanges}}};function Jl({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(os.SCALE.MAJOR),c=s(os.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 Zl({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?Jl({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?Jl({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(os.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(os.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 Ql=({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=_l({layoutService:r,seriesModel:i,rtl:l,orientation:c});return{key:Hl(os.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:os.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:Zl({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:jl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:Il.INACTIVE},inactive:{opacity:Il.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!Gl({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Wa.lines.trackBy,compensateForLayoutChanges:Wa.lines.compensateForLayoutChanges}}};var ec={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 tc({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 nc=3,rc=20;function ic({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}=ec,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=tc({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 Bl(t,x)};return{type:"point",key:Hl(os.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:os.SCALE.MAJOR,fn:_l({layoutService:r,seriesModel:o,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:nc,maxPx:rc},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:jl({layoutService:r,active:{r:e=>e.r+ec.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;return[os.COMPONENT.AXIS_OVERLAY.CONTINUOUS,os.COMPONENT.AXIS_OVERLAY.TIME_INNER,os.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0))?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.points.compensateForLayoutChanges}}}const oc=(e,{dataset:t},n=!1)=>{const{value:r,label:i,source:o}=n?e.segment:e.end,a=t(o.key).field(o.field);return ue.shouldUseFormat(a.raw())?a.formatter()(r):i};function ac({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:`${os.COMPONENT.POINT_LABEL}-${m}`,renderer:is(r),layout:{displayOrder:2,minimumLayoutMode:Rl.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,connect:i.options.showAsConnections,label:t=>oc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${os.COMPONENT.POINT}-${m}`,allPoints:o.map((e=>`${os.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Bl(e.value,h))(e.data),labelSpace:{use:()=>{const t=e.component(os.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:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.labels.compensateForLayoutChanges}}}const sc=({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!(null==g||!g.showMarkerLabels)&&{type:"point-label",key:`${os.COMPONENT.MARKER_LABEL}-${m}`,renderer:is(r),layout:{displayOrder:2,minimumLayoutMode:Rl.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,label:t=>oc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${os.COMPONENT.MARKER}-${m}`,allPoints:o.map((e=>`${os.COMPONENT.MARKER}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Bl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(os.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:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.labels.compensateForLayoutChanges}}},lc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${os.COMPONENT.SLICED_HAT}-${Fl.MAX}`),i=e.component(`${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.PRIMARY}`),o=e.component(`${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.SECONDARY}`);return r?n=`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}`:i?n=`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.PRIMARY}`:o&&(n=`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.SECONDARY}`),n},cc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}`&&e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.PRIMARY}`&&e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MAX}-${as.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MIN}`&&e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MIN}-${as.AXIS.PRIMARY}`&&e!==`@${os.COMPONENT.SLICED_HAT}-${Fl.MIN}-${as.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function uc({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:os.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:Rl.LABEL_SPACE,dock:lc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${os.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(os.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(os.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 dc={min:"Min",max:"Max"};function mc(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 pc(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 fc(e,t,n){return mc(e,t,n)||pc(e,t,n)}function hc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function gc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function yc(e,t){return hc(e,t)||gc(e,t)}function vc({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${dc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Fl.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Fl.MAX?!hc(r,e):!gc(r,e)}({extrema:e,type:t}))}var bc=Object.freeze({__proto__:null,isMaxOutOfBounds:hc,isMinOutOfBounds:gc,isOutOfBounds:yc,isSegmentMaxOutOfBounds:mc,isSegmentMinOutOfBounds:pc,isSegmentOutOfBounds:fc,shouldShowOob:vc});const xc={min:"Min",max:"Max"},Sc=({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===Fl.MAX,{isBarSeriesGrouped:C}=m.meta,O=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Fl.MAX?n:r;const o=e.component(`${os.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.PRIMARY}`),s=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.SECONDARY}`),l=e.component(os.COMPONENT.LABEL_SPACE),c=e.component(`${os.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.PRIMARY}`),d=e.component(`${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.SECONDARY}`);return o?i=`@${os.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.PRIMARY}`:s?i=`@${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.SECONDARY}`:c||u||d?l&&t===Fl.MAX?i=`@${os.COMPONENT.LABEL_SPACE}`:c?i=`@${os.COMPONENT.BAR_OOB}-${t}`:u?i=`@${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.PRIMARY}`:d&&(i=`@${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.SECONDARY}`):l&&t===Fl.MAX&&(i=`@${os.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:b,dock:v}),T=_l({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&&bc[`is${xc[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:`${os.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:O,minimumLayoutMode:Rl.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:os.SCALE.MAJOR,fn:T},markerOffset:cc({dockPosition:O,orientation:x,rtl:y})},brush:jl({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:Wa.lineOobs.compensateForLayoutChanges}}},Ec={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Mc({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(`${os.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=Ec[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=Ec[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 Cc=({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 Oc(e){return Math.min(Math.max(0,e),1)}const Tc=({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?as.AXIS.PRIMARY:as.AXIS.SECONDARY,x=i?os.SCALE.MINOR.PRIMARY:os.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 Oc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return Oc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Oc(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 Oc(e.scale(n))}}},E=(i?d:m).query.getExtrema(),M=h?({start:e,end:t})=>fc(e.value,t.value,E):({end:e})=>yc(e.value,E);return{type:"box",key:`${os.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(as.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?i?os.COLLECTION.STACKED_PRIMARY:os.COLLECTION.STACKED_SECONDARY:i?os.COLLECTION.PRIMARY:os.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:os.SCALE.MAJOR,fn:$l({layoutService:o,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:Cc({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?Mc({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:jl({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:Il.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:Gl({isPrimary:i,seriesModel:l}),trackBy:Wa.bars.trackBy,compensateForLayoutChanges:Wa.bars.compensateForLayoutChanges}}},wc=({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?as.AXIS.PRIMARY:as.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${os.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?os.COLLECTION.STACKED_TOTAL_PRIMARY:os.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:os.SCALE.MAJOR,fn:$l({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Cc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?Mc({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 Ac(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=>Mt.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 Rc="vertical",kc="horizontal";function Nc(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===Rc&&i<0?o="down":t===kc&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const Ic=(e,t)=>{const{showBarLabels:n,showBarSegmentLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!i||!o&&!!r},Lc=(e,t)=>{const{showBarLabels:n,showBarTotalLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!!i&&(!!o||!1!==r)};function Pc(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 Dc=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=i,{isBarSeriesStacked:u}=c,d="rtl"===t.options.direction,m=s.getStyles(),p=a.query.bar.label.getStyle(),f=e.layoutService.getLayoutValue("dataPoint",{}),h=r?as.AXIS.PRIMARY:as.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!Ic(f,c))return!1;let g;!u&&(g=u?1:0);const y={label:e=>oc(e.data,e,u),simplifiedPlacements:Pc(g,0===g?1:0,u?.5:1,c.isContinuous),style:m.label.value},v=[Ac(e,y)],b={component:`${os.COMPONENT.BAR}-${h}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Nc(t.data.end.value,e.dockService.meta.minor.orientation,d,0),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily}}},x=[b];return{type:"labels",key:`${os.COMPONENT.BAR_LABEL}-${h}`,renderer:is(n),layout:{minimumLayoutMode:Rl.VALUE_LABEL},settings:{sources:x},animations:{enabled:l.enabled,trackBy:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.labels.compensateForLayoutChanges}}};function qc(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 zc({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",{}),u=i?as.AXIS.PRIMARY:as.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!Lc(c,o))return!1;const d=!Ic(c,o),m=l.useContrastColor,p=e.formatter(i?os.FORMATTER.PRIMARY:os.FORMATTER.SECONDARY)||(e=>e),f=e=>p(e),h={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":f(e.data.sumOfPositives.value),simplifiedPlacements:qc("outside",d,m,o.isContinuous),style:s.label.value},g={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":f(e.data.sumOfNegatives.value),simplifiedPlacements:qc("opposite",d,m,o.isContinuous),style:s.label.value},y=[Ac(t,h),Ac(t,g)];return{type:"labels",key:`${os.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:is(r),layout:{displayOrder:2,minimumLayoutMode:Rl.VALUE_LABEL},settings:{sources:[{component:`${os.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Nc(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:y,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]},animations:{enabled:t.animationsModel.enabled,trackBy:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.labels.compensateForLayoutChanges}}}var $c=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 _c={min:"Min",max:"Max"},jc=1e-12;function Fc({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?wc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Tc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Fl.MAX,b=o?as.AXIS.PRIMARY:as.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${_c[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!$c[`has${_c[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${_c[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?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.PRIMARY}`),a=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${os.COMPONENT.SLICED_HAT}-${t}-${as.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:`${os.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:ne({},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)<jc?t:e}(e.datum[x].value);return v?n>t:n<t},width:Cc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:jl({layoutService:a})};return M}const Bc={min:"Min",max:"Max"},Hc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Vc({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?wc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Tc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),g=o?l.query.getExtrema():c.query.getExtrema(),y=n===Fl.MAX?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=o?as.AXIS.PRIMARY:as.AXIS.SECONDARY;if(!h)return!1;if(!bc[`is${Bc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Fl.MAX?n:r;const a=e.component(os.COMPONENT.LABEL_SPACE),s=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.PRIMARY}`),l=e.component(`${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.SECONDARY}`),c=e.component(`${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.PRIMARY}`),u=e.component(`${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.SECONDARY}`);return s?o=`@${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.PRIMARY}`:l?o=`@${os.COMPONENT.SLICED_HAT}-${t}-${as.AXIS.SECONDARY}`:c&&u&&!i?o=`@${os.COMPONENT.BAR_OOB}-${t}-${as.AXIS.PRIMARY}`:a&&t===Fl.MAX&&(o=`@${os.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:m,start:p,isPrimary:o});let S="end";f&&(S=n===Fl.MAX?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${os.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:ye.getDockValue(n===Fl.MAX?m:p),oob:ne({},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=bc[`is${Bc[n]}OutOfBounds`](e.datum[S].value,g,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Hc[n]].value;return 0!==i&&bc[`is${Bc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:S,extrema:g}))&&i;return o}})},brush:jl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Wa.barOobs.compensateForLayoutChanges}};return E}function Uc(e){return Math.min(Math.max(0,e),1)}const Wc=({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?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY),p=r?as.AXIS.PRIMARY:as.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Fl.MAX;if(!vc({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:`${os.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(as.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?os.COLLECTION.STACKED_TOTAL_PRIMARY:os.COLLECTION.STACKED_TOTAL_SECONDARY:r?os.COLLECTION.PRIMARY:os.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:os.SCALE.MAJOR,fn:$l({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Uc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Uc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Uc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Uc(e.scale(t))}}},box:{width:Cc({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 Yc(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 Gc=({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?os.FORMATTER.PRIMARY:os.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint",{}),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!Ic(b,g)||y&&!Lc(b,g))return!1;const E=o?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===Fl.MAX?E.implicit.bar.max:E.implicit.bar.min;if(!(n===Fl.MAX?hc(M,E):gc(M,E)))return!1;let C=e=>oc(e.data,e);g.isBarSeriesStacked&&(C=n===Fl.MAX?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(hc(e.data.sumOfNegatives.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(gc(e.data.sumOfPositives.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:Yc("outside",true,g.isContinuous,x,S),style:f.label.value},T={label:C,simplifiedPlacements:Yc("opposite",true,g.isContinuous,x,S),style:f.label.value},w=[Ac(t,O),Ac(t,T)],A=o?as.AXIS.PRIMARY:as.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",k=[{component:`${os.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:`${os.COMPONENT.BAR_OOB_LABEL}-${n}-${A}`,type:"labels",renderer:is(i),layout:{minimumLayoutMode:Rl.VALUE_LABEL},settings:{sources:k},animations:{enabled:p.enabled,trackBy:Wa.nonUpdatingNode.trackBy,compensateForLayoutChanges:Wa.labels.compensateForLayoutChanges}}},Xc=({chart:e,models:t,viewState:n,viewCache:r})=>[Tc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Tc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Kc=({chart:e,models:t,viewState:n,viewCache:r})=>[wc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),wc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Jc=({chart:e,models:t,environment:n,flags:r})=>{const i=zc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),o=zc({chart:e,models:t,environment:n,flags:r,isPrimary:!1});return[Dc({models:t,environment:n,flags:r,isPrimary:!0}),Dc({models:t,environment:n,flags:r,isPrimary:!1}),i,o]},Zc=({chart:e,models:t,viewCache:n,viewState:r})=>[Fc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Fc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Fc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Fc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],Qc=({chart:e,models:t,viewCache:n,viewState:r})=>[Vc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Vc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Vc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Vc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],eu=({chart:e,models:t})=>[Wc({chart:e,models:t,type:"max",isPrimary:!0}),Wc({chart:e,models:t,type:"min",isPrimary:!0}),Wc({chart:e,models:t,type:"max",isPrimary:!1}),Wc({chart:e,models:t,type:"min",isPrimary:!1})],tu=({chart:e,models:t,environment:n,flags:r})=>[Gc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Gc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Gc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Gc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],nu=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(as.TYPE.BAR).slice(-1),l=a.query.series(as.TYPE.LINE),c=a.query.series(as.TYPE.MARKER);return[...Xc({chart:e,models:r,viewState:i,viewCache:o}),...Kc({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>Ql({models:r,environment:t,series:e}))),...l.map((e=>ic({models:r,series:e,environment:t}))),...c.map((n=>Kl({chart:e,models:r,series:n,environment:t}))),...l.map((i=>ac({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...c.map((i=>sc({chart:e,models:r,environment:t,flags:n,series:i,markerSeries:c}))),...Jc({chart:e,models:r,environment:t,flags:n}),...Zc({chart:e,models:r,viewCache:o,viewState:i}),...Qc({chart:e,models:r,viewCache:o,viewState:i}),...eu({chart:e,models:r}),...tu({chart:e,models:r,environment:t,flags:n}),Sc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Sc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),uc({chart:e,models:r,environment:t,lineSeries:l})]},ru={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function iu({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===ru.NONE)return!1;const c=i.getStyles(),u=n.meta.primarySeries.length>0;return{key:os.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:Rl.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===ru.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===ru.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY,animations:{enabled:o.enabled,trackBy:Wa.lines.trackBy,compensateForLayoutChanges:Wa.lines.compensateForLayoutChanges}}}function ou({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:os.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:Rl.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?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY,line:{stroke:o.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Wa.lines.trackBy,compensateForLayoutChanges:Wa.lines.compensateForLayoutChanges}}}function au({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:Rl.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Wa.lines.trackBy,compensateForLayoutChanges:Wa.lines.compensateForLayoutChanges}};return o?[ne(!0,{},s,{key:"time-inner-grid",x:{scale:os.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),ne(!0,{},s,{key:"time-outer-grid",x:{scale:os.SCALE.MAJOR}})]:[ne(!0,{},s,{key:"continuous-grid",x:{scale:os.SCALE.MAJOR},minorTicks:{show:!0}})]}function su({models:e}){return[iu({models:e}),ou({models:e}),...au({models:e})]}function lu({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:os.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:Rl.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 cu=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function uu({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?os.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:os.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:Rl.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:cu(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 du({models:e,environment:t,actions:n,flags:r}){return[lu({models:e,environment:t,actions:n,flags:r}),...uu({models:e,environment:t,actions:n,flags:r})]}function mu({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=qs({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:()=>Ls({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=()=>[Is({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:Ns.OPTIONS.BAR.value},deviceType:t.deviceType})}function pu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=Tc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?as.AXIS.PRIMARY:as.AXIS.SECONDARY;return a.key=`${os.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?os.COLLECTION.REDUCED_STACKED_PRIMARY:os.COLLECTION.REDUCED_STACKED_SECONDARY:i?os.COLLECTION.REDUCED_PRIMARY:os.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?os.SCALE.MINOR.REDUCED_PRIMARY:os.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=os.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function fu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(as.TYPE.LINE).map((r=>{const i=Ql({models:t,environment:e,series:r});return i.key=Hl(os.COMPONENT.MINI_CHART.LINE,r),i.data.collection=os.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?os.SCALE.MINOR.REDUCED_PRIMARY:os.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=os.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 hu({models:e,environment:t}){return e.seriesModel.query.series(as.TYPE.MARKER).map((n=>{const r=Kl({models:e,environment:t,series:n});return r.key=Hl(os.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=os.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?os.SCALE.MINOR.REDUCED_PRIMARY:os.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=os.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function gu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return hl(t)?[pu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),pu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...fu({environment:i,models:t}),...hu({models:t,environment:i})]:[]}function yu({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=Rl.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:os.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:os.SCALE.MAJOR_INNER,layout:{dock:`@${os.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:os.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:os.SCALE.MAJOR,layout:{dock:`@${os.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:os.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:os.SCALE.MAJOR,layout:{dock:`@${os.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function vu({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(as.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(as.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(as.TYPE.LINE),v=c.query.series(as.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?ns({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:os.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:os.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:os.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],T=S?ns({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:os.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:os.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:os.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&Za({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:os.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:os.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:Rl.REFERENCE_LINE,animationsEnabled:C}),!!S&&Za({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:os.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:os.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:Rl.REFERENCE_LINE,animationsEnabled:C}),Za({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:os.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:os.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`:g.length?`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`:y.length?`${os.COMPONENT.LINE}-${y[0].id}`:v.length?`${os.COMPONENT.MARKER}-${v[0].id}`:`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`,minimumLayoutMode:Rl.REFERENCE_LINE,animationsEnabled:C}),...O,...T,...ns({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dock:a.meta.major.opposite,scale:os.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:os.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function bu({layoutService:e}){return!!hl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:os.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function xu(e){return(null==e?void 0:e.type)||as.TYPE.BAR}function Su({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=>xu(e)===as.TYPE.LINE)).map((e=>({key:Hl(os.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:os.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 Eu({models:{fieldModel:e}}){return{[os.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[os.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var Mu={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Cu}=Mu;function Ou({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Cu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:Tu}=Mu,wu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=Tu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Ou({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Au}=Mu,{MAX_NUM_POINTS:Ru,DEFAULT_NUM_POINTS:ku,DEFAULT_NUM_LINES:Nu}=Mu,{DEFAULT_NUM_POINTS:Iu}=Mu,Lu=({layoutService:e,largeDataService:t})=>{if(!Ou({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Iu}=(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=Nu,maxNumPoints:o=ku,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(wu({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>Nu||o>ku)?Math.min(c,Math.ceil(Ru/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Au}=(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})},Pu=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:Lu({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:wu({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function Du({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Ou({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Lu({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>wu({layoutService:t,largeDataService:n}),fetch:(i,o)=>Pu({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function qu(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function zu({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 $u(){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 _u(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=$u(),o=$u();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 ju(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Fu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=_u(e,t,n.qMatrix),i=ju(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 Bu=2**.5,Hu=1/Bu,Vu=1e-6,Uu=Hu**44;function Wu(e){return e.qIsOtherCell}function Yu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Wu)){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(Wu)||t++})),t}(n)}const Gu={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Xu={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 Ku="…";function Ju(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function Zu(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]}${Ku}`).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=Ju(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:Ju(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 Qu(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=Ju(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:Ju(i,n.minorGuideLine.strokeWidth),x2:o,y2:Ju(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function ed(e){return e.filter((e=>e.show)).map((e=>ne({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var td={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=Ju(1,t.line.strokeWidth);return{show:n.line.show,x1:Ju(0,t.line.strokeWidth),y1:r,x2:Ju(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=Zu(n,this),this.state.minor=Qu(r,this)},render(){return[...ed([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>ne({},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})))),...ed(this.state.major.map((e=>e.guideLine))),...ed(this.state.minor.map((e=>e.guideLine)))];var e}};function nd(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 rd({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];nd(o,a)?(a.qTags.indexOf("$qualified")>-1?(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 id({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 od=16;function ad({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+od}))),r.clamp(n),i.rangeAndWidth}}}const sd=6;function ld({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>=sd,canFitHalfDayTicks:n=>n>=t*e.count()}}function cd({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=ad,queryFactory:s=ld}={attributesFactory:ad,queryFactory:ld}){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 ud({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=cd,mapper:a=rd,resolver:s=id}={metaFactory:cd,mapper:rd,resolver:id}){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 dd=86400,md=864e5;function pd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(md*(e-Math.floor(e)))))}const fd=pd(0).getTime();function hd(e){return(e.getTime()-fd)/dd/1e3}const gd=new Date,yd=new Date;function vd(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=>vd((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)=>(gd.setTime(+t),yd.setTime(+r),e(gd),e(yd),Math.floor(n(gd,yd))),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 bd=1e3,xd=6e4,Sd=36e5,Ed=864e5,Md=6048e5,Cd=vd((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*bd)}),((e,t)=>(t-e)/bd),(e=>e.getUTCSeconds()));Cd.range;const Od=vd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd)}),((e,t)=>{e.setTime(+e+t*xd)}),((e,t)=>(t-e)/xd),(e=>e.getMinutes()));Od.range;const Td=vd((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*xd)}),((e,t)=>(t-e)/xd),(e=>e.getUTCMinutes()));Td.range;const wd=vd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*bd-e.getMinutes()*xd)}),((e,t)=>{e.setTime(+e+t*Sd)}),((e,t)=>(t-e)/Sd),(e=>e.getHours()));wd.range;const Ad=vd((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Sd)}),((e,t)=>(t-e)/Sd),(e=>e.getUTCHours()));Ad.range;const Rd=vd((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*xd)/Ed),(e=>e.getDate()-1));Rd.range;const kd=vd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ed),(e=>e.getUTCDate()-1));kd.range;const Nd=vd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Ed),(e=>Math.floor(e/Ed)));function Id(e){return vd((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())*xd)/Md))}Nd.range;const Ld=Id(0),Pd=Id(1),Dd=Id(2),qd=Id(3),zd=Id(4),$d=Id(5),_d=Id(6);function jd(e){return vd((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)/Md))}Ld.range,Pd.range,Dd.range,qd.range,zd.range,$d.range,_d.range;const Fd=jd(0),Bd=jd(1),Hd=jd(2),Vd=jd(3),Ud=jd(4),Wd=jd(5),Yd=jd(6);Fd.range,Bd.range,Hd.range,Vd.range,Ud.range,Wd.range,Yd.range;const Gd=vd((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()));Gd.range;const Xd=vd((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()));Xd.range;const Kd=vd((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()));Kd.every=e=>isFinite(e=Math.floor(e))&&e>0?vd((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,Kd.range;const Jd=vd((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()));Jd.every=e=>isFinite(e=Math.floor(e))&&e>0?vd((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,Jd.range;const Zd={second:1,minute:2,hour:3,day:4,month:5,year:6};function Qd({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 Jd.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Cd.count(e,t),l=Td.count(e,t),c=Ad.count(e,t),u=kd.count(e,t),d=Fd.count(e,t),m=Xd.count(e,t),p=Jd.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:Jd.every(1),formatter:r.year.formatter,offset:e=>Jd.offset(e,-1),floor:Jd.floor};if(s<=f)v.type=Zd.second,v.desc="second",v.count=s,v.interval=Cd.every(1),v.formatter=r.second.formatter,v.offset=e=>Cd.offset(e,-1),v.floor=Cd.floor;else if(s/2<=f)v.type=Zd.second,v.desc="every other second",v.count=s/2,v.interval=Cd.every(2),v.formatter=r.second.formatter,v.offset=e=>Cd.offset(e,-2),v.floor=Cd.floor;else if(s/5<=f)v.type=Zd.second,v.desc="every 5 second",v.count=s/5,v.interval=Cd.every(5),v.formatter=r.second.formatter,v.offset=e=>Cd.offset(e,-5),v.floor=Cd.floor;else if(s/15<=f)v.type=Zd.second,v.desc="every 15 second",v.count=s/15,v.interval=Cd.every(15),v.formatter=r.second.formatter,v.offset=e=>Cd.offset(e,-15),v.floor=Cd.floor;else if(s/30<=f)v.type=Zd.second,v.desc="every 30 second",v.count=s/30,v.interval=Cd.every(30),v.formatter=r.second.formatter,v.offset=e=>Cd.offset(e,-30),v.floor=Cd.floor;else if(l<=h)v.type=Zd.minute,v.desc="minute",v.count=l,v.interval=Td.every(1),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-1),v.floor=Td.floor;else if(l/2<=h)v.type=Zd.minute,v.desc="every 2 minute",v.count=l/2,v.interval=Td.every(2),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-2),v.floor=Td.floor;else if(l/5<=h)v.type=Zd.minute,v.desc="every 5 minute",v.count=l/5,v.interval=Td.every(5),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-5),v.floor=Td.floor;else if(l/10<=h)v.type=Zd.minute,v.desc="every 10 minute",v.count=l/10,v.interval=Td.every(10),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-10),v.floor=Td.floor;else if(l/15<=h)v.type=Zd.minute,v.desc="every 15 minute",v.count=l/15,v.interval=Td.every(15),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-15),v.floor=Td.floor;else if(l/30<=h)v.type=Zd.minute,v.desc="every 30 minute",v.count=l/30,v.interval=Td.every(30),v.formatter=r.minute.formatter,v.offset=e=>Td.offset(e,-30),v.floor=Td.floor;else if(c<=h)v.type=Zd.hour,v.desc="hour",v.count=c,v.interval=Ad.every(1),v.formatter=r.minute.formatter,v.offset=e=>Ad.offset(e,-1),v.floor=Ad.floor;else if(c/2<=h)v.type=Zd.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Ad.every(2),v.formatter=r.minute.formatter,v.offset=e=>Ad.offset(e,-2),v.floor=Ad.floor;else if(c/3<=h)v.type=Zd.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Ad.every(3),v.formatter=r.minute.formatter,v.offset=e=>Ad.offset(e,-3),v.floor=Ad.floor;else if(c/6<=h)v.type=Zd.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Ad.every(6),v.formatter=r.minute.formatter,v.offset=e=>Ad.offset(e,-6),v.floor=Ad.floor;else if(c/12<=h||i)v.type=Zd.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Ad.every(12),v.formatter=r.minute.formatter,v.offset=e=>Ad.offset(e,-12),v.floor=Ad.floor;else if(u<=g)v.type=Zd.day,v.desc="day",v.count=u,v.interval=kd.every(1),v.formatter=r.date.formatter,v.offset=e=>kd.offset(e,-1),v.floor=kd.floor;else if(u/2<=g)v.type=Zd.day,v.desc="every 2 day",v.count=u/2,v.interval=kd.every(2),v.formatter=r.date.formatter,v.offset=e=>kd.offset(e,-2),v.floor=kd.floor;else if(u/3<=g)v.type=Zd.day,v.desc="every 3 day",v.count=u/3,v.interval=kd.every(3),v.formatter=r.date.formatter,v.offset=e=>kd.offset(e,-3),v.floor=kd.floor;else if(d<=g)v.type=Zd.day,v.desc="week",v.count=d,v.interval=Fd.every(1),v.formatter=r.date.formatter,v.offset=e=>Fd.offset(e,-1),v.floor=kd.floor;else if(d/2<=g)v.type=Zd.day,v.desc="every 2 week",v.count=d/2,v.interval=Fd.every(2),v.formatter=r.date.formatter,v.offset=e=>Fd.offset(e,-2),v.floor=kd.floor;else if(m<=g)v.type=Zd.month,v.desc="month",v.count=m,v.interval=Xd.every(1),v.formatter=r.date.formatter,v.offset=e=>Xd.offset(e,-1),v.floor=kd.floor;else if(m/3<=g)v.type=Zd.month,v.desc="quarter",v.count=m/3,v.interval=Xd.every(3),v.formatter=r.date.formatter,v.offset=e=>Xd.offset(e,-3),v.floor=kd.floor;else if(m/6<=g)v.type=Zd.month,v.desc="half year",v.count=m/6,v.interval=Xd.every(6),v.formatter=r.date.formatter,v.offset=e=>Xd.offset(e,-6),v.floor=kd.floor;else if(p<=y)v.type=Zd.year,v.desc="year",v.count=p,v.interval=Jd.every(1),v.formatter=r.year.formatter,v.offset=e=>Jd.offset(e,-1),v.floor=Jd.floor;else if(p/2<=y)v.type=Zd.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Jd.offset(e,-2),v.floor=Jd.floor;else if(p/5<=y)v.type=Zd.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Jd.offset(e,-5),v.floor=Jd.floor;else if(p/10<=y)v.type=Zd.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Jd.offset(e,-10),v.floor=Jd.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=Zd.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Jd.offset(t,-e),v.floor=Jd.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<=Zd.hour){const n=t.getFormat("date"),r=e.ticks(kd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(kd.offset(r[0],-1)),p=(r.length?r:[kd.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 em=86400,tm=1440,nm={};function rm(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function im(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=_o().domain([pd(l),pd(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)=>Qd({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:pd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(nm[[t,n,r,r,o]])return nm[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=pd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/em,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/em):y<2?(T=2,O=1/em*2):y<5?(T=5,O=1/em*5):y<10?(T=10,O=1/em*10):y<30?(T=30,O=1/em*30):v<1?(w=1,O=1/tm):v<2?(w=2,O=1/tm*2):v<5?(w=5,O=1/tm*5):v<10?(w=10,O=1/tm*10):v<30?(w=30,O=1/tm*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?rm("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?rm("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?rm("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?rm("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):w?rm("minute",[l,c,u,0,0+E*w],[l,c,u,0,0+M*w],a.minute.formatter):rm("second",[l,c,u,0,0,0+E*T],[l,c,u,0,0,0+M*T],a.second.formatter),C=hd(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:pd(e),end:pd(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,nm[[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?hd(t.start):"end"===i?hd(t.end):(hd(t.start)+hd(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:hd(t.start),end:hd(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const om=41000.2343433,am=/t+/i,sm=16,lm=60;const cm={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 um(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 dm="continuousPan";var mm={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Gu,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=Du,snapshotFetcherFactory:c=zu,cacheFetcherFactory:u=qu,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(Vu,(r-n)*Uu))),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=ju(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=>Fu(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=ju(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=>Fu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Fu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return ne({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return ne({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Yu(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?Hu:Bu)*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:dm,pointers:1,threshold:10,enable(r,i){return this.started===dm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${dm}start`](n){n.preventDefault(),this.started=dm;const{min:i,max:o}=r.get("zoom");this[dm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${dm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[dm],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)})},[`${dm}end`](e){e.preventDefault(),this.started=!1},[`${dm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Xu,timeAxis:td},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]=ne(!0,{},t[i],o)})),r}(t,cm,n),{qAxis:i}=r,o=Ar(),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=>(um(a,m),a.instance(e)),m.normInvert=e=>(um(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:lm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:lm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:lm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:lm,formatter:void 0}};return i&&am.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(om)).width+sm)})),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=pd(t[0].data.start),i=pd(t[n-1].data.start);return kd.count(r,i)/n>=1?o.date:Ad.count(r,i)/n>0?o.minute:Td.count(r,i)/n>0?o.second:o.date},t}(r);return u=im(o.copy(),r,p),c=ud({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 pm=e=>e.meta.seriesComponentKeys[0],fm=(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 hm({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=mm,{layoutService:s,seriesModel:l}=t,c=pm(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===os.COMPONENT.LEGEND_CATEGORICAL));fm(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const gm="continuousPinchZoom";function ym({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=mm.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:[...Ys({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Gs({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=[hm({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:pm(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=mm.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:gm,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:{[`${gm}start`](e){a.last=e.scale,e.preventDefault()},[`${gm}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:pm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const vm=({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}}}),bm="lasso",xm=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:bm,enable(e,n){if(this.started===bm||!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!==bm&&(i.actions.select.emit("start",bm),this.chart.component(e).emit("lassoStart",t),this.started=bm)},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",bm),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Sm=({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 Em=({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 Mm=({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 Cm(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=Mm(e,t,"range");return{interactions:[e.onEdited?Em(e,t):null,r].filter(Boolean),components:[n]}}const Om=/axis|legend/,Tm=e=>e.some((e=>Om.test(e.type)));function wm({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`,`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`,...n.query.series(as.TYPE.MARKER).map((e=>Hl(os.COMPONENT.MARKER,e))),...n.query.series(as.TYPE.LINE).map((e=>Hl(os.COMPONENT.POINT,e))),os.COMPONENT.AXIS.MAJOR,os.COMPONENT.AXIS_OVERLAY.TIME_INNER,os.COMPONENT.AXIS_OVERLAY.TIME_OUTER,os.COMPONENT.AXIS_OVERLAY.CONTINUOUS,os.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===[os.COMPONENT.AXIS.MAJOR,os.COMPONENT.AXIS_OVERLAY.TIME_INNER,os.COMPONENT.AXIS_OVERLAY.TIME_OUTER,os.COMPONENT.AXIS_OVERLAY.CONTINUOUS,os.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=>Tm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Sm(e,t)],components:[]}}(s,l)}function Am({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,os.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:[Mm(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[os.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const Rm={components:[],interactions:[]};function km({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"))&&Cm({eventName:"minorRange",key:"minor-range-brush",targets:[os.COMPONENT.AXIS.MINOR.PRIMARY,`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`,...i.query.series(as.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Hl(os.COMPONENT.MARKER,e))),...i.query.series(as.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Hl(os.COMPONENT.POINT,e)))],fillTargets:[os.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:os.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Rm,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"))&&Cm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[os.COMPONENT.AXIS.MINOR.SECONDARY,`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`,...i.query.series(as.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Hl(os.COMPONENT.MARKER,e))),...i.query.series(as.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Hl(os.COMPONENT.POINT,e)))],fillTargets:[os.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:os.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Rm,a=Am({actions:e,models:n})||Rm,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?[os.COMPONENT.AXIS_OVERLAY.TIME_INNER,os.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[os.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Cm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`,`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`,...o.query.series(as.TYPE.MARKER).map((e=>Hl(os.COMPONENT.MARKER,e))),...o.query.series(as.TYPE.LINE).map((e=>Hl(os.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?os.SCALE.MAJOR_INNER:os.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(os.FORMATTER.PRIMARY),o=t.scale(os.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||Rm,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=`${os.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Cm({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})||Rm;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function Nm({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=vm(n);return{interactions:[xm(n,t)],components:[r]}}(o,{actions:e})}function Im({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:oe.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]:[...su({models:t}),...Nl({models:t,flags:r}),...nu({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Su({models:t,environment:n}),...zl({models:t,environment:n,flags:r}),...du({models:t,environment:n,actions:a,flags:r}),Ho({viewState:i,viewCache:o,layoutService:l,dockService:c}),...yu({models:t}),...vu({chart:e,models:t,environment:n}),mu({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),bu(t),...gu({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=wm({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=km({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=Nm({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:gl({models:n}),scales:Al({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Eu({models:n}),interactions:ym({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const Lm=({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:Im({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},Pm=[os.COMPONENT.AXIS_TITLE.MAJOR,os.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,os.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,os.COMPONENT.GRID_LINE,os.COMPONENT.ZERO_LINE],Dm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:os.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),qm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:os.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const zm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function $m(e){return zm[e]||e}function _m(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=$m(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=$m(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 jm={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"},Fm={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"},Bm={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"},Hm={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"},Vm={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"},Um={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"},Wm={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"},Ym={single:"N",drillDown:"H",cyclic:"C"},Gm={N:void 0,H:jm,C:Bm},Xm=(e,t)=>{switch(e.qGrouping){case Ym.single:return;case Ym.drillDown:return{path:jm,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Ym.cyclic:return{path:t?Fm:Bm,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 Km(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=Xo.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 Jm(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=ne(!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}),Km(e,a,c)}))}function Zm(e){return e.qGrouping===Ym.single?e.qFallbackTitle||"":e.title||""}const Qm=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case Ym.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:jm,groupItem:!0,title:e.title,selected:!1,children:n}}case Ym.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:Bm,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Zm(e)}}},ep=(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))},tp=async(e,t,n,r,i)=>{const o=await ep(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===Ym.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=Gm[s],c=s!==Ym.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){Jm(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function np({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Ym.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await Qm(l,i,a,e),n=c?await tp(a,i,r,o,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function rp(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Ym.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Xm(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Ym.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Zm(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function ip({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 ep(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){Jm(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function op(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ap.apply(null,arguments)}var sp,lp,cp,up,dp,mp={exports:{}};function pp(){if(lp)return sp;lp=1;return sp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fp(){if(up)return cp;up=1;var e=pp();function t(){}function n(){}return n.resetWarningCache=t,cp=function(){function r(t,n,r,i,o,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function hp(){return dp||(dp=1,mp.exports=fp()()),mp.exports}var gp=Q(hp()),yp={black:"#000",white:"#fff"},vp={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"},bp={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"},xp={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"},Sp={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"},Ep={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"},Mp={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"},Cp={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 Op(){return Op=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},Op.apply(this,arguments)}function Tp(e){return Tp="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},Tp(e)}function wp(e){return e&&"object"===Tp(e)&&e.constructor===Object}function Ap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Op({},e):e;return wp(e)&&wp(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(wp(t[i])&&i in e?r[i]=Ap(e[i],t[i],n):r[i]=t[i])})),r}function Rp(e){var t=function(e,t){if("object"!=Tp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tp(t)?t:t+""}function kp(e,t,n){return(t=Rp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Np(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 Ip(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 Lp(e){if(e.type)return e;if("#"===e.charAt(0))return Lp(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(Np(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 Pp(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 Dp(e){var t="hsl"===(e=Lp(e)).type?Lp(function(e){var t=(e=Lp(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])),Pp({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 qp(e,t){return e=Lp(e),t=Ip(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Pp(e)}function zp(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=zp(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 jp(e,t,n){var r;return Op({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")),Op({paddingLeft:t(2),paddingRight:t(2)},n,kp({},e.up("sm"),Op({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},kp(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),kp(r,e.up("sm"),{minHeight:64}),r)},n)}var Fp={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:yp.white,default:Cp[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:yp.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:Cp[800],default:"#303030"},action:{active:yp.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 Hp(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=Lp(e),t=Ip(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 Pp(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Lp(e),t=Ip(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 Pp(e)}(e.main,o)))}function Vp(e){var t=e.primary,n=void 0===t?{light:xp[300],main:xp[500],dark:xp[700]}:t,r=e.secondary,i=void 0===r?{light:bp.A200,main:bp.A400,dark:bp.A700}:r,o=e.error,a=void 0===o?{light:vp[300],main:vp[500],dark:vp[700]}:o,s=e.warning,l=void 0===s?{light:Mp[300],main:Mp[500],dark:Mp[700]}:s,c=e.info,u=void 0===c?{light:Sp[300],main:Sp[500],dark:Sp[700]}:c,d=e.success,m=void 0===d?{light:Ep[300],main:Ep[500],dark:Ep[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=Dp(e),r=Dp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Bp.text.primary)>=g?Bp.text.primary:Fp.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=Op({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Np(4,t));if("string"!=typeof e.main)throw new Error(Np(5,JSON.stringify(e.main)));return Hp(e,"light",n,v),Hp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Bp,light:Fp};return Ap(Op({common:yp,type:f,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:Cp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function Up(e){return Math.round(1e5*e)/1e5}function Wp(e){return Up(e)}var Yp={textTransform:"uppercase"},Gp='"Roboto", "Helvetica", "Arial", sans-serif';function Xp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Gp: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 Op({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===Gp?{letterSpacing:"".concat(Up(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,Yp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,Yp)};return Ap(Op({htmlFontSize:g,pxToRem:S,round:Wp,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Kp(){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 Jp=["none",Kp(0,2,1,-1,0,1,1,0,0,1,3,0),Kp(0,3,1,-2,0,2,2,0,0,1,5,0),Kp(0,3,3,-2,0,3,4,0,0,1,8,0),Kp(0,2,4,-1,0,4,5,0,0,1,10,0),Kp(0,3,5,-1,0,5,8,0,0,1,14,0),Kp(0,3,5,-1,0,6,10,0,0,1,18,0),Kp(0,4,5,-2,0,7,10,1,0,2,16,1),Kp(0,5,5,-3,0,8,10,1,0,3,14,2),Kp(0,5,6,-3,0,9,12,1,0,3,16,2),Kp(0,6,6,-3,0,10,14,1,0,4,18,3),Kp(0,6,7,-4,0,11,15,1,0,4,20,3),Kp(0,7,8,-4,0,12,17,2,0,5,22,4),Kp(0,7,8,-4,0,13,19,2,0,5,24,4),Kp(0,7,9,-4,0,14,21,2,0,5,26,4),Kp(0,8,9,-5,0,15,22,2,0,6,28,5),Kp(0,8,10,-5,0,16,24,2,0,6,30,5),Kp(0,8,11,-5,0,17,26,2,0,6,32,5),Kp(0,9,11,-5,0,18,28,2,0,7,34,6),Kp(0,9,12,-6,0,19,29,2,0,7,36,6),Kp(0,10,13,-6,0,20,31,3,0,8,38,7),Kp(0,10,13,-6,0,21,33,3,0,8,40,7),Kp(0,10,14,-6,0,22,35,3,0,8,42,7),Kp(0,11,14,-7,0,23,36,3,0,9,44,8),Kp(0,11,15,-7,0,24,38,3,0,9,46,8)],Zp={borderRadius:4};function Qp(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 ef(e,t){if(e){if("string"==typeof e)return Qp(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)?Qp(e,t):void 0}}function tf(e){return function(e){if(Array.isArray(e))return Qp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ef(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 nf(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)||ef(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 rf(){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 of={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)"},af={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sf(e){return"".concat(Math.round(e),"ms")}var lf={easing:of,duration:af,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?af.standard:n,i=t.easing,o=void 0===i?of.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:sf(r)," ").concat(o," ").concat("string"==typeof s?s:sf(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))}},cf={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function uf(){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=Vp(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=_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 Op({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=rf(s),f=Ap({breakpoints:m,direction:"ltr",mixins:jp(m,p,i),overrides:{},palette:d,props:{},shadows:Jp,typography:Xp(d,c),spacing:p,shape:Zp,transitions:lf,zIndex:cf},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 Ap(e,t)}),f)}var df="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",mf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function pf(){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!==mf.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[df]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function ff(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 hf="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},gf="object"===("undefined"==typeof window?"undefined":hf(window))&&"object"===("undefined"==typeof document?"undefined":hf(document))&&9===document.nodeType;function yf(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,Rp(r.key),r)}}function vf(e,t,n){return t&&yf(e.prototype,t),n&&yf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bf(e,t)}function xf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bf(e,t)}function Sf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ef={}.constructor;function Mf(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Mf);if(e.constructor!==Ef)return e;var t={};for(var n in e)t[n]=Mf(e[n]);return t}function Cf(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Mf(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Of=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Tf=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+=Of(e[n]," ");else t=Of(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function wf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Af(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Rf(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=wf(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+=Af(m+":"+c+Tf(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=Af(f+":"+c+Tf(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Af(g+":"+c+Tf(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Af(""+e+c+"{"+r,--o)+Af("}",o)):r}var kf=/([[\].#*$><+~=|^:(),"'`\s])/g,Nf="undefined"!=typeof CSS&&CSS.escape,If=function(e){return Nf?Nf(e):e.replace(kf,"\\$1")},Lf=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}(),Pf=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(Sf(Sf(i)),s),i.selectorText="."+If(i.id)),i}xf(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]=Tf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Op({},e,{allowEmpty:!0}):e;return Rf(this.selectorText,this.style,n)},vf(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}(Lf),Df={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Pf(e,t,n)}},qf={indent:1,children:!0},zf=/@([\w-]+)/,$f=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(zf);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new lh(Op({},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=qf);var t=wf(e).linebreak;if(null==e.indent&&(e.indent=qf.indent),null==e.children&&(e.children=qf.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+/,jf={onCreateRule:function(e,t,n){return _f.test(e)?new $f(e,t,n):null}},Ff={indent:1,children:!0},Bf=/@keyframes\s+([\w-]+)/,Hf=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:If(a(this,o)),this.rules=new lh(Op({},n,{parent:this})),t)this.rules.add(s,t[s],Op({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ff);var t=wf(e).linebreak;if(null==e.indent&&(e.indent=Ff.indent),null==e.children&&(e.children=Ff.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}(),Vf=/@keyframes\s+/,Uf=/\$([\w-]+)/g,Wf=function(e,t){return"string"==typeof e?e.replace(Uf,(function(e,n){return n in t?t[n]:e})):e},Yf=function(e,t,n){var r=e[t],i=Wf(r,n);i!==r&&(e[t]=i)},Gf={onCreateRule:function(e,t,n){return"string"==typeof e&&Vf.test(e)?new Hf(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Yf(e,"animation-name",n.keyframes),"animation"in e&&Yf(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 Wf(e,r.keyframes);default:return e}}},Xf=function(e){function t(){return e.apply(this,arguments)||this}return xf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Op({},e,{allowEmpty:!0}):e;return Rf(this.key,this.style,n)},t}(Lf),Kf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Xf(e,t,n):null}},Jf=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=wf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Rf(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Rf(this.at,this.style,e)},e}(),Zf=/@font-face/,Qf={onCreateRule:function(e,t,n){return Zf.test(e)?new Jf(e,t,n):null}},eh=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 Rf(this.key,this.style,e)},e}(),th={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new eh(e,t,n):null}},nh=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}(),rh={"@charset":!0,"@import":!0,"@namespace":!0},ih={onCreateRule:function(e,t,n){return e in rh?new nh(e,t,n):null}},oh=[Df,jf,Gf,Kf,Qf,th,ih],ah={process:!0},sh={force:!0,process:!0},lh=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=Op({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="."+If(this.classes[d]));var m=Cf(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=Op({},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 Pf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Hf&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Pf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Hf&&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=ah);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,sh)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,sh)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=wf(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}(),ch=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Op({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new lh(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}(),uh=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}(),dh=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=zp(t,["attached"]),i=wf(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},vf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),mh=new dh,ph="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),fh="2f1acc6c3a606b082e5eef5e54414ffb";null==ph[fh]&&(ph[fh]=0);var hh=ph[fh]++,gh=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")+hh+i+t:o+n.key+"-"+hh+(i?"-"+i:"")+"-"+t}},yh=function(e){var t;return function(){return t||(t=e()),t}},vh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},bh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Tf(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},xh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Sh=function(e,t){return e.selectorText=t,e.selectorText===t},Eh=yh((function(){return document.querySelector("head")}));function Mh(e){var t=mh.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=Eh(),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 Ch=yh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Oh=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]},Th=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},wh=function(){function e(e){this.getPropertyValue=vh,this.setProperty=bh,this.removeProperty=xh,this.setSelector=Sh,this.hasInsertedRules=!1,this.cssRules=[],e&&mh.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=Ch();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=Mh(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 Eh().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=Th(n,t);if(!1===(i=Oh(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=Th(n,t),l=Oh(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 ch&&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}(),Ah=0,Rh=function(){function e(e){this.id=Ah++,this.version="10.10.0",this.plugins=new uh,this.options={id:{minify:!1},createGenerateId:gh,Renderer:gf?wh:null,plugins:[]},this.generateId=gh({minify:!1});for(var t=0;t<oh.length;t++)this.plugins.use(oh[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=Op({},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===mh.index?0:mh.index+1);var r=new ch(e,Op({},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(),mh.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=Op({},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=Cf(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}(),kh=function(e){return new Rh(e)},Nh="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ih(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=Ih(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,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.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){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(Z).forEach((t=>{e.add(Z[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=aw();return{qae:Kk(e),ext:ON(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:jk,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=Fk;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||Fk}},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=Vk({chart:b,actions:u}),S=_k({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}}=pm,[,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:[...Dm,...y]}),g.meta.isPartialUpdating=!1};function M(o=!1){const c=Lm({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),u=o&&[qm({models:n}),...zm({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),Ya.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}),Pm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),Jk({models:S,chart:b,viewState:i})}}}));var K,J,Z={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ee(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 te=function(){if(J)return K;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},K}(),ne=Q(te);const re=[["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}]],ie={};re.forEach((([e,{width:t,height:n}])=>{ie[e]={width:t,height:n}}));const oe={getLayoutModes:()=>ie,getLayoutMode(e,t){let n;for(n=0;n<re.length;++n)if(e>=re[n][1].width&&t>=re[n][1].height)return re[n][0];return"SPARK"}};const ae=["$date","$timestamp","$time"],se=["D","TS","T"],le={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ae.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&se.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(le.hasTimeTag(t)&&le.hasUnknownFormat(t)||le.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&le.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)&&le.canBeContinuousDimension(r[0])},maxNumberOfLines:12},ce=/^[A-Z][A-z0-9_]*$/i,ue={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},de={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||ce.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>ue.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},me=e=>de.getValue(e,"qHyperCube.qDimensionInfo",[]),pe=e=>de.getValue(e,"qHyperCube.qMeasureInfo",[]),fe=e=>de.getValue(e,"barGrouping.grouping"),he={continuous:(e,t=!1)=>!!le.canBeContinuous(e)&&(de.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!me(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===fe(e)&&(me(e).length>1||pe(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&me(e).length>1&&1===pe(e).length},groupedByMeasure(e){return this.grouped(e)&&1===me(e).length&&pe(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==fe(e)&&"butterfly"!==fe(e)||this.continuous(e))&&(me(e).length>1||pe(e).length>1)},stackedByDimension(e){return this.stacked(e)&&me(e).length>1&&1===pe(e).length},stackedByMeasure(e){return this.stacked(e)&&1===me(e).length&&pe(e).length>1},simple:e=>0===me(e).length||1===me(e).length&&1===pe(e).length,snapshot:e=>!!de.getValue(e,"snapshotData")};function ge(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const ye=e=>{throw e.isHandled=!0,e};const ve={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?ve.getVerticalDock(t):n?ve.getOppositeDock(ve.getHorizontalDock(t)):ve.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},be={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=be.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=be.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=be.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(be.stringWidthOverMWidth(o)+1.0909090909090908*a)}},xe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Se=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),Ee=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Me={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>xe.test(e),isRtlChar:e=>Se.test(e)||Ee.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Me.isLtrChar(r))return"ltr";if(Me.isRtlChar(r))return"rtl"}return"ltr"}},Ce={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?Ce.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=Me.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=Me.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:Me.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=Me.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Me.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Ce.getColorSymbol(e,t)]:[Ce.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=Me.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Me.detectTextDirection(e.value);let l;return l=i?r?[e.value,Ce.getColorSymbol(t,n)]:[Ce.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 Oe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Te(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function we(){}var Ae=.7,Re=1/Ae,ke="\\s*([+-]?\\d+)\\s*",Ne="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Le=/^#([0-9a-f]{3,8})$/,Pe=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),De=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),qe=new RegExp(`^rgba\\(${ke},${ke},${ke},${Ne}\\)$`),ze=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${Ne}\\)$`),$e=new RegExp(`^hsl\\(${Ne},${Ie},${Ie}\\)$`),_e=new RegExp(`^hsla\\(${Ne},${Ie},${Ie},${Ne}\\)$`),je={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Fe(){return this.rgb().formatHex()}function Be(){return this.rgb().formatRgb()}function He(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Le.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ve(t):3===n?new Ge(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Pe.exec(e))?new Ge(t[1],t[2],t[3],1):(t=De.exec(e))?new Ge(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qe.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=ze.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$e.exec(e))?et(t[1],t[2]/100,t[3]/100,1):(t=_e.exec(e))?et(t[1],t[2]/100,t[3]/100,t[4]):je.hasOwnProperty(e)?Ve(je[e]):"transparent"===e?new Ge(NaN,NaN,NaN,0):null}function Ve(e){return new Ge(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ge(e,t,n,r)}function We(e){return e instanceof we||(e=He(e)),e?new Ge((e=e.rgb()).r,e.g,e.b,e.opacity):new Ge}function Ye(e,t,n,r){return 1===arguments.length?We(e):new Ge(e,t,n,null==r?1:r)}function Ge(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xe(){return`#${Qe(this.r)}${Qe(this.g)}${Qe(this.b)}`}function Ke(){const e=Je(this.opacity);return`${1===e?"rgb(":"rgba("}${Ze(this.r)}, ${Ze(this.g)}, ${Ze(this.b)}${1===e?")":`, ${e})`}`}function Je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ze(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qe(e){return((e=Ze(e))<16?"0":"")+e.toString(16)}function et(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new nt(e,t,n,r)}function tt(e){if(e instanceof nt)return new nt(e.h,e.s,e.l,e.opacity);if(e instanceof we||(e=He(e)),!e)return new nt;if(e instanceof nt)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 nt(a,s,l,e.opacity)}function nt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function rt(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function ot(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Oe(we,He,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tt(this).formatHsl()},formatRgb:Be,toString:Be}),Oe(Ge,Ye,Te(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ae:Math.pow(Ae,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Ze(this.r),Ze(this.g),Ze(this.b),Je(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:Xe,formatHex:Xe,formatHex8:function(){return`#${Qe(this.r)}${Qe(this.g)}${Qe(this.b)}${Qe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ke,toString:Ke})),Oe(nt,(function(e,t,n,r){return 1===arguments.length?tt(e):new nt(e,t,n,null==r?1:r)}),Te(we,{brighter(e){return e=null==e?Re:Math.pow(Re,e),new nt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ae:Math.pow(Ae,e),new nt(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 Ge(ot(e>=240?e-240:e+120,i,r),ot(e,i,r),ot(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new nt(rt(this.h),it(this.s),it(this.l),Je(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=Je(this.opacity);return`${1===e?"hsl(":"hsla("}${rt(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const at=Math.PI/180,st=180/Math.PI,lt=.96422,ct=1,ut=.82521,dt=4/29,mt=6/29,pt=3*mt*mt,ft=mt*mt*mt;function ht(e){if(e instanceof gt)return new gt(e.l,e.a,e.b,e.opacity);if(e instanceof Et)return Mt(e);e instanceof Ge||(e=We(e));var t,n,r=xt(e.r),i=xt(e.g),o=xt(e.b),a=yt((.2225045*r+.7168786*i+.0606169*o)/ct);return r===i&&i===o?t=n=a:(t=yt((.4360747*r+.3850649*i+.1430804*o)/lt),n=yt((.0139322*r+.0971045*i+.7141733*o)/ut)),new gt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function yt(e){return e>ft?Math.pow(e,1/3):e/pt+dt}function vt(e){return e>mt?e*e*e:pt*(e-dt)}function bt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function St(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Et)return new Et(e.h,e.c,e.l,e.opacity);if(e instanceof gt||(e=ht(e)),0===e.a&&0===e.b)return new Et(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*st;return new Et(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Et(e,t,n,null==r?1:r)}function Et(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Mt(e){if(isNaN(e.h))return new gt(e.l,0,0,e.opacity);var t=e.h*at;return new gt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Oe(gt,(function(e,t,n,r){return 1===arguments.length?ht(e):new gt(e,t,n,null==r?1:r)}),Te(we,{brighter(e){return new gt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gt(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 Ge(bt(3.1338561*(t=lt*vt(t))-1.6168667*(e=ct*vt(e))-.4906146*(n=ut*vt(n))),bt(-.9787684*t+1.9161415*e+.033454*n),bt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Oe(Et,St,Te(we,{brighter(e){return new Et(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Et(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Mt(this).rgb()}}));var Ct={isDark:function(e){return St(e).l<70}};function Ot(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Tt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wt(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Tt(t(e),n)}),{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 At=wt(Tt).right,Rt=Math.sqrt(50),kt=Math.sqrt(10),Nt=Math.sqrt(2);function It(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>=Rt?10:o>=kt?5:o>=Nt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rt?10:o>=kt?5:o>=Nt?2:1)}function Lt(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>=Rt?i*=10:o>=kt?i*=5:o>=Nt&&(i*=2),t<e?-i:i}function Pt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Dt="$";function qt(){}function zt(e,t){var n=new qt;if(e instanceof qt)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 $t(){}qt.prototype=zt.prototype={constructor:qt,has:function(e){return Dt+e in this},get:function(e){return this[Dt+e]},set:function(e,t){return this[Dt+e]=t,this},remove:function(e){var t=Dt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Dt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Dt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Dt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Dt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Dt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Dt)return!1;return!0},each:function(e){for(var t in this)t[0]===Dt&&e(this[t],t.slice(1),this)}};var _t=zt.prototype;$t.prototype={constructor:$t,has:_t.has,add:function(e){return this[Dt+(e+="")]=e,this},remove:_t.remove,clear:_t.clear,values:_t.keys,size:_t.size,empty:_t.empty,each:_t.each};var jt=Array.prototype,Ft=jt.map,Bt=jt.slice;function Ht(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Vt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ut(){}var Wt=.7,Yt=1/Wt,Gt="\\s*([+-]?\\d+)\\s*",Xt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jt=/^#([0-9a-f]{3})$/,Zt=/^#([0-9a-f]{6})$/,Qt=new RegExp("^rgb\\("+[Gt,Gt,Gt]+"\\)$"),en=new RegExp("^rgb\\("+[Kt,Kt,Kt]+"\\)$"),tn=new RegExp("^rgba\\("+[Gt,Gt,Gt,Xt]+"\\)$"),nn=new RegExp("^rgba\\("+[Kt,Kt,Kt,Xt]+"\\)$"),rn=new RegExp("^hsl\\("+[Xt,Kt,Kt]+"\\)$"),on=new RegExp("^hsla\\("+[Xt,Kt,Kt,Xt]+"\\)$"),an={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 sn(e){var t;return e=(e+"").trim().toLowerCase(),(t=Jt.exec(e))?new mn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Zt.exec(e))?ln(parseInt(t[1],16)):(t=Qt.exec(e))?new mn(t[1],t[2],t[3],1):(t=en.exec(e))?new mn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tn.exec(e))?cn(t[1],t[2],t[3],t[4]):(t=nn.exec(e))?cn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rn.exec(e))?fn(t[1],t[2]/100,t[3]/100,1):(t=on.exec(e))?fn(t[1],t[2]/100,t[3]/100,t[4]):an.hasOwnProperty(e)?ln(an[e]):"transparent"===e?new mn(NaN,NaN,NaN,0):null}function ln(e){return new mn(e>>16&255,e>>8&255,255&e,1)}function cn(e,t,n,r){return r<=0&&(e=t=n=NaN),new mn(e,t,n,r)}function un(e){return e instanceof Ut||(e=sn(e)),e?new mn((e=e.rgb()).r,e.g,e.b,e.opacity):new mn}function dn(e,t,n,r){return 1===arguments.length?un(e):new mn(e,t,n,null==r?1:r)}function mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function pn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function fn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new hn(e,t,n,r)}function hn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function gn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ht(Ut,sn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Ht(mn,dn,Vt(Ut,{brighter:function(e){return e=null==e?Yt:Math.pow(Yt,e),new mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Wt:Math.pow(Wt,e),new mn(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"#"+pn(this.r)+pn(this.g)+pn(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+")")}})),Ht(hn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(e instanceof Ut||(e=sn(e)),!e)return new hn;if(e instanceof hn)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 hn(a,s,l,e.opacity)}(e):new hn(e,t,n,null==r?1:r)}),Vt(Ut,{brighter:function(e){return e=null==e?Yt:Math.pow(Yt,e),new hn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Wt:Math.pow(Wt,e),new hn(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 mn(gn(e>=240?e-240:e+120,i,r),gn(e,i,r),gn(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 yn=Math.PI/180,vn=180/Math.PI,bn=.96422,xn=1,Sn=.82521,En=4/29,Mn=6/29,Cn=3*Mn*Mn,On=Mn*Mn*Mn;function Tn(e){if(e instanceof wn)return new wn(e.l,e.a,e.b,e.opacity);if(e instanceof In){if(isNaN(e.h))return new wn(e.l,0,0,e.opacity);var t=e.h*yn;return new wn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof mn||(e=un(e));var n,r,i=Nn(e.r),o=Nn(e.g),a=Nn(e.b),s=An((.2225045*i+.7168786*o+.0606169*a)/xn);return i===o&&o===a?n=r=s:(n=An((.4360747*i+.3850649*o+.1430804*a)/bn),r=An((.0139322*i+.0971045*o+.7141733*a)/Sn)),new wn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function wn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function An(e){return e>On?Math.pow(e,1/3):e/Cn+En}function Rn(e){return e>Mn?e*e*e:Cn*(e-En)}function kn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function In(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Ht(wn,(function(e,t,n,r){return 1===arguments.length?Tn(e):new wn(e,t,n,null==r?1:r)}),Vt(Ut,{brighter:function(e){return new wn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new wn(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 mn(kn(3.1338561*(t=bn*Rn(t))-1.6168667*(e=xn*Rn(e))-.4906146*(n=Sn*Rn(n))),kn(-.9787684*t+1.9161415*e+.033454*n),kn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ht(In,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof In)return new In(e.h,e.c,e.l,e.opacity);if(e instanceof wn||(e=Tn(e)),0===e.a&&0===e.b)return new In(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vn;return new In(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new In(e,t,n,null==r?1:r)}),Vt(Ut,{brighter:function(e){return new In(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new In(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Tn(this).rgb()}}));var Ln=-.14861,Pn=1.78277,Dn=-.29227,qn=-.90649,zn=1.97294,$n=zn*qn,_n=zn*Pn,jn=Pn*Dn-qn*Ln;function Fn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bn)return new Bn(e.h,e.s,e.l,e.opacity);e instanceof mn||(e=un(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(jn*r+$n*t-_n*n)/(jn+$n-_n),o=r-i,a=(zn*(n-i)-Dn*o)/qn,s=Math.sqrt(a*a+o*o)/(zn*i*(1-i)),l=s?Math.atan2(a,o)*vn-120:NaN;return new Bn(l<0?l+360:l,s,i,e.opacity)}(e):new Bn(e,t,n,null==r?1:r)}function Bn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Hn(e){return function(){return e}}function Vn(e,t){return function(n){return e+n*t}}function Un(e){return 1==(e=+e)?Wn: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):Hn(isNaN(t)?n:t)}}function Wn(e,t){var n=t-e;return n?Vn(e,n):Hn(isNaN(e)?t:e)}Ht(Bn,Fn,Vt(Ut,{brighter:function(e){return e=null==e?Yt:Math.pow(Yt,e),new Bn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Wt:Math.pow(Wt,e),new Bn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*yn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new mn(255*(t+n*(Ln*r+Pn*i)),255*(t+n*(Dn*r+qn*i)),255*(t+n*(zn*r)),this.opacity)}}));var Yn=function e(t){var n=Un(t);function r(e,t){var r=n((e=dn(e)).r,(t=dn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Wn(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 Gn(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]=tr(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 Xn(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function Kn(e,t){return t-=e=+e,function(n){return e+t*n}}function Jn(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]=tr(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(Zn.source,"g");function er(e,t){var n,r,i,o=Zn.lastIndex=Qn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Zn.exec(e))&&(r=Qn.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:Kn(n,r)})),o=Qn.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 tr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Hn(t):("number"===r?Kn:"string"===r?(n=sn(t))?(t=n,Yn):er:t instanceof sn?Yn:t instanceof Date?Xn:Array.isArray(t)?Gn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Jn:Kn)(e,t)}function nr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function rr(e){return function t(n){function r(t,r){var i=e((t=Fn(t)).h,(r=Fn(r)).h),o=Wn(t.s,r.s),a=Wn(t.l,r.l),s=Wn(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 ir(e){return+e}rr((function(e,t){var n=t-e;return n?Vn(e,n>180||n<-180?n-360*Math.round(n/360):n):Hn(isNaN(e)?t:e)})),rr(Wn);var or=[0,1];function ar(e){return e}function sr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function lr(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 cr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=sr(i,r),o=n(a,o)):(r=sr(r,i),o=n(o,a)),function(e){return o(r(e))}}function ur(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]=sr(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=At(e,t,1,r)-1;return o[n](i[n](t))}}function dr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function mr(e,t){return function(){var e,t,n,r,i,o,a=or,s=or,l=tr,c=ar;function u(){return r=Math.min(a.length,s.length)>2?ur:cr,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),Kn)))(n)))},d.domain=function(e){return arguments.length?(a=Ft.call(e,ir),c===ar||(c=lr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Bt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Bt.call(e),l=nr,u()},d.clamp=function(e){return arguments.length?(c=e?lr(a):ar,d):c!==ar},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 pr(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 fr(e){return(e=pr(Math.abs(e)))?e[1]:NaN}var hr,gr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yr(e){return new vr(e)}function vr(e){if(!(t=gr.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 br(e,t){var n=pr(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")}yr.prototype=vr.prototype,vr.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 xr={"%":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 br(100*e,t)},r:br,s:function(e,t){var n=pr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(hr=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")+pr(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 Sr(e){return e}var Er,Mr,Cr,Or=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tr(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)}):Sr,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):Sr,s=e.percent||"%";function l(e){var t=(e=yr(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"):xr[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=xr[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?Or[8+hr/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=yr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(fr(t)/3))),i=Math.pow(10,-r),o=Or[8+r/3];return function(e){return n(i*e)+o}}}}function wr(e,t,n,r){var i,o=Lt(e,t,n);switch((r=yr(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(fr(t)/3)))-fr(Math.abs(e)))}(o,a))||(r.precision=i),Cr(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,fr(t)-fr(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,-fr(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Mr(r)}function Ar(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=It(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 wr(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=It(s,l,n))>0?r=It(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=It(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 Rr(){var e=mr(ar,ar);return e.copy=function(){return dr(e,Rr())},Pt.apply(e,arguments),Ar(e)}Er=Tr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Mr=Er.format,Cr=Er.formatPrefix;var kr=new Date,Nr=new Date;function Ir(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 Ir((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 kr.setTime(+t),Nr.setTime(+r),e(kr),e(Nr),Math.floor(n(kr,Nr))},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 Lr=Ir((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Lr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ir((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Lr:null},Lr.range;var Pr=1e3,Dr=6e4,qr=36e5,zr=864e5,$r=6048e5,_r=Ir((function(e){e.setTime(Math.floor(e/Pr)*Pr)}),(function(e,t){e.setTime(+e+t*Pr)}),(function(e,t){return(t-e)/Pr}),(function(e){return e.getUTCSeconds()}));_r.range;var jr=Ir((function(e){e.setTime(Math.floor(e/Dr)*Dr)}),(function(e,t){e.setTime(+e+t*Dr)}),(function(e,t){return(t-e)/Dr}),(function(e){return e.getMinutes()}));jr.range;var Fr=Ir((function(e){var t=e.getTimezoneOffset()*Dr%qr;t<0&&(t+=qr),e.setTime(Math.floor((+e-t)/qr)*qr+t)}),(function(e,t){e.setTime(+e+t*qr)}),(function(e,t){return(t-e)/qr}),(function(e){return e.getHours()}));Fr.range;var Br=Ir((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())*Dr)/zr}),(function(e){return e.getDate()-1}));function Hr(e){return Ir((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())*Dr)/$r}))}Br.range;var Vr=Hr(0),Ur=Hr(1),Wr=Hr(2),Yr=Hr(3),Gr=Hr(4),Xr=Hr(5),Kr=Hr(6);Vr.range,Ur.range,Wr.range,Yr.range,Gr.range,Xr.range,Kr.range;var Jr=Ir((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()}));Jr.range;var Zr=Ir((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()}));Zr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ir((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},Zr.range;var Qr=Ir((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Dr)}),(function(e,t){return(t-e)/Dr}),(function(e){return e.getUTCMinutes()}));Qr.range;var ei=Ir((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*qr)}),(function(e,t){return(t-e)/qr}),(function(e){return e.getUTCHours()}));ei.range;var ti=Ir((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/zr}),(function(e){return e.getUTCDate()-1}));function ni(e){return Ir((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)/$r}))}ti.range;var ri=ni(0),ii=ni(1),oi=ni(2),ai=ni(3),si=ni(4),li=ni(5),ci=ni(6);ri.range,ii.range,oi.range,ai.range,si.range,li.range,ci.range;var ui=Ir((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()}));ui.range;var di=Ir((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 mi(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 pi(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 fi(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}di.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ir((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},di.range;var hi,gi,yi,vi={"-":"",_:" ",0:"0"},bi=/^\s*\d+/,xi=/^%/,Si=/[\\^$*+?|[\]().{}]/g;function Ei(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 Mi(e){return e.replace(Si,"\\$&")}function Ci(e){return new RegExp("^(?:"+e.map(Mi).join("|")+")","i")}function Oi(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ti(e,t,n){var r=bi.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=bi.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ai(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ri(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ki(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ni(e,t,n){var r=bi.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Li(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 Pi(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Di(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=bi.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function zi(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function $i(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function _i(e,t,n){var r=bi.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ji(e,t,n){var r=bi.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fi(e,t,n){var r=bi.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bi(e,t,n){var r=xi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hi(e,t,n){var r=bi.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=bi.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ui(e,t){return Ei(e.getDate(),t,2)}function Wi(e,t){return Ei(e.getHours(),t,2)}function Yi(e,t){return Ei(e.getHours()%12||12,t,2)}function Gi(e,t){return Ei(1+Br.count(Zr(e),e),t,3)}function Xi(e,t){return Ei(e.getMilliseconds(),t,3)}function Ki(e,t){return Xi(e,t)+"000"}function Ji(e,t){return Ei(e.getMonth()+1,t,2)}function Zi(e,t){return Ei(e.getMinutes(),t,2)}function Qi(e,t){return Ei(e.getSeconds(),t,2)}function eo(e){var t=e.getDay();return 0===t?7:t}function to(e,t){return Ei(Vr.count(Zr(e),e),t,2)}function no(e,t){var n=e.getDay();return e=n>=4||0===n?Gr(e):Gr.ceil(e),Ei(Gr.count(Zr(e),e)+(4===Zr(e).getDay()),t,2)}function ro(e){return e.getDay()}function io(e,t){return Ei(Ur.count(Zr(e),e),t,2)}function oo(e,t){return Ei(e.getFullYear()%100,t,2)}function ao(e,t){return Ei(e.getFullYear()%1e4,t,4)}function so(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ei(t/60|0,"0",2)+Ei(t%60,"0",2)}function lo(e,t){return Ei(e.getUTCDate(),t,2)}function co(e,t){return Ei(e.getUTCHours(),t,2)}function uo(e,t){return Ei(e.getUTCHours()%12||12,t,2)}function mo(e,t){return Ei(1+ti.count(di(e),e),t,3)}function po(e,t){return Ei(e.getUTCMilliseconds(),t,3)}function fo(e,t){return po(e,t)+"000"}function ho(e,t){return Ei(e.getUTCMonth()+1,t,2)}function go(e,t){return Ei(e.getUTCMinutes(),t,2)}function yo(e,t){return Ei(e.getUTCSeconds(),t,2)}function vo(e){var t=e.getUTCDay();return 0===t?7:t}function bo(e,t){return Ei(ri.count(di(e),e),t,2)}function xo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?si(e):si.ceil(e),Ei(si.count(di(e),e)+(4===di(e).getUTCDay()),t,2)}function So(e){return e.getUTCDay()}function Eo(e,t){return Ei(ii.count(di(e),e),t,2)}function Mo(e,t){return Ei(e.getUTCFullYear()%100,t,2)}function Co(e,t){return Ei(e.getUTCFullYear()%1e4,t,4)}function Oo(){return"+0000"}function To(){return"%"}function wo(e){return+e}function Ao(e){return Math.floor(+e/1e3)}!function(e){hi=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=Ci(i),u=Oi(i),d=Ci(o),m=Oi(o),p=Ci(a),f=Oi(a),h=Ci(s),g=Oi(s),y=Ci(l),v=Oi(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:Ui,e:Ui,f:Ki,H:Wi,I:Yi,j:Gi,L:Xi,m:Ji,M:Zi,p:function(e){return i[+(e.getHours()>=12)]},Q:wo,s:Ao,S:Qi,u:eo,U:to,V:no,w:ro,W:io,x:null,X:null,y:oo,Y:ao,Z:so,"%":To},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:lo,e:lo,f:fo,H:co,I:uo,j:mo,L:po,m:ho,M:go,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:wo,s:Ao,S:yo,u:vo,U:bo,V:xo,w:So,W:Eo,x:null,X:null,y:Mo,Y:Co,Z:Oo,"%":To},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:Di,e:Di,f:Fi,H:zi,I:zi,j:qi,L:ji,m:Pi,M:$i,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:Hi,s:Vi,S:_i,u:wi,U:Ai,V:Ri,w:Ti,W:ki,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Ii,Y:Ni,Z:Li,"%":Bi};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=vi[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=fi(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=pi(fi(o.y))).getUTCDay(),r=i>4||0===i?ii.ceil(r):ii(r),r=ti.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(fi(o.y))).getDay(),r=i>4||0===i?Ur.ceil(r):Ur(r),r=Br.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?pi(fi(o.y)).getUTCDay():t(fi(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,pi(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 vi?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+="",mi);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,pi);return t.toString=function(){return e},t}}}(e),hi.format,hi.parse,gi=hi.utcFormat,yi=hi.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 Ro="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||gi(Ro),+new Date("2000-01-01T00:00:00.000Z")||yi(Ro);var ko=1e3,No=60*ko,Io=60*No,Lo=24*Io,Po=7*Lo,Do=30*Lo,qo=365*Lo;function zo(e){return new Date(e)}function $o(e){return e instanceof Date?+e:+new Date(+e)}function _o(e,t,n,r,i,o,a,s,l){var c=mr(ar,ar),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,ko],[a,5,5*ko],[a,15,15*ko],[a,30,30*ko],[o,1,No],[o,5,5*No],[o,15,15*No],[o,30,30*No],[i,1,Io],[i,3,3*Io],[i,6,6*Io],[i,12,12*Io],[r,1,Lo],[r,2,2*Lo],[n,1,Po],[t,1,Do],[t,3,3*Do],[e,1,qo]];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=wt((function(e){return e[2]})).right(x,o);a===x.length?(i=Lt(n/qo,r/qo,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(Lt(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(Ft.call(e,$o)):d().map(zo)},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 dr(c,_o(e,t,n,r,i,o,a,s,l))},c}function jo(){return Pt.apply(_o(di,ui,ri,ti,ei,Qr,_r,Lr,gi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Fo={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"}}},Bo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Ho={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=Fo[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Bo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Bo(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 Vo({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 Uo;function Wo(){Uo=Uo||document.createElement("canvas").getContext("2d")}const Yo={measureTextWidth(e){Wo();const{width:t}=Uo.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Wo();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&&(Uo.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=Yo.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(Wo(),!e||!e.length)return[];n&&(Uo.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||Yo.measureTextWidth(c)<=t?o.push(c):(s=Yo.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]?Yo.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]=Yo.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Yo.measureTextWidth(c)>t&&(o[o.length-1]=Yo.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Wo();let i,o,a,s,l=e;const c=Yo.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Uo.font=n),e&&t){if(Yo.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Yo.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;Wo();let o,a=e,s="",l=[];if(Yo.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),!(Yo.measureTextWidth(a)<=t));i--);return(!i&&!a||Yo.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Yo.measureTextWidth(s)>t?(s=Yo.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Wo(),e&&t?(n&&(Uo.font=n),Yo.explodeWord(e,t,r,Math.max(1,Yo.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Yo.lineWrap(e,t,n,r):[e],o=Yo.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Wo(),e&&(Uo.font=e),1.5*Yo.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Wo(),t&&(Uo.font=t);const s=Yo.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(Yo.wrapText(e,i,t,c[n])))})):d=Yo.wrapText(e,i,t,c[0],n),d}},Go={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(ne({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Xo=ne.bind(null,!0),Ko={},{isArray:Jo}=Array;function Zo(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Qo(e){return void 0===e}function ea(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ta(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]=Qo(e[r||t])?o:e[t],e=e[r||t]})),e}function na(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ra(e,t,n){let r=!0;if(Zo(e)&&Zo(t))return na(e,n)===na(t,n)&&(Object.keys(e).forEach((i=>{ra(e[i],t[i],n)||(r=!1)})),r);if(Jo(e)&&Jo(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!ra(e[r],t[r],n))return!1;return!0}return e===t}Ko.compare=ra,Ko.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?Xo({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;ra(o,a)||ea(t,i)||(Qo(a)?r.push({op:"add",path:s,value:o}):Zo(o)&&Zo(a)?r=r.concat(Ko.generate(a,o,s)):Jo(o)&&Jo(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]&&Qo(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(ra(t,i))return r;if(!Qo(t[0])&&Qo(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(Ko.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=>{Qo(t[i])&&!ea(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},Ko.apply=function(e,t){t.forEach((t=>{let n=ta(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(Jo(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Jo(i)&&Jo(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(Zo(i)&&Zo(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!ea(a,e)&&delete a[e]})),Xo(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=ta(e,t.from);Jo(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(Jo(n)?n.splice(+r,1):delete n[r]);var a}))},Ko.clone=function(e){return Xo({},e)},Ko.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},Ko.updateObject=function(e,t){Object.keys(e).length?Ko.apply(e,Ko.generate(e,t)):Xo(e,t)};const ia=[[2,4,6],[2,4],[3]],oa=[,[,,[[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 aa(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 sa(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)aa(e[r],t,n)}!function(){let e,t;for(sa(ia,1,10),e=0;e<oa.length;e++)if(oa[e])for(t=0;t<oa[e].length;t++)Array.isArray(oa[e][t])&&sa(oa[e][t])}();const la={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=la.findSegmentPositionMeetMin(e,t);return la.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=la.findSegmentPositionMeetMax(e,n);return la.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=la.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=la.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,la.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)la.layoutPositionFromMin(e,t,n,r),la.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=la.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ca=(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},ua=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,da=e=>e.filter(ua),ma=(e,t)=>da(de.getValue(e,t,[])),pa=e=>ua(e)&&(!1!==e.showValue||!1!==e.showLabel),fa=e=>e.filter(pa),ha=(e,t)=>fa(de.getValue(e,t,[])),ga=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ya=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},va=({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},ba=({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},xa=({value:e,qMin:t})=>"NaN"!==t&&e<t,Sa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Ea={isRefLineVisible:ua,getVisibleRefLines:da,getRefLines:ma,getMeasureRefLines:e=>ma(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ma(e,"refLine.dimRefLines"),isRefLineLabelVisible:pa,getVisibleRefLineLabels:fa,getRefLineLabels:ha,getMeasureRefLineLabels:e=>ha(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:ha(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=ca(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=ca(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=ca(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=de.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():de.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=de.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,dataNode:u[e]})}})():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}],dataNode:u[t]},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,dataNode:u[e]})}})(),o},getInputValue:ga,extractInfoFromInputValue:ya,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=ga({refLineLayout:e,layoutService:n});return ya(r,t,"id")},isDiscreteMinOutOfBounds:va,isDiscreteMaxOutOfBounds:ba,isContinuousMinOutOfBounds:xa,isContinuousMaxOutOfBounds:Sa,isOutOfRange:({value:e,qMin:t,qMax:n})=>xa({value:e,qMin:t})||Sa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&ba({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&va({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Ma=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" "),Ca="…";function Oa(e){return e.showValue?`${Ca} ${e.valueString}`:Ca}function Ta(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=Ma({label:i,labelStyle:t});i.lines=Yo.tokenize(i.title,o,Oa(i),3,n),i.maxNumLines=i.lines.length}}function wa({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Yo.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 Aa({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>wa({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 Ra(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ka=3,Na=2;function Ia({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 La=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Ea.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Ea.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Ea.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Ea.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},Pa={hasEngineFormat:Ia,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=Ea.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=La({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Ea.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=Ia({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Me.lrm}(${o})${Me.lrm}`,r.title=Pa.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=Ia({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Me.lrm}(${o})${Me.lrm}`,n.title=Pa.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Me.lrm}(${o})${Me.lrm}`,n.title=Pa.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,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=Pa.getTotalNumLines(e)-r;if(t<=0)return;Pa.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,Pa.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,labelStyle: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;Pa.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),Ra(e,"center"),Pa.addLabelsNeighborInfo(e,r,i,o),Ta(e,a,s),Pa.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(Pa.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r],o=Ma({label:i,labelStyle:t});i.lines.length>i.maxNumLines&&(i.lines=Yo.tokenize(i.title,o,Oa(i),i.maxNumLines,n))}}(e,a,s)),Pa.addLabelsSize(e,s,l,d),Pa.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,fontStyle:p,fontWeight:f,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const g={type:"text",text:t,title:wa({title:e.title,font:a,ellipsis:Oa(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||m,fontStyle:e.fontStyle||p,fontWeight:e.fontWeight||f,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(i-(r-1)/2)*o,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=ka,padding:c={}}=a,{top:u=Na,bottom:d=Na,left:m=Na,right:p=Na}=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:g})),y=y.concat(i)})),y}};function Da(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 qa(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:i,maxLabelWidth:o}=t;let a=1;return Pa.getMaxTextWidth(e)>o&&(Ta(e,t,o),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+i}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,Pa.getMaxTextWidth(e))+n+r}(t,n)}function za(e,t){return t?e.domain():[0,1]}function $a(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 _a(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 ja(e,t){return e>9?t[1]:t[0]}function Fa({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=Go.createOob({oob:Go.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:Aa({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]}const Ba=e=>{const t=Ma({labelStyle:e}),n=Yo.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,i=e.maxWidth||75,o=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:i,top:o,bottom:a,left:s,right:l}},Ha=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 Va={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=Ha(this.settings.labels),s=Da(this.chart,this.settings.formatter,e);Pa.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]=za(t,n);return $a(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return $a(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:i,fontWeight:o}=n||{};return this.renderer.measureText({text:e,fontWeight:o||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:i||t.label.fontFamily})},u&&u.length){const e=Ba(t.label),{dock:n}=this.settings.layout;return Pa.measureLabelsWidth(u,this.measureText),d=qa(n,u,e),d}const m=_a(this.measureText),p=l?ja(l,m):0,f=c?ja(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=Ha(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,v=Ba(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:E}=v,M=Da(this.chart,this.settings.formatter,e),C=y;Pa.addLabelTitles({labels:c,formatter:M,isContinuous:o,canBeContinuous:l,localeInfo:s}),Pa.calculateLabelPositions({labels:c,scale:e,size:C,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[O,T]=za(e,o),{filteredLabels:w,lowerOobs:A,upperOobs:R,lowerCircleSize:k,upperCircleSize:N,lowerOobSpace:I,upperOobSpace:L}=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}=$a(e,t,n,c),p="scaledValue"!==c&&Ea.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=_a(l),b=ja(g,v),x=ja(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:O,maxValue:T,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),P=I,D=y-L;Ra(A),Ra(R);const q=Fa({alignment:0,dockValue:0,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+k/2,areaProps:p,radius:k/2,font:b}),z=Fa({alignment:1,dockValue:1,oobs:R,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+N/2),areaProps:p,radius:N/2,font:b});Pa.addLabelsInfo({labels:w,scale:e,majorSize:y,lowerLimit:P,upperLimit:D,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:E,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),la.layout(w.map((e=>e.segment)),P,D,n.label.gap);const $=w.filter((e=>la.isInside(e.segment,P,D,o)));return Pa.createLabels({labels:$,style:n.label,maxLabelWidth:E,areaProps:p,area:f,lineHeight:x,font:b,theme:i}).concat([...q,...z])}};var Ua={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 Wa(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=ne(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Ua;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 Ya={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=Wa(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Wa(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Ga,extractInfoFromInputValue:Xa,resolveValue:Ka}=Ea;var Ja={resolveValue:Ka,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Ga({refLineLayout:e,layoutService:n});return Xa(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Ga({refLineLayout:e,layoutService:n});return Xa(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Ga({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ga({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const Za=({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=Ja.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=Ea.getScaledPosition({scale:a.scale(s),value:Ja.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 Qa({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:Ya.lines.trackBy,compensateForLayoutChanges:Ya.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(Za({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 es={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},ts=({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,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,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:Ya.refLineLabels.trackBy,compensateForLayoutChanges:Ya.refLineLabels.compensateForLayoutChanges}}),ns=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:m,fontWeight:p,textDecoration:f,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=i,h.value=e.refLineExpr.value):(h.value=()=>Ja.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>Ja.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>Ja.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h};function rs({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=>ns({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(ts({isDimension:e,rtl:d,style:ne(!0,es,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function is({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=he.dimensionless(o),l=Ea.getMeasureRefLines(o),c=Ea.getDimensionRefLines(o,s),u=Ea.getMeasureRefLineLabels(o),d=Ea.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=Ea.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return Ea.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 Ea.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=>Ea.getRefLines(o,e),getRefLineLabels:e=>Ea.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=Ea.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=Ea.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 os(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 as={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"}},ss={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ls={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 cs(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const us={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 ds(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 us.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function ms(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 ds(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&&cs(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await us.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 us.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(cs(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await us.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 ps={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(ms(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}},fs={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await ps.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>ps.checkIfPromisesExist({customTooltipModel:e})};const hs=(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:ls.CHART.CHART_PARENT_TYPE,qId:ls.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},gs=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:ls.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const ys={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=ls.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:ls.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 ys.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ls.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=ls.CHART.STATE,a=hs(t,o),s=await e.createSessionObject(a),l=gs(t);if(s.id!==ls.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(ls.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 ys.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(ys.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ls.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ls.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 vs(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function bs(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ls.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function xs(e){const t=bs();return e.filter((e=>t[e.id]))}const Ss={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}=Ss.getAttrExprData(a);o.length||n.length?fs.handlePromises({customTooltipModel:i,nodes:Ss.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&&ys.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>fs.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[ls.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[ls.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ls.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(xs(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[ls.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ls.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=vs(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===xs(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=vs(e)||[];[...i,t].forEach((e=>{const t=xs(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=bs(),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:Me.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Me.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 Es(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 ls.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ls.CUSTOM.TITLE:case ls.CUSTOM.DESCRIPTION:case ls.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 Ms={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Es(t,e,r,n)}}};const Cs={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={[ls.CUSTOM.TITLE]:!0,[ls.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Ss.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ls.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===ls.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Ce.getMeasure(e,t))),e,i)}};function Os({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Cs.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:Ts}=ls;function ws({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:Ss,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=Os({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Ts.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Ts.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Ss.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>Ss.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=Ss.getDataNodes(o,r),{attrExps:a}=Ss.getAttrExprData(t);return fs.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})=>ys.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Ss.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>ys.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:()=>ys.hide({app:n,customTooltipModel:d}),destroy:()=>ys.destroyVisualization({customTooltipModel:d})}}}function As({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===ss.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:Ms.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 Rs({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:Ms.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function ks({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===ss.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 Ns={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Is={OPTIONS:Ns,DEFAULT:Ns.MINI_CHART};function Ls({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 Ps({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 Ds=e=>({miniChart:e===Is.OPTIONS.MINI_CHART.value,bar:e===Is.OPTIONS.BAR.value,none:e===Is.OPTIONS.NONE.value}),qs=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return Ds(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return Ds(Is.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return Ds(!n&&(r||!r&&i)?Is.OPTIONS.NONE.value:Is.OPTIONS.MINI_CHART.value)};function zs({layoutService:e,override:t}){const n=qs({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Is.OPTIONS.MINI_CHART.value,n.bar=t.value===Is.OPTIONS.BAR.value,n.none=t.value===Is.OPTIONS.NONE.value),n}function $s({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]=Ps({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 _s({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]=Ps({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=$s({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=_s({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 Fs="data-scrollbar-handle";function Bs({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Fs)||""}const Hs="scrollbarResize",Vs=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Us({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=$s({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Hs}`,options:{event:Hs,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Hs]=this[Hs]||{},Vs(t)&&Bs({e:t})&&(this[Hs].panningEvent=t.srcEvent),!!this[Hs].panningEvent))}},events:{[`${Hs}start`](n){n.preventDefault(),this[Hs]=this[Hs]||{},this[Hs].panningEvent&&t.component(e).emit("dragStart",this[Hs].panningEvent)},[`${Hs}move`](n){if(n.preventDefault(),this[Hs]=this[Hs]||{},!this[Hs].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=Bs({e:this[Hs].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")},[`${Hs}end`](n){n.preventDefault(),this[Hs]=this[Hs]||{},delete this[Hs].panningEvent,t.component(e).emit("dragEnd")},[`${Hs}cancel`](n){n.preventDefault(),this[Hs]=this[Hs]||{},delete this[Hs].panningEvent,t.component(e).emit("dragEnd")}}}}const Ws="scrollbarPan";function Ys({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=$s({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=_s({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Ws}`,options:{event:Ws,threshold:0,enable(r,i){return this[Ws]=this[Ws]||{},!(i&&!this[Ws].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:{[`${Ws}start`](n){n.preventDefault();const a=c(n);if(this[Ws]=this[Ws]||{},this[Ws].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[Ws].relative=a.relative,this[Ws].zoom=r.get("zoom"),this[Ws].zoom.span=this[Ws].zoom.max-this[Ws].zoom.min,this[Ws].zoom.fullSpan=o-n}else if(a.onThumb)this[Ws].offset=a.thumb;else{const e=u();this[Ws].offset=a.beforeThumb?0:e.thumbSize}},[`${Ws}move`](n){n.preventDefault();const a=c(n);if(this[Ws]=this[Ws]||{},o.meta.isContinuous){const e=a.relative-this[Ws].relative,{fullSpan:t,span:n,min:o,max:s}=this[Ws].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[Ws].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Ws}end`](n){n.preventDefault(),this[Ws]=this[Ws]||{},this[Ws].isPanning=!1,t.component(e).emit("unlockState")},[`${Ws}cancel`](n){n.preventDefault(),this[Ws]=this[Ws]||{},this[Ws].isPanning=!1,t.component(e).emit("unlockState")}}}}function Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Us({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Ys({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Xs({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 Ks={background:"rgba(0, 0, 0, 0.1)"},Js={top:-1,bottom:-1,width:6},Zs={width:2,background:"#595959"};var Qs={before:Ks,after:Ks,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Js,endHandle:Js,startHandleBorder:Zs,endHandleBorder:Zs};const el={background:"rgba(0, 0, 0, 0.1)"},tl={top:-1,bottom:-1,width:6},nl={width:2,background:"#595959"};var rl={before:el,after:el,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:tl,endHandle:tl,startHandleBorder:nl,endHandleBorder:nl};const il={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ol={pointerEvents:"initial"},al={pointerEvents:"none"};const sl="ew-resize",ll="default";function cl(){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 ul(){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?sl:ll}function dl(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 ml(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function pl(){const{size:e,start:t,end:n}=cl.call(this);this.renderer.render(this.elements(this.h,dl.call(this,e,t,n)))}function fl(){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?rl:Qs;return{container:{...il},before:{...il,...n.before,...t.before},after:{...il,...n.after,...t.after},thumb:{...il,...n.thumb,...t.thumb},startHandle:{...il,...ol,...n.startHandle},endHandle:{...il,...ol,...n.endHandle},startHandleBorder:{...il,...al,...n.startHandleBorder},endHandleBorder:{...il,...al,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var hl={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(){pl.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||!ml.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Bs({e:e});t&&(this.state.hover[t]=!0),ul.call(this),pl.call(this)},leave(){this.state.locked||(this.state.hover.reset(),ul.call(this),pl.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Bs({e:e});t&&(this.state.drag[t]=!0),ul.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),ul.call(this),pl.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}=cl.call(this);return this.elements(e,dl.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",[Fs]:"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",[Fs]:"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:fl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function gl({layoutService:e}){return e.meta.isContinuous&&zs({layoutService:e}).miniChart}function yl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(ss.TYPE.LINE),l=[...Rs({forceCreate:!0,key:as.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...Rs({key:as.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...Rs({key:as.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...As({key:as.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...As({key:as.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...ks({key:as.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...ks({key:as.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return gl(e)&&(l.push(...Rs({key:as.COLLECTION.REDUCED,source:as.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...Rs({key:as.COLLECTION.REDUCED_PRIMARY,source:as.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...Rs({key:as.COLLECTION.REDUCED_SECONDARY,source:as.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...As({key:as.COLLECTION.REDUCED_STACKED_PRIMARY,source:as.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===ss.TYPE.BAR)),colorService:i})),l.push(...As({key:as.COLLECTION.REDUCED_STACKED_SECONDARY,source:as.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===ss.TYPE.BAR)),colorService:i}))),l}const vl=({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 bl({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 xl=({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:vl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:bl({models:e})}},Sl=({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:vl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:bl({models:e})}};function El({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 Ml({viewCache:e,mainMajor:t}){return ne(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function Cl({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 Ol({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:Cl({viewState:t,viewCache:n,layoutService:o})};return{[as.SCALE.MAJOR]:ne(!0,{},m,{ticks:{level:"outer"}}),[as.SCALE.MAJOR_INNER]:ne(!0,{},m,{ticks:{level:"inner"}})}}function Tl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Ol({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[as.SCALE.MAJOR]:El({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[as.SCALE.MAJOR]:Sl({models:t,environment:i})}:{[as.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Sl({models:t,environment:i}):xl({models:t,environment:i})};return gl(t)?{...a,[as.SCALE.REDUCED]:Ml({viewCache:r,mainMajor:a[as.SCALE.MAJOR]})}:a}function wl({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 Al({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!gl({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 Rl({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{...Tl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[as.SCALE.MINOR.PRIMARY]:wl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[as.SCALE.MINOR.SECONDARY]:wl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[as.SCALE.MINOR.REDUCED_PRIMARY]:Al({layoutService:o,tickModel:s,dockService:u,environment:i}),[as.SCALE.MINOR.REDUCED_SECONDARY]:Al({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var kl={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 Nl=["all","labels"];function Il({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 Nl.some((e=>l[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?as.COMPONENT.AXIS.MINOR.PRIMARY:as.COMPONENT.AXIS.MINOR.SECONDARY,renderer:os(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:kl.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:Ya.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ya.axes.compensateForLayoutChanges({isMeasure:!0,dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock})}})))}var Ll={INACTIVE:.5},Pl={LOWER:3,UPPER:13};const Dl=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return be.getAdjustedMaxGlyphCount(t,r,0,"qText")};function ql({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=Dl({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:as.COMPONENT.AXIS.MAJOR,renderer:os(n),scale:as.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:kl.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>Pl.LOWER&&d<Pl.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:Ll.INACTIVE}}}]},animations:{enabled:s.enabled,trackBy:Ya.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ya.axes.compensateForLayoutChanges({isHorizontal:p})}}}function zl({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:as.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:os(t),scale:as.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:kl.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:Ya.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ya.axes.compensateForLayoutChanges({isContinuous:!0})}}}function $l({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:kl.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:Ya.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ya.axes.compensateForLayoutChanges({isTime:!0})}};return[ne(!0,{},h,{key:as.COMPONENT.AXIS.TIME_INNER,scale:as.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}}}),ne(!0,{},h,{key:as.COMPONENT.AXIS.TIME_OUTER,scale:as.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[zl({models:e,flags:n})]:[ql({models:e,environment:t,flags:n})]}const _l=({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,jl=({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 Fl({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:Ll.INACTIVE},...n}}}]}}var Bl={MAX:"max",MIN:"min"};function Hl(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 Vl=(e,t)=>`${e}-${t.id}`,Ul=4,Wl=12,Yl=4;function Gl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Yl}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(as.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Ul,Math.min(Wl,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const Xl=({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:Kl}=Ct;const Jl=({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 Hl(t,v)},x=Vl(as.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:as.SCALE.MAJOR,fn:jl({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?Kl(t)?function(e){return Ye(e).brighter(.5).toString()}(t):function(e){return Ye(e).darker().toString()}(t):t},size:Gl({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:Fl({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:Ll.INACTIVE}}}),animations:{enabled:u.enabled,isMainComponent:Xl({series:n}),trackBy:Ya.markers.trackBy,compensateForLayoutChanges:Ya.markers.compensateForLayoutChanges}}};function Zl({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(as.SCALE.MAJOR),c=s(as.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 Ql({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?Zl({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?Zl({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(as.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(as.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 ec=({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=jl({layoutService:r,seriesModel:i,rtl:l,orientation:c});return{key:Vl(as.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:as.SCALE.MAJOR,fn:u},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:Ql({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:Fl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:Ll.INACTIVE},inactive:{opacity:Ll.INACTIVE}}),animations:{enabled:s.enabled,isMainComponent:!!Xl({series:n})&&{filterFn:e=>e.commonPoints.length>0},trackBy:Ya.lines.trackBy,compensateForLayoutChanges:Ya.lines.compensateForLayoutChanges}}};var tc={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 nc({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 rc=3,ic=20;function oc({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}=tc,v=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=nc({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 Hl(t,x)};return{type:"point",key:Vl(as.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:as.SCALE.MAJOR,fn:jl({layoutService:r,seriesModel:o,rtl:b,orientation:p}),ref:"major"},sizeLimits:{minPx:rc,maxPx:ic},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:Fl({layoutService:r,active:{r:e=>e.r+tc.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;return[as.COMPONENT.AXIS_OVERLAY.CONTINUOUS,as.COMPONENT.AXIS_OVERLAY.TIME_INNER,as.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0))?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}}),animations:{enabled:d.enabled,trackBy:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.points.compensateForLayoutChanges}}}const ac=(e,{dataset:t},n=!1)=>{const{value:r,label:i,source:o}=n?e.segment:e.end,a=t(o.key).field(o.field);return de.shouldUseFormat(a.raw())?a.formatter()(r):i};function sc({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:`${as.COMPONENT.POINT_LABEL}-${m}`,renderer:os(r),layout:{displayOrder:2,minimumLayoutMode:kl.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,connect:i.options.showAsConnections,label:t=>ac(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${as.COMPONENT.POINT}-${m}`,allPoints:o.map((e=>`${as.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Hl(e.value,h))(e.data),labelSpace:{use:()=>{const t=e.component(as.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:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.labels.compensateForLayoutChanges}}}const lc=({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!(null==g||!g.showMarkerLabels)&&{type:"point-label",key:`${as.COMPONENT.MARKER_LABEL}-${m}`,renderer:os(r),layout:{displayOrder:2,minimumLayoutMode:kl.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:p,label:t=>ac(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${as.COMPONENT.MARKER}-${m}`,allPoints:o.map((e=>`${as.COMPONENT.MARKER}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Hl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(as.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:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.labels.compensateForLayoutChanges}}},cc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${as.COMPONENT.SLICED_HAT}-${Bl.MAX}`),i=e.component(`${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.PRIMARY}`),o=e.component(`${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.SECONDARY}`);return r?n=`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}`:i?n=`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.PRIMARY}`:o&&(n=`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.SECONDARY}`),n},uc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}`&&e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.PRIMARY}`&&e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MAX}-${ss.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MIN}`&&e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MIN}-${ss.AXIS.PRIMARY}`&&e!==`@${as.COMPONENT.SLICED_HAT}-${Bl.MIN}-${ss.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function dc({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:as.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:kl.LABEL_SPACE,dock:cc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${as.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(as.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(as.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 mc={min:"Min",max:"Max"};function pc(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 fc(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 hc(e,t,n){return pc(e,t,n)||fc(e,t,n)}function gc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function yc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function vc(e,t){return gc(e,t)||yc(e,t)}function bc({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${mc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Bl.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Bl.MAX?!gc(r,e):!yc(r,e)}({extrema:e,type:t}))}var xc=Object.freeze({__proto__:null,isMaxOutOfBounds:gc,isMinOutOfBounds:yc,isOutOfBounds:vc,isSegmentMaxOutOfBounds:pc,isSegmentMinOutOfBounds:fc,isSegmentOutOfBounds:hc,shouldShowOob:bc});const Sc={min:"Min",max:"Max"},Ec=({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===Bl.MAX,{isBarSeriesGrouped:C}=m.meta,O=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Bl.MAX?n:r;const o=e.component(`${as.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.PRIMARY}`),s=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.SECONDARY}`),l=e.component(as.COMPONENT.LABEL_SPACE),c=e.component(`${as.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.PRIMARY}`),d=e.component(`${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.SECONDARY}`);return o?i=`@${as.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.PRIMARY}`:s?i=`@${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.SECONDARY}`:c||u||d?l&&t===Bl.MAX?i=`@${as.COMPONENT.LABEL_SPACE}`:c?i=`@${as.COMPONENT.BAR_OOB}-${t}`:u?i=`@${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.PRIMARY}`:d&&(i=`@${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.SECONDARY}`):l&&t===Bl.MAX&&(i=`@${as.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:b,dock:v}),T=jl({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&&xc[`is${Sc[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:`${as.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:O,minimumLayoutMode:kl.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:as.SCALE.MAJOR,fn:T},markerOffset:uc({dockPosition:O,orientation:x,rtl:y})},brush:Fl({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:Ya.lineOobs.compensateForLayoutChanges}}},Mc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Cc({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(`${as.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=Mc[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=Mc[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 Oc=({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 Tc(e){return Math.min(Math.max(0,e),1)}const wc=({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?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY,x=i?as.SCALE.MINOR.PRIMARY:as.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 Tc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:v(e))(e);return Tc(e.scale(t))}}}:{scale:x,start:{ref:"start",fn:e=>{const t=v(e);return Tc(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 Tc(e.scale(n))}}},E=(i?d:m).query.getExtrema(),M=h?({start:e,end:t})=>hc(e.value,t.value,E):({end:e})=>vc(e.value,E);return{type:"box",key:`${as.COMPONENT.BAR}-${b}`,data:{filter:(()=>{if(h)return;const e=l.query.series(ss.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:h?i?as.COLLECTION.STACKED_PRIMARY:as.COLLECTION.STACKED_SECONDARY:i?as.COLLECTION.PRIMARY:as.COLLECTION.SECONDARY},preferredSize:f?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:as.SCALE.MAJOR,fn:_l({layoutService:o,axis:b}),ref:f?{start:"major",end:"major"}:void 0},minor:S,box:{width:Oc({isContinuous:f,isBarSeriesGrouped:g,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:y}),minWidthPx:f?Cc({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:Fl({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:Ll.INACTIVE}}}),animations:{enabled:p.enabled,isMainComponent:Xl({isPrimary:i,seriesModel:l}),trackBy:Ya.bars.trackBy,compensateForLayoutChanges:Ya.bars.compensateForLayoutChanges}}},Ac=({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?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${as.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?as.COLLECTION.STACKED_TOTAL_PRIMARY:as.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:as.SCALE.MAJOR,fn:_l({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Oc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?Cc({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 Rc(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=>Ct.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 kc="vertical",Nc="horizontal";function Ic(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===kc&&i<0?o="down":t===Nc&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const Lc=(e,t)=>{const{showBarLabels:n,showBarSegmentLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!i||!o&&!!r},Pc=(e,t)=>{const{showBarLabels:n,showBarTotalLabels:r}=e;if(!n)return!1;const{isBarSeriesStacked:i,isContinuous:o}=t;return!!i&&(!!o||!1!==r)};function Dc(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 qc=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s,animationsModel:l}=e,{meta:c}=i,{isBarSeriesStacked:u}=c,d="rtl"===t.options.direction,m=s.getStyles(),p=a.query.bar.label.getStyle(),f=e.layoutService.getLayoutValue("dataPoint",{}),h=r?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!Lc(f,c))return!1;let g;!u&&(g=u?1:0);const y={label:e=>ac(e.data,e,u),simplifiedPlacements:Dc(g,0===g?1:0,u?.5:1,c.isContinuous),style:m.label.value},v=[Rc(e,y)],b={component:`${as.COMPONENT.BAR}-${h}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Ic(t.data.end.value,e.dockService.meta.minor.orientation,d,0),labels:v,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily}}},x=[b];return{type:"labels",key:`${as.COMPONENT.BAR_LABEL}-${h}`,renderer:os(n),layout:{minimumLayoutMode:kl.VALUE_LABEL},settings:{sources:x},animations:{enabled:l.enabled,trackBy:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.labels.compensateForLayoutChanges}}};function zc(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 $c({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",{}),u=i?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!Pc(c,o))return!1;const d=!Lc(c,o),m=l.useContrastColor,p=e.formatter(i?as.FORMATTER.PRIMARY:as.FORMATTER.SECONDARY)||(e=>e),f=e=>p(e),h={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":f(e.data.sumOfPositives.value),simplifiedPlacements:zc("outside",d,m,o.isContinuous),style:s.label.value},g={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":f(e.data.sumOfNegatives.value),simplifiedPlacements:zc("opposite",d,m,o.isContinuous),style:s.label.value},y=[Rc(t,h),Rc(t,g)];return{type:"labels",key:`${as.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:os(r),layout:{displayOrder:2,minimumLayoutMode:kl.VALUE_LABEL},settings:{sources:[{component:`${as.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Ic(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:y,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]},animations:{enabled:t.animationsModel.enabled,trackBy:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.labels.compensateForLayoutChanges}}}var _c=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 jc={min:"Min",max:"Max"},Fc=1e-12;function Bc({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?Ac({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):wc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Bl.MAX,b=o?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${jc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!_c[`has${jc[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${jc[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?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.PRIMARY}`),a=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${as.COMPONENT.SLICED_HAT}-${t}-${ss.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:`${as.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:ne({},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)<Fc?t:e}(e.datum[x].value);return v?n>t:n<t},width:Oc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Fl({layoutService:a})};return M}const Hc={min:"Min",max:"Max"},Vc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Uc({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?Ac({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):wc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),g=o?l.query.getExtrema():c.query.getExtrema(),y=n===Bl.MAX?g.implicit.bar.max:g.implicit.bar.min,v=Number(y.toFixed(13)),b=o?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY;if(!h)return!1;if(!xc[`is${Hc[n]}OutOfBounds`](v,g))return!1;const x=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Bl.MAX?n:r;const a=e.component(as.COMPONENT.LABEL_SPACE),s=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.PRIMARY}`),l=e.component(`${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.SECONDARY}`),c=e.component(`${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.PRIMARY}`),u=e.component(`${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.SECONDARY}`);return s?o=`@${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.PRIMARY}`:l?o=`@${as.COMPONENT.SLICED_HAT}-${t}-${ss.AXIS.SECONDARY}`:c&&u&&!i?o=`@${as.COMPONENT.BAR_OOB}-${t}-${ss.AXIS.PRIMARY}`:a&&t===Bl.MAX&&(o=`@${as.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:m,start:p,isPrimary:o});let S="end";f&&(S=n===Bl.MAX?"sumOfPositives":"sumOfNegatives");const E={type:"box-out-of-bounds",key:`${as.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:ve.getDockValue(n===Bl.MAX?m:p),oob:ne({},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=xc[`is${Hc[n]}OutOfBounds`](e.datum[S].value,g,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Vc[n]].value;return 0!==i&&xc[`is${Hc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:S,extrema:g}))&&i;return o}})},brush:Fl({layoutService:a}),animations:{enabled:d.enabled,compensateForLayoutChanges:Ya.barOobs.compensateForLayoutChanges}};return E}function Wc(e){return Math.min(Math.max(0,e),1)}const Yc=({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?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY),p=r?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Bl.MAX;if(!bc({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:`${as.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(ss.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?as.COLLECTION.STACKED_TOTAL_PRIMARY:as.COLLECTION.STACKED_TOTAL_SECONDARY:r?as.COLLECTION.PRIMARY:as.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:as.SCALE.MAJOR,fn:_l({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Wc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Wc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Wc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Wc(e.scale(t))}}},box:{width:Oc({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 Gc(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 Xc=({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?as.FORMATTER.PRIMARY:as.FORMATTER.SECONDARY),b=a.getLayoutValue("dataPoint",{}),x="horizontal"===s.meta.major.orientation,S="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!y&&!Lc(b,g)||y&&!Pc(b,g))return!1;const E=o?l.query.getExtrema():c.query.getExtrema();if(!E.meta.hasExplicit)return!1;const M=n===Bl.MAX?E.implicit.bar.max:E.implicit.bar.min;if(!(n===Bl.MAX?gc(M,E):yc(M,E)))return!1;let C=e=>ac(e.data,e);g.isBarSeriesStacked&&(C=n===Bl.MAX?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(gc(e.data.sumOfNegatives.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(yc(e.data.sumOfPositives.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:Gc("outside",true,g.isContinuous,x,S),style:f.label.value},T={label:C,simplifiedPlacements:Gc("opposite",true,g.isContinuous,x,S),style:f.label.value},w=[Rc(t,O),Rc(t,T)],A=o?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY,R="horizontal"===s.meta.major.orientation?"down":"right",k=[{component:`${as.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:`${as.COMPONENT.BAR_OOB_LABEL}-${n}-${A}`,type:"labels",renderer:os(i),layout:{minimumLayoutMode:kl.VALUE_LABEL},settings:{sources:k},animations:{enabled:p.enabled,trackBy:Ya.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ya.labels.compensateForLayoutChanges}}},Kc=({chart:e,models:t,viewState:n,viewCache:r})=>[wc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),wc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Jc=({chart:e,models:t,viewState:n,viewCache:r})=>[Ac({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Ac({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Zc=({chart:e,models:t,environment:n,flags:r})=>{const i=$c({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),o=$c({chart:e,models:t,environment:n,flags:r,isPrimary:!1});return[qc({models:t,environment:n,flags:r,isPrimary:!0}),qc({models:t,environment:n,flags:r,isPrimary:!1}),i,o]},Qc=({chart:e,models:t,viewCache:n,viewState:r})=>[Bc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Bc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Bc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Bc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],eu=({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})],tu=({chart:e,models:t})=>[Yc({chart:e,models:t,type:"max",isPrimary:!0}),Yc({chart:e,models:t,type:"min",isPrimary:!0}),Yc({chart:e,models:t,type:"max",isPrimary:!1}),Yc({chart:e,models:t,type:"min",isPrimary:!1})],nu=({chart:e,models:t,environment:n,flags:r})=>[Xc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Xc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Xc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Xc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],ru=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(ss.TYPE.BAR).slice(-1),l=a.query.series(ss.TYPE.LINE),c=a.query.series(ss.TYPE.MARKER);return[...Kc({chart:e,models:r,viewState:i,viewCache:o}),...Jc({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>ec({models:r,environment:t,series:e}))),...l.map((e=>oc({models:r,series:e,environment:t}))),...c.map((n=>Jl({chart:e,models:r,series:n,environment:t}))),...l.map((i=>sc({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...c.map((i=>lc({chart:e,models:r,environment:t,flags:n,series:i,markerSeries:c}))),...Zc({chart:e,models:r,environment:t,flags:n}),...Qc({chart:e,models:r,viewCache:o,viewState:i}),...eu({chart:e,models:r,viewCache:o,viewState:i}),...tu({chart:e,models:r}),...nu({chart:e,models:r,environment:t,flags:n}),Ec({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Ec({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),dc({chart:e,models:r,environment:t,lineSeries:l})]},iu={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function ou({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===iu.NONE)return!1;const c=i.getStyles(),u=n.meta.primarySeries.length>0;return{key:as.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:kl.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!a&&s===iu.WIDE)||((e,t)=>t%2==0),stroke:c.grid.line.major.color},minorTicks:{show:!a&&s===iu.NARROW,stroke:c.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:0===(null!=l?l:0)&&u?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY,animations:{enabled:o.enabled,trackBy:Ya.lines.trackBy,compensateForLayoutChanges:Ya.lines.compensateForLayoutChanges}}}function au({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:as.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:kl.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?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY,line:{stroke:o.getStyles().grid.line.highContrast.color}}]},animations:{enabled:d.enabled,trackBy:Ya.lines.trackBy,compensateForLayoutChanges:Ya.lines.compensateForLayoutChanges}}}function su({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:kl.GRID_LINE},ticks:{stroke:a.grid.line.major.color},minorTicks:{show:!1,stroke:a.grid.line.minor.color},animations:{enabled:r.enabled,trackBy:Ya.lines.trackBy,compensateForLayoutChanges:Ya.lines.compensateForLayoutChanges}};return o?[ne(!0,{},s,{key:"time-inner-grid",x:{scale:as.SCALE.MAJOR_INNER},ticks:{stroke:a.grid.line.minor.color}}),ne(!0,{},s,{key:"time-outer-grid",x:{scale:as.SCALE.MAJOR}})]:[ne(!0,{},s,{key:"continuous-grid",x:{scale:as.SCALE.MAJOR},minorTicks:{show:!0}})]}function lu({models:e}){return[ou({models:e}),au({models:e}),...su({models:e})]}function cu({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:as.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:kl.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 uu=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function du({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?as.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:as.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:kl.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:uu(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 mu({models:e,environment:t,actions:n,flags:r}){return[cu({models:e,environment:t,actions:n,flags:r}),...du({models:e,environment:t,actions:n,flags:r})]}function pu({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=zs({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:()=>Ps({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=()=>[Ls({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:Is.OPTIONS.BAR.value},deviceType:t.deviceType})}function fu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=wc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY;return a.key=`${as.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?as.COLLECTION.REDUCED_STACKED_PRIMARY:as.COLLECTION.REDUCED_STACKED_SECONDARY:i?as.COLLECTION.REDUCED_PRIMARY:as.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?as.SCALE.MINOR.REDUCED_PRIMARY:as.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=as.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function hu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(ss.TYPE.LINE).map((r=>{const i=ec({models:t,environment:e,series:r});return i.key=Vl(as.COMPONENT.MINI_CHART.LINE,r),i.data.collection=as.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?as.SCALE.MINOR.REDUCED_PRIMARY:as.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=as.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 gu({models:e,environment:t}){return e.seriesModel.query.series(ss.TYPE.MARKER).map((n=>{const r=Jl({models:e,environment:t,series:n});return r.key=Vl(as.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=as.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?as.SCALE.MINOR.REDUCED_PRIMARY:as.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=as.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function yu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return gl(t)?[fu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),fu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...hu({environment:i,models:t}),...gu({models:t,environment:i})]:[]}function vu({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=kl.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:as.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:as.SCALE.MAJOR_INNER,layout:{dock:`@${as.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:as.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:as.SCALE.MAJOR,layout:{dock:`@${as.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:as.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:as.SCALE.MAJOR,layout:{dock:`@${as.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function bu({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(ss.TYPE.BAR).filter((e=>e.isPrimary)),g=c.query.series(ss.TYPE.BAR).filter((e=>!e.isPrimary)),y=c.query.series(ss.TYPE.LINE),v=c.query.series(ss.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?rs({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.dock:a.meta.minor.opposite,scale:as.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:as.FORMATTER.PRIMARY,theme:p,localeInfo:d,rtl:f,key:as.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL,animationsEnabled:C}):[],T=S?rs({refLineModel:r,layoutService:i,colorModel:M,dock:E?a.meta.minor.opposite:a.meta.minor.dock,scale:as.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:as.FORMATTER.SECONDARY,theme:p,localeInfo:d,rtl:f,key:as.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2",animationsEnabled:C}):[];return[!!x&&Qa({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:as.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:as.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:kl.REFERENCE_LINE,animationsEnabled:C}),!!S&&Qa({refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:as.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:as.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:kl.REFERENCE_LINE,animationsEnabled:C}),Qa({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dockService:a,chart:e,scale:as.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:f,key:as.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:h.length?`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`:g.length?`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`:y.length?`${as.COMPONENT.LINE}-${y[0].id}`:v.length?`${as.COMPONENT.MARKER}-${v[0].id}`:`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`,minimumLayoutMode:kl.REFERENCE_LINE,animationsEnabled:C}),...O,...T,...rs({isDimension:!0,refLineModel:r,layoutService:i,colorModel:M,dock:a.meta.major.opposite,scale:as.SCALE.MAJOR,style:s.getStyles(),theme:p,localeInfo:d,rtl:f,key:as.COMPONENT.DIMENSION_REF_LINE_LABEL,animationsEnabled:C})]}function xu({layoutService:e}){return!!gl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:as.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function Su(e){return(null==e?void 0:e.type)||ss.TYPE.BAR}function Eu({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=>Su(e)===ss.TYPE.LINE)).map((e=>({key:Vl(as.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:as.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 Mu({models:{fieldModel:e}}){return{[as.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[as.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var Cu={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:Ou}=Cu;function Tu({layoutService:e,largeDataService:t}){const{maxNumPoints:n=Ou}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:wu}=Cu,Au=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=wu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Tu({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Ru}=Cu,{MAX_NUM_POINTS:ku,DEFAULT_NUM_POINTS:Nu,DEFAULT_NUM_LINES:Iu}=Cu,{DEFAULT_NUM_POINTS:Lu}=Cu,Pu=({layoutService:e,largeDataService:t})=>{if(!Tu({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Lu}=(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=Iu,maxNumPoints:o=Nu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Au({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>Iu||o>Nu)?Math.min(c,Math.ceil(ku/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Ru}=(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})},Du=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:Pu({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:Au({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function qu({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Tu({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Pu({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Au({layoutService:t,largeDataService:n}),fetch:(i,o)=>Du({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function zu(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function $u({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 _u(){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 ju(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=_u(),o=_u();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 Fu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Bu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=ju(e,t,n.qMatrix),i=Fu(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 Hu=2**.5,Vu=1/Hu,Uu=1e-6,Wu=Vu**44;function Yu(e){return e.qIsOtherCell}function Gu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Yu)){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(Yu)||t++})),t}(n)}const Xu={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Ku={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 Ju="…";function Zu(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function Qu(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]}${Ju}`).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=Zu(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:Zu(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 ed(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=Zu(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:Zu(i,n.minorGuideLine.strokeWidth),x2:o,y2:Zu(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function td(e){return e.filter((e=>e.show)).map((e=>ne({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var nd={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=Zu(1,t.line.strokeWidth);return{show:n.line.show,x1:Zu(0,t.line.strokeWidth),y1:r,x2:Zu(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=Qu(n,this),this.state.minor=ed(r,this)},render(){return[...td([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>ne({},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})))),...td(this.state.major.map((e=>e.guideLine))),...td(this.state.minor.map((e=>e.guideLine)))];var e}};function rd(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 id({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];rd(o,a)?(a.qTags.indexOf("$qualified")>-1?(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 od({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 ad=16;function sd({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+ad}))),r.clamp(n),i.rangeAndWidth}}}const ld=6;function cd({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>=ld,canFitHalfDayTicks:n=>n>=t*e.count()}}function ud({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=sd,queryFactory:s=cd}={attributesFactory:sd,queryFactory:cd}){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 dd({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=ud,mapper:a=id,resolver:s=od}={metaFactory:ud,mapper:id,resolver:od}){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 md=86400,pd=864e5;function fd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(pd*(e-Math.floor(e)))))}const hd=fd(0).getTime();function gd(e){return(e.getTime()-hd)/md/1e3}const yd=new Date,vd=new Date;function bd(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=>bd((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)=>(yd.setTime(+t),vd.setTime(+r),e(yd),e(vd),Math.floor(n(yd,vd))),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 xd=1e3,Sd=6e4,Ed=36e5,Md=864e5,Cd=6048e5,Od=bd((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*xd)}),((e,t)=>(t-e)/xd),(e=>e.getUTCSeconds()));Od.range;const Td=bd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xd)}),((e,t)=>{e.setTime(+e+t*Sd)}),((e,t)=>(t-e)/Sd),(e=>e.getMinutes()));Td.range;const wd=bd((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Sd)}),((e,t)=>(t-e)/Sd),(e=>e.getUTCMinutes()));wd.range;const Ad=bd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xd-e.getMinutes()*Sd)}),((e,t)=>{e.setTime(+e+t*Ed)}),((e,t)=>(t-e)/Ed),(e=>e.getHours()));Ad.range;const Rd=bd((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ed)}),((e,t)=>(t-e)/Ed),(e=>e.getUTCHours()));Rd.range;const kd=bd((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sd)/Md),(e=>e.getDate()-1));kd.range;const Nd=bd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Md),(e=>e.getUTCDate()-1));Nd.range;const Id=bd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Md),(e=>Math.floor(e/Md)));function Ld(e){return bd((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())*Sd)/Cd))}Id.range;const Pd=Ld(0),Dd=Ld(1),qd=Ld(2),zd=Ld(3),$d=Ld(4),_d=Ld(5),jd=Ld(6);function Fd(e){return bd((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)/Cd))}Pd.range,Dd.range,qd.range,zd.range,$d.range,_d.range,jd.range;const Bd=Fd(0),Hd=Fd(1),Vd=Fd(2),Ud=Fd(3),Wd=Fd(4),Yd=Fd(5),Gd=Fd(6);Bd.range,Hd.range,Vd.range,Ud.range,Wd.range,Yd.range,Gd.range;const Xd=bd((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()));Xd.range;const Kd=bd((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()));Kd.range;const Jd=bd((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()));Jd.every=e=>isFinite(e=Math.floor(e))&&e>0?bd((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,Jd.range;const Zd=bd((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()));Zd.every=e=>isFinite(e=Math.floor(e))&&e>0?bd((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,Zd.range;const Qd={second:1,minute:2,hour:3,day:4,month:5,year:6};function em({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 Zd.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Od.count(e,t),l=wd.count(e,t),c=Rd.count(e,t),u=Nd.count(e,t),d=Bd.count(e,t),m=Kd.count(e,t),p=Zd.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:Zd.every(1),formatter:r.year.formatter,offset:e=>Zd.offset(e,-1),floor:Zd.floor};if(s<=f)v.type=Qd.second,v.desc="second",v.count=s,v.interval=Od.every(1),v.formatter=r.second.formatter,v.offset=e=>Od.offset(e,-1),v.floor=Od.floor;else if(s/2<=f)v.type=Qd.second,v.desc="every other second",v.count=s/2,v.interval=Od.every(2),v.formatter=r.second.formatter,v.offset=e=>Od.offset(e,-2),v.floor=Od.floor;else if(s/5<=f)v.type=Qd.second,v.desc="every 5 second",v.count=s/5,v.interval=Od.every(5),v.formatter=r.second.formatter,v.offset=e=>Od.offset(e,-5),v.floor=Od.floor;else if(s/15<=f)v.type=Qd.second,v.desc="every 15 second",v.count=s/15,v.interval=Od.every(15),v.formatter=r.second.formatter,v.offset=e=>Od.offset(e,-15),v.floor=Od.floor;else if(s/30<=f)v.type=Qd.second,v.desc="every 30 second",v.count=s/30,v.interval=Od.every(30),v.formatter=r.second.formatter,v.offset=e=>Od.offset(e,-30),v.floor=Od.floor;else if(l<=h)v.type=Qd.minute,v.desc="minute",v.count=l,v.interval=wd.every(1),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-1),v.floor=wd.floor;else if(l/2<=h)v.type=Qd.minute,v.desc="every 2 minute",v.count=l/2,v.interval=wd.every(2),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-2),v.floor=wd.floor;else if(l/5<=h)v.type=Qd.minute,v.desc="every 5 minute",v.count=l/5,v.interval=wd.every(5),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-5),v.floor=wd.floor;else if(l/10<=h)v.type=Qd.minute,v.desc="every 10 minute",v.count=l/10,v.interval=wd.every(10),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-10),v.floor=wd.floor;else if(l/15<=h)v.type=Qd.minute,v.desc="every 15 minute",v.count=l/15,v.interval=wd.every(15),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-15),v.floor=wd.floor;else if(l/30<=h)v.type=Qd.minute,v.desc="every 30 minute",v.count=l/30,v.interval=wd.every(30),v.formatter=r.minute.formatter,v.offset=e=>wd.offset(e,-30),v.floor=wd.floor;else if(c<=h)v.type=Qd.hour,v.desc="hour",v.count=c,v.interval=Rd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-1),v.floor=Rd.floor;else if(c/2<=h)v.type=Qd.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Rd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-2),v.floor=Rd.floor;else if(c/3<=h)v.type=Qd.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Rd.every(3),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-3),v.floor=Rd.floor;else if(c/6<=h)v.type=Qd.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Rd.every(6),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-6),v.floor=Rd.floor;else if(c/12<=h||i)v.type=Qd.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Rd.every(12),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-12),v.floor=Rd.floor;else if(u<=g)v.type=Qd.day,v.desc="day",v.count=u,v.interval=Nd.every(1),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=Nd.floor;else if(u/2<=g)v.type=Qd.day,v.desc="every 2 day",v.count=u/2,v.interval=Nd.every(2),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-2),v.floor=Nd.floor;else if(u/3<=g)v.type=Qd.day,v.desc="every 3 day",v.count=u/3,v.interval=Nd.every(3),v.formatter=r.date.formatter,v.offset=e=>Nd.offset(e,-3),v.floor=Nd.floor;else if(d<=g)v.type=Qd.day,v.desc="week",v.count=d,v.interval=Bd.every(1),v.formatter=r.date.formatter,v.offset=e=>Bd.offset(e,-1),v.floor=Nd.floor;else if(d/2<=g)v.type=Qd.day,v.desc="every 2 week",v.count=d/2,v.interval=Bd.every(2),v.formatter=r.date.formatter,v.offset=e=>Bd.offset(e,-2),v.floor=Nd.floor;else if(m<=g)v.type=Qd.month,v.desc="month",v.count=m,v.interval=Kd.every(1),v.formatter=r.date.formatter,v.offset=e=>Kd.offset(e,-1),v.floor=Nd.floor;else if(m/3<=g)v.type=Qd.month,v.desc="quarter",v.count=m/3,v.interval=Kd.every(3),v.formatter=r.date.formatter,v.offset=e=>Kd.offset(e,-3),v.floor=Nd.floor;else if(m/6<=g)v.type=Qd.month,v.desc="half year",v.count=m/6,v.interval=Kd.every(6),v.formatter=r.date.formatter,v.offset=e=>Kd.offset(e,-6),v.floor=Nd.floor;else if(p<=y)v.type=Qd.year,v.desc="year",v.count=p,v.interval=Zd.every(1),v.formatter=r.year.formatter,v.offset=e=>Zd.offset(e,-1),v.floor=Zd.floor;else if(p/2<=y)v.type=Qd.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Zd.offset(e,-2),v.floor=Zd.floor;else if(p/5<=y)v.type=Qd.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Zd.offset(e,-5),v.floor=Zd.floor;else if(p/10<=y)v.type=Qd.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Zd.offset(e,-10),v.floor=Zd.floor;else{const e=Math.max(1,Math.floor(p/y));v.type=Qd.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Zd.offset(t,-e),v.floor=Zd.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<=Qd.hour){const n=t.getFormat("date"),r=e.ticks(Nd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(Nd.offset(r[0],-1)),p=(r.length?r:[Nd.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 tm=86400,nm=1440,rm={};function im(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function om(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=jo().domain([fd(l),fd(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)=>em({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:fd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(rm[[t,n,r,r,o]])return rm[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=fd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/tm,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/tm):y<2?(T=2,O=1/tm*2):y<5?(T=5,O=1/tm*5):y<10?(T=10,O=1/tm*10):y<30?(T=30,O=1/tm*30):v<1?(w=1,O=1/nm):v<2?(w=2,O=1/nm*2):v<5?(w=5,O=1/nm*5):v<10?(w=10,O=1/nm*10):v<30?(w=30,O=1/nm*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?im("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?im("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?im("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?im("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):w?im("minute",[l,c,u,0,0+E*w],[l,c,u,0,0+M*w],a.minute.formatter):im("second",[l,c,u,0,0,0+E*T],[l,c,u,0,0,0+M*T],a.second.formatter),C=gd(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:fd(e),end:fd(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,rm[[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?gd(t.start):"end"===i?gd(t.end):(gd(t.start)+gd(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:gd(t.start),end:gd(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const am=41000.2343433,sm=/t+/i,lm=16,cm=60;const um={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 dm(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 mm="continuousPan";var pm={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Xu,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=qu,snapshotFetcherFactory:c=$u,cacheFetcherFactory:u=zu,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(Uu,(r-n)*Wu))),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=Fu(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=>Bu(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=Fu(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=>Bu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Bu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return ne({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return ne({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Gu(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?Vu:Hu)*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:mm,pointers:1,threshold:10,enable(r,i){return this.started===mm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${mm}start`](n){n.preventDefault(),this.started=mm;const{min:i,max:o}=r.get("zoom");this[mm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${mm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[mm],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)})},[`${mm}end`](e){e.preventDefault(),this.started=!1},[`${mm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Ku,timeAxis:nd},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]=ne(!0,{},t[i],o)})),r}(t,um,n),{qAxis:i}=r,o=Rr(),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=>(dm(a,m),a.instance(e)),m.normInvert=e=>(dm(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:cm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:cm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:cm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:cm,formatter:void 0}};return i&&sm.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(am)).width+lm)})),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=fd(t[0].data.start),i=fd(t[n-1].data.start);return Nd.count(r,i)/n>=1?o.date:Rd.count(r,i)/n>0?o.minute:wd.count(r,i)/n>0?o.second:o.date},t}(r);return u=om(o.copy(),r,p),c=dd({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 fm=e=>e.meta.seriesComponentKeys[0],hm=(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 gm({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=pm,{layoutService:s,seriesModel:l}=t,c=fm(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===as.COMPONENT.LEGEND_CATEGORICAL));hm(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const ym="continuousPinchZoom";function vm({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=pm.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:[...Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Xs({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=[gm({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:fm(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=pm.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:ym,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:{[`${ym}start`](e){a.last=e.scale,e.preventDefault()},[`${ym}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:fm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const bm=({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}}}),xm="lasso",Sm=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:xm,enable(e,n){if(this.started===xm||!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!==xm&&(i.actions.select.emit("start",xm),this.chart.component(e).emit("lassoStart",t),this.started=xm)},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",xm),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Em=({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 Mm=({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 Cm=({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 Om(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=Cm(e,t,"range");return{interactions:[e.onEdited?Mm(e,t):null,r].filter(Boolean),components:[n]}}const Tm=/axis|legend/,wm=e=>e.some((e=>Tm.test(e.type)));function Am({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`,`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`,...n.query.series(ss.TYPE.MARKER).map((e=>Vl(as.COMPONENT.MARKER,e))),...n.query.series(ss.TYPE.LINE).map((e=>Vl(as.COMPONENT.POINT,e))),as.COMPONENT.AXIS.MAJOR,as.COMPONENT.AXIS_OVERLAY.TIME_INNER,as.COMPONENT.AXIS_OVERLAY.TIME_OUTER,as.COMPONENT.AXIS_OVERLAY.CONTINUOUS,as.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===[as.COMPONENT.AXIS.MAJOR,as.COMPONENT.AXIS_OVERLAY.TIME_INNER,as.COMPONENT.AXIS_OVERLAY.TIME_OUTER,as.COMPONENT.AXIS_OVERLAY.CONTINUOUS,as.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=>wm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Em(e,t)],components:[]}}(s,l)}function Rm({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,as.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:[Cm(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[as.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const km={components:[],interactions:[]};function Nm({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"))&&Om({eventName:"minorRange",key:"minor-range-brush",targets:[as.COMPONENT.AXIS.MINOR.PRIMARY,`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`,...i.query.series(ss.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Vl(as.COMPONENT.MARKER,e))),...i.query.series(ss.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Vl(as.COMPONENT.POINT,e)))],fillTargets:[as.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:as.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||km,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"))&&Om({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[as.COMPONENT.AXIS.MINOR.SECONDARY,`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`,...i.query.series(ss.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Vl(as.COMPONENT.MARKER,e))),...i.query.series(ss.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Vl(as.COMPONENT.POINT,e)))],fillTargets:[as.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:as.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||km,a=Rm({actions:e,models:n})||km,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?[as.COMPONENT.AXIS_OVERLAY.TIME_INNER,as.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[as.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Om({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`,`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`,...o.query.series(ss.TYPE.MARKER).map((e=>Vl(as.COMPONENT.MARKER,e))),...o.query.series(ss.TYPE.LINE).map((e=>Vl(as.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?as.SCALE.MAJOR_INNER:as.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(as.FORMATTER.PRIMARY),o=t.scale(as.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||km,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=`${as.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Om({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})||km;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function Im({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=bm(n);return{interactions:[Sm(n,t)],components:[r]}}(o,{actions:e})}function Lm({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:oe.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]:[...lu({models:t}),...Il({models:t,flags:r}),...ru({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Eu({models:t,environment:n}),...$l({models:t,environment:n,flags:r}),...mu({models:t,environment:n,actions:a,flags:r}),Vo({viewState:i,viewCache:o,layoutService:l,dockService:c}),...vu({models:t}),...bu({chart:e,models:t,environment:n}),pu({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),xu(t),...yu({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=Am({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=Nm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=Im({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:yl({models:n}),scales:Rl({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Mu({models:n}),interactions:vm({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const Pm=({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:Lm({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},Dm=[as.COMPONENT.AXIS_TITLE.MAJOR,as.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,as.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,as.COMPONENT.GRID_LINE,as.COMPONENT.ZERO_LINE],qm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:as.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),zm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:as.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const $m={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function _m(e){return $m[e]||e}function jm(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=_m(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=_m(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 Fm={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"},Bm={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"},Hm={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"},Vm={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"},Um={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"},Wm={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"},Ym={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"},Gm={single:"N",drillDown:"H",cyclic:"C"},Xm={N:void 0,H:Fm,C:Hm},Km=(e,t)=>{switch(e.qGrouping){case Gm.single:return;case Gm.drillDown:return{path:Fm,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Gm.cyclic:return{path:t?Bm:Hm,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 Jm(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=Ko.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 Zm(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=ne(!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}),Jm(e,a,c)}))}function Qm(e){return e.qGrouping===Gm.single?e.qFallbackTitle||"":e.title||""}const ep=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case Gm.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:Fm,groupItem:!0,title:e.title,selected:!1,children:n}}case Gm.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:Hm,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:Qm(e)}}},tp=(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))},np=async(e,t,n,r,i)=>{const o=await tp(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===Gm.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=Xm[s],c=s!==Gm.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){Zm(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function rp({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===Gm.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ep(l,i,a,e),n=c?await np(a,i,r,o,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function ip(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Gm.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Km(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Gm.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:Qm(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function op({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 tp(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){Zm(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function ap(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function sp(){return sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}var lp,cp,up,dp,mp,pp={exports:{}};function fp(){if(cp)return lp;cp=1;return lp="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hp(){if(dp)return up;dp=1;var e=fp();function t(){}function n(){}return n.resetWarningCache=t,up=function(){function r(t,n,r,i,o,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function gp(){return mp||(mp=1,pp.exports=hp()()),pp.exports}var yp=Q(gp()),vp={black:"#000",white:"#fff"},bp={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"},xp={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"},Sp={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"},Ep={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"},Mp={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"},Cp={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"},Op={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 Tp(){return Tp=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},Tp.apply(this,arguments)}function wp(e){return wp="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},wp(e)}function Ap(e){return e&&"object"===wp(e)&&e.constructor===Object}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Tp({},e):e;return Ap(e)&&Ap(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Ap(t[i])&&i in e?r[i]=Rp(e[i],t[i],n):r[i]=t[i])})),r}function kp(e){var t=function(e,t){if("object"!=wp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wp(t)?t:t+""}function Np(e,t,n){return(t=kp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ip(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 Lp(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 Pp(e){if(e.type)return e;if("#"===e.charAt(0))return Pp(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(Ip(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 Dp(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 qp(e){var t="hsl"===(e=Pp(e)).type?Pp(function(e){var t=(e=Pp(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])),Dp({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 zp(e,t){return e=Pp(e),t=Lp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Dp(e)}function $p(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=$p(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 jp=["xs","sm","md","lg","xl"];function Fp(e,t,n){var r;return Tp({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")),Tp({paddingLeft:t(2),paddingRight:t(2)},n,Np({},e.up("sm"),Tp({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Np(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Np(r,e.up("sm"),{minHeight:64}),r)},n)}var Bp={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:vp.white,default:Op[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}},Hp={text:{primary:vp.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:Op[800],default:"#303030"},action:{active:vp.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 Vp(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=Pp(e),t=Lp(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 Dp(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=Pp(e),t=Lp(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 Dp(e)}(e.main,o)))}function Up(e){var t=e.primary,n=void 0===t?{light:Sp[300],main:Sp[500],dark:Sp[700]}:t,r=e.secondary,i=void 0===r?{light:xp.A200,main:xp.A400,dark:xp.A700}:r,o=e.error,a=void 0===o?{light:bp[300],main:bp[500],dark:bp[700]}:o,s=e.warning,l=void 0===s?{light:Cp[300],main:Cp[500],dark:Cp[700]}:s,c=e.info,u=void 0===c?{light:Ep[300],main:Ep[500],dark:Ep[700]}:c,d=e.success,m=void 0===d?{light:Mp[300],main:Mp[500],dark:Mp[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=qp(e),r=qp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Hp.text.primary)>=g?Hp.text.primary:Bp.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=Tp({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ip(4,t));if("string"!=typeof e.main)throw new Error(Ip(5,JSON.stringify(e.main)));return Vp(e,"light",n,v),Vp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:Hp,light:Bp};return Rp(Tp({common:vp,type:f,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:Op,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function Wp(e){return Math.round(1e5*e)/1e5}function Yp(e){return Wp(e)}var Gp={textTransform:"uppercase"},Xp='"Roboto", "Helvetica", "Arial", sans-serif';function Kp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Xp: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 Tp({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===Xp?{letterSpacing:"".concat(Wp(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,Gp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,Gp)};return Rp(Tp({htmlFontSize:g,pxToRem:S,round:Yp,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Jp(){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 Zp=["none",Jp(0,2,1,-1,0,1,1,0,0,1,3,0),Jp(0,3,1,-2,0,2,2,0,0,1,5,0),Jp(0,3,3,-2,0,3,4,0,0,1,8,0),Jp(0,2,4,-1,0,4,5,0,0,1,10,0),Jp(0,3,5,-1,0,5,8,0,0,1,14,0),Jp(0,3,5,-1,0,6,10,0,0,1,18,0),Jp(0,4,5,-2,0,7,10,1,0,2,16,1),Jp(0,5,5,-3,0,8,10,1,0,3,14,2),Jp(0,5,6,-3,0,9,12,1,0,3,16,2),Jp(0,6,6,-3,0,10,14,1,0,4,18,3),Jp(0,6,7,-4,0,11,15,1,0,4,20,3),Jp(0,7,8,-4,0,12,17,2,0,5,22,4),Jp(0,7,8,-4,0,13,19,2,0,5,24,4),Jp(0,7,9,-4,0,14,21,2,0,5,26,4),Jp(0,8,9,-5,0,15,22,2,0,6,28,5),Jp(0,8,10,-5,0,16,24,2,0,6,30,5),Jp(0,8,11,-5,0,17,26,2,0,6,32,5),Jp(0,9,11,-5,0,18,28,2,0,7,34,6),Jp(0,9,12,-6,0,19,29,2,0,7,36,6),Jp(0,10,13,-6,0,20,31,3,0,8,38,7),Jp(0,10,13,-6,0,21,33,3,0,8,40,7),Jp(0,10,14,-6,0,22,35,3,0,8,42,7),Jp(0,11,14,-7,0,23,36,3,0,9,44,8),Jp(0,11,15,-7,0,24,38,3,0,9,46,8)],Qp={borderRadius:4};function ef(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 tf(e,t){if(e){if("string"==typeof e)return ef(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)?ef(e,t):void 0}}function nf(e){return function(e){if(Array.isArray(e))return ef(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tf(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 rf(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)||tf(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 of(){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 af={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)"},sf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lf(e){return"".concat(Math.round(e),"ms")}var cf={easing:af,duration:sf,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?sf.standard:n,i=t.easing,o=void 0===i?af.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:lf(r)," ").concat(o," ").concat("string"==typeof s?s:lf(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))}},uf={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function df(){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=Up(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=jp.indexOf(t);return r===jp.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[jp[r+1]]?n[jp[r+1]]:t)-a/100).concat(i,")")}return Tp({keys:jp,values:n,up:l,down:function(e){var t=jp.indexOf(e)+1,r=n[jp[t]];return t===jp.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=of(s),f=Rp({breakpoints:m,direction:"ltr",mixins:Fp(m,p,i),overrides:{},palette:d,props:{},shadows:Zp,typography:Kp(d,c),spacing:p,shape:Qp,transitions:cf,zIndex:uf},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 Rp(e,t)}),f)}var mf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",pf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ff(){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!==pf.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[mf]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function hf(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 gf="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},yf="object"===("undefined"==typeof window?"undefined":gf(window))&&"object"===("undefined"==typeof document?"undefined":gf(document))&&9===document.nodeType;function vf(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,kp(r.key),r)}}function bf(e,t,n){return t&&vf(e.prototype,t),n&&vf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xf(e,t){return xf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xf(e,t)}function Sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xf(e,t)}function Ef(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Mf={}.constructor;function Cf(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Cf);if(e.constructor!==Mf)return e;var t={};for(var n in e)t[n]=Cf(e[n]);return t}function Of(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Cf(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Tf=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},wf=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+=Tf(e[n]," ");else t=Tf(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Af(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Rf(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function kf(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=Af(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+=Rf(m+":"+c+wf(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=Rf(f+":"+c+wf(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Rf(g+":"+c+wf(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Rf(""+e+c+"{"+r,--o)+Rf("}",o)):r}var Nf=/([[\].#*$><+~=|^:(),"'`\s])/g,If="undefined"!=typeof CSS&&CSS.escape,Lf=function(e){return If?If(e):e.replace(Nf,"\\$1")},Pf=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}(),Df=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(Ef(Ef(i)),s),i.selectorText="."+Lf(i.id)),i}Sf(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]=wf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Tp({},e,{allowEmpty:!0}):e;return kf(this.selectorText,this.style,n)},bf(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}(Pf),qf={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Df(e,t,n)}},zf={indent:1,children:!0},$f=/@([\w-]+)/,_f=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match($f);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new ch(Tp({},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=zf);var t=Af(e).linebreak;if(null==e.indent&&(e.indent=zf.indent),null==e.children&&(e.children=zf.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),jf=/@container|@media|@supports\s+/,Ff={onCreateRule:function(e,t,n){return jf.test(e)?new _f(e,t,n):null}},Bf={indent:1,children:!0},Hf=/@keyframes\s+([\w-]+)/,Vf=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Hf);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:Lf(a(this,o)),this.rules=new ch(Tp({},n,{parent:this})),t)this.rules.add(s,t[s],Tp({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Bf);var t=Af(e).linebreak;if(null==e.indent&&(e.indent=Bf.indent),null==e.children&&(e.children=Bf.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}(),Uf=/@keyframes\s+/,Wf=/\$([\w-]+)/g,Yf=function(e,t){return"string"==typeof e?e.replace(Wf,(function(e,n){return n in t?t[n]:e})):e},Gf=function(e,t,n){var r=e[t],i=Yf(r,n);i!==r&&(e[t]=i)},Xf={onCreateRule:function(e,t,n){return"string"==typeof e&&Uf.test(e)?new Vf(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Gf(e,"animation-name",n.keyframes),"animation"in e&&Gf(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 Yf(e,r.keyframes);default:return e}}},Kf=function(e){function t(){return e.apply(this,arguments)||this}return Sf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Tp({},e,{allowEmpty:!0}):e;return kf(this.key,this.style,n)},t}(Pf),Jf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Kf(e,t,n):null}},Zf=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=Af(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=kf(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return kf(this.at,this.style,e)},e}(),Qf=/@font-face/,eh={onCreateRule:function(e,t,n){return Qf.test(e)?new Zf(e,t,n):null}},th=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 kf(this.key,this.style,e)},e}(),nh={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new th(e,t,n):null}},rh=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}(),ih={"@charset":!0,"@import":!0,"@namespace":!0},oh={onCreateRule:function(e,t,n){return e in ih?new rh(e,t,n):null}},ah=[qf,Ff,Xf,Jf,eh,nh,oh],sh={process:!0},lh={force:!0,process:!0},ch=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=Tp({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="."+Lf(this.classes[d]));var m=Of(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=Tp({},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 Df?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Vf&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Df?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Vf&&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=sh);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,lh)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,lh)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Af(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}(),uh=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Tp({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ch(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}(),dh=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}(),mh=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=$p(t,["attached"]),i=Af(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},bf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ph=new mh,fh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),hh="2f1acc6c3a606b082e5eef5e54414ffb";null==fh[hh]&&(fh[hh]=0);var gh=fh[hh]++,yh=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")+gh+i+t:o+n.key+"-"+gh+(i?"-"+i:"")+"-"+t}},vh=function(e){var t;return function(){return t||(t=e()),t}},bh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},xh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=wf(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},Sh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Eh=function(e,t){return e.selectorText=t,e.selectorText===t},Mh=vh((function(){return document.querySelector("head")}));function Ch(e){var t=ph.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=Mh(),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 Oh=vh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Th=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]},wh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ah=function(){function e(e){this.getPropertyValue=bh,this.setProperty=xh,this.removeProperty=Sh,this.setSelector=Eh,this.hasInsertedRules=!1,this.cssRules=[],e&&ph.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=Oh();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=Ch(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 Mh().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=wh(n,t);if(!1===(i=Th(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=wh(n,t),l=Th(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 uh&&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}(),Rh=0,kh=function(){function e(e){this.id=Rh++,this.version="10.10.0",this.plugins=new dh,this.options={id:{minify:!1},createGenerateId:yh,Renderer:yf?Ah:null,plugins:[]},this.generateId=yh({minify:!1});for(var t=0;t<ah.length;t++)this.plugins.use(ah[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=Tp({},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===ph.index?0:ph.index+1);var r=new uh(e,Tp({},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(),ph.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=Tp({},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=Of(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}(),Nh=function(e){return new kh(e)},Ih="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Lh(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=Lh(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
- */kh();var Lh=Date.now(),Ph="fnValues"+Lh,Dh="fnStyle"+ ++Lh,qh=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Cf(e,{},n);return r[Dh]=t,r},onProcessStyle:function(e,t){if(Ph in t||Dh 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[Ph]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Dh];o&&(i.style=o(e)||{});var a=i[Ph];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},zh="@global",$h="@global ",_h=function(){function e(e,t,n){for(var r in this.type="global",this.at=zh,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new lh(Op({},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}(),jh=function(){function e(e,t,n){this.type="global",this.at=zh,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr($h.length);this.rule=n.jss.createRule(r,t,Op({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Fh=/\s*,\s*/g;function Bh(e,t){for(var n=e.split(Fh),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Hh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===zh)return new _h(e,t,n);if("@"===e[0]&&e.substr(0,$h.length)===$h)return new jh(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[zh]:null;if(i){for(var o in i)t.addRule(o,i[o],Op({},n,{selector:Bh(o,e.selector)}));delete r[zh]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,zh.length)===zh){var o=Bh(i.substr(zh.length),e.selector);t.addRule(o,r[i],Op({},n,{selector:o})),delete r[i]}}(e,t))}}}var Vh=/\s*,\s*/g,Uh=/&/g,Wh=/\$([\w-]+)/g;function Yh(){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(Vh),r=e.split(Vh),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(Uh,a):a+" "+l}return i}function n(e,t,n){if(n)return Op({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Op({},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(Wh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Op({},a,{selector:p})):c.addRule(f,r[u],Op({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Gh=/[A-Z]/g,Xh=/^ms-/,Kh={};function Jh(e){return"-"+e.toLowerCase()}function Zh(e){if(Kh.hasOwnProperty(e))return Kh[e];var t=e.replace(Gh,Jh);return Kh[e]=Xh.test(t)?"-"+t:t}function Qh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Zh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Qh):t.fallbacks=Qh(e.fallbacks)),t}var eg=Nh&&CSS?CSS.px:"px",tg=Nh&&CSS?CSS.ms:"ms",ng=Nh&&CSS?CSS.percent:"%";function rg(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 ig=rg({"animation-delay":tg,"animation-duration":tg,"background-position":eg,"background-position-x":eg,"background-position-y":eg,"background-size":eg,border:eg,"border-bottom":eg,"border-bottom-left-radius":eg,"border-bottom-right-radius":eg,"border-bottom-width":eg,"border-left":eg,"border-left-width":eg,"border-radius":eg,"border-right":eg,"border-right-width":eg,"border-top":eg,"border-top-left-radius":eg,"border-top-right-radius":eg,"border-top-width":eg,"border-width":eg,"border-block":eg,"border-block-end":eg,"border-block-end-width":eg,"border-block-start":eg,"border-block-start-width":eg,"border-block-width":eg,"border-inline":eg,"border-inline-end":eg,"border-inline-end-width":eg,"border-inline-start":eg,"border-inline-start-width":eg,"border-inline-width":eg,"border-start-start-radius":eg,"border-start-end-radius":eg,"border-end-start-radius":eg,"border-end-end-radius":eg,margin:eg,"margin-bottom":eg,"margin-left":eg,"margin-right":eg,"margin-top":eg,"margin-block":eg,"margin-block-end":eg,"margin-block-start":eg,"margin-inline":eg,"margin-inline-end":eg,"margin-inline-start":eg,padding:eg,"padding-bottom":eg,"padding-left":eg,"padding-right":eg,"padding-top":eg,"padding-block":eg,"padding-block-end":eg,"padding-block-start":eg,"padding-inline":eg,"padding-inline-end":eg,"padding-inline-start":eg,"mask-position-x":eg,"mask-position-y":eg,"mask-size":eg,height:eg,width:eg,"min-height":eg,"max-height":eg,"min-width":eg,"max-width":eg,bottom:eg,left:eg,top:eg,right:eg,inset:eg,"inset-block":eg,"inset-block-end":eg,"inset-block-start":eg,"inset-inline":eg,"inset-inline-end":eg,"inset-inline-start":eg,"box-shadow":eg,"text-shadow":eg,"column-gap":eg,"column-rule":eg,"column-rule-width":eg,"column-width":eg,"font-size":eg,"font-size-delta":eg,"letter-spacing":eg,"text-decoration-thickness":eg,"text-indent":eg,"text-stroke":eg,"text-stroke-width":eg,"word-spacing":eg,motion:eg,"motion-offset":eg,outline:eg,"outline-offset":eg,"outline-width":eg,perspective:eg,"perspective-origin-x":ng,"perspective-origin-y":ng,"transform-origin":ng,"transform-origin-x":ng,"transform-origin-y":ng,"transform-origin-z":ng,"transition-delay":tg,"transition-duration":tg,"vertical-align":eg,"flex-basis":eg,"shape-margin":eg,size:eg,gap:eg,grid:eg,"grid-gap":eg,"row-gap":eg,"grid-row-gap":eg,"grid-column-gap":eg,"grid-template-rows":eg,"grid-template-columns":eg,"grid-auto-rows":eg,"grid-auto-columns":eg,"box-shadow-x":eg,"box-shadow-y":eg,"box-shadow-blur":eg,"box-shadow-spread":eg,"font-line-height":eg,"text-shadow-x":eg,"text-shadow-y":eg,"text-shadow-blur":eg});function og(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=og(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=og(i,t[i],n);else for(var o in t)t[o]=og(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ig[e];return!a||0===t&&a===eg?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ag(e){void 0===e&&(e={});var t=rg(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=og(r,e[r],t);return e},onChangeValue:function(e,n){return og(n,e,t)}}}var sg="",lg="",cg="",ug="",dg=gf&&"ontouchstart"in document.documentElement;if(gf){var mg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pg=document.createElement("p").style;for(var fg in mg)if(fg+"Transform"in pg){sg=fg,lg=mg[fg];break}"Webkit"===sg&&"msHyphens"in pg&&(sg="ms",lg=mg.ms,ug="edge"),"Webkit"===sg&&"-apple-trailing-word"in pg&&(cg="apple")}var hg={js:sg,css:lg,vendor:cg,browser:ug,isTouch:dg};var gg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===hg.js?"-webkit-"+e:hg.css+e)}},yg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===hg.js?hg.css+"print-"+e:e)}},vg=/[-\s]+(.)?/g;function bg(e,t){return t?t.toUpperCase():""}function xg(e){return e.replace(vg,bg)}function Sg(e){return xg("-"+e)}var Eg,Mg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===hg.js){var n="mask-image";if(xg(n)in t)return e;if(hg.js+Sg(n)in t)return hg.css+e}return e}},Cg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==hg.vendor||hg.isTouch?e:hg.css+e)}},Og={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:hg.css+e)}},Tg={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:hg.css+e)}},wg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===hg.js||"ms"===hg.js&&"edge"!==hg.browser?hg.css+e:e)}},Ag={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===hg.js||"ms"===hg.js||"apple"===hg.vendor?hg.css+e:e)}},Rg={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===hg.js?"WebkitColumn"+Sg(e)in t&&hg.css+"column-"+e:"Moz"===hg.js&&("page"+Sg(e)in t&&"page-"+e))}},kg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===hg.js)return e;var n=e.replace("-inline","");return hg.js+Sg(n)in t&&hg.css+n}},Ng={supportedProperty:function(e,t){return xg(e)in t&&e}},Ig={supportedProperty:function(e,t){var n=Sg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:hg.js+n in t?hg.css+e:"Webkit"!==hg.js&&"Webkit"+n in t&&"-webkit-"+e}},Lg={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===hg.js?""+hg.css+e:e)}},Pg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===hg.js?hg.css+"scroll-chaining":e)}},Dg={"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"},qg={supportedProperty:function(e,t){var n=Dg[e];return!!n&&(hg.js+Sg(n)in t&&hg.css+n)}},zg={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(zg),_g=function(e){return hg.css+e},jg={supportedProperty:function(e,t,n){var r=n.multiple;if($g.indexOf(e)>-1){var i=zg[e];if(!Array.isArray(i))return hg.js+Sg(i)in t&&hg.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(hg.js+Sg(i[0])in t))return!1;return i.map(_g)}return!1}},Fg=[gg,yg,Mg,Cg,Og,Tg,wg,Ag,Rg,kg,Ng,Ig,Lg,Pg,qg,jg],Bg=Fg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Hg=Fg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,tf(t.noPrefill)),e}),[]),Vg={};if(gf){Eg=document.createElement("p");var Ug=window.getComputedStyle(document.documentElement,"");for(var Wg in Ug)isNaN(Wg)||(Vg[Ug[Wg]]=Ug[Wg]);Hg.forEach((function(e){return delete Vg[e]}))}function Yg(e,t){if(void 0===t&&(t={}),!Eg)return e;if(null!=Vg[e])return Vg[e];"transition"!==e&&"transform"!==e||(t[e]=e in Eg.style);for(var n=0;n<Bg.length&&(Vg[e]=Bg[n](e,Eg.style,t),!Vg[e]);n++);try{Eg.style[e]=""}catch(e){return!1}return Vg[e]}var Gg,Xg={},Kg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Jg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Zg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Yg(t):", "+Yg(n);return r||(t||n)}function Qg(e,t){var n=t;if(!Gg||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Xg[r])return Xg[r];try{Gg.style[e]=n}catch(e){return Xg[r]=!1,!1}if(Kg[e])n=n.replace(Jg,Zg);else if(""===Gg.style[e]&&("-ms-flex"===(n=hg.css+n)&&(Gg.style[e]="-ms-flexbox"),Gg.style[e]=n,""===Gg.style[e]))return Xg[r]=!1,!1;return Gg.style[e]="",Xg[r]=n,Xg[r]}function ey(){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=Yg(n);o&&o!==n&&(i=!0);var a=!1,s=Qg(o,Tf(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"===hg.js?e:"@"+hg.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Qg(t,Tf(e))||e}}}function ty(){return{plugins:[qh(),Hh(),Yh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Qh(e[t]);return e}return Qh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Zh(t);return t===r?e:(n.prop(r,e),null)}},ag(),"undefined"==typeof window?null:ey(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function 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=Op({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}gf&&(Gg=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=kh(ty()),cy={disableGeneration:!1,generateClassName:pf(),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=Op({},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=kh({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=Op({},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,Op({link:!1},l))).attach(),i.sheetsCache&&iy.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Ih(d)}if(s.dynamicStyles){var m=i.jss.createStyleSheet(s.dynamicStyles,Op({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=Op({},i);return Object.keys(o).forEach((function(e){a[e]=Ap(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=Op({},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,by,xy,Sy,Ey={exports:{}},My={};function Cy(){return by||(by=1,Ey.exports=function(){if(vy)return My;vy=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case a:return e;default:return m}}case n:return m}}}function x(e){return b(e)===c}return My.AsyncMode=l,My.ConcurrentMode=c,My.ContextConsumer=s,My.ContextProvider=a,My.Element=t,My.ForwardRef=u,My.Fragment=r,My.Lazy=f,My.Memo=p,My.Portal=n,My.Profiler=o,My.StrictMode=i,My.Suspense=d,My.isAsyncMode=function(e){return x(e)||b(e)===l},My.isConcurrentMode=x,My.isContextConsumer=function(e){return b(e)===s},My.isContextProvider=function(e){return b(e)===a},My.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},My.isForwardRef=function(e){return b(e)===u},My.isFragment=function(e){return b(e)===r},My.isLazy=function(e){return b(e)===f},My.isMemo=function(e){return b(e)===p},My.isPortal=function(e){return b(e)===n},My.isProfiler=function(e){return b(e)===o},My.isStrictMode=function(e){return b(e)===i},My.isSuspense=function(e){return b(e)===d},My.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},My.typeOf=b,My}()),Ey.exports}var Oy=function(){if(Sy)return xy;Sy=1;var e=Cy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return xy=function e(t,r,i){if("string"!=typeof r){if(d){var m=u(r);m&&m!==d&&e(t,m,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var f=o(t),h=o(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||i&&i[y]||h&&h[y]||f&&f[y])){var v=c(r,y);try{a(t,y,v)}catch(e){}}}}return t},xy}(),Ty=Q(Oy);function wy(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(Op({theme:e},n))}}}:{root:t},l=hy(s,Op({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,Op({className:yy(s.props.className,p)},f));if("function"==typeof s)return s(Op({className:p},f));var h=d||e;return j.createElement(h,Op({ref:r,className:p},f),s)}));return Ty(c,e),c}}function Ay(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):Op({},e,t)}(r,n);return null!=e&&(e[df]=null!==r),e}),[n,r]);return j.createElement(oy.Provider,{value:i},t)}var Ry=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,Op({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(Op({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=ay()||r,a&&(d=ff({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),j.createElement(n,Op({ref:s||t,classes:u},d))}));return Ty(u,n),u}},ky=uf(),Ny=function(e){var t=wy(e);return function(e,n){return t(e,Op({defaultTheme:ky},n))}};function Iy(e,t){return Ry(e,Op({defaultTheme:ky},t))}function Ly(e){if("string"!=typeof e)throw new Error(Np(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Py(){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 Dy(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=Dy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function qy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Dy(e))&&(r&&(r+=" "),r+=t);return r}function zy(e){return e&&e.ownerDocument||document}function $y(e){return zy(e).defaultView||window}function _y(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var jy="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;function Fy(e){var t=F.useRef(e);return jy((function(){t.current=e})),F.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function By(e,t){return F.useMemo((function(){return null==e&&null==t?null:function(n){_y(e,n),_y(t,n)}}),[e,t])}var Hy=!0,Vy=!1,Uy=null,Wy={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 Yy(e){e.metaKey||e.altKey||e.ctrlKey||(Hy=!0)}function Gy(){Hy=!1}function Xy(){"hidden"===this.visibilityState&&Vy&&(Hy=!0)}function Ky(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Hy||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Wy[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Jy(){Vy=!0,window.clearTimeout(Uy),Uy=window.setTimeout((function(){Vy=!1}),100)}function Zy(){var e=F.useCallback((function(e){var t,n=Y.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Yy,!0),t.addEventListener("mousedown",Gy,!0),t.addEventListener("pointerdown",Gy,!0),t.addEventListener("touchstart",Gy,!0),t.addEventListener("visibilitychange",Xy,!0))}),[]);return{isFocusVisible:Ky,onBlurVisible:Jy,ref:e}}var Qy=!1,ev=j.createContext(null),tv="unmounted",nv="exited",rv="entering",iv="entered",ov="exiting",av=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=nv,r.appearStatus=rv):i=iv:i=t.unmountOnExit||t.mountOnEnter?tv:nv,r.state={status:i},r.nextCallback=null,r}xf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===tv?{status:nv}: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!==rv&&n!==iv&&(t=rv):n!==rv&&n!==iv||(t=ov)}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===rv){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===nv&&this.setState({status:tv})},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||Qy?this.safeSetState({status:iv},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:rv},(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&&!Qy?(this.props.onExit(r),this.safeSetState({status:ov},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:nv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:nv},(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===tv)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=zp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(ev.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function sv(){}av.contextType=ev,av.propTypes={},av.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sv,onEntering:sv,onEntered:sv,onExit:sv,onExiting:sv,onExited:sv},av.UNMOUNTED=tv,av.EXITED=nv,av.ENTERING=rv,av.ENTERED=iv,av.EXITING=ov;var lv=av;function cv(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 uv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function dv(e,t,n){var r=cv(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:uv(a,"exit",e),enter:uv(a,"enter",e)})):i[o]=V(a,{in:!1}):i[o]=V(a,{onExited:n.bind(null,a),in:!0,exit:uv(a,"exit",e),enter:uv(a,"enter",e)})}})),i}var mv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pv=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Sf(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}xf(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,cv(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:uv(e,"appear",n),enter:uv(e,"enter",n),exit:uv(e,"exit",n)})}))):dv(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=cv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Op({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zp(e,["component","childFactory"]),i=this.state.contextValue,o=mv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(ev.Provider,{value:i},o):j.createElement(ev.Provider,{value:i},j.createElement(t,r,o))},t}(j.Component);pv.propTypes={},pv.defaultProps={component:"div",childFactory:function(e){return e}};var fv=pv;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 gv=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=$p(e,["classes","className","component","square","elevation","variant"]);return F.createElement(o,Op({className:qy(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),yv=Iy((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Op({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"})(gv),vv="undefined"==typeof window?F.useEffect:F.useLayoutEffect;function bv(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=qy(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=qy(t.child,m&&t.childLeaving,r&&t.childPulsate),y=Fy(c);return vv((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 xv=F.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=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(tf(e),[F.createElement(bv,{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",Op({className:qy(i.root,o),ref:h},a),F.createElement(fv,{component:null,exit:!0},l))})),Sv=Iy((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(xv)),Ev=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,$=$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"]),_=F.useRef(null);var j=F.useRef(null),B=F.useState(!1),H=B[0],V=B[1];m&&H&&V(!1);var U=Zy(),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 Fy((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=Fy((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=Fy((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=Fy((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=By(r,t),pe=By(X,_),fe=By(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,Op({className:qy(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(Sv,Op({ref:j,center:o},D)):null)})),Mv=Iy({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"})(Ev),Cv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Ov=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?Cv:b,S=$p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Cv[v])||"span";return F.createElement(E,Op({className:qy(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(Ly(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(Ly(r))],"initial"!==u&&i["display".concat(Ly(u))]),ref:t},S))})),Tv=Iy((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"})(Ov),wv=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=$p(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),w=S&&F.createElement("span",{className:qy(r.startIcon,r["iconSize".concat(Ly(x))])},S),A=h&&F.createElement("span",{className:qy(r.endIcon,r["iconSize".concat(Ly(x))])},h);return F.createElement(Mv,Op({className:qy(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(Ly(a))],"medium"!==x&&[r["".concat(O,"Size").concat(Ly(x))],r["size".concat(Ly(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:qy(r.focusVisible,g),ref:t,type:M},T),F.createElement("span",{className:r.label},w,n,A))})),Av=Iy((function(e){return{root:Op({},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:qp(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:qp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:qp(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(qp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:qp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(qp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:qp(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"})(wv);var Rv="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,kv=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=By(F.isValidElement(n)?n.ref:null,t);return Rv((function(){o||c(function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(r)||document.body)}),[r,o]),Rv((function(){if(l&&!o)return _y(t,l),function(){_y(t,null)}}),[t,l,o]),Rv((function(){a&&(l||o)&&a()}),[a,l,o]),o?F.isValidElement(n)?F.cloneElement(n,{ref:u}):n:l?Y.createPortal(n,l):l})),Nv=kv;function Iv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Lv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Pv(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(tf(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)&&Iv(e,r)}))}function Dv(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function qv(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=zy(e);return t.body===e?$y(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(Lv(o)+a,"px"),n=zy(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Lv(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 zv=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 vf(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&&Iv(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);Pv(t,e.mountNode,e.modalRef,r,!0);var i=Dv(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=Dv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=qv(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Dv(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&&Iv(e.modalRef,!0),Pv(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&&Iv(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function $v(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=By(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=zy(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 _v={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"}},jv=F.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=$p(e,["invisible","open"]);return i?F.createElement("div",Op({"aria-hidden":!0,ref:t},o,{style:Op({},_v.root,r?_v.invisible:{},o.style)})):null}));var Fv=new zv,Bv=F.forwardRef((function(e,t){var n=ay(),r=ff({name:"MuiModal",props:Op({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?jv: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?Fv: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"]),z=F.useState(!0),$=z[0],_=z[1],j=F.useRef({}),B=F.useRef(null),H=F.useRef(null),V=By(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return zy(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=Fy((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=Fy((function(e){B.current=e,e&&(P&&P(),D&&J()?X():Iv(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:cf}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Py((function(){_(!1)}),s.props.onEnter),te.onExited=Py((function(){_(!0),c&&Q()}),s.props.onExited)),F.createElement(Nv,{ref:Z,container:u,disablePortal:x},F.createElement("div",Op({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:Op({},ee.root,!D&&$?ee.hidden:{},q.style)}),T?null:F.createElement(o,Op({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),F.createElement($v,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:W,isEnabled:J,open:D},F.cloneElement(s,te))))})),Hv=Bv,Vv=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=$p(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return F.createElement(s,Op({className:qy(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))})),Uv=Iy((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:qp(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"})(Vv);function Wv(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Yv={entering:{opacity:1,transform:Wv(1)},entered:{opacity:1,transform:"none"}},Gv=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?lv:h,y=$p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=F.useRef(),b=F.useRef(),x=ay()||ky,S=x.unstable_strictMode&&!i,E=F.useRef(null),M=By(n.ref,t),C=By(S?E:void 0,M),O=function(e){return function(t,n){if(e){var r=nf(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=Wv(.75),c&&c(e)})),N=O(u);return F.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),F.createElement(g,Op({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,Op({style:Op({opacity:0,transform:Wv(.75),visibility:"exited"!==e||o?void 0:"hidden"},Yv[e],m,n.props.style),ref:C},t))}))}));Gv.muiSupportAuto=!0;var Xv=Gv,Kv=F.createContext({}),Jv=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=$p(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=F.useMemo((function(){return{dense:l}}),[l]);return F.createElement(Kv.Provider,{value:p},F.createElement(a,Op({className:qy(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Zv=Iy({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Jv),Qv="undefined"==typeof window?F.useEffect:F.useLayoutEffect,eb=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=$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=F.useContext(Kv),k={dense:v||R.dense||!1,alignItems:r},N=F.useRef(null);Qv((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=By(F.useCallback((function(e){N.current=Y.findDOMNode(e)}),[]),t),z=Op({className:qy(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=qy(c.focusVisible,O),$=Mv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),F.createElement(Kv.Provider,{value:k},F.createElement(p,Op({className:qy(c.container,h),ref:q},g),F.createElement($,z,P),P.pop()))):F.createElement(Kv.Provider,{value:k},F.createElement($,Op({ref:q},z),P))})),tb=Iy((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"})(eb),nb=F.forwardRef((function(e,t){var n=e.classes,r=e.className,i=$p(e,["classes","className"]),o=F.useContext(Kv);return F.createElement("div",Op({className:qy(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),rb=Iy((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(nb),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=$p(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=F.useContext(Kv).dense,h=null!=c?c:n;null==h||h.type===Tv||a||(h=F.createElement(Tv,Op({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Tv||a||(g=F.createElement(Tv,Op({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),F.createElement("div",Op({className:qy(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),ob=Iy({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 ab(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function sb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function lb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function cb(e){return"function"==typeof e?e():e}var ub=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?Xv: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=F.useRef(),z=F.useCallback((function(e){if("anchorPosition"===l)return a;var t=cb(r),n=(t&&1===t.nodeType?t:zy(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+ab(n,i),left:n.left+sb(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:ab(e,A.vertical)+t,horizontal:sb(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:lb(i)};var o=z(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=$y(cb(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:lb(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?zy(cb(r)).body:void 0);return F.createElement(Hv,Op({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:qy(u.root,d)},D),F.createElement(k,Op({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:Py((function(e,t){x&&x(e,t),B()}),P.onEntering)}),F.createElement(yv,Op({elevation:f,ref:H},T,{className:qy(u.paper,T.className)}),c)))})),db=Iy({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ub);function mb(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function pb({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:mb(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(tb,ap({className:`${i.root} ${n}`},r))},gb=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 yb({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Ee.detectTextDirection(e);return j.createElement(hb,{nested:r,role:"menuitem",button:!0,onClick:n,className:fb.menuItem,onKeyDown:gb,dir:a,autoFocus:t},j.createElement(ob,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),j.createElement(rb,{style:{minWidth:16}},j.createElement(pb,{d:t?Vm.d:""})),i&&j.createElement(rb,{style:{minWidth:16}},j.createElement(pb,{d:i.d})))}yb.propTypes={title:gp.string.isRequired,selected:gp.bool,onClick:gp.func.isRequired,nested:gp.bool,icon:gp.shape({d:gp.string.isRequired}),bold:gp.bool,dir:gp.string.isRequired},yb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},hb.propTypes={nested:gp.bool,className:gp.string},hb.defaultProps={nested:!1,className:fb.menuItem};const vb={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 bb({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(yb,{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(Zv,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>j.createElement(yb,{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(Uv,{key:`divider-${t.id}`}))}));return j.createElement(db,ap({anchorEl:t,open:s,onClose:a},vb[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),j.createElement(Zv,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}bb.propTypes={chartId:gp.string.isRequired,alignTo:gp.any,currentId:gp.string.isRequired,dir:gp.string.isRequired,dock:gp.string.isRequired,list:gp.array,onClose:gp.func.isRequired,show:gp.bool.isRequired,instruction:gp.string.isRequired},bb.defaultProps={list:[],alignTo:null};const xb="title-button",Sb="active-title-button",Eb=Ny((({children:e,...t})=>j.createElement(Av,ap({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Mb=Ny(Av)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Cb 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.focus(),t.classList.add(Sb))}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(`.${Sb}`);e&&(e.classList.remove(Sb),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(Eb,{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(pb,ap({},Wm,{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=Ee.detectTextDirection(t.text),S=j.createElement(Eb,{"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(pb,ap({},Hm,{size:"small",title:r.get("Tooltip.selections.locked")})),j.createElement("span",{style:d,dir:x},t.text),n&&h&&j.createElement(pb,ap({},Um,{size:"small",style:{margin:"0 8px"}})));return j.createElement(j.Fragment,null,t.icon&&t.icon.onClick&&j.createElement(Mb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},j.createElement(pb,ap({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&j.createElement(pb,ap({},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(bb,{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 Ob(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Tb(e){function t(e){return!e.isDimension&&ue.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?np:ip,M=a?rp:op,C=Boolean(l&&l.colorSupport&&l.modifiers),O=C&&((T=this.settings.settings).isDimension&&ue.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:Ob(g),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:C}):void 0;return j.createElement(j.Fragment,{key:t.cId},j.createElement(Cb,{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)}}}Cb.propTypes={chartId:gp.string.isRequired,disabled:gp.bool.isRequired,padding:gp.string,minWidth:gp.string,titleData:gp.shape({breadcrumbs:gp.arrayOf(gp.string).isRequired,icon:gp.shape({path:gp.shape({d:gp.string.isRequired}),tooltip:gp.string.isRequired,onClick:gp.func}),index:gp.number.isRequired,locked:gp.bool.isRequired,text:gp.string.isRequired,popoverText:gp.string.isRequired,drillUp:gp.func,id:gp.string.isRequired}).isRequired,popover:gp.shape({dir:gp.string.isRequired,dock:gp.string.isRequired,getPopoverOptions:gp.func.isRequired}),translator:gp.shape({get:gp.func.isRequired}).isRequired,selections:gp.shape({isActive:gp.func,addListener:gp.func,removeListener:gp.func}),style:gp.shape({fontSize:gp.string,color:gp.string,fontFamily:gp.string}).isRequired,isDimension:gp.bool.isRequired,hasAlternative:gp.bool.isRequired,supportConditional:gp.bool.isRequired,showGroupDimOptions:gp.bool.isRequired},Cb.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const wb=uf({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 Ab=pf({productionPrefix:"qa233",disableGlobal:!0,seed:""});function Rb(){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(Ay,{theme:wb},e))}(e,Ab),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 kb(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:kb(i,t,n)},i}function Nb(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),kb(i,a,l,e.invert)}))}const Ib={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(ne({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Lb({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=ne({},{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 Pb({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=ne(!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:ne(!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:ne(!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:ne(!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 Db=["oob"];const qb={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=Pb({keys:Db,data:i,defaultSettings:{oob:Ib.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=Lb}){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(Ib.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:Db,symbol:s,dockValue:n});return d}},zb={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},$b=["hat"];function _b(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 jb({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=ne({},e.hat,{type:"path",d:_b(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,ne({},e.hat,{type:"path",d:_b(m)})]}const Fb={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=Pb({keys:$b,data:r,defaultSettings:zb,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=Lb}){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(...jb({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:$b});return c}};var Bb={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 Hb(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function Vb(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 Ub({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?Bb.EQUAL_EQUAL:i<o?Bb.EQUAL_HIGHER:Bb.EQUAL_LOWER:i===o?r>i?Bb.HIGHER_EQUAL:Bb.LOWER_EQUAL:r>i?i<o?Vb(e,t,n)>90?Bb.HIGHER_HIGHER_OBTUSE:Bb.HIGHER_HIGHER_ACUTE:Hb(e,t)>Hb(e,n)?Bb.HIGHER_LOWER_POSITIVE:Bb.HIGHER_LOWER_NEGATIVE:i>o?Vb(e,t,n)>90?Bb.LOWER_LOWER_OBTUSE:Bb.LOWER_LOWER_ACUTE:Hb(e,t)>Hb(e,n)?Bb.LOWER_HIGHER_POSITIVE:Bb.LOWER_HIGHER_NEGATIVE:r===i?Bb.EQUAL_VOID:r>i?Bb.HIGHER_VOID:Bb.LOWER_VOID:i===o?Bb.VOID_EQUAL:i<o?Bb.VOID_HIGHER:Bb.VOID_LOWER:Bb.VOID_VOID}function Wb({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 Yb={X:1,Y:0};function Gb({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*Yb.X,height:m.height+2*Yb.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:Wb({bounds:p,size:a}),border:f?f/2:0,classification:Bb.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 Xb({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:Gb({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 Kb={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Jb={[Bb.EQUAL_EQUAL]:[Kb.TOP,Kb.BOTTOM],[Bb.EQUAL_HIGHER]:[Kb.BOTTOM,Kb.BOTTOM_RIGHT],[Bb.EQUAL_LOWER]:[Kb.TOP,Kb.TOP_RIGHT],[Bb.EQUAL_VOID]:[Kb.TOP,Kb.BOTTOM],[Bb.HIGHER_EQUAL]:[Kb.LEFT,Kb.BOTTOM_LEFT,Kb.TOP,Kb.TOP_RIGHT],[Bb.HIGHER_HIGHER_ACUTE]:[Kb.BOTTOM,Kb.BOTTOM_LEFT,Kb.LEFT,Kb.TOP_RIGHT],[Bb.HIGHER_HIGHER_OBTUSE]:[Kb.BOTTOM,Kb.TOP],[Bb.HIGHER_LOWER_NEGATIVE]:[Kb.TOP,Kb.TOP_RIGHT,Kb.RIGHT],[Bb.HIGHER_LOWER_POSITIVE]:[Kb.BOTTOM,Kb.BOTTOM_LEFT,Kb.LEFT],[Bb.HIGHER_VOID]:[Kb.TOP],[Bb.LOWER_EQUAL]:[Kb.TOP],[Bb.LOWER_HIGHER_NEGATIVE]:[Kb.TOP,Kb.TOP_LEFT],[Bb.LOWER_HIGHER_POSITIVE]:[Kb.BOTTOM_RIGHT],[Bb.LOWER_LOWER_ACUTE]:[Kb.TOP,Kb.TOP_LEFT,Kb.LEFT,Kb.TOP_RIGHT,Kb.RIGHT],[Bb.LOWER_LOWER_OBTUSE]:[Kb.TOP,Kb.BOTTOM],[Bb.LOWER_VOID]:[Kb.TOP],[Bb.VOID_EQUAL]:[Kb.TOP],[Bb.VOID_HIGHER]:[Kb.TOP,Kb.BOTTOM],[Bb.VOID_LOWER]:[Kb.TOP,Kb.BOTTOM,Kb.LEFT],[Bb.VOID_VOID]:[Kb.TOP],[Bb.MARKER]:[Kb.TOP,Kb.BOTTOM,Kb.RIGHT,Kb.LEFT,Kb.TOP_RIGHT,Kb.BOTTOM_RIGHT,Kb.BOTTOM_LEFT,Kb.TOP_LEFT]};function Zb({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s,marker:l}){const c=Xb({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?Bb.MARKER:Ub({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(Jb[e.classification]))),p}function Qb({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 ex({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 tx({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 ex({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||ex({line1:e,line2:a})||ex({line1:e,line2:s})||ex({line1:e,line2:l})}({line:t,rect:e})))}const nx={x:0,width:0,y:0,height:0};var rx={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}),ox=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),ax=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),sx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),lx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),cx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),ux=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),dx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var mx={X:2.5,Y:4};const px=[Kb.TOP,Kb.TOP_LEFT,Kb.TOP_RIGHT],fx=[Kb.BOTTOM,Kb.BOTTOM_LEFT,Kb.BOTTOM_RIGHT];function hx({position:e}){const t={x:mx.X,width:-2*mx.X,y:0,height:0},n=px.indexOf(e)>-1,r=fx.indexOf(e)>-1;return n&&(t.y=mx.Y,t.height=-mx.Y),r&&(t.height=-mx.Y),t}function gx({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 yx({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 vx=15;function bx({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+=vx){const a=yx({coordinates:gx({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-=vx){const a=yx({coordinates:gx({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 Sx({item:e,validator:t,force:n=!1,marker:r=!1}){const i=[...e.preferences,...Object.keys(r?rx:Kb).map((e=>Kb[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Kb.TOP]:ix,[Kb.TOP_RIGHT]:ox,[Kb.RIGHT]:ax,[Kb.BOTTOM_RIGHT]:sx,[Kb.BOTTOM]:lx,[Kb.BOTTOM_LEFT]:cx,[Kb.LEFT]:ux,[Kb.TOP_LEFT]:dx},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=()=>bx({item:e,validator:t,force:n});if(n){const e=s();return e||(a[0]||xx)}return(e.extreme||e.elite)&&s()||xx}function Ex({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:Qb({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=tx({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=Sx({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=Sx({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 Mx={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=Zb({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}),Ex({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"})))}},Cx={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var Ox={black:"#000",white:"#fff"};var Tx={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 wx={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 Ax={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 Rx={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 kx={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 Nx={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 Ix={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 Lx(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 Px=Object.freeze({__proto__:null,default:Lx}),Dx="$$material";var qx=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),zx="-ms-",$x="-moz-",_x="-webkit-",jx="comm",Fx="rule",Bx="decl",Hx="@keyframes",Vx=Math.abs,Ux=String.fromCharCode,Wx=Object.assign;function Yx(e){return e.trim()}function Gx(e,t,n){return e.replace(t,n)}function Xx(e,t){return e.indexOf(t)}function Kx(e,t){return 0|e.charCodeAt(t)}function Jx(e,t,n){return e.slice(t,n)}function Zx(e){return e.length}function Qx(e){return e.length}function eS(e,t){return t.push(e),e}var tS=1,nS=1,rS=0,iS=0,oS=0,aS="";function sS(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:tS,column:nS,length:a,return:""}}function lS(e,t){return Wx(sS("",null,null,"",null,null,0),e,{length:-e.length},t)}function cS(){return oS=iS>0?Kx(aS,--iS):0,nS--,10===oS&&(nS=1,tS--),oS}function uS(){return oS=iS<rS?Kx(aS,iS++):0,nS++,10===oS&&(nS=1,tS++),oS}function dS(){return Kx(aS,iS)}function mS(){return iS}function pS(e,t){return Jx(aS,e,t)}function fS(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 hS(e){return tS=nS=1,rS=Zx(aS=e),iS=0,[]}function gS(e){return aS="",e}function yS(e){return Yx(pS(iS-1,xS(91===e?e+2:40===e?e+1:e)))}function vS(e){for(;(oS=dS())&&oS<33;)uS();return fS(e)>2||fS(oS)>3?"":" "}function bS(e,t){for(;--t&&uS()&&!(oS<48||oS>102||oS>57&&oS<65||oS>70&&oS<97););return pS(e,mS()+(t<6&&32==dS()&&32==uS()))}function xS(e){for(;uS();)switch(oS){case e:return iS;case 34:case 39:34!==e&&39!==e&&xS(oS);break;case 40:41===e&&xS(e);break;case 92:uS()}return iS}function SS(e,t){for(;uS()&&e+oS!==57&&(e+oS!==84||47!==dS()););return"/*"+pS(t,iS-1)+"*"+Ux(47===e?e:uS())}function ES(e){for(;!fS(dS());)uS();return pS(e,iS)}function MS(e){return gS(CS("",null,null,null,[""],e=hS(e),0,[0],e))}function CS(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==Kx(M,d-1)){-1!=Xx(M+=Gx(yS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=yS(v);break;case 9:case 10:case 13:case 32:M+=vS(f);break;case 92:M+=bS(mS()-1,7);continue;case 47:switch(dS()){case 42:case 47:eS(TS(SS(uS(),mS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=Zx(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=Gx(M,/\f/g,"")),p>0&&Zx(M)-d&&eS(p>32?wS(M+";",r,n,d-1):wS(Gx(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(eS(E=OS(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)CS(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===Kx(M,3)?100:m){case 100:case 108:case 109:case 115:CS(e,E,E,r&&eS(OS(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:CS(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+Zx(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==cS())continue;switch(M+=Ux(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Zx(M)-1)*y,y=1;break;case 64:45===dS()&&(M+=yS(uS())),m=dS(),u=d=Zx(b=M+=ES(mS())),v++;break;case 45:45===f&&2==Zx(M)&&(h=0)}}return o}function OS(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=Qx(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=Jx(e,d+1,d=Vx(h=a[f])),b=e;y<p;++y)(b=Yx(h>0?m[y]+" "+v:Gx(v,/&\f/g,m[y])))&&(l[g++]=b);return sS(e,t,n,0===i?Fx:s,l,c,u)}function TS(e,t,n){return sS(e,t,n,jx,Ux(oS),Jx(e,2,-2),0)}function wS(e,t,n,r){return sS(e,t,n,Bx,Jx(e,0,r),Jx(e,r+1,-1),r)}function AS(e,t){for(var n="",r=Qx(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function RS(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Bx:return e.return=e.return||e.value;case jx:return"";case Hx:return e.return=e.value+"{"+AS(e.children,r)+"}";case Fx:e.value=e.props.join(",")}return Zx(n=AS(e.children,r))?e.return=e.value+"{"+n+"}":""}function kS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var NS=function(e,t,n){for(var r=0,i=0;r=i,i=dS(),38===r&&12===i&&(t[n]=1),!fS(i);)uS();return pS(e,iS)},IS=function(e,t){return gS(function(e,t){var n=-1,r=44;do{switch(fS(r)){case 0:38===r&&12===dS()&&(t[n]=1),e[n]+=NS(iS-1,t,n);break;case 2:e[n]+=yS(r);break;case 4:if(44===r){e[++n]=58===dS()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ux(r)}}while(r=uS());return e}(hS(e),t))},LS=new WeakMap,PS=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)||LS.get(n))&&!r){LS.set(e,!0);for(var i=[],o=IS(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]}}},DS=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qS(e,t){switch(function(e,t){return 45^Kx(e,0)?(((t<<2^Kx(e,0))<<2^Kx(e,1))<<2^Kx(e,2))<<2^Kx(e,3):0}(e,t)){case 5103:return _x+"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 _x+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _x+e+$x+e+zx+e+e;case 6828:case 4268:return _x+e+zx+e+e;case 6165:return _x+e+zx+"flex-"+e+e;case 5187:return _x+e+Gx(e,/(\w+).+(:[^]+)/,_x+"box-$1$2"+zx+"flex-$1$2")+e;case 5443:return _x+e+zx+"flex-item-"+Gx(e,/flex-|-self/,"")+e;case 4675:return _x+e+zx+"flex-line-pack"+Gx(e,/align-content|flex-|-self/,"")+e;case 5548:return _x+e+zx+Gx(e,"shrink","negative")+e;case 5292:return _x+e+zx+Gx(e,"basis","preferred-size")+e;case 6060:return _x+"box-"+Gx(e,"-grow","")+_x+e+zx+Gx(e,"grow","positive")+e;case 4554:return _x+Gx(e,/([^-])(transform)/g,"$1"+_x+"$2")+e;case 6187:return Gx(Gx(Gx(e,/(zoom-|grab)/,_x+"$1"),/(image-set)/,_x+"$1"),e,"")+e;case 5495:case 3959:return Gx(e,/(image-set\([^]*)/,_x+"$1$`$1");case 4968:return Gx(Gx(e,/(.+:)(flex-)?(.*)/,_x+"box-pack:$3"+zx+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_x+e+e;case 4095:case 3583:case 4068:case 2532:return Gx(e,/(.+)-inline(.+)/,_x+"$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(Zx(e)-1-t>6)switch(Kx(e,t+1)){case 109:if(45!==Kx(e,t+4))break;case 102:return Gx(e,/(.+:)(.+)-([^]+)/,"$1"+_x+"$2-$3$1"+$x+(108==Kx(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Xx(e,"stretch")?qS(Gx(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Kx(e,t+1))break;case 6444:switch(Kx(e,Zx(e)-3-(~Xx(e,"!important")&&10))){case 107:return Gx(e,":",":"+_x)+e;case 101:return Gx(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_x+(45===Kx(e,14)?"inline-":"")+"box$3$1"+_x+"$2$3$1"+zx+"$2box$3")+e}break;case 5936:switch(Kx(e,t+11)){case 114:return _x+e+zx+Gx(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _x+e+zx+Gx(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _x+e+zx+Gx(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _x+e+zx+e+e}return e}var zS=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Bx:e.return=qS(e.value,e.length);break;case Hx:return AS([lS(e,{value:Gx(e.value,"@","@"+_x)})],r);case Fx: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 AS([lS(e,{props:[Gx(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return AS([lS(e,{props:[Gx(t,/:(plac\w+)/,":"+_x+"input-$1")]}),lS(e,{props:[Gx(t,/:(plac\w+)/,":-moz-$1")]}),lS(e,{props:[Gx(t,/:(plac\w+)/,zx+"input-$1")]})],r)}return""}))}}],$S=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||zS,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[RS,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Qx(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([PS,DS].concat(o,u));i=function(e,t,n,r){l=n,function(e){AS(MS(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new qx({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 m.sheet.hydrate(s),m};function _S(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var jS=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},FS=function(e,t,n){jS(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var BS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},HS=!1,VS=/[A-Z]|^ms/g,US=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WS=function(e){return 45===e.charCodeAt(1)},YS=function(e){return null!=e&&"boolean"!=typeof e},GS=kS((function(e){return WS(e)?e:e.replace(VS,"-$&").toLowerCase()})),XS=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(US,(function(e,t,n){return ZS={name:t,styles:n,next:ZS},t}))}return 1===BS[e]||WS(e)||"number"!=typeof t||0===t?t:t+"px"},KS="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function JS(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return ZS={name:i.name,styles:i.styles,next:ZS},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)ZS={name:a.name,styles:a.styles,next:ZS},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=JS(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":YS(s)&&(r+=GS(o)+":"+XS(o,s)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&HS)throw new Error(KS);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=JS(e,t,a);switch(o){case"animation":case"animationName":r+=GS(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)YS(a[c])&&(r+=GS(o)+":"+XS(o,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=ZS,l=n(e);return ZS=s,JS(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var ZS,QS=/label:\s*([^\s;{]+)\s*(;|$)/g;function eE(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="";ZS=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=JS(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=JS(n,t,e[a]),r)i+=o[a]}QS.lastIndex=0;for(var s,l="";null!==(s=QS.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:ZS}}var tE,nE,rE=!!F.useInsertionEffect&&F.useInsertionEffect,iE=rE||function(e){return e()},oE=rE||F.useLayoutEffect,aE=F.createContext("undefined"!=typeof HTMLElement?$S({key:"css"}):null),sE=aE.Provider,lE=function(e){return U((function(t,n){var r=W(aE);return e(t,r,n)}))},cE=F.createContext({}),uE={}.hasOwnProperty,dE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",mE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jS(t,n,r),iE((function(){return FS(t,n,r)})),null},pE=lE((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[dE],o=[r],a="";"string"==typeof e.className?a=_S(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=eE(o,void 0,F.useContext(cE));a+=t.key+"-"+s.name;var l={};for(var c in e)uE.call(e,c)&&"css"!==c&&c!==dE&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),F.createElement(F.Fragment,null,F.createElement(mE,{cache:t,serialized:s,isStringTag:"string"==typeof i}),F.createElement(i,l))})),fE=pE,hE=function(e,t){var n=arguments;if(null==t||!uE.call(t,"css"))return F.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=fE,i[1]=function(e,t){var n={};for(var r in t)uE.call(t,r)&&(n[r]=t[r]);return n[dE]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return F.createElement.apply(null,i)};tE=hE||(hE={}),nE||(nE=tE.JSX||(tE.JSX={}));var gE=lE((function(e,t){var n=eE([e.styles],void 0,F.useContext(cE)),r=F.useRef();return oE((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),oE((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&FS(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function yE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return eE(t)}function vE(){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_"}}}var bE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xE=kS((function(e){return bE.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),SE=function(e){return"theme"!==e},EE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?xE:SE},ME=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},CE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jS(t,n,r),iE((function(){return FS(t,n,r)})),null},OE=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=ME(t,n,o),l=s||EE(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{var m=u[0];d.push(m[0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],m[f])}var h=lE((function(e,t,n){var r=c&&e.as||a,o="",u=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=F.useContext(cE)}"string"==typeof e.className?o=_S(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var f=eE(d.concat(u),t.registered,m);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var h=c&&void 0===s?EE(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),F.createElement(F.Fragment,null,F.createElement(CE,{cache:t,serialized:f,isStringTag:"string"==typeof r}),F.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,Op({},n,r,{shouldForwardProp:ME(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){OE[e]=OE(e)}));var TE,wE,AE={exports:{}},RE={};var kE=(wE||(wE=1,AE.exports=function(){if(TE)return RE;TE=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return RE.Fragment=n,RE.jsx=a,RE.jsxs=a,RE}()),AE.exports);let NE;"object"==typeof document&&(NE=$S({key:"css",prepend:!0}));var IE=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 kE.jsx(gE,{styles:r})}
14
+ */Nh();var Ph=Date.now(),Dh="fnValues"+Ph,qh="fnStyle"+ ++Ph,zh=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Of(e,{},n);return r[qh]=t,r},onProcessStyle:function(e,t){if(Dh in t||qh 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[Dh]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[qh];o&&(i.style=o(e)||{});var a=i[Dh];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},$h="@global",_h="@global ",jh=function(){function e(e,t,n){for(var r in this.type="global",this.at=$h,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new ch(Tp({},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}(),Fh=function(){function e(e,t,n){this.type="global",this.at=$h,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(_h.length);this.rule=n.jss.createRule(r,t,Tp({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Bh=/\s*,\s*/g;function Hh(e,t){for(var n=e.split(Bh),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Vh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===$h)return new jh(e,t,n);if("@"===e[0]&&e.substr(0,_h.length)===_h)return new Fh(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[$h]:null;if(i){for(var o in i)t.addRule(o,i[o],Tp({},n,{selector:Hh(o,e.selector)}));delete r[$h]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,$h.length)===$h){var o=Hh(i.substr($h.length),e.selector);t.addRule(o,r[i],Tp({},n,{selector:o})),delete r[i]}}(e,t))}}}var Uh=/\s*,\s*/g,Wh=/&/g,Yh=/\$([\w-]+)/g;function Gh(){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(Uh),r=e.split(Uh),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(Wh,a):a+" "+l}return i}function n(e,t,n){if(n)return Tp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Tp({},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(Yh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Tp({},a,{selector:p})):c.addRule(f,r[u],Tp({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Xh=/[A-Z]/g,Kh=/^ms-/,Jh={};function Zh(e){return"-"+e.toLowerCase()}function Qh(e){if(Jh.hasOwnProperty(e))return Jh[e];var t=e.replace(Xh,Zh);return Jh[e]=Kh.test(t)?"-"+t:t}function eg(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Qh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(eg):t.fallbacks=eg(e.fallbacks)),t}var tg=Ih&&CSS?CSS.px:"px",ng=Ih&&CSS?CSS.ms:"ms",rg=Ih&&CSS?CSS.percent:"%";function ig(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 og=ig({"animation-delay":ng,"animation-duration":ng,"background-position":tg,"background-position-x":tg,"background-position-y":tg,"background-size":tg,border:tg,"border-bottom":tg,"border-bottom-left-radius":tg,"border-bottom-right-radius":tg,"border-bottom-width":tg,"border-left":tg,"border-left-width":tg,"border-radius":tg,"border-right":tg,"border-right-width":tg,"border-top":tg,"border-top-left-radius":tg,"border-top-right-radius":tg,"border-top-width":tg,"border-width":tg,"border-block":tg,"border-block-end":tg,"border-block-end-width":tg,"border-block-start":tg,"border-block-start-width":tg,"border-block-width":tg,"border-inline":tg,"border-inline-end":tg,"border-inline-end-width":tg,"border-inline-start":tg,"border-inline-start-width":tg,"border-inline-width":tg,"border-start-start-radius":tg,"border-start-end-radius":tg,"border-end-start-radius":tg,"border-end-end-radius":tg,margin:tg,"margin-bottom":tg,"margin-left":tg,"margin-right":tg,"margin-top":tg,"margin-block":tg,"margin-block-end":tg,"margin-block-start":tg,"margin-inline":tg,"margin-inline-end":tg,"margin-inline-start":tg,padding:tg,"padding-bottom":tg,"padding-left":tg,"padding-right":tg,"padding-top":tg,"padding-block":tg,"padding-block-end":tg,"padding-block-start":tg,"padding-inline":tg,"padding-inline-end":tg,"padding-inline-start":tg,"mask-position-x":tg,"mask-position-y":tg,"mask-size":tg,height:tg,width:tg,"min-height":tg,"max-height":tg,"min-width":tg,"max-width":tg,bottom:tg,left:tg,top:tg,right:tg,inset:tg,"inset-block":tg,"inset-block-end":tg,"inset-block-start":tg,"inset-inline":tg,"inset-inline-end":tg,"inset-inline-start":tg,"box-shadow":tg,"text-shadow":tg,"column-gap":tg,"column-rule":tg,"column-rule-width":tg,"column-width":tg,"font-size":tg,"font-size-delta":tg,"letter-spacing":tg,"text-decoration-thickness":tg,"text-indent":tg,"text-stroke":tg,"text-stroke-width":tg,"word-spacing":tg,motion:tg,"motion-offset":tg,outline:tg,"outline-offset":tg,"outline-width":tg,perspective:tg,"perspective-origin-x":rg,"perspective-origin-y":rg,"transform-origin":rg,"transform-origin-x":rg,"transform-origin-y":rg,"transform-origin-z":rg,"transition-delay":ng,"transition-duration":ng,"vertical-align":tg,"flex-basis":tg,"shape-margin":tg,size:tg,gap:tg,grid:tg,"grid-gap":tg,"row-gap":tg,"grid-row-gap":tg,"grid-column-gap":tg,"grid-template-rows":tg,"grid-template-columns":tg,"grid-auto-rows":tg,"grid-auto-columns":tg,"box-shadow-x":tg,"box-shadow-y":tg,"box-shadow-blur":tg,"box-shadow-spread":tg,"font-line-height":tg,"text-shadow-x":tg,"text-shadow-y":tg,"text-shadow-blur":tg});function ag(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ag(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=ag(i,t[i],n);else for(var o in t)t[o]=ag(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||og[e];return!a||0===t&&a===tg?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function sg(e){void 0===e&&(e={});var t=ig(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ag(r,e[r],t);return e},onChangeValue:function(e,n){return ag(n,e,t)}}}var lg="",cg="",ug="",dg="",mg=yf&&"ontouchstart"in document.documentElement;if(yf){var pg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},fg=document.createElement("p").style;for(var hg in pg)if(hg+"Transform"in fg){lg=hg,cg=pg[hg];break}"Webkit"===lg&&"msHyphens"in fg&&(lg="ms",cg=pg.ms,dg="edge"),"Webkit"===lg&&"-apple-trailing-word"in fg&&(ug="apple")}var gg={js:lg,css:cg,vendor:ug,browser:dg,isTouch:mg};var yg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===gg.js?"-webkit-"+e:gg.css+e)}},vg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===gg.js?gg.css+"print-"+e:e)}},bg=/[-\s]+(.)?/g;function xg(e,t){return t?t.toUpperCase():""}function Sg(e){return e.replace(bg,xg)}function Eg(e){return Sg("-"+e)}var Mg,Cg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===gg.js){var n="mask-image";if(Sg(n)in t)return e;if(gg.js+Eg(n)in t)return gg.css+e}return e}},Og={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==gg.vendor||gg.isTouch?e:gg.css+e)}},Tg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:gg.css+e)}},wg={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:gg.css+e)}},Ag={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===gg.js||"ms"===gg.js&&"edge"!==gg.browser?gg.css+e:e)}},Rg={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===gg.js||"ms"===gg.js||"apple"===gg.vendor?gg.css+e:e)}},kg={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===gg.js?"WebkitColumn"+Eg(e)in t&&gg.css+"column-"+e:"Moz"===gg.js&&("page"+Eg(e)in t&&"page-"+e))}},Ng={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===gg.js)return e;var n=e.replace("-inline","");return gg.js+Eg(n)in t&&gg.css+n}},Ig={supportedProperty:function(e,t){return Sg(e)in t&&e}},Lg={supportedProperty:function(e,t){var n=Eg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:gg.js+n in t?gg.css+e:"Webkit"!==gg.js&&"Webkit"+n in t&&"-webkit-"+e}},Pg={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===gg.js?""+gg.css+e:e)}},Dg={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===gg.js?gg.css+"scroll-chaining":e)}},qg={"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"},zg={supportedProperty:function(e,t){var n=qg[e];return!!n&&(gg.js+Eg(n)in t&&gg.css+n)}},$g={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($g),jg=function(e){return gg.css+e},Fg={supportedProperty:function(e,t,n){var r=n.multiple;if(_g.indexOf(e)>-1){var i=$g[e];if(!Array.isArray(i))return gg.js+Eg(i)in t&&gg.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(gg.js+Eg(i[0])in t))return!1;return i.map(jg)}return!1}},Bg=[yg,vg,Cg,Og,Tg,wg,Ag,Rg,kg,Ng,Ig,Lg,Pg,Dg,zg,Fg],Hg=Bg.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Vg=Bg.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,nf(t.noPrefill)),e}),[]),Ug={};if(yf){Mg=document.createElement("p");var Wg=window.getComputedStyle(document.documentElement,"");for(var Yg in Wg)isNaN(Yg)||(Ug[Wg[Yg]]=Wg[Yg]);Vg.forEach((function(e){return delete Ug[e]}))}function Gg(e,t){if(void 0===t&&(t={}),!Mg)return e;if(null!=Ug[e])return Ug[e];"transition"!==e&&"transform"!==e||(t[e]=e in Mg.style);for(var n=0;n<Hg.length&&(Ug[e]=Hg[n](e,Mg.style,t),!Ug[e]);n++);try{Mg.style[e]=""}catch(e){return!1}return Ug[e]}var Xg,Kg={},Jg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Zg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Qg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Gg(t):", "+Gg(n);return r||(t||n)}function ey(e,t){var n=t;if(!Xg||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Kg[r])return Kg[r];try{Xg.style[e]=n}catch(e){return Kg[r]=!1,!1}if(Jg[e])n=n.replace(Zg,Qg);else if(""===Xg.style[e]&&("-ms-flex"===(n=gg.css+n)&&(Xg.style[e]="-ms-flexbox"),Xg.style[e]=n,""===Xg.style[e]))return Kg[r]=!1,!1;return Xg.style[e]="",Kg[r]=n,Kg[r]}function ty(){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=Gg(n);o&&o!==n&&(i=!0);var a=!1,s=ey(o,wf(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"===gg.js?e:"@"+gg.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ey(t,wf(e))||e}}}function ny(){return{plugins:[zh(),Vh(),Gh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=eg(e[t]);return e}return eg(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Qh(t);return t===r?e:(n.prop(r,e),null)}},sg(),"undefined"==typeof window?null:ty(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}})]};var e}function ry(){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=Tp({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}yf&&(Xg=document.createElement("p"));var iy={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)}},oy=iy,ay=j.createContext(null);function sy(){return j.useContext(ay)}var ly,cy=Nh(ny()),uy={disableGeneration:!1,generateClassName:ff(),jss:cy,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},dy=j.createContext(uy);function my(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=Tp({},j.useContext(dy),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!ly){var l=document.head;ly=document.createComment("mui-inject-first"),l.insertBefore(ly,l.firstChild)}s.jss=Nh({plugins:ny().plugins,insertionPoint:ly})}return j.createElement(dy.Provider,{value:s},t)}var py=-1e9;var fy={};function hy(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=oy.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},oy.set(i.sheetsManager,o,r,s));var l=Tp({},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=oy.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,Tp({link:!1},l))).attach(),i.sheetsCache&&oy.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Lh(d)}if(s.dynamicStyles){var m=i.jss.createStyleSheet(s.dynamicStyles,Tp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=ry({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function gy(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?fy: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=Tp({},i);return Object.keys(o).forEach((function(e){a[e]=Rp(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:py+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sy()||a,r=Tp({},j.useContext(dy),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 hy(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=oy.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(oy.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=ry({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function yy(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=yy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function vy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=yy(e))&&(r&&(r+=" "),r+=t);return r}var by,xy,Sy,Ey,My={exports:{}},Cy={};function Oy(){return xy||(xy=1,My.exports=function(){if(by)return Cy;by=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case l:case c:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case a:return e;default:return m}}case n:return m}}}function x(e){return b(e)===c}return Cy.AsyncMode=l,Cy.ConcurrentMode=c,Cy.ContextConsumer=s,Cy.ContextProvider=a,Cy.Element=t,Cy.ForwardRef=u,Cy.Fragment=r,Cy.Lazy=f,Cy.Memo=p,Cy.Portal=n,Cy.Profiler=o,Cy.StrictMode=i,Cy.Suspense=d,Cy.isAsyncMode=function(e){return x(e)||b(e)===l},Cy.isConcurrentMode=x,Cy.isContextConsumer=function(e){return b(e)===s},Cy.isContextProvider=function(e){return b(e)===a},Cy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cy.isForwardRef=function(e){return b(e)===u},Cy.isFragment=function(e){return b(e)===r},Cy.isLazy=function(e){return b(e)===f},Cy.isMemo=function(e){return b(e)===p},Cy.isPortal=function(e){return b(e)===n},Cy.isProfiler=function(e){return b(e)===o},Cy.isStrictMode=function(e){return b(e)===i},Cy.isSuspense=function(e){return b(e)===d},Cy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===o||e===i||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===y||e.$$typeof===v||e.$$typeof===h)},Cy.typeOf=b,Cy}()),My.exports}var Ty=function(){if(Ey)return Sy;Ey=1;var e=Oy(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return Sy=function e(t,r,i){if("string"!=typeof r){if(d){var m=u(r);m&&m!==d&&e(t,m,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var f=o(t),h=o(r),g=0;g<p.length;++g){var y=p[g];if(!(n[y]||i&&i[y]||h&&h[y]||f&&f[y])){var v=c(r,y);try{a(t,y,v)}catch(e){}}}}return t},Sy}(),wy=Q(Ty);function Ay(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(Tp({theme:e},n))}}}:{root:t},l=gy(s,Tp({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=vy(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,Tp({className:vy(s.props.className,p)},f));if("function"==typeof s)return s(Tp({className:p},f));var h=d||e;return j.createElement(h,Tp({ref:r,className:p},f),s)}));return wy(c,e),c}}function Ry(e){var t=e.children,n=e.theme,r=sy(),i=j.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Tp({},e,t)}(r,n);return null!=e&&(e[mf]=null!==r),e}),[n,r]);return j.createElement(ay.Provider,{value:i},t)}var ky=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=gy(e,Tp({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(Tp({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=sy()||r,a&&(d=hf({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),j.createElement(n,Tp({ref:s||t,classes:u},d))}));return wy(u,n),u}},Ny=df(),Iy=function(e){var t=Ay(e);return function(e,n){return t(e,Tp({defaultTheme:Ny},n))}};function Ly(e,t){return ky(e,Tp({defaultTheme:Ny},t))}function Py(e){if("string"!=typeof e)throw new Error(Ip(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Dy(){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 qy(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=qy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function zy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=qy(e))&&(r&&(r+=" "),r+=t);return r}function $y(e){return e&&e.ownerDocument||document}function _y(e){return $y(e).defaultView||window}function jy(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Fy="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;function By(e){var t=F.useRef(e);return Fy((function(){t.current=e})),F.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Hy(e,t){return F.useMemo((function(){return null==e&&null==t?null:function(n){jy(e,n),jy(t,n)}}),[e,t])}var Vy=!0,Uy=!1,Wy=null,Yy={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 Gy(e){e.metaKey||e.altKey||e.ctrlKey||(Vy=!0)}function Xy(){Vy=!1}function Ky(){"hidden"===this.visibilityState&&Uy&&(Vy=!0)}function Jy(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Vy||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Yy[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Zy(){Uy=!0,window.clearTimeout(Wy),Wy=window.setTimeout((function(){Uy=!1}),100)}function Qy(){var e=F.useCallback((function(e){var t,n=Y.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Gy,!0),t.addEventListener("mousedown",Xy,!0),t.addEventListener("pointerdown",Xy,!0),t.addEventListener("touchstart",Xy,!0),t.addEventListener("visibilitychange",Ky,!0))}),[]);return{isFocusVisible:Jy,onBlurVisible:Zy,ref:e}}var ev=!1,tv=j.createContext(null),nv="unmounted",rv="exited",iv="entering",ov="entered",av="exiting",sv=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=rv,r.appearStatus=iv):i=ov:i=t.unmountOnExit||t.mountOnEnter?nv:rv,r.state={status:i},r.nextCallback=null,r}Sf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===nv?{status:rv}: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!==iv&&n!==ov&&(t=iv):n!==iv&&n!==ov||(t=av)}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===iv){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===rv&&this.setState({status:nv})},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||ev?this.safeSetState({status:ov},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:iv},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ov},(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&&!ev?(this.props.onExit(r),this.safeSetState({status:av},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rv},(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===nv)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=$p(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(tv.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function lv(){}sv.contextType=tv,sv.propTypes={},sv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lv,onEntering:lv,onEntered:lv,onExit:lv,onExiting:lv,onExited:lv},sv.UNMOUNTED=nv,sv.EXITED=rv,sv.ENTERING=iv,sv.ENTERED=ov,sv.EXITING=av;var cv=sv;function uv(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 dv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function mv(e,t,n){var r=uv(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:dv(a,"exit",e),enter:dv(a,"enter",e)})):i[o]=V(a,{in:!1}):i[o]=V(a,{onExited:n.bind(null,a),in:!0,exit:dv(a,"exit",e),enter:dv(a,"enter",e)})}})),i}var pv=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(Ef(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Sf(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,uv(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:dv(e,"appear",n),enter:dv(e,"enter",n),exit:dv(e,"exit",n)})}))):mv(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=uv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Tp({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=$p(e,["component","childFactory"]),i=this.state.contextValue,o=pv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(tv.Provider,{value:i},o):j.createElement(tv.Provider,{value:i},j.createElement(t,r,o))},t}(j.Component);fv.propTypes={},fv.defaultProps={component:"div",childFactory:function(e){return e}};var hv=fv;function gv(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 yv=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=_p(e,["classes","className","component","square","elevation","variant"]);return F.createElement(o,Tp({className:zy(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),vv=Ly((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Tp({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"})(yv),bv="undefined"==typeof window?F.useEffect:F.useLayoutEffect;function xv(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=zy(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=zy(t.child,m&&t.childLeaving,r&&t.childPulsate),y=By(c);return bv((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 Sv=F.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=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(nf(e),[F.createElement(xv,{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",Tp({className:zy(i.root,o),ref:h},a),F.createElement(hv,{component:null,exit:!0},l))})),Ev=Ly((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(Sv)),Mv=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,$=_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"]),_=F.useRef(null);var j=F.useRef(null),B=F.useState(!1),H=B[0],V=B[1];m&&H&&V(!1);var U=Qy(),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 By((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=By((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=By((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=By((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=Hy(r,t),pe=Hy(X,_),fe=Hy(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,Tp({className:zy(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(Ev,Tp({ref:j,center:o},D)):null)})),Cv=Ly({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"})(Mv),Ov={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Tv=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?Ov:b,S=_p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Ov[v])||"span";return F.createElement(E,Tp({className:zy(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(Py(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(Py(r))],"initial"!==u&&i["display".concat(Py(u))]),ref:t},S))})),wv=Ly((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"})(Tv),Av=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=_p(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),w=S&&F.createElement("span",{className:zy(r.startIcon,r["iconSize".concat(Py(x))])},S),A=h&&F.createElement("span",{className:zy(r.endIcon,r["iconSize".concat(Py(x))])},h);return F.createElement(Cv,Tp({className:zy(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(Py(a))],"medium"!==x&&[r["".concat(O,"Size").concat(Py(x))],r["size".concat(Py(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:zy(r.focusVisible,g),ref:t,type:M},T),F.createElement("span",{className:r.label},w,n,A))})),Rv=Ly((function(e){return{root:Tp({},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:zp(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:zp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:zp(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(zp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:zp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(zp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:zp(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"})(Av);var kv="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,Nv=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=Hy(F.isValidElement(n)?n.ref:null,t);return kv((function(){o||c(function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(r)||document.body)}),[r,o]),kv((function(){if(l&&!o)return jy(t,l),function(){jy(t,null)}}),[t,l,o]),kv((function(){a&&(l||o)&&a()}),[a,l,o]),o?F.isValidElement(n)?F.cloneElement(n,{ref:u}):n:l?Y.createPortal(n,l):l})),Iv=Nv;function Lv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pv(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Dv(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(nf(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)&&Lv(e,r)}))}function qv(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function zv(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=$y(e);return t.body===e?_y(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(Pv(o)+a,"px"),n=$y(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Pv(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 $v=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 bf(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&&Lv(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);Dv(t,e.mountNode,e.modalRef,r,!0);var i=qv(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=qv(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=zv(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=qv(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&&Lv(e.modalRef,!0),Dv(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&&Lv(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function _v(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=Hy(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=$y(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 jv={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"}},Fv=F.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=_p(e,["invisible","open"]);return i?F.createElement("div",Tp({"aria-hidden":!0,ref:t},o,{style:Tp({},jv.root,r?jv.invisible:{},o.style)})):null}));var Bv=new $v,Hv=F.forwardRef((function(e,t){var n=sy(),r=hf({name:"MuiModal",props:Tp({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?Fv: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?Bv: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"]),z=F.useState(!0),$=z[0],_=z[1],j=F.useRef({}),B=F.useRef(null),H=F.useRef(null),V=Hy(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return $y(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=By((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=By((function(e){B.current=e,e&&(P&&P(),D&&J()?X():Lv(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:uf}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Dy((function(){_(!1)}),s.props.onEnter),te.onExited=Dy((function(){_(!0),c&&Q()}),s.props.onExited)),F.createElement(Iv,{ref:Z,container:u,disablePortal:x},F.createElement("div",Tp({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:Tp({},ee.root,!D&&$?ee.hidden:{},q.style)}),T?null:F.createElement(o,Tp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),F.createElement(_v,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:W,isEnabled:J,open:D},F.cloneElement(s,te))))})),Vv=Hv,Uv=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=_p(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return F.createElement(s,Tp({className:zy(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))})),Wv=Ly((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:zp(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"})(Uv);function Yv(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Gv={entering:{opacity:1,transform:Yv(1)},entered:{opacity:1,transform:"none"}},Xv=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?cv:h,y=_p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=F.useRef(),b=F.useRef(),x=sy()||Ny,S=x.unstable_strictMode&&!i,E=F.useRef(null),M=Hy(n.ref,t),C=Hy(S?E:void 0,M),O=function(e){return function(t,n){if(e){var r=rf(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=gv({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=gv({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=Yv(.75),c&&c(e)})),N=O(u);return F.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),F.createElement(g,Tp({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,Tp({style:Tp({opacity:0,transform:Yv(.75),visibility:"exited"!==e||o?void 0:"hidden"},Gv[e],m,n.props.style),ref:C},t))}))}));Xv.muiSupportAuto=!0;var Kv=Xv,Jv=F.createContext({}),Zv=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=_p(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=F.useMemo((function(){return{dense:l}}),[l]);return F.createElement(Jv.Provider,{value:p},F.createElement(a,Tp({className:zy(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Qv=Ly({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Zv),eb="undefined"==typeof window?F.useEffect:F.useLayoutEffect,tb=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=_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=F.useContext(Jv),k={dense:v||R.dense||!1,alignItems:r},N=F.useRef(null);eb((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=Hy(F.useCallback((function(e){N.current=Y.findDOMNode(e)}),[]),t),z=Tp({className:zy(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=zy(c.focusVisible,O),$=Cv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),F.createElement(Jv.Provider,{value:k},F.createElement(p,Tp({className:zy(c.container,h),ref:q},g),F.createElement($,z,P),P.pop()))):F.createElement(Jv.Provider,{value:k},F.createElement($,Tp({ref:q},z),P))})),nb=Ly((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"})(tb),rb=F.forwardRef((function(e,t){var n=e.classes,r=e.className,i=_p(e,["classes","className"]),o=F.useContext(Jv);return F.createElement("div",Tp({className:zy(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),ib=Ly((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(rb),ob=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=_p(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=F.useContext(Jv).dense,h=null!=c?c:n;null==h||h.type===wv||a||(h=F.createElement(wv,Tp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===wv||a||(g=F.createElement(wv,Tp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),F.createElement("div",Tp({className:zy(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),ab=Ly({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(ob);function sb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function cb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function ub(e){return"function"==typeof e?e():e}var db=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?Kv: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=F.useRef(),z=F.useCallback((function(e){if("anchorPosition"===l)return a;var t=ub(r),n=(t&&1===t.nodeType?t:$y(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+sb(n,i),left:n.left+lb(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:sb(e,A.vertical)+t,horizontal:lb(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:cb(i)};var o=z(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=_y(ub(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:cb(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?$y(ub(r)).body:void 0);return F.createElement(Vv,Tp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:zy(u.root,d)},D),F.createElement(k,Tp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:Dy((function(e,t){x&&x(e,t),B()}),P.onEntering)}),F.createElement(vv,Tp({elevation:f,ref:H},T,{className:zy(u.paper,T.className)}),c)))})),mb=Ly({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(db);function pb(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:pb(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 hb={menuItem:"alternative-menu-item"},gb=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>gy((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(nb,sp({className:`${i.root} ${n}`},r))},yb=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 vb({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Me.detectTextDirection(e);return j.createElement(gb,{nested:r,role:"menuitem",button:!0,onClick:n,className:hb.menuItem,onKeyDown:yb,dir:a,autoFocus:t},j.createElement(ab,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),j.createElement(ib,{style:{minWidth:16}},j.createElement(fb,{d:t?Um.d:""})),i&&j.createElement(ib,{style:{minWidth:16}},j.createElement(fb,{d:i.d})))}vb.propTypes={title:yp.string.isRequired,selected:yp.bool,onClick:yp.func.isRequired,nested:yp.bool,icon:yp.shape({d:yp.string.isRequired}),bold:yp.bool,dir:yp.string.isRequired},vb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},gb.propTypes={nested:yp.bool,className:yp.string},gb.defaultProps={nested:!1,className:hb.menuItem};const bb={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 xb({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(vb,{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(Qv,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>j.createElement(vb,{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(Wv,{key:`divider-${t.id}`}))}));return j.createElement(mb,sp({anchorEl:t,open:s,onClose:a},bb[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),j.createElement(Qv,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}xb.propTypes={chartId:yp.string.isRequired,alignTo:yp.any,currentId:yp.string.isRequired,dir:yp.string.isRequired,dock:yp.string.isRequired,list:yp.array,onClose:yp.func.isRequired,show:yp.bool.isRequired,instruction:yp.string.isRequired},xb.defaultProps={list:[],alignTo:null};const Sb="title-button",Eb="active-title-button",Mb=Iy((({children:e,...t})=>j.createElement(Rv,sp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Cb=Iy(Rv)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Ob 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(`.${Sb}`);t&&(t.focus(),t.classList.add(Eb))}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(`.${Sb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Eb}`);e&&(e.classList.remove(Eb),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(Mb,{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,sp({},Ym,{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=Me.detectTextDirection(t.text),S=j.createElement(Mb,{"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:`${Sb} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&j.createElement(fb,sp({},Vm,{size:"small",title:r.get("Tooltip.selections.locked")})),j.createElement("span",{style:d,dir:x},t.text),n&&h&&j.createElement(fb,sp({},Wm,{size:"small",style:{margin:"0 8px"}})));return j.createElement(j.Fragment,null,t.icon&&t.icon.onClick&&j.createElement(Cb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},j.createElement(fb,sp({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&j.createElement(fb,sp({},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(xb,{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 Tb(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function wb(e){function t(e){return!e.isDimension&&de.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?rp:op,M=a?ip:ap,C=Boolean(l&&l.colorSupport&&l.modifiers),O=C&&((T=this.settings.settings).isDimension&&de.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:Tb(g),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:C}):void 0;return j.createElement(j.Fragment,{key:t.cId},j.createElement(Ob,{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)}}}Ob.propTypes={chartId:yp.string.isRequired,disabled:yp.bool.isRequired,padding:yp.string,minWidth:yp.string,titleData:yp.shape({breadcrumbs:yp.arrayOf(yp.string).isRequired,icon:yp.shape({path:yp.shape({d:yp.string.isRequired}),tooltip:yp.string.isRequired,onClick:yp.func}),index:yp.number.isRequired,locked:yp.bool.isRequired,text:yp.string.isRequired,popoverText:yp.string.isRequired,drillUp:yp.func,id:yp.string.isRequired}).isRequired,popover:yp.shape({dir:yp.string.isRequired,dock:yp.string.isRequired,getPopoverOptions:yp.func.isRequired}),translator:yp.shape({get:yp.func.isRequired}).isRequired,selections:yp.shape({isActive:yp.func,addListener:yp.func,removeListener:yp.func}),style:yp.shape({fontSize:yp.string,color:yp.string,fontFamily:yp.string}).isRequired,isDimension:yp.bool.isRequired,hasAlternative:yp.bool.isRequired,supportConditional:yp.bool.isRequired,showGroupDimOptions:yp.bool.isRequired},Ob.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const Ab=df({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 Rb=ff({productionPrefix:"qd3a9",disableGlobal:!0,seed:""});function kb(){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(my,{generateClassName:t},j.createElement(Ry,{theme:Ab},e))}(e,Rb),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 Nb(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:Nb(i,t,n)},i}function Ib(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),Nb(i,a,l,e.invert)}))}const Lb={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(ne({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function Pb({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=ne({},{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 Db({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=ne(!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:ne(!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:ne(!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:ne(!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 qb=["oob"];const zb={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=Db({keys:qb,data:i,defaultSettings:{oob:Lb.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=Pb}){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(Lb.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:qb,symbol:s,dockValue:n});return d}},$b={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},_b=["hat"];function jb(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 Fb({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=ne({},e.hat,{type:"path",d:jb(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,ne({},e.hat,{type:"path",d:jb(m)})]}const Bb={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=Db({keys:_b,data:r,defaultSettings:$b,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=Pb}){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(...Fb({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:_b});return c}};var Hb={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 Vb(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function Ub(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 Wb({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?Hb.EQUAL_EQUAL:i<o?Hb.EQUAL_HIGHER:Hb.EQUAL_LOWER:i===o?r>i?Hb.HIGHER_EQUAL:Hb.LOWER_EQUAL:r>i?i<o?Ub(e,t,n)>90?Hb.HIGHER_HIGHER_OBTUSE:Hb.HIGHER_HIGHER_ACUTE:Vb(e,t)>Vb(e,n)?Hb.HIGHER_LOWER_POSITIVE:Hb.HIGHER_LOWER_NEGATIVE:i>o?Ub(e,t,n)>90?Hb.LOWER_LOWER_OBTUSE:Hb.LOWER_LOWER_ACUTE:Vb(e,t)>Vb(e,n)?Hb.LOWER_HIGHER_POSITIVE:Hb.LOWER_HIGHER_NEGATIVE:r===i?Hb.EQUAL_VOID:r>i?Hb.HIGHER_VOID:Hb.LOWER_VOID:i===o?Hb.VOID_EQUAL:i<o?Hb.VOID_HIGHER:Hb.VOID_LOWER:Hb.VOID_VOID}function Yb({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 Gb={X:1,Y:0};function Xb({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*Gb.X,height:m.height+2*Gb.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:Yb({bounds:p,size:a}),border:f?f/2:0,classification:Hb.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 Kb({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:Xb({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 Jb={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Zb={[Hb.EQUAL_EQUAL]:[Jb.TOP,Jb.BOTTOM],[Hb.EQUAL_HIGHER]:[Jb.BOTTOM,Jb.BOTTOM_RIGHT],[Hb.EQUAL_LOWER]:[Jb.TOP,Jb.TOP_RIGHT],[Hb.EQUAL_VOID]:[Jb.TOP,Jb.BOTTOM],[Hb.HIGHER_EQUAL]:[Jb.LEFT,Jb.BOTTOM_LEFT,Jb.TOP,Jb.TOP_RIGHT],[Hb.HIGHER_HIGHER_ACUTE]:[Jb.BOTTOM,Jb.BOTTOM_LEFT,Jb.LEFT,Jb.TOP_RIGHT],[Hb.HIGHER_HIGHER_OBTUSE]:[Jb.BOTTOM,Jb.TOP],[Hb.HIGHER_LOWER_NEGATIVE]:[Jb.TOP,Jb.TOP_RIGHT,Jb.RIGHT],[Hb.HIGHER_LOWER_POSITIVE]:[Jb.BOTTOM,Jb.BOTTOM_LEFT,Jb.LEFT],[Hb.HIGHER_VOID]:[Jb.TOP],[Hb.LOWER_EQUAL]:[Jb.TOP],[Hb.LOWER_HIGHER_NEGATIVE]:[Jb.TOP,Jb.TOP_LEFT],[Hb.LOWER_HIGHER_POSITIVE]:[Jb.BOTTOM_RIGHT],[Hb.LOWER_LOWER_ACUTE]:[Jb.TOP,Jb.TOP_LEFT,Jb.LEFT,Jb.TOP_RIGHT,Jb.RIGHT],[Hb.LOWER_LOWER_OBTUSE]:[Jb.TOP,Jb.BOTTOM],[Hb.LOWER_VOID]:[Jb.TOP],[Hb.VOID_EQUAL]:[Jb.TOP],[Hb.VOID_HIGHER]:[Jb.TOP,Jb.BOTTOM],[Hb.VOID_LOWER]:[Jb.TOP,Jb.BOTTOM,Jb.LEFT],[Hb.VOID_VOID]:[Jb.TOP],[Hb.MARKER]:[Jb.TOP,Jb.BOTTOM,Jb.RIGHT,Jb.LEFT,Jb.TOP_RIGHT,Jb.BOTTOM_RIGHT,Jb.BOTTOM_LEFT,Jb.TOP_LEFT]};function Qb({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s,marker:l}){const c=Kb({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?Hb.MARKER:Wb({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(Zb[e.classification]))),p}function ex({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 tx({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 nx({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 tx({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||tx({line1:e,line2:a})||tx({line1:e,line2:s})||tx({line1:e,line2:l})}({line:t,rect:e})))}const rx={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 ox=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),ax=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),sx=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),lx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),cx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),ux=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),dx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),mx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var px={X:2.5,Y:4};const fx=[Jb.TOP,Jb.TOP_LEFT,Jb.TOP_RIGHT],hx=[Jb.BOTTOM,Jb.BOTTOM_LEFT,Jb.BOTTOM_RIGHT];function gx({position:e}){const t={x:px.X,width:-2*px.X,y:0,height:0},n=fx.indexOf(e)>-1,r=hx.indexOf(e)>-1;return n&&(t.y=px.Y,t.height=-px.Y),r&&(t.height=-px.Y),t}function yx({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 vx({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 bx=15;function xx({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+=bx){const a=vx({coordinates:yx({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-=bx){const a=vx({coordinates:yx({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 Sx=void 0;function Ex({item:e,validator:t,force:n=!1,marker:r=!1}){const i=[...e.preferences,...Object.keys(r?ix:Jb).map((e=>Jb[e])).filter((t=>-1===e.preferences.indexOf(t)))],o={[Jb.TOP]:ox,[Jb.TOP_RIGHT]:ax,[Jb.RIGHT]:sx,[Jb.BOTTOM_RIGHT]:lx,[Jb.BOTTOM]:cx,[Jb.BOTTOM_LEFT]:ux,[Jb.LEFT]:dx,[Jb.TOP_LEFT]:mx},a=[];for(let r=0;r<i.length;r++){const s=i[r],l=o[s]({item:e}),c=gx({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=()=>xx({item:e,validator:t,force:n});if(n){const e=s();return e||(a[0]||Sx)}return(e.extreme||e.elite)&&s()||Sx}function Mx({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=rx,ignoreLines:a=!1}){const s={inside:ex({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=nx({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=Ex({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=Ex({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 Cx={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=Qb({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}),Mx({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"})))}},Ox={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var Tx={black:"#000",white:"#fff"};var wx={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 Ax={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 Rx={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 kx={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 Nx={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 Ix={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 Lx={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 Px(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 Dx=Object.freeze({__proto__:null,default:Px}),qx="$$material";var zx=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),$x="-ms-",_x="-moz-",jx="-webkit-",Fx="comm",Bx="rule",Hx="decl",Vx="@keyframes",Ux=Math.abs,Wx=String.fromCharCode,Yx=Object.assign;function Gx(e){return e.trim()}function Xx(e,t,n){return e.replace(t,n)}function Kx(e,t){return e.indexOf(t)}function Jx(e,t){return 0|e.charCodeAt(t)}function Zx(e,t,n){return e.slice(t,n)}function Qx(e){return e.length}function eS(e){return e.length}function tS(e,t){return t.push(e),e}var nS=1,rS=1,iS=0,oS=0,aS=0,sS="";function lS(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:nS,column:rS,length:a,return:""}}function cS(e,t){return Yx(lS("",null,null,"",null,null,0),e,{length:-e.length},t)}function uS(){return aS=oS>0?Jx(sS,--oS):0,rS--,10===aS&&(rS=1,nS--),aS}function dS(){return aS=oS<iS?Jx(sS,oS++):0,rS++,10===aS&&(rS=1,nS++),aS}function mS(){return Jx(sS,oS)}function pS(){return oS}function fS(e,t){return Zx(sS,e,t)}function hS(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 gS(e){return nS=rS=1,iS=Qx(sS=e),oS=0,[]}function yS(e){return sS="",e}function vS(e){return Gx(fS(oS-1,SS(91===e?e+2:40===e?e+1:e)))}function bS(e){for(;(aS=mS())&&aS<33;)dS();return hS(e)>2||hS(aS)>3?"":" "}function xS(e,t){for(;--t&&dS()&&!(aS<48||aS>102||aS>57&&aS<65||aS>70&&aS<97););return fS(e,pS()+(t<6&&32==mS()&&32==dS()))}function SS(e){for(;dS();)switch(aS){case e:return oS;case 34:case 39:34!==e&&39!==e&&SS(aS);break;case 40:41===e&&SS(e);break;case 92:dS()}return oS}function ES(e,t){for(;dS()&&e+aS!==57&&(e+aS!==84||47!==mS()););return"/*"+fS(t,oS-1)+"*"+Wx(47===e?e:dS())}function MS(e){for(;!hS(mS());)dS();return fS(e,oS)}function CS(e){return yS(OS("",null,null,null,[""],e=gS(e),0,[0],e))}function OS(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=dS()){case 40:if(108!=f&&58==Jx(M,d-1)){-1!=Kx(M+=Xx(vS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=vS(v);break;case 9:case 10:case 13:case 32:M+=bS(f);break;case 92:M+=xS(pS()-1,7);continue;case 47:switch(mS()){case 42:case 47:tS(wS(ES(dS(),pS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=Qx(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=Xx(M,/\f/g,"")),p>0&&Qx(M)-d&&tS(p>32?AS(M+";",r,n,d-1):AS(Xx(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(tS(E=TS(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)OS(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===Jx(M,3)?100:m){case 100:case 108:case 109:case 115:OS(e,E,E,r&&tS(TS(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:OS(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+Qx(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==uS())continue;switch(M+=Wx(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(Qx(M)-1)*y,y=1;break;case 64:45===mS()&&(M+=vS(dS())),m=mS(),u=d=Qx(b=M+=MS(pS())),v++;break;case 45:45===f&&2==Qx(M)&&(h=0)}}return o}function TS(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=eS(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=Zx(e,d+1,d=Ux(h=a[f])),b=e;y<p;++y)(b=Gx(h>0?m[y]+" "+v:Xx(v,/&\f/g,m[y])))&&(l[g++]=b);return lS(e,t,n,0===i?Bx:s,l,c,u)}function wS(e,t,n){return lS(e,t,n,Fx,Wx(aS),Zx(e,2,-2),0)}function AS(e,t,n,r){return lS(e,t,n,Hx,Zx(e,0,r),Zx(e,r+1,-1),r)}function RS(e,t){for(var n="",r=eS(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function kS(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Hx:return e.return=e.return||e.value;case Fx:return"";case Vx:return e.return=e.value+"{"+RS(e.children,r)+"}";case Bx:e.value=e.props.join(",")}return Qx(n=RS(e.children,r))?e.return=e.value+"{"+n+"}":""}function NS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var IS=function(e,t,n){for(var r=0,i=0;r=i,i=mS(),38===r&&12===i&&(t[n]=1),!hS(i);)dS();return fS(e,oS)},LS=function(e,t){return yS(function(e,t){var n=-1,r=44;do{switch(hS(r)){case 0:38===r&&12===mS()&&(t[n]=1),e[n]+=IS(oS-1,t,n);break;case 2:e[n]+=vS(r);break;case 4:if(44===r){e[++n]=58===mS()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Wx(r)}}while(r=dS());return e}(gS(e),t))},PS=new WeakMap,DS=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)||PS.get(n))&&!r){PS.set(e,!0);for(var i=[],o=LS(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]}}},qS=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function zS(e,t){switch(function(e,t){return 45^Jx(e,0)?(((t<<2^Jx(e,0))<<2^Jx(e,1))<<2^Jx(e,2))<<2^Jx(e,3):0}(e,t)){case 5103:return jx+"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 jx+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return jx+e+_x+e+$x+e+e;case 6828:case 4268:return jx+e+$x+e+e;case 6165:return jx+e+$x+"flex-"+e+e;case 5187:return jx+e+Xx(e,/(\w+).+(:[^]+)/,jx+"box-$1$2"+$x+"flex-$1$2")+e;case 5443:return jx+e+$x+"flex-item-"+Xx(e,/flex-|-self/,"")+e;case 4675:return jx+e+$x+"flex-line-pack"+Xx(e,/align-content|flex-|-self/,"")+e;case 5548:return jx+e+$x+Xx(e,"shrink","negative")+e;case 5292:return jx+e+$x+Xx(e,"basis","preferred-size")+e;case 6060:return jx+"box-"+Xx(e,"-grow","")+jx+e+$x+Xx(e,"grow","positive")+e;case 4554:return jx+Xx(e,/([^-])(transform)/g,"$1"+jx+"$2")+e;case 6187:return Xx(Xx(Xx(e,/(zoom-|grab)/,jx+"$1"),/(image-set)/,jx+"$1"),e,"")+e;case 5495:case 3959:return Xx(e,/(image-set\([^]*)/,jx+"$1$`$1");case 4968:return Xx(Xx(e,/(.+:)(flex-)?(.*)/,jx+"box-pack:$3"+$x+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+jx+e+e;case 4095:case 3583:case 4068:case 2532:return Xx(e,/(.+)-inline(.+)/,jx+"$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(Qx(e)-1-t>6)switch(Jx(e,t+1)){case 109:if(45!==Jx(e,t+4))break;case 102:return Xx(e,/(.+:)(.+)-([^]+)/,"$1"+jx+"$2-$3$1"+_x+(108==Jx(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Kx(e,"stretch")?zS(Xx(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Jx(e,t+1))break;case 6444:switch(Jx(e,Qx(e)-3-(~Kx(e,"!important")&&10))){case 107:return Xx(e,":",":"+jx)+e;case 101:return Xx(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+jx+(45===Jx(e,14)?"inline-":"")+"box$3$1"+jx+"$2$3$1"+$x+"$2box$3")+e}break;case 5936:switch(Jx(e,t+11)){case 114:return jx+e+$x+Xx(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return jx+e+$x+Xx(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return jx+e+$x+Xx(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return jx+e+$x+e+e}return e}var $S=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Hx:e.return=zS(e.value,e.length);break;case Vx:return RS([cS(e,{value:Xx(e.value,"@","@"+jx)})],r);case Bx: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 RS([cS(e,{props:[Xx(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return RS([cS(e,{props:[Xx(t,/:(plac\w+)/,":"+jx+"input-$1")]}),cS(e,{props:[Xx(t,/:(plac\w+)/,":-moz-$1")]}),cS(e,{props:[Xx(t,/:(plac\w+)/,$x+"input-$1")]})],r)}return""}))}}],_S=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||$S,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[kS,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=eS(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([DS,qS].concat(o,u));i=function(e,t,n,r){l=n,function(e){RS(CS(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new zx({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 m.sheet.hydrate(s),m};function jS(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var FS=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},BS=function(e,t,n){FS(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var HS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VS=!1,US=/[A-Z]|^ms/g,WS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,YS=function(e){return 45===e.charCodeAt(1)},GS=function(e){return null!=e&&"boolean"!=typeof e},XS=NS((function(e){return YS(e)?e:e.replace(US,"-$&").toLowerCase()})),KS=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(WS,(function(e,t,n){return QS={name:t,styles:n,next:QS},t}))}return 1===HS[e]||YS(e)||"number"!=typeof t||0===t?t:t+"px"},JS="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ZS(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return QS={name:i.name,styles:i.styles,next:QS},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)QS={name:a.name,styles:a.styles,next:QS},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ZS(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":GS(s)&&(r+=XS(o)+":"+KS(o,s)+";")}else{if("NO_COMPONENT_SELECTOR"===o&&VS)throw new Error(JS);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ZS(e,t,a);switch(o){case"animation":case"animationName":r+=XS(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)GS(a[c])&&(r+=XS(o)+":"+KS(o,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=QS,l=n(e);return QS=s,ZS(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var QS,eE=/label:\s*([^\s;{]+)\s*(;|$)/g;function tE(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="";QS=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=ZS(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=ZS(n,t,e[a]),r)i+=o[a]}eE.lastIndex=0;for(var s,l="";null!==(s=eE.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:QS}}var nE,rE,iE=!!F.useInsertionEffect&&F.useInsertionEffect,oE=iE||function(e){return e()},aE=iE||F.useLayoutEffect,sE=F.createContext("undefined"!=typeof HTMLElement?_S({key:"css"}):null),lE=sE.Provider,cE=function(e){return U((function(t,n){var r=W(sE);return e(t,r,n)}))},uE=F.createContext({}),dE={}.hasOwnProperty,mE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return FS(t,n,r),oE((function(){return BS(t,n,r)})),null},fE=cE((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[mE],o=[r],a="";"string"==typeof e.className?a=jS(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=tE(o,void 0,F.useContext(uE));a+=t.key+"-"+s.name;var l={};for(var c in e)dE.call(e,c)&&"css"!==c&&c!==mE&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),F.createElement(F.Fragment,null,F.createElement(pE,{cache:t,serialized:s,isStringTag:"string"==typeof i}),F.createElement(i,l))})),hE=fE,gE=function(e,t){var n=arguments;if(null==t||!dE.call(t,"css"))return F.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=hE,i[1]=function(e,t){var n={};for(var r in t)dE.call(t,r)&&(n[r]=t[r]);return n[mE]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return F.createElement.apply(null,i)};nE=gE||(gE={}),rE||(rE=nE.JSX||(nE.JSX={}));var yE=cE((function(e,t){var n=tE([e.styles],void 0,F.useContext(uE)),r=F.useRef();return aE((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),aE((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&BS(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function vE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tE(t)}function bE(){var e=vE.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var xE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,SE=NS((function(e){return xE.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),EE=function(e){return"theme"!==e},ME=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?SE:EE},CE=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},OE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return FS(t,n,r),oE((function(){return BS(t,n,r)})),null},TE=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=CE(t,n,o),l=s||ME(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{var m=u[0];d.push(m[0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],m[f])}var h=cE((function(e,t,n){var r=c&&e.as||a,o="",u=[],m=e;if(null==e.theme){for(var p in m={},e)m[p]=e[p];m.theme=F.useContext(uE)}"string"==typeof e.className?o=jS(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var f=tE(d.concat(u),t.registered,m);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var h=c&&void 0===s?ME(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=o,n&&(g.ref=n),F.createElement(F.Fragment,null,F.createElement(OE,{cache:t,serialized:f,isStringTag:"string"==typeof r}),F.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,Tp({},n,r,{shouldForwardProp:CE(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){TE[e]=TE(e)}));var wE,AE,RE={exports:{}},kE={};var NE=(AE||(AE=1,RE.exports=function(){if(wE)return kE;wE=1;var e=j,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!o.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return kE.Fragment=n,kE.jsx=a,kE.jsxs=a,kE}()),RE.exports);let IE;"object"==typeof document&&(IE=_S({key:"css",prepend:!0}));var LE=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 NE.jsx(yE,{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&&NE?kE.jsx(sE,{value:NE,children:n}):n},ThemeContext:cE,css:yE,default:function(e,t){return OE(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:vE});function LE(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 PE(e){if(!LE(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=PE(e[n])})),t}function DE(e,t,n={clone:!0}){const r=n.clone?Op({},e):e;return LE(e)&&LE(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(LE(t[i])&&i in e&&LE(e[i])?r[i]=DE(e[i],t[i],n):n.clone?r[i]=LE(t[i])?PE(t[i]):t[i]:r[i]=t[i])})),r}var qE=Object.freeze({__proto__:null,default:DE,isPlainObject:LE});const zE=["values","unit","step"],$E=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)=>Op({},e,{[t.key]:t.val})),{})};function _E(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=zp(e,zE),o=$E(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 Op({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 jE={borderRadius:4};function FE(e,t){return t?DE(e,t,{clone:!1}):e}const BE={xs:0,sm:600,md:900,lg:1200,xl:1536},HE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${BE[e]}px)`};function VE(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||HE;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||HE;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||BE).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function UE(e){if("string"!=typeof e)throw new Error(Lx(7));return e.charAt(0).toUpperCase()+e.slice(1)}var WE=Object.freeze({__proto__:null,default:UE});function YE(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 GE(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:YE(e,n)||r,t&&(i=t(i,r,e)),i}function XE(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=YE(e.theme,r)||{};return VE(e,o,(e=>{let r=GE(a,i,e);return e===r&&"string"==typeof e&&(r=GE(a,i,`${t}${"default"===e?"":UE(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const KE={m:"margin",p:"padding"},JE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ZE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QE=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ZE[e])return[e];e=ZE[e]}const[t,n]=e.split(""),r=KE[t],i=JE[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),eM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],tM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function nM(e,t,n,r){var i;const o=null!=(i=YE(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 rM(e){return nM(e,"spacing",8)}function iM(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 oM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=iM(t,n),e)),{})}(QE(n),r);return VE(e,e[n],i)}function aM(e,t){const n=rM(e.theme);return Object.keys(e).map((r=>oM(e,t,r,n))).reduce(FE,{})}function sM(e){return aM(e,eM)}function lM(e){return aM(e,tM)}function cM(...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]?FE(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function uM(e){return"number"!=typeof e?e:`${e}px solid`}function dM(e,t){return XE({prop:e,themeKey:"borders",transform:t})}sM.propTypes={},sM.filterProps=eM,lM.propTypes={},lM.filterProps=tM;const mM=dM("border",uM),pM=dM("borderTop",uM),fM=dM("borderRight",uM),hM=dM("borderBottom",uM),gM=dM("borderLeft",uM),yM=dM("borderColor"),vM=dM("borderTopColor"),bM=dM("borderRightColor"),xM=dM("borderBottomColor"),SM=dM("borderLeftColor"),EM=dM("outline",uM),MM=dM("outlineColor"),CM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=nM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:iM(t,e)});return VE(e,e.borderRadius,n)}return null};CM.propTypes={},CM.filterProps=["borderRadius"],cM(mM,pM,fM,hM,gM,yM,vM,bM,xM,SM,CM,EM,MM);const OM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=nM(e.theme,"spacing",8),n=e=>({gap:iM(t,e)});return VE(e,e.gap,n)}return null};OM.propTypes={},OM.filterProps=["gap"];const TM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=nM(e.theme,"spacing",8),n=e=>({columnGap:iM(t,e)});return VE(e,e.columnGap,n)}return null};TM.propTypes={},TM.filterProps=["columnGap"];const wM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=nM(e.theme,"spacing",8),n=e=>({rowGap:iM(t,e)});return VE(e,e.rowGap,n)}return null};wM.propTypes={},wM.filterProps=["rowGap"];function AM(e,t){return"grey"===t?t:e}cM(OM,TM,wM,XE({prop:"gridColumn"}),XE({prop:"gridRow"}),XE({prop:"gridAutoFlow"}),XE({prop:"gridAutoColumns"}),XE({prop:"gridAutoRows"}),XE({prop:"gridTemplateColumns"}),XE({prop:"gridTemplateRows"}),XE({prop:"gridTemplateAreas"}),XE({prop:"gridArea"}));function RM(e){return e<=1&&0!==e?100*e+"%":e}cM(XE({prop:"color",themeKey:"palette",transform:AM}),XE({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:AM}),XE({prop:"backgroundColor",themeKey:"palette",transform:AM}));const kM=XE({prop:"width",transform:RM}),NM=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])||BE[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:RM(t)}};return VE(e,e.maxWidth,t)}return null};NM.filterProps=["maxWidth"];const IM=XE({prop:"minWidth",transform:RM}),LM=XE({prop:"height",transform:RM}),PM=XE({prop:"maxHeight",transform:RM}),DM=XE({prop:"minHeight",transform:RM});XE({prop:"size",cssProperty:"width",transform:RM}),XE({prop:"size",cssProperty:"height",transform:RM});cM(kM,NM,IM,LM,PM,DM,XE({prop:"boxSizing"}));var qM={border:{themeKey:"borders",transform:uM},borderTop:{themeKey:"borders",transform:uM},borderRight:{themeKey:"borders",transform:uM},borderBottom:{themeKey:"borders",transform:uM},borderLeft:{themeKey:"borders",transform:uM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:uM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:CM},color:{themeKey:"palette",transform:AM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:AM},backgroundColor:{themeKey:"palette",transform:AM},p:{style:lM},pt:{style:lM},pr:{style:lM},pb:{style:lM},pl:{style:lM},px:{style:lM},py:{style:lM},padding:{style:lM},paddingTop:{style:lM},paddingRight:{style:lM},paddingBottom:{style:lM},paddingLeft:{style:lM},paddingX:{style:lM},paddingY:{style:lM},paddingInline:{style:lM},paddingInlineStart:{style:lM},paddingInlineEnd:{style:lM},paddingBlock:{style:lM},paddingBlockStart:{style:lM},paddingBlockEnd:{style:lM},m:{style:sM},mt:{style:sM},mr:{style:sM},mb:{style:sM},ml:{style:sM},mx:{style:sM},my:{style:sM},margin:{style:sM},marginTop:{style:sM},marginRight:{style:sM},marginBottom:{style:sM},marginLeft:{style:sM},marginX:{style:sM},marginY:{style:sM},marginInline:{style:sM},marginInlineStart:{style:sM},marginInlineEnd:{style:sM},marginBlock:{style:sM},marginBlockStart:{style:sM},marginBlockEnd:{style:sM},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:OM},rowGap:{style:wM},columnGap:{style:TM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:RM},maxWidth:{style:NM},minWidth:{transform:RM},height:{transform:RM},maxHeight:{transform:RM},minHeight:{transform:RM},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function zM(){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=YE(n,s)||{};if(c)return c(i);return VE(i,t,(t=>{let n=GE(u,l,t);return t===n&&"string"==typeof t&&(n=GE(u,l,`${e}${"default"===t?"":UE(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:qM;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=FE(l,e(n,i,o,a));else{const e=VE({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=FE(l,e):l[n]=t({sx:i,theme:o})}else l=FE(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 $M=zM();$M.filterProps=["sx"];var _M=$M;function jM(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 FM=["breakpoints","palette","spacing","shape"];function BM(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=zp(e,FM),s=_E(n),l=function(e=8){if(e.mui)return e;const t=rM({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=DE({breakpoints:s,direction:"ltr",components:{},palette:Op({mode:"light"},r),spacing:l,shape:Op({},jE,o)},a);return c.applyStyles=jM,c=t.reduce(((e,t)=>DE(e,t)),c),c.unstable_sxConfig=Op({},qM,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return _M({sx:e,theme:this})},c}var HM=Object.freeze({__proto__:null,default:BM,private_createBreakpoints:_E,unstable_applyStyles:jM});function VM(e=null){const t=F.useContext(cE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const UM=BM();const WM=["sx"];var YM=Object.freeze({__proto__:null,default:_M,extendSxProp:function(e){const{sx:t}=e,n=zp(e,WM),{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:qM;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 LE(n)?Op({},r,n):r}:Op({},r,t),Op({},i,{sx:o})},unstable_createStyleFunctionSx:zM,unstable_defaultSxConfig:qM});const GM=e=>e;var XM=(()=>{let e=GM;return{configure(t){e=t},generate:t=>e(t),reset(){e=GM}}})();function KM(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=KM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function JM(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=KM(e))&&(r&&(r+=" "),r+=t);return r}const ZM={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 QM(e,t,n="Mui"){const r=ZM[t];return r?`${n}-${r}`:`${XM.generate(e)}-${t}`}function eC(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=QM(e,t,n)})),r}var tC,nC,rC={exports:{}},iC={};var oC=(nC||(nC=1,rC.exports=function(){if(tC)return iC;tC=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case o:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case m:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),iC.ContextConsumer=s,iC.ContextProvider=a,iC.Element=t,iC.ForwardRef=c,iC.Fragment=r,iC.Lazy=p,iC.Memo=m,iC.Portal=n,iC.Profiler=o,iC.StrictMode=i,iC.Suspense=u,iC.SuspenseList=d,iC.isAsyncMode=function(){return!1},iC.isConcurrentMode=function(){return!1},iC.isContextConsumer=function(e){return h(e)===s},iC.isContextProvider=function(e){return h(e)===a},iC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},iC.isForwardRef=function(e){return h(e)===c},iC.isFragment=function(e){return h(e)===r},iC.isLazy=function(e){return h(e)===p},iC.isMemo=function(e){return h(e)===m},iC.isPortal=function(e){return h(e)===n},iC.isProfiler=function(e){return h(e)===o},iC.isStrictMode=function(e){return h(e)===i},iC.isSuspense=function(e){return h(e)===u},iC.isSuspenseList=function(e){return h(e)===d},iC.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===m||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},iC.typeOf=h,iC}()),rC.exports);const aC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sC(e){const t=`${e}`.match(aC);return t&&t[1]||""}function lC(e,t=""){return e.displayName||e.name||sC(e)||t}function cC(e,t,n){const r=lC(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var uC=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return lC(e,"Component");if("object"==typeof e)switch(e.$$typeof){case oC.ForwardRef:return cC(e,e.render,"ForwardRef");case oC.Memo:return cC(e,e.type,"memo");default:return}}},getFunctionName:sC});function dC(e,t){const n=Op({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Op({},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]=Op({},o),Object.keys(i).forEach((e=>{n[r][e]=dC(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function mC({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=UM){return VM(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?dC(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var pC="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;var fC=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 hC(e){const t=F.useRef(e);return pC((()=>{t.current=e})),F.useRef(((...e)=>(0,t.current)(...e))).current}function gC(...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 yC={};const vC=[];class bC{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bC}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function xC(){const e=function(e,t){const n=F.useRef(yC);return n.current===yC&&(n.current=e(t)),n}(bC.create).current;var t;return t=e.disposeEffect,F.useEffect(t,vC),e}let SC=!0,EC=!1;const MC=new bC,CC={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 OC(e){e.metaKey||e.altKey||e.ctrlKey||(SC=!0)}function TC(){SC=!1}function wC(){"hidden"===this.visibilityState&&EC&&(SC=!0)}function AC(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return SC||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!CC[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function RC(){const e=F.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",OC,!0),t.addEventListener("mousedown",TC,!0),t.addEventListener("pointerdown",TC,!0),t.addEventListener("touchstart",TC,!0),t.addEventListener("visibilitychange",wC,!0))}),[]),t=F.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!AC(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(EC=!0,MC.start(100,(()=>{EC=!1})),t.current=!1,!0)},ref:e}}function kC(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 NC=F.createContext(null);function IC(){return F.useContext(NC)}var LC="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function PC(e){const{children:t,theme:n}=e,r=IC(),i=F.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Op({},e,t)}(r,n);return null!=e&&(e[LC]=null!==r),e}),[n,r]);return kE.jsx(NC.Provider,{value:i,children:t})}const DC=["value"],qC=F.createContext();function zC(e){let{value:t}=e,n=zp(e,DC);return kE.jsx(qC.Provider,Op({value:null==t||t},n))}const $C={};function _C(e,t,n,r=!1){return F.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?Op({},t,{[e]:o}):o;return r?()=>a:a}return Op({},t,e?{[e]:n}:n)}),[e,t,n,r])}function jC(e){const{children:t,theme:n,themeId:r}=e,i=VM($C),o=IC()||$C,a=_C(r,i,n),s=_C(r,o,n,!0),l="rtl"===a.direction;return kE.jsx(PC,{theme:s,children:kE.jsx(cE.Provider,{value:a,children:kE.jsx(zC,{value:l,children:t})})})}var FC,BC={},HC={exports:{}};function VC(){return FC||(FC=1,(e=HC).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),HC.exports;var e}var UC,WC=ee(Px),YC=ee(fC);function GC(){if(UC)return BC;UC=1;var e=VC();Object.defineProperty(BC,"__esModule",{value:!0}),BC.alpha=u,BC.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=o(e),l=o(t),c=[i(a.values[0],l.values[0]),i(a.values[1],l.values[1]),i(a.values[2],l.values[2])];return s({type:"rgb",values:c})},BC.colorChannel=void 0,BC.darken=d,BC.decomposeColor=o,BC.emphasize=function(e,t=.15){return c(e)>.5?d(e,t):m(e,t)},BC.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},BC.getLuminance=c,BC.hexToRgb=i,BC.hslToRgb=l,BC.lighten=m,BC.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},BC.private_safeColorChannel=void 0,BC.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},BC.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},BC.private_safeLighten=function(e,t,n){try{return m(e,t)}catch(t){return e}},BC.recomposeColor=s,BC.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=o(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(WC),n=e(YC);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function i(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 o(e){if(e.type)return e;if("#"===e.charAt(0))return o(i(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=o(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};BC.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function m(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}return BC.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},BC}var XC=GC();const KC=["mode","contrastThreshold","tonalOffset"],JC={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:Ox.white,default:Ox.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}},ZC={text:{primary:Ox.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:Ox.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 QC(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=XC.lighten(e.main,i):"dark"===t&&(e.dark=XC.darken(e.main,o)))}function eO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=zp(e,KC),o=e.primary||function(e="light"){return"dark"===e?{main:Ax[200],light:Ax[50],dark:Ax[400]}:{main:Ax[700],light:Ax[400],dark:Ax[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wx[200],light:wx[50],dark:wx[400]}:{main:wx[500],light:wx[300],dark:wx[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Tx[500],light:Tx[300],dark:Tx[700]}:{main:Tx[700],light:Tx[400],dark:Tx[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Rx[400],light:Rx[300],dark:Rx[700]}:{main:Rx[700],light:Rx[500],dark:Rx[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:kx[400],light:kx[300],dark:kx[700]}:{main:kx[800],light:kx[500],dark:kx[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Nx[400],light:Nx[300],dark:Nx[700]}:{main:"#ed6c02",light:Nx[500],dark:Nx[900]}}(t);function d(e){return XC.getContrastRatio(e,ZC.text.primary)>=n?ZC.text.primary:JC.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=Op({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Lx(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Lx(12,t?` (${t})`:"",JSON.stringify(e.main)));return QC(e,"light",i,r),QC(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:ZC,light:JC};return DE(Op({common:Op({},Ox),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:Ix,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const tO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const nO={textTransform:"uppercase"},rO='"Roboto", "Helvetica", "Arial", sans-serif';function iO(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=rO,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=zp(n,tO),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return Op({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===rO?{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,nO),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,nO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return DE(Op({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function oO(...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 aO=["none",oO(0,2,1,-1,0,1,1,0,0,1,3,0),oO(0,3,1,-2,0,2,2,0,0,1,5,0),oO(0,3,3,-2,0,3,4,0,0,1,8,0),oO(0,2,4,-1,0,4,5,0,0,1,10,0),oO(0,3,5,-1,0,5,8,0,0,1,14,0),oO(0,3,5,-1,0,6,10,0,0,1,18,0),oO(0,4,5,-2,0,7,10,1,0,2,16,1),oO(0,5,5,-3,0,8,10,1,0,3,14,2),oO(0,5,6,-3,0,9,12,1,0,3,16,2),oO(0,6,6,-3,0,10,14,1,0,4,18,3),oO(0,6,7,-4,0,11,15,1,0,4,20,3),oO(0,7,8,-4,0,12,17,2,0,5,22,4),oO(0,7,8,-4,0,13,19,2,0,5,24,4),oO(0,7,9,-4,0,14,21,2,0,5,26,4),oO(0,8,9,-5,0,15,22,2,0,6,28,5),oO(0,8,10,-5,0,16,24,2,0,6,30,5),oO(0,8,11,-5,0,17,26,2,0,6,32,5),oO(0,9,11,-5,0,18,28,2,0,7,34,6),oO(0,9,12,-6,0,19,29,2,0,7,36,6),oO(0,10,13,-6,0,20,31,3,0,8,38,7),oO(0,10,13,-6,0,21,33,3,0,8,40,7),oO(0,10,14,-6,0,22,35,3,0,8,42,7),oO(0,11,14,-7,0,23,36,3,0,9,44,8),oO(0,11,15,-7,0,24,38,3,0,9,46,8)];const sO=["duration","easing","delay"],lO={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)"},cO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function uO(e){return`${Math.round(e)}ms`}function dO(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function mO(e){const t=Op({},lO,e.easing),n=Op({},cO,e.duration);return Op({getAutoHeightDuration:dO,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return zp(r,sO),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:uO(i)} ${o} ${"string"==typeof a?a:uO(a)}`)).join(",")}},e,{easing:t,duration:n})}var pO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const fO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hO(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=zp(e,fO);if(e.vars)throw new Error(Lx(18));const s=eO(r),l=BM(e);let c=DE(l,{mixins:(u=l.breakpoints,d=n,Op({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:aO.slice(),typography:iO(s,o),transitions:mO(i),zIndex:Op({},pO)});var u,d;return c=DE(c,a),c=t.reduce(((e,t)=>DE(e,t)),c),c.unstable_sxConfig=Op({},qM,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return _M({sx:e,theme:this})},c}var gO=hO();function yO({props:e,name:t}){return mC({props:e,name:t,defaultTheme:gO,themeId:Dx})}var vO,bO={},xO={exports:{}};var SO,EO={exports:{}};var MO,CO=ee(IE),OO=ee(qE),TO=ee(WE),wO=ee(uC),AO=ee(HM),RO=ee(YM);function kO(){if(MO)return bO;MO=1;var e=VC();Object.defineProperty(bO,"__esModule",{value:!0}),bO.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=m,slotShouldForwardProp:c=m}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:h((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(f(v))}=s,E=(0,r.default)(s,u),M=void 0!==b?b:v&&"Root"!==v&&"root"!==v||!1,C=x||!1;let O=m;"Root"===v||"root"===v?O=l:v?O=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(O=void 0);const T=(0,i.default)(e,(0,n.default)({shouldForwardProp:O,label:undefined},E)),w=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>y(e,(0,n.default)({},r,{theme:h({theme:r.theme,defaultTheme:a,themeId:t})})):e,A=(r,...i)=>{let o=w(r);const s=i?i.map(w):[];p&&S&&s.push((e=>{const r=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const i=r.components[p].styleOverrides,o={};return Object.entries(i).forEach((([t,i])=>{o[t]=y(i,(0,n.default)({},e,{theme:r}))})),S(e,o)})),p&&!M&&s.push((e=>{var r;const i=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==i||null==(r=i.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:i}))})),C||s.push(d);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const c=T(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(A.withConfig=T.withConfig),A}},bO.shouldForwardProp=m,bO.systemDefaultTheme=void 0;var t,n=e((vO||(vO=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}(xO)),xO.exports)),r=e((SO||(SO=1,(t=EO).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},t.exports.__esModule=!0,t.exports.default=t.exports),EO.exports)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(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}(CO),o=OO;e(TO),e(wO);var a=e(AO),s=e(RO);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=bO.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:i}=t,o=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:i},o)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,n.default)({ownerState:i},o))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,c);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:i},o,i)):Object.keys(e.props).forEach((t=>{(null==i?void 0:i[t])!==e.props[t]&&o[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:i},o,i)):e.style))})),t}return a}return bO}var NO=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var IO=Q(kO())({themeId:Dx,defaultTheme:gO,rootShouldForwardProp:NO});const LO=["theme"];function PO(e){let{theme:t}=e,n=zp(e,LO);const r=t[Dx];return kE.jsx(jC,Op({},n,{themeId:r?Dx:void 0,theme:r||t}))}function DO(e){return QM("MuiSvgIcon",e)}eC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],zO=IO("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${UE(n.color)}`],t[`fontSize${UE(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]}})),$O=F.forwardRef((function(e,t){const n=yO({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=zp(n,qO),p=F.isValidElement(r)&&"svg"===r.type,f=Op({},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 kC({root:["root","inherit"!==t&&`color${UE(t)}`,`fontSize${UE(n)}`]},DO,r)})(f);return kE.jsxs(zO,Op({as:a,className:JM(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?kE.jsx("title",{children:u}):null]}))}));$O.muiName="SvgIcon";var _O=$O;var jO=eC("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const FO=["center","classes","className"];let BO,HO,VO,UO,WO=e=>e;const YO=vE(BO||(BO=WO`
21
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&IE?NE.jsx(lE,{value:IE,children:n}):n},ThemeContext:uE,css:vE,default:function(e,t){return TE(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:bE});function PE(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 DE(e){if(!PE(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=DE(e[n])})),t}function qE(e,t,n={clone:!0}){const r=n.clone?Tp({},e):e;return PE(e)&&PE(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(PE(t[i])&&i in e&&PE(e[i])?r[i]=qE(e[i],t[i],n):n.clone?r[i]=PE(t[i])?DE(t[i]):t[i]:r[i]=t[i])})),r}var zE=Object.freeze({__proto__:null,default:qE,isPlainObject:PE});const $E=["values","unit","step"],_E=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)=>Tp({},e,{[t.key]:t.val})),{})};function jE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=$p(e,$E),o=_E(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 Tp({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 FE={borderRadius:4};function BE(e,t){return t?qE(e,t,{clone:!1}):e}const HE={xs:0,sm:600,md:900,lg:1200,xl:1536},VE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${HE[e]}px)`};function UE(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||VE;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||VE;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||HE).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function WE(e){if("string"!=typeof e)throw new Error(Px(7));return e.charAt(0).toUpperCase()+e.slice(1)}var YE=Object.freeze({__proto__:null,default:WE});function GE(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 XE(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:GE(e,n)||r,t&&(i=t(i,r,e)),i}function KE(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=GE(e.theme,r)||{};return UE(e,o,(e=>{let r=XE(a,i,e);return e===r&&"string"==typeof e&&(r=XE(a,i,`${t}${"default"===e?"":WE(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const JE={m:"margin",p:"padding"},ZE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},QE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!QE[e])return[e];e=QE[e]}const[t,n]=e.split(""),r=JE[t],i=ZE[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),tM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],nM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function rM(e,t,n,r){var i;const o=null!=(i=GE(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 iM(e){return rM(e,"spacing",8)}function oM(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 aM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=oM(t,n),e)),{})}(eM(n),r);return UE(e,e[n],i)}function sM(e,t){const n=iM(e.theme);return Object.keys(e).map((r=>aM(e,t,r,n))).reduce(BE,{})}function lM(e){return sM(e,tM)}function cM(e){return sM(e,nM)}function uM(...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]?BE(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function dM(e){return"number"!=typeof e?e:`${e}px solid`}function mM(e,t){return KE({prop:e,themeKey:"borders",transform:t})}lM.propTypes={},lM.filterProps=tM,cM.propTypes={},cM.filterProps=nM;const pM=mM("border",dM),fM=mM("borderTop",dM),hM=mM("borderRight",dM),gM=mM("borderBottom",dM),yM=mM("borderLeft",dM),vM=mM("borderColor"),bM=mM("borderTopColor"),xM=mM("borderRightColor"),SM=mM("borderBottomColor"),EM=mM("borderLeftColor"),MM=mM("outline",dM),CM=mM("outlineColor"),OM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=rM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:oM(t,e)});return UE(e,e.borderRadius,n)}return null};OM.propTypes={},OM.filterProps=["borderRadius"],uM(pM,fM,hM,gM,yM,vM,bM,xM,SM,EM,OM,MM,CM);const TM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=rM(e.theme,"spacing",8),n=e=>({gap:oM(t,e)});return UE(e,e.gap,n)}return null};TM.propTypes={},TM.filterProps=["gap"];const wM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=rM(e.theme,"spacing",8),n=e=>({columnGap:oM(t,e)});return UE(e,e.columnGap,n)}return null};wM.propTypes={},wM.filterProps=["columnGap"];const AM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=rM(e.theme,"spacing",8),n=e=>({rowGap:oM(t,e)});return UE(e,e.rowGap,n)}return null};AM.propTypes={},AM.filterProps=["rowGap"];function RM(e,t){return"grey"===t?t:e}uM(TM,wM,AM,KE({prop:"gridColumn"}),KE({prop:"gridRow"}),KE({prop:"gridAutoFlow"}),KE({prop:"gridAutoColumns"}),KE({prop:"gridAutoRows"}),KE({prop:"gridTemplateColumns"}),KE({prop:"gridTemplateRows"}),KE({prop:"gridTemplateAreas"}),KE({prop:"gridArea"}));function kM(e){return e<=1&&0!==e?100*e+"%":e}uM(KE({prop:"color",themeKey:"palette",transform:RM}),KE({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:RM}),KE({prop:"backgroundColor",themeKey:"palette",transform:RM}));const NM=KE({prop:"width",transform:kM}),IM=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])||HE[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:kM(t)}};return UE(e,e.maxWidth,t)}return null};IM.filterProps=["maxWidth"];const LM=KE({prop:"minWidth",transform:kM}),PM=KE({prop:"height",transform:kM}),DM=KE({prop:"maxHeight",transform:kM}),qM=KE({prop:"minHeight",transform:kM});KE({prop:"size",cssProperty:"width",transform:kM}),KE({prop:"size",cssProperty:"height",transform:kM});uM(NM,IM,LM,PM,DM,qM,KE({prop:"boxSizing"}));var zM={border:{themeKey:"borders",transform:dM},borderTop:{themeKey:"borders",transform:dM},borderRight:{themeKey:"borders",transform:dM},borderBottom:{themeKey:"borders",transform:dM},borderLeft:{themeKey:"borders",transform:dM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:OM},color:{themeKey:"palette",transform:RM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:RM},backgroundColor:{themeKey:"palette",transform:RM},p:{style:cM},pt:{style:cM},pr:{style:cM},pb:{style:cM},pl:{style:cM},px:{style:cM},py:{style:cM},padding:{style:cM},paddingTop:{style:cM},paddingRight:{style:cM},paddingBottom:{style:cM},paddingLeft:{style:cM},paddingX:{style:cM},paddingY:{style:cM},paddingInline:{style:cM},paddingInlineStart:{style:cM},paddingInlineEnd:{style:cM},paddingBlock:{style:cM},paddingBlockStart:{style:cM},paddingBlockEnd:{style:cM},m:{style:lM},mt:{style:lM},mr:{style:lM},mb:{style:lM},ml:{style:lM},mx:{style:lM},my:{style:lM},margin:{style:lM},marginTop:{style:lM},marginRight:{style:lM},marginBottom:{style:lM},marginLeft:{style:lM},marginX:{style:lM},marginY:{style:lM},marginInline:{style:lM},marginInlineStart:{style:lM},marginInlineEnd:{style:lM},marginBlock:{style:lM},marginBlockStart:{style:lM},marginBlockEnd:{style:lM},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:TM},rowGap:{style:AM},columnGap:{style:wM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:kM},maxWidth:{style:IM},minWidth:{transform:kM},height:{transform:kM},maxHeight:{transform:kM},minHeight:{transform:kM},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $M(){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=GE(n,s)||{};if(c)return c(i);return UE(i,t,(t=>{let n=XE(u,l,t);return t===n&&"string"==typeof t&&(n=XE(u,l,`${e}${"default"===t?"":WE(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:zM;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=BE(l,e(n,i,o,a));else{const e=UE({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=BE(l,e):l[n]=t({sx:i,theme:o})}else l=BE(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 _M=$M();_M.filterProps=["sx"];var jM=_M;function FM(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 BM=["breakpoints","palette","spacing","shape"];function HM(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=$p(e,BM),s=jE(n),l=function(e=8){if(e.mui)return e;const t=iM({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=qE({breakpoints:s,direction:"ltr",components:{},palette:Tp({mode:"light"},r),spacing:l,shape:Tp({},FE,o)},a);return c.applyStyles=FM,c=t.reduce(((e,t)=>qE(e,t)),c),c.unstable_sxConfig=Tp({},zM,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return jM({sx:e,theme:this})},c}var VM=Object.freeze({__proto__:null,default:HM,private_createBreakpoints:jE,unstable_applyStyles:FM});function UM(e=null){const t=F.useContext(uE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const WM=HM();const YM=["sx"];var GM=Object.freeze({__proto__:null,default:jM,extendSxProp:function(e){const{sx:t}=e,n=$p(e,YM),{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:zM;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 PE(n)?Tp({},r,n):r}:Tp({},r,t),Tp({},i,{sx:o})},unstable_createStyleFunctionSx:$M,unstable_defaultSxConfig:zM});const XM=e=>e;var KM=(()=>{let e=XM;return{configure(t){e=t},generate:t=>e(t),reset(){e=XM}}})();function JM(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=JM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ZM(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=JM(e))&&(r&&(r+=" "),r+=t);return r}const QM={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 eC(e,t,n="Mui"){const r=QM[t];return r?`${n}-${r}`:`${KM.generate(e)}-${t}`}function tC(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=eC(e,t,n)})),r}var nC,rC,iC={exports:{}},oC={};var aC=(rC||(rC=1,iC.exports=function(){if(nC)return oC;nC=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case r:case o:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case p:case m:case a:return e;default:return f}}case n:return f}}}return e=Symbol.for("react.module.reference"),oC.ContextConsumer=s,oC.ContextProvider=a,oC.Element=t,oC.ForwardRef=c,oC.Fragment=r,oC.Lazy=p,oC.Memo=m,oC.Portal=n,oC.Profiler=o,oC.StrictMode=i,oC.Suspense=u,oC.SuspenseList=d,oC.isAsyncMode=function(){return!1},oC.isConcurrentMode=function(){return!1},oC.isContextConsumer=function(e){return h(e)===s},oC.isContextProvider=function(e){return h(e)===a},oC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oC.isForwardRef=function(e){return h(e)===c},oC.isFragment=function(e){return h(e)===r},oC.isLazy=function(e){return h(e)===p},oC.isMemo=function(e){return h(e)===m},oC.isPortal=function(e){return h(e)===n},oC.isProfiler=function(e){return h(e)===o},oC.isStrictMode=function(e){return h(e)===i},oC.isSuspense=function(e){return h(e)===u},oC.isSuspenseList=function(e){return h(e)===d},oC.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===u||t===d||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===m||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},oC.typeOf=h,oC}()),iC.exports);const sC=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lC(e){const t=`${e}`.match(sC);return t&&t[1]||""}function cC(e,t=""){return e.displayName||e.name||lC(e)||t}function uC(e,t,n){const r=cC(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var dC=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return cC(e,"Component");if("object"==typeof e)switch(e.$$typeof){case aC.ForwardRef:return uC(e,e.render,"ForwardRef");case aC.Memo:return uC(e,e.type,"memo");default:return}}},getFunctionName:lC});function mC(e,t){const n=Tp({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Tp({},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]=Tp({},o),Object.keys(i).forEach((e=>{n[r][e]=mC(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function pC({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=WM){return UM(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?mC(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var fC="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;var hC=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 gC(e){const t=F.useRef(e);return fC((()=>{t.current=e})),F.useRef(((...e)=>(0,t.current)(...e))).current}function yC(...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 vC={};const bC=[];class xC{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new xC}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function SC(){const e=function(e,t){const n=F.useRef(vC);return n.current===vC&&(n.current=e(t)),n}(xC.create).current;var t;return t=e.disposeEffect,F.useEffect(t,bC),e}let EC=!0,MC=!1;const CC=new xC,OC={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function TC(e){e.metaKey||e.altKey||e.ctrlKey||(EC=!0)}function wC(){EC=!1}function AC(){"hidden"===this.visibilityState&&MC&&(EC=!0)}function RC(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return EC||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!OC[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function kC(){const e=F.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",TC,!0),t.addEventListener("mousedown",wC,!0),t.addEventListener("pointerdown",wC,!0),t.addEventListener("touchstart",wC,!0),t.addEventListener("visibilitychange",AC,!0))}),[]),t=F.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!RC(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(MC=!0,CC.start(100,(()=>{MC=!1})),t.current=!1,!0)},ref:e}}function NC(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 IC=F.createContext(null);function LC(){return F.useContext(IC)}var PC="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function DC(e){const{children:t,theme:n}=e,r=LC(),i=F.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Tp({},e,t)}(r,n);return null!=e&&(e[PC]=null!==r),e}),[n,r]);return NE.jsx(IC.Provider,{value:i,children:t})}const qC=["value"],zC=F.createContext();function $C(e){let{value:t}=e,n=$p(e,qC);return NE.jsx(zC.Provider,Tp({value:null==t||t},n))}const _C={};function jC(e,t,n,r=!1){return F.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?Tp({},t,{[e]:o}):o;return r?()=>a:a}return Tp({},t,e?{[e]:n}:n)}),[e,t,n,r])}function FC(e){const{children:t,theme:n,themeId:r}=e,i=UM(_C),o=LC()||_C,a=jC(r,i,n),s=jC(r,o,n,!0),l="rtl"===a.direction;return NE.jsx(DC,{theme:s,children:NE.jsx(uE.Provider,{value:a,children:NE.jsx($C,{value:l,children:t})})})}var BC,HC={},VC={exports:{}};function UC(){return BC||(BC=1,(e=VC).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),VC.exports;var e}var WC,YC=ee(Dx),GC=ee(hC);function XC(){if(WC)return HC;WC=1;var e=UC();Object.defineProperty(HC,"__esModule",{value:!0}),HC.alpha=u,HC.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=o(e),l=o(t),c=[i(a.values[0],l.values[0]),i(a.values[1],l.values[1]),i(a.values[2],l.values[2])];return s({type:"rgb",values:c})},HC.colorChannel=void 0,HC.darken=d,HC.decomposeColor=o,HC.emphasize=function(e,t=.15){return c(e)>.5?d(e,t):m(e,t)},HC.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},HC.getLuminance=c,HC.hexToRgb=i,HC.hslToRgb=l,HC.lighten=m,HC.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},HC.private_safeColorChannel=void 0,HC.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},HC.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},HC.private_safeLighten=function(e,t,n){try{return m(e,t)}catch(t){return e}},HC.recomposeColor=s,HC.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=o(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var t=e(YC),n=e(GC);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function i(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 o(e){if(e.type)return e;if("#"===e.charAt(0))return o(i(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:r,values:s,colorSpace:a}}const a=e=>{const t=o(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};HC.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function m(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}return HC.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},HC}var KC=XC();const JC=["mode","contrastThreshold","tonalOffset"],ZC={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:Tx.white,default:Tx.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}},QC={text:{primary:Tx.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:Tx.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 eO(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=KC.lighten(e.main,i):"dark"===t&&(e.dark=KC.darken(e.main,o)))}function tO(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=$p(e,JC),o=e.primary||function(e="light"){return"dark"===e?{main:Rx[200],light:Rx[50],dark:Rx[400]}:{main:Rx[700],light:Rx[400],dark:Rx[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ax[200],light:Ax[50],dark:Ax[400]}:{main:Ax[500],light:Ax[300],dark:Ax[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:wx[500],light:wx[300],dark:wx[700]}:{main:wx[700],light:wx[400],dark:wx[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kx[400],light:kx[300],dark:kx[700]}:{main:kx[700],light:kx[500],dark:kx[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Nx[400],light:Nx[300],dark:Nx[700]}:{main:Nx[800],light:Nx[500],dark:Nx[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ix[400],light:Ix[300],dark:Ix[700]}:{main:"#ed6c02",light:Ix[500],dark:Ix[900]}}(t);function d(e){return KC.getContrastRatio(e,QC.text.primary)>=n?QC.text.primary:ZC.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=Tp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Px(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Px(12,t?` (${t})`:"",JSON.stringify(e.main)));return eO(e,"light",i,r),eO(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:QC,light:ZC};return qE(Tp({common:Tp({},Tx),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:Lx,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const nO=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const rO={textTransform:"uppercase"},iO='"Roboto", "Helvetica", "Arial", sans-serif';function oO(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=iO,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=$p(n,nO),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return Tp({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===iO?{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,rO),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,rO),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qE(Tp({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function aO(...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 sO=["none",aO(0,2,1,-1,0,1,1,0,0,1,3,0),aO(0,3,1,-2,0,2,2,0,0,1,5,0),aO(0,3,3,-2,0,3,4,0,0,1,8,0),aO(0,2,4,-1,0,4,5,0,0,1,10,0),aO(0,3,5,-1,0,5,8,0,0,1,14,0),aO(0,3,5,-1,0,6,10,0,0,1,18,0),aO(0,4,5,-2,0,7,10,1,0,2,16,1),aO(0,5,5,-3,0,8,10,1,0,3,14,2),aO(0,5,6,-3,0,9,12,1,0,3,16,2),aO(0,6,6,-3,0,10,14,1,0,4,18,3),aO(0,6,7,-4,0,11,15,1,0,4,20,3),aO(0,7,8,-4,0,12,17,2,0,5,22,4),aO(0,7,8,-4,0,13,19,2,0,5,24,4),aO(0,7,9,-4,0,14,21,2,0,5,26,4),aO(0,8,9,-5,0,15,22,2,0,6,28,5),aO(0,8,10,-5,0,16,24,2,0,6,30,5),aO(0,8,11,-5,0,17,26,2,0,6,32,5),aO(0,9,11,-5,0,18,28,2,0,7,34,6),aO(0,9,12,-6,0,19,29,2,0,7,36,6),aO(0,10,13,-6,0,20,31,3,0,8,38,7),aO(0,10,13,-6,0,21,33,3,0,8,40,7),aO(0,10,14,-6,0,22,35,3,0,8,42,7),aO(0,11,14,-7,0,23,36,3,0,9,44,8),aO(0,11,15,-7,0,24,38,3,0,9,46,8)];const lO=["duration","easing","delay"],cO={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dO(e){return`${Math.round(e)}ms`}function mO(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function pO(e){const t=Tp({},cO,e.easing),n=Tp({},uO,e.duration);return Tp({getAutoHeightDuration:mO,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return $p(r,lO),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:dO(i)} ${o} ${"string"==typeof a?a:dO(a)}`)).join(",")}},e,{easing:t,duration:n})}var fO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const hO=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function gO(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=$p(e,hO);if(e.vars)throw new Error(Px(18));const s=tO(r),l=HM(e);let c=qE(l,{mixins:(u=l.breakpoints,d=n,Tp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:sO.slice(),typography:oO(s,o),transitions:pO(i),zIndex:Tp({},fO)});var u,d;return c=qE(c,a),c=t.reduce(((e,t)=>qE(e,t)),c),c.unstable_sxConfig=Tp({},zM,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return jM({sx:e,theme:this})},c}var yO=gO();function vO({props:e,name:t}){return pC({props:e,name:t,defaultTheme:yO,themeId:qx})}var bO,xO={},SO={exports:{}};var EO,MO={exports:{}};var CO,OO=ee(LE),TO=ee(zE),wO=ee(YE),AO=ee(dC),RO=ee(VM),kO=ee(GM);function NO(){if(CO)return xO;CO=1;var e=UC();Object.defineProperty(xO,"__esModule",{value:!0}),xO.default=function(e={}){const{themeId:t,defaultTheme:a=p,rootShouldForwardProp:l=m,slotShouldForwardProp:c=m}=e,d=e=>(0,s.default)((0,n.default)({},e,{theme:h((0,n.default)({},e,{defaultTheme:a,themeId:t}))}));return d.__mui_systemSx=!0,(e,s={})=>{(0,i.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(f(v))}=s,E=(0,r.default)(s,u),M=void 0!==b?b:v&&"Root"!==v&&"root"!==v||!1,C=x||!1;let O=m;"Root"===v||"root"===v?O=l:v?O=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(O=void 0);const T=(0,i.default)(e,(0,n.default)({shouldForwardProp:O,label:undefined},E)),w=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?r=>y(e,(0,n.default)({},r,{theme:h({theme:r.theme,defaultTheme:a,themeId:t})})):e,A=(r,...i)=>{let o=w(r);const s=i?i.map(w):[];p&&S&&s.push((e=>{const r=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));if(!r.components||!r.components[p]||!r.components[p].styleOverrides)return null;const i=r.components[p].styleOverrides,o={};return Object.entries(i).forEach((([t,i])=>{o[t]=y(i,(0,n.default)({},e,{theme:r}))})),S(e,o)})),p&&!M&&s.push((e=>{var r;const i=h((0,n.default)({},e,{defaultTheme:a,themeId:t}));return y({variants:null==i||null==(r=i.components)||null==(r=r[p])?void 0:r.variants},(0,n.default)({},e,{theme:i}))})),C||s.push(d);const l=s.length-i.length;if(Array.isArray(r)&&l>0){const e=new Array(l).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const c=T(o,...s);return e.muiName&&(c.muiName=e.muiName),c};return T.withConfig&&(A.withConfig=T.withConfig),A}},xO.shouldForwardProp=m,xO.systemDefaultTheme=void 0;var t,n=e((bO||(bO=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}(SO)),SO.exports)),r=e((EO||(EO=1,(t=MO).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},t.exports.__esModule=!0,t.exports.default=t.exports),MO.exports)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=d(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}(OO),o=TO;e(wO),e(AO);var a=e(RO),s=e(kO);const l=["ownerState"],c=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=xO.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function y(e,t){let{ownerState:i}=t,o=(0,r.default)(t,l);const a="function"==typeof e?e((0,n.default)({ownerState:i},o)):e;if(Array.isArray(a))return a.flatMap((e=>y(e,(0,n.default)({ownerState:i},o))));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,r.default)(a,c);return e.forEach((e=>{let r=!0;"function"==typeof e.props?r=e.props((0,n.default)({ownerState:i},o,i)):Object.keys(e.props).forEach((t=>{(null==i?void 0:i[t])!==e.props[t]&&o[t]!==e.props[t]&&(r=!1)})),r&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:i},o,i)):e.style))})),t}return a}return xO}var IO=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var LO=Q(NO())({themeId:qx,defaultTheme:yO,rootShouldForwardProp:IO});const PO=["theme"];function DO(e){let{theme:t}=e,n=$p(e,PO);const r=t[qx];return NE.jsx(FC,Tp({},n,{themeId:r?qx:void 0,theme:r||t}))}function qO(e){return eC("MuiSvgIcon",e)}tC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zO=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$O=LO("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${WE(n.color)}`],t[`fontSize${WE(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]}})),_O=F.forwardRef((function(e,t){const n=vO({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=$p(n,zO),p=F.isValidElement(r)&&"svg"===r.type,f=Tp({},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 NC({root:["root","inherit"!==t&&`color${WE(t)}`,`fontSize${WE(n)}`]},qO,r)})(f);return NE.jsxs($O,Tp({as:a,className:ZM(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?NE.jsx("title",{children:u}):null]}))}));_O.muiName="SvgIcon";var jO=_O;var FO=tC("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const BO=["center","classes","className"];let HO,VO,UO,WO,YO=e=>e;const GO=bE(HO||(HO=YO`
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
- `)),GO=vE(HO||(HO=WO`
31
+ `)),XO=bE(VO||(VO=YO`
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
- `)),XO=vE(VO||(VO=WO`
39
+ `)),KO=bE(UO||(UO=YO`
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
- `)),KO=IO("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),JO=IO((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=JM(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=JM(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]),kE.jsx("span",{className:m,style:p,children:kE.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(UO||(UO=WO`
51
+ `)),JO=LO("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZO=LO((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=ZM(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=ZM(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]),NE.jsx("span",{className:m,style:p,children:NE.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(WO||(WO=YO`
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
- `),jO.rippleVisible,YO,550,(({theme:e})=>e.transitions.easing.easeInOut),jO.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jO.child,jO.childLeaving,GO,550,(({theme:e})=>e.transitions.easing.easeInOut),jO.childPulsate,XO,(({theme:e})=>e.transitions.easing.easeInOut)),ZO=F.forwardRef((function(e,t){const n=yO({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=zp(n,FO),[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=xC(),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,kE.jsx(JO,{classes:{ripple:JM(i.ripple,jO.ripple),rippleVisible:JM(i.rippleVisible,jO.rippleVisible),ripplePulsate:JM(i.ripplePulsate,jO.ripplePulsate),child:JM(i.child,jO.child),childLeaving:JM(i.childLeaving,jO.childLeaving),childPulsate:JM(i.childPulsate,jO.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]),kE.jsx(KO,Op({className:JM(jO.root,i.root,o),ref:f},a,{children:kE.jsx(fv,{component:null,exit:!0,children:s})}))}));var QO=ZO;function eT(e){return QM("MuiButtonBase",e)}var tT=eC("MuiButtonBase",["root","disabled","focusVisible"]);const nT=["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"],rT=IO("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"},[`&.${tT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iT=F.forwardRef((function(e,t){const n=yO({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=zp(n,nT),I=F.useRef(null),L=F.useRef(null),P=gC(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=RC(),[_,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 hC((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=hC((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=hC((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=hC((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=gC(t,$,I),ce=Op({},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=kC({root:["root",t&&"disabled",n&&"focusVisible"]},eT,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return kE.jsxs(rT,Op({as:ae,className:JM(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?kE.jsx(QO,Op({ref:P,center:i},A)):null]}))}));var oT=iT;function aT(e){return QM("MuiButton",e)}var sT=eC("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 lT=F.createContext({});var cT=F.createContext(void 0);const uT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dT=e=>Op({},"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}}),mT=IO(oT,{shouldForwardProp:e=>NO(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${UE(n.color)}`],t[`size${UE(n.size)}`],t[`${n.variant}Size${UE(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 Op({},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":Op({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:XC.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:XC.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:XC.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg: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":Op({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${sT.focusVisible}`]:Op({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${sT.disabled}`]:Op({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 ${XC.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg: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"},[`&.${sT.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sT.disabled}`]:{boxShadow:"none"}})),pT=IO("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${UE(n.size)}`]]}})((({ownerState:e})=>Op({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},dT(e)))),fT=IO("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${UE(n.size)}`]]}})((({ownerState:e})=>Op({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},dT(e)))),hT=F.forwardRef((function(e,t){const n=F.useContext(lT),r=F.useContext(cT),i=yO({props:dC(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=zp(i,uT),x=Op({},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 Op({},a,kC({root:["root",o,`${o}${UE(t)}`,`size${UE(i)}`,`${o}Size${UE(i)}`,`color${UE(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${UE(i)}`],endIcon:["icon","endIcon",`iconSize${UE(i)}`]},aT,a))})(x),E=g&&kE.jsx(pT,{className:S.startIcon,ownerState:x,children:g}),M=m&&kE.jsx(fT,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return kE.jsxs(mT,Op({ownerState:x,className:JM(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:JM(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var gT=hT;var yT=F.createContext({});function vT(e){return QM("MuiListItemButton",e)}var bT=eC("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const xT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ST=IO(oT,{shouldForwardProp:e=>NO(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})=>Op({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"}},[`&.${bT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:XC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:XC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:XC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:XC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bT.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}))),ET=F.forwardRef((function(e,t){const n=yO({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=zp(n,xT),f=F.useContext(yT),h=F.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=F.useRef(null);pC((()=>{i&&g.current&&g.current.focus()}),[i]);const y=Op({},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 Op({},n,kC({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},vT,n))})(y),b=gC(g,t);return kE.jsx(yT.Provider,{value:h,children:kE.jsx(ST,Op({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:JM(v.focusVisible,u),ownerState:y,className:JM(v.root,m)},p,{classes:v,children:a}))})}));var MT=ET;function CT(e){return QM("MuiListItemIcon",e)}eC("MuiListItemIcon",["root","alignItemsFlexStart"]);const OT=["className"],TT=IO("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})=>Op({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),wT=F.forwardRef((function(e,t){const n=yO({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=zp(n,OT),o=Op({},n,{alignItems:F.useContext(yT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return kC({root:["root","flex-start"===t&&"alignItemsFlexStart"]},CT,n)})(o);return kE.jsx(TT,Op({className:JM(a.root,r),ownerState:o,ref:t},i))}));var AT=wT;function RT(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}function kT(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 NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kT(Object(n),!0).forEach((function(t){RT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var IT,LT,PT=function(e){var t=e.className,n=e.path,r=e.fillRule;return j.createElement(_O,{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)},DT={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)"}}};IO(gT,{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}}})),IO((function(e){var t=e.className;return j.createElement(PT,{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:DT.ICONS.COLOR.SECONDARY}})),IO((function(e){var t=e.className;return j.createElement(PT,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:DT.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:DT.ICONS.COLOR.DISABLED}}})),IO(gT,{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 qT={color:DT.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:DT.ICONS.COLOR.DISABLED}};IO((function(e){var t=e.className;return j.createElement(PT,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return qT})),IO((function(e){var t=e.className;return j.createElement(PT,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return qT})),IO((function(e){var t=e.className;return j.createElement(PT,{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:DT.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),IO(MT)((function(){return{padding:"4px 12px","&:focus":NT({},DT.FOCUS)}})),IO(AT)((function(){return{marginRight:0,justifyContent:"center"}})),IO((function(e){var t=e.className;return j.createElement(PT,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:DT.ICONS.COLOR.SECONDARY}}));var zT,$T=function(){if(LT)return IT;LT=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return IT=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},IT}();(zT=$T)&&zT.__esModule&&Object.prototype.hasOwnProperty.call(zT,"default")&&zT.default;var _T,jT=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))},FT={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(jT,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},BT={},HT=function(){if(_T)return BT;_T=1;var e=G;return BT.createRoot=e.createRoot,BT.hydrateRoot=e.hydrateRoot,BT}(),VT=hO({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 UT(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 WT(){var e={rendererBox:UT(),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=UT(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=HT.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,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(PO,{theme:VT},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var YT={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 GT({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 XT({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))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).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 KT({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function JT({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(os.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 ZT({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?KT:JT)({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 QT({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(os.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 ew({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(os.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 tw({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(os.SCALE.MAJOR),d=e.scale(os.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?QT:ew)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function nw({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:tw({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 rw({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=ZT({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(...nw({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 iw={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:XT({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=rw({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=XT({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return rw({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 ow=()=>{const e=$();return e.use(_),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",_m(e))};e.interaction("hammer",_m(Hammer))}(z)),e.use(Nb),e.use((function(e){e.renderer("react",Rb()),e.component("data-title",Tb(e.renderer("svg")()))})),e.renderer("react-qcm",WT),e.component("disclaimer",FT),e.component("scrollbar",fl),e.component("point-label",Mx),e.component("label-space",Cx),e.component("time-axis",mm.picassoComponents.timeAxis),e.component("axis-overlay",mm.picassoComponents.axisOverlay),e.component("reference-line-labels",Ha),e.component("box-sliced-hat",Fb),e.component("box-out-of-bounds",qb),e.component("data-out-of-bounds-marker",YT),e.component("scroll-hint",Bo),e.component("brush-highlighter",iw),e.scale("time",mm.picassoScales.time),e.symbol("line-point",GT),e},aw=e=>"[object Object]"===Object.prototype.toString.call(e),sw=e=>Array.isArray(e);function lw(e,t){if(e===t)return!0;if(sw(e)){if(!sw(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!lw(e[n],t[n]))return!1;return!0}if(aw(e)){if(!aw(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(!lw(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function cw({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=ne(!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=ne(!0,{},e),l=ne(!0,{},t);return a.exclude=!lw(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=!lw(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 uw={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},dw=e=>void 0===e.marker?uw.circle:uw[e.marker],mw=e=>void 0===e.markerFill||e.markerFill;function pw({series:e,layoutService:t}){switch(xu(e)){case as.TYPE.MARKER:return(e=>({marker:dw(e),fill:mw(e)}))(e);case as.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case as.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function fw(e=as.NOPE_SERIES,t){return t?e.axis===as.AXIS.PRIMARY:e.axis===as.AXIS.PRIMARY||xu(e)===as.TYPE.BAR}var hw,gw,yw,vw,bw,xw,Sw,Ew,Mw,Cw,Ow,Tw,ww,Aw,Rw,kw,Nw,Iw,Lw,Pw,Dw,qw,zw,$w,_w,jw,Fw,Bw,Hw,Vw,Uw,Ww,Yw,Gw,Xw,Kw,Jw,Zw,Qw,eA,tA,nA,rA,iA,oA,aA,sA,lA,cA,uA,dA,mA,pA,fA,hA,gA,yA,vA,bA,xA,SA,EA,MA,CA,OA,TA,wA,AA,RA,kA,NA,IA,LA,PA,DA,qA,zA,$A,_A,jA,FA,BA,HA,VA,UA,WA,YA,GA,XA,KA={exports:{}};function JA(){if(gw)return hw;gw=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return hw={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function ZA(){if(vw)return yw;vw=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return yw=e}function QA(){return bw||(bw=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=JA(),o=ZA(),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*$")}(KA,KA.exports)),KA.exports}function eR(){if(Sw)return xw;Sw=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return xw=n=>n?"object"!=typeof n?e:n:t}function tR(){if(Mw)return Ew;Mw=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:t<n?-1:1};return Ew={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Ew}function nR(){if(Ow)return Cw;Ow=1;const e=ZA(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=JA(),{safeRe:r,t:i}=QA(),o=eR(),{compareIdentifiers:a}=tR();class s{constructor(a,l){if(l=o(l),a instanceof s){if(a.loose===!!l.loose&&a.includePrerelease===!!l.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=a.trim().match(l.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[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(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(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 r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}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===a(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}}return Cw=s}function rR(){if(ww)return Tw;ww=1;const e=nR();return Tw=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(e){if(!r)return null;throw e}}}function iR(){if(Uw)return Vw;Uw=1;const e=nR();return Vw=(t,n,r)=>new e(t,r).compare(new e(n,r)),Vw}function oR(){if(Jw)return Kw;Jw=1;const e=nR();return Kw=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)},Kw}function aR(){if(rA)return nA;rA=1;const e=iR();return nA=(t,n,r)=>e(t,n,r)>0,nA}function sR(){if(oA)return iA;oA=1;const e=iR();return iA=(t,n,r)=>e(t,n,r)<0,iA}function lR(){if(sA)return aA;sA=1;const e=iR();return aA=(t,n,r)=>0===e(t,n,r),aA}function cR(){if(cA)return lA;cA=1;const e=iR();return lA=(t,n,r)=>0!==e(t,n,r),lA}function uR(){if(dA)return uA;dA=1;const e=iR();return uA=(t,n,r)=>e(t,n,r)>=0,uA}function dR(){if(pA)return mA;pA=1;const e=iR();return mA=(t,n,r)=>e(t,n,r)<=0,mA}function mR(){if(hA)return fA;hA=1;const e=lR(),t=cR(),n=aR(),r=uR(),i=sR(),o=dR();return fA=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return i(a,l,c);case"<=":return o(a,l,c);default:throw new TypeError(`Invalid operator: ${s}`)}},fA}function pR(){if(SA)return xA;SA=1;const e=/\s+/g;class t{constructor(n,r){if(r=i(r),n instanceof t)return n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease?n:new t(n.raw,r);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=n.trim().replace(e," "),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=>!h(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&&g(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,n=r.get(t);if(n)return n;const i=this.options.loose,s=i?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[c.COMPARATORTRIM],u),a("comparator trim",e),e=e.replace(l[c.TILDETRIM],d),a("tilde trim",e),e=e.replace(l[c.CARETTRIM],m),a("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>w(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE]))))),a("range list",g);const y=new Map,b=g.map((e=>new o(e,this.options)));for(const e of b){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const x=[...y.values()];return r.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}xA=t;const n=(bA||(bA=1,vA=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}),vA),r=new n,i=eR(),o=fR(),a=ZA(),s=nR(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:m}=QA(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=JA(),h=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,y=(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},v=(e,t)=>(a("comp",e,t),e=E(e,t),a("caret",e),e=x(e,t),a("tildes",e),e=C(e,t),a("xrange",e),e=T(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>M(e,t))).join(" "),M=(e,t)=>{a("caret",e,t);const n=t.loose?l[c.CARETLOOSE]:l[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),b(n)?l="":b(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},C=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const n=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const c=b(i),u=c||b(o),d=u||b(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},T=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[c.STAR],"")),w=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,n,r,i,o,a,s,l,c,u,d,m)=>`${n=b(r)?"":b(i)?`>=${r}.0.0${e?"-0":""}`:b(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),R=(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(a(e[n].semver),e[n].semver!==o.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 xA}function fR(){if(MA)return EA;MA=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(">")))))))}}EA=t;const n=eR(),{safeRe:r,t:i}=QA(),o=mR(),a=ZA(),s=nR(),l=pR();return EA}function hR(){if(OA)return CA;OA=1;const e=pR();return CA=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},CA}function gR(){if(DA)return PA;DA=1;const e=pR();return PA=(t,n)=>{try{return new e(t,n).range||"*"}catch(e){return null}},PA}function yR(){if(zA)return qA;zA=1;const e=nR(),t=fR(),{ANY:n}=t,r=pR(),i=hR(),o=aR(),a=sR(),s=dR(),l=uR();return qA=(c,u,d,m)=>{let p,f,h,g,y;switch(c=new e(c,m),u=new r(u,m),d){case">":p=o,f=s,h=a,g=">",y=">=";break;case"<":p=a,f=l,h=o,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(c,u,m))return!1;for(let e=0;e<u.set.length;++e){const r=u.set[e];let i=null,o=null;if(r.forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),i=i||e,o=o||e,p(e.semver,i.semver,m)?i=e:h(e.semver,o.semver,m)&&(o=e)})),i.operator===g||i.operator===y)return!1;if((!o.operator||o.operator===g)&&f(c,o.semver))return!1;if(o.operator===y&&h(c,o.semver))return!1}return!0},qA}var vR=function(){if(XA)return GA;XA=1;const e=QA(),t=JA(),n=nR(),r=tR(),i=rR(),o=function(){if(Rw)return Aw;Rw=1;const e=rR();return Aw=(t,n)=>{const r=e(t,n);return r?r.version:null},Aw}(),a=function(){if(Nw)return kw;Nw=1;const e=rR();return kw=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null},kw}(),s=function(){if(Lw)return Iw;Lw=1;const e=nR();return Iw=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(e){return null}},Iw}(),l=function(){if(Dw)return Pw;Dw=1;const e=rR();return Pw=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,l=a?i:r,c=!!s.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=c?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"},Pw}(),c=function(){if(zw)return qw;zw=1;const e=nR();return qw=(t,n)=>new e(t,n).major,qw}(),u=function(){if(_w)return $w;_w=1;const e=nR();return $w=(t,n)=>new e(t,n).minor,$w}(),d=function(){if(Fw)return jw;Fw=1;const e=nR();return jw=(t,n)=>new e(t,n).patch,jw}(),m=function(){if(Hw)return Bw;Hw=1;const e=rR();return Bw=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),p=iR(),f=function(){if(Yw)return Ww;Yw=1;const e=iR();return Ww=(t,n,r)=>e(n,t,r),Ww}(),h=function(){if(Xw)return Gw;Xw=1;const e=iR();return Gw=(t,n)=>e(t,n,!0),Gw}(),g=oR(),y=function(){if(Qw)return Zw;Qw=1;const e=oR();return Zw=(t,n)=>t.sort(((t,r)=>e(t,r,n))),Zw}(),v=function(){if(tA)return eA;tA=1;const e=oR();return eA=(t,n)=>t.sort(((t,r)=>e(r,t,n))),eA}(),b=aR(),x=sR(),S=lR(),E=cR(),M=uR(),C=dR(),O=mR(),T=function(){if(yA)return gA;yA=1;const e=nR(),t=rR(),{safeRe:n,t:r}=QA();return gA=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i=String(i)),"string"!=typeof i)return null;let a=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!a||a.index+a[0].length!==i.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else a=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);if(null===a)return null;const s=a[2],l=a[3]||"0",c=a[4]||"0",u=o.includePrerelease&&a[5]?`-${a[5]}`:"",d=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${s}.${l}.${c}${u}${d}`,o)},gA}(),w=fR(),A=pR(),R=hR(),k=function(){if(wA)return TA;wA=1;const e=pR();return TA=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" "))),TA}(),N=function(){if(RA)return AA;RA=1;const e=nR(),t=pR();return AA=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&-1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},AA}(),I=function(){if(NA)return kA;NA=1;const e=nR(),t=pR();return kA=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},kA}(),L=function(){if(LA)return IA;LA=1;const e=nR(),t=pR(),n=aR();return IA=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;t<r.set.length;++t){const i=r.set[t];let a=null;i.forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":a&&!n(r,a)||(a=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||o&&!n(o,a)||(o=a)}return o&&r.test(o)?o:null},IA}(),P=gR(),D=yR(),q=function(){if(_A)return $A;_A=1;const e=yR();return $A=(t,n,r)=>e(t,n,">",r),$A}(),z=function(){if(FA)return jA;FA=1;const e=yR();return jA=(t,n,r)=>e(t,n,"<",r),jA}(),$=function(){if(HA)return BA;HA=1;const e=pR();return BA=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),_=function(){if(UA)return VA;UA=1;const e=hR(),t=iR();return VA=(n,r,i)=>{const o=[];let a=null,s=null;const l=n.sort(((e,n)=>t(e,n,i)));for(const t of l)e(t,r,i)?(s=t,a||(a=t)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),d="string"==typeof r.raw?r.raw:String(r);return u.length<d.length?u:r},VA}(),j=function(){if(YA)return WA;YA=1;const e=pR(),t=fR(),{ANY:n}=t,r=hR(),i=iR(),o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],s=(e,t,s)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=s.includePrerelease?o:a}if(1===t.length&&t[0].semver===n){if(s.includePrerelease)return!0;t=a}const u=new Set;let d,m,p,f,h,g,y;for(const t of e)">"===t.operator||">="===t.operator?d=l(d,t,s):"<"===t.operator||"<="===t.operator?m=c(m,t,s):u.add(t.semver);if(u.size>1)return null;if(d&&m){if(p=i(d.semver,m.semver,s),p>0)return null;if(0===p&&(">="!==d.operator||"<="!==m.operator))return null}for(const e of u){if(d&&!r(e,String(d),s))return null;if(m&&!r(e,String(m),s))return null;for(const n of t)if(!r(e,String(n),s))return!1;return!0}let v=!(!m||s.includePrerelease||!m.semver.prerelease.length)&&m.semver,b=!(!d||s.includePrerelease||!d.semver.prerelease.length)&&d.semver;v&&1===v.prerelease.length&&"<"===m.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,d)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(f=l(d,e,s),f===e&&f!==d)return!1}else if(">="===d.operator&&!r(d.semver,String(e),s))return!1;if(m)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(h=c(m,e,s),h===e&&h!==m)return!1}else if("<="===m.operator&&!r(m.semver,String(e),s))return!1;if(!e.operator&&(m||d)&&0!==p)return!1}return!(d&&g&&!m&&0!==p||m&&y&&!d&&0!==p||b||v)},l=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return WA=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=s(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return GA={parse:i,valid:o,clean:a,inc:s,diff:l,major:c,minor:u,patch:d,prerelease:m,compare:p,rcompare:f,compareLoose:h,compareBuild:g,sort:y,rsort:v,gt:b,lt:x,eq:S,neq:E,gte:M,lte:C,cmp:O,coerce:T,Comparator:w,Range:A,satisfies:R,toComparators:k,maxSatisfying:N,minSatisfying:I,minVersion:L,validRange:P,outside:D,gtr:q,ltr:z,intersects:$,simplifyRange:_,subset:j,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}(),bR=Q(vR),xR={BAR_IN_SECONDARY_AXIS:"0.23.1"};const SR=e=>!e||bR.lt(bR.coerce(e),bR.coerce(xR.BAR_IN_SECONDARY_AXIS)),ER=({layoutService:e})=>{const t=!SR(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[as.TYPE.BAR]:0,[as.TYPE.LINE]:0,[as.TYPE.MARKER]:0};return({series:r=as.NOPE_SERIES},i)=>{const o=fw(r,t),a=xu(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?os.SCALE.MINOR.PRIMARY:os.SCALE.MINOR.SECONDARY,collection:o?os.COLLECTION.PRIMARY:os.COLLECTION.SECONDARY,options:pw({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>xu(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,as.TYPE.BAR),l=r(i,as.TYPE.BAR),c=r(o,as.TYPE.BAR),u=e=>n.filter((t=>xu(t)===e)),d=u(as.TYPE.LINE).map((e=>Hl(os.COMPONENT.POINT,e))),m=u(as.TYPE.MARKER).map((e=>({key:Hl(os.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`),c>0&&f.push(`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=os.COMPONENT,y=u(as.TYPE.LINE).map((e=>Hl(g.LINE,e))),v=u(as.TYPE.MARKER).map((e=>Hl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${as.AXIS.PRIMARY}`,`${g.BAR}-${as.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:fw}}};function MR({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 CR({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(ge).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:MR({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function OR({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}):CR({genericObjectModel:e,layoutService:t})}const TR=e=>"number"==typeof e&&!Number.isNaN(e);function wR({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=>xu(e.series)===as.TYPE.BAR)),a=i.filter((e=>xu(e.series)===as.TYPE.LINE)),s=i.filter((e=>xu(e.series)===as.TYPE.MARKER));return{min:Math.min(...i.filter((e=>TR(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>TR(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>TR(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>TR(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>TR(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>TR(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>TR(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>TR(e.qMax))).map((e=>e.qMax)))}}}}function AR({isPrimary:e,layoutService:t,seriesModel:n}){const r=wR({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(as.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 RR({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(as.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?wR({isPrimary:e,layoutService:t,seriesModel:n}):AR({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=>xu(e)===as.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 kR=.2;function NR({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 IR({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=Ar().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 LR=50,PR=100,DR=200,qR=125,zR=e=>{switch(e){case.5:return LR;case 1:return PR;case 2:return DR;default:return e*qR}};function $R({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=zR(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=IR({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 _R=.3;function jR({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function FR({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const BR=10;function HR({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=IR({min:r,max:i,count:BR,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(BR),l=function({ticks:e}){const t=Math.round(e.length*_R),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?jR:FR;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 VR({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 UR({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=$R({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return NR({extrema:i,ticks:c.ticks})?c:HR({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=[...VR({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 WR({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*kR*Math.sign(t),max:n+n*kR*Math.sign(n)}}({extrema:o});return UR({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function YR({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 WR({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 GR({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return fe.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 XR({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:as.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===as.TYPE.LINE?2:t!==as.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==as.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function KR({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function JR({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:os.SCALE.COLOR}},config:{auto:KR,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:os.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:XR({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[`${os.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 ZR="REJECTED",QR=()=>{},ek=1e4,tk={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},nk=50,rk=10,ik=100;var ok={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-rk<=t.qTop,i=n.qLeft+n.qWidth+rk>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+rk>=t.qTop+t.qHeight,a=n.qLeft-rk<=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 ak={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-rk<=t.qTop,i=n.qTop+n.qHeight+rk>=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 sk={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 lk="pages";const ck="discretePan",uk=10;function dk({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:ck,pointers:1,threshold:uk,enable(r,i){return this.started===ck||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${ck}start`](e){e.preventDefault(),this.started=ck;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-uk:uk},[`${ck}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)},[`${ck}end`](e){e.preventDefault(),this.started=!1},[`${ck}cancel`](e){e.preventDefault(),this.started=!1}}}}function mk({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)*ik;r.scroll(s)}}function pk({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(ek/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(tk.MAXIMUM,n));return{width:e,height:Math.max(tk.MINIMUM,Math.min(n*tk.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 fk(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(ZR),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(ZR),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(ZR),n=null)},i}const hk={command:{update:()=>{}}};function gk({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=hk,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:pk({layoutService:r}),request:c({definitionPath:o}),process:fk(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!==ZR)throw e}))}),nk);return function(e,{onProcessing:t=QR,onDataPage:n=QR}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var yk={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 vk={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 bk(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function xk(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 Sk(e){return xk(e.qMatrix,(e=>e[0].qElemNumber))-1}var Ek={inTotal:function({layoutService:e}){const t=bk(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=bk(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=bk(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=Sk(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 Mk=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),Ck=(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 Ok(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return Mk(e,n);const r=Ck(t.qMatrix,n);return r.successful?r.count:Mk(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return Mk(e,n);return xk(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Tk={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=Ok(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=Ok(t).area(e(),l,a.qArea),d=Sk(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 wk({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 Ak({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?yk:n?r?Ek:Tk:vk}({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:wk({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(ek/(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 Rk({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=Ak({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 kk({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 ok;case"K":return ak;case"T":return sk}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(lk,[]),{add:t=>{const n=e.get(lk);n.length=0,n.push(t)},getCurrent:()=>e.get(lk)[0],getAll:()=>e.get(lk),contains:n=>t(e.get(lk)[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=gk({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=Rk({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:[dk({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:mk({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 Nk={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 Ik({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 Lk({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=ec,s=n.getStyles(),l=Ik({layoutService:e,key:"bar"}),c=Ik({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:12,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 Pk({layoutService:e}){return A({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function Dk({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return ue.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function qk({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}=os.COMPONENT,{PRIMARY:f,SECONDARY:h}=as.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=os.COMPONENT,{PRIMARY:a,SECONDARY:s}=as.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=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=h.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))&&!g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=h.data.source)||void 0===n?void 0:n.field)})))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))||g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.source)||void 0===n?void 0:n.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:os.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:[os.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}`,`${os.COMPONENT.BAR_OOB}-max-${f}`,`${os.COMPONENT.BAR_OOB}-max-${h}`,`${os.COMPONENT.BAR_OOB}-min-${f}`,`${os.COMPONENT.BAR_OOB}-min-${h}`,`${os.COMPONENT.DATA_OOB_MARKER}-max`,`${os.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:os.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:Dk({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:os.COMPONENT.LEGEND_TOOLTIP,component:os.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:zk}=mm,$k=({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=cw({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=as.NOPE_SERIES})=>xu(e)===as.TYPE.LINE)),i=fe.continuous(e,(()=>r&&le.isTime(!0,e))),o=!SR(E(e,"version","")),a=n.filter((({series:e=as.NOPE_SERIES})=>xu(e)===as.TYPE.BAR)),s=a.length,l=a.filter((({series:e=as.NOPE_SERIES})=>e.axis!==as.AXIS.SECONDARY)).length,c=a.filter((({series:e=as.NOPE_SERIES})=>e.axis===as.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:le.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:le.isTime(i,e),isSnapshot:fe.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=OR({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=ER({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 kk({chart:e,actions:s,componentKey:pm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:Nk,options:{axisKey:os.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?zk({model:w,layoutService:n,viewState:f,viewCache:h}):void 0,v=I({theme:m.theme,config:{id:"comboChart"}}),M=Lk({layoutService:n,dockService:l,themeService:v,flags:p}),O=JR({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));return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:n,seriesModel:c}),q=RR({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=RR({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=Pk({layoutService:n}),_=YR({config:{measureAxesRef:"measureAxes.0",formatter:os.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:v}),j=YR({config:{measureAxesRef:"measureAxes.1",formatter:os.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:z,dockService:l,seriesModel:c,themeService:v}),F=GR({genericObjectModel:w,layoutService:n}),B=Ts({flags:p,layout:b,app:A,model:w,picasso:e,chart:t,translator:i,localeInfo:R.qLocaleInfo,embed:D,options:r}),H=qk({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:v,propertiesModel:F,custom:B}),V=rs({layoutService:n,discreteModel:u}),U=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:os.SCALE.MAJOR,MAJOR_INNER:os.SCALE.MAJOR_INNER,MINOR:{PRIMARY:os.SCALE.MINOR.PRIMARY,SECONDARY:os.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${os.COMPONENT.BAR}-${as.AXIS.PRIMARY}`,BAR_SECONDARY:`${os.COMPONENT.BAR}-${as.AXIS.SECONDARY}`,AXIS:{MAJOR:os.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:os.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:os.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:os.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:os.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:os.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:os.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:os.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:os.COLLECTION.MAIN}}}}(n),W=L({picassoInstance:e,plugins:P,pluginArgs:U}),Y=function({options:e,viewCache:t,layoutService:n}){const r={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||r.hasSlicedHats||r.isPartialUpdating||r.isSizeChanging||Wa.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:r,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:z,primaryTickModel:_,secondaryTickModel:j,propertiesModel:F,colorService:O,themeService:v,appLayoutModel:R,tooltipService:H,disclaimerService:$,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[,z]=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(z)throw z;return O};const _k={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 jk={query:{getCanScroll:()=>!0}};function Fk({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function Bk({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]===os.COMPONENT.LEGEND_CATEGORICAL}),r()}function Hk({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(os.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:Fk},selectionEvents:{start:Bk}}});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 Vk={version:"1.31.19",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 Uk=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=xu(n[e].qDef.series),i===as.TYPE.BAR?r[0]=1:i===as.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)},Wk=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===as.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===as.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function Yk(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&&xu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===as.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function Gk(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:Uk(t),added(e,t){xs.addCallbackCustomTooltip(t)},moved(e,t){xs.moveCallbackCustomTooltip(t,e)},removed(e,t){xs.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){xs.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:Wk(t),added({qDef:e},t){var n;Yk(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:as.TYPE.LINE,axis:as.AXIS.SECONDARY}:e.series={type:as.TYPE.BAR,axis:as.AXIS.PRIMARY})},moved(e,t){Yk(t)}}}}function Xk(e){const t=Gk(e);return{properties:Vk,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&&ne(!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 Kk=({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:he(t,os.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:he(t,os.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const Jk=e=>{const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=as.NOPE_SERIES})=>xu(e)===as.TYPE.LINE));return fe.continuous(e,(()=>t&&le.isTime(!0,e)))},Zk=(e,t,n)=>{let r;const i=n||0;var o,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(o=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?fw(t,!0):!fw(t,!0)}))},Qk=(e,t)=>{const n=Zk(e,t,0).filter((e=>e.series.type===as.TYPE.BAR)),r=Zk(e,t,1).filter((e=>e.series.type===as.TYPE.BAR)),i="stacked"===E(t.layout,"barGrouping.grouping");return!fe.continuous(t.layout)&&i&&(n.length>1||r.length>1)},eN=(e,t,n,r,i=void 0)=>{const o=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=i?i:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function tN(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"]}});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",show:(e,t)=>!Jk(t.layout),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:{...eN("bar.label.value","label.value",r,t,"12px"),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:eN("line.label.value","label.value",r,t)}}}:void 0}},markerSection:{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:eN("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:eN("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:eN("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:eN("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:eN("legend.label","legend.label",r,t)}}}:void 0}}}const nN={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",show:(e,t)=>!Jk(t.layout),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 rN(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function iN(e){var t,n;return rN(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 oN(e){var t;return rN(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function aN(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 sN(e){return oN(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function lN(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?[...aN(n),...sN(e)]:sN(e)}(t,n,e)))}function cN(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||Jk(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 xu(null===(t=e.qDef)||void 0===t?void 0:t.series)===as.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return xu(null===(t=e.qDef)||void 0===t?void 0:t.series)===as.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)=>rN(...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:iN},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:oN}}}}}}}}}}}}const uN=10,dN=!0;function mN(e){return e.qHyperCube.qMeasureInfo.filter((e=>xu(e.series)===as.TYPE.LINE)).length>0}function pN(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>xu(e.series)===as.TYPE.BAR));return n.filter((e=>e.series.axis!==as.AXIS.SECONDARY)).length>t||n.filter((e=>e.series.axis===as.AXIS.SECONDARY)).length>t}function fN(e){return e.qHyperCube.qMeasureInfo.filter((e=>xu(e.series)===as.TYPE.MARKER)).length>0}const hN=(e,t,n,r)=>{const i="vertical"===e.layout.orientation||Jk(e.layout)?"y":"x",o=Zk(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 gN(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=>lN(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>rN(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>rN(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,m={items:{disclaimer:{show:(e,t)=>u(e),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)=>!u(e)}}},p={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,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&pN(n.layout,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&mN(n.layout),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,n)=>i.get(Zk(t,n,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Zk(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&&Zk(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"}}}}}}},f={uses:"settings",items:{simpleStyling:nN,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:tN(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)=>pN(n.layout,1)&&!Jk(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)=>Jk(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>Jk(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,Jk(r.layout)?h:e,h)}})},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)=>!Jk(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,n)=>mN(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>mN(e)},show:(e,t,n)=>mN(n.layout),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"}]}}},barLabels:{type:"items",snapshot:{tid:"property-barLabels",show:e=>pN(e,0)},show:(e,t,n)=>pN(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>pN(n.layout,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showBarSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&Qk(t,n)},showTotalLabels:{ref:"dataPoint.showBarTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&Qk(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>fN(e)},show:(e,t,n)=>fN(n.layout),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"}]},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e,t,n){const r=[],i=n.layout.qHyperCube.qMeasureInfo,o=d(i,0),a=d(i,1);return o&&r.push({translation:"properties.axis.primary",value:0}),a&&r.push({translation:"properties.axis.secondary",value:1}),r},show:(e,t,n)=>e.gridLine&&!e.gridLine.auto&&0!==n.layout.qHyperCube.qMeasureInfo.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(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=>e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:m,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||Jk(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||Jk(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)=>!Jk(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:uN,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=uN: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,n)=>hN(t,n,i,0),show:(e,t,n)=>Zk(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>hN(t,n,i,0),show:(e,t,n)=>Zk(t,n,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)&&fw(null==e?void 0:e.series,dN)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&Zk(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||Jk(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,n)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&Zk(t,n,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,n)=>Zk(t,n,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,n)=>hN(t,n,i,1),show:(e,t,n)=>Zk(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>hN(t,n,i,1),show:(e,t,n)=>Zk(t,n,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)&&!fw(null==e?void 0:e.series,dN)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&Zk(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||Jk(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,n)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&Zk(t,n,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,n)=>Zk(t,n,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 h;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.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 g={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!Jk(n.layout)}}}},measures:cN(e)}},y={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=>fw(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,dN)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!fw(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,dN)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:f}}}function yN(e){return e.qHyperCubeDef.qMeasures.filter((e=>xu(e.qDef.series)===as.TYPE.LINE)).length>0}function vN(){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)=>yN(e)||!Jk(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=>xu(e.qDef.series)===as.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===as.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===as.AXIS.SECONDARY)).length>1:n.length>1}(e,!SR(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!Jk(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)=>!Jk(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=>yN(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>yN(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>rN(e)))}}}}}}const bN={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 xN(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=bN[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 SN(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"});xN(r,o,t,n,"bar"),xN(r,o,t,n,"line"),xN(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 EN(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 MN=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function CN(e){return{definition:gN(e),softDefinition:vN(),support:{snapshot:MN,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:SN,extendMetrics:EN,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:Gk(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&&ne(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),lN(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(Ct),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Ct)}(e),function(e){return SR(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=as.NOPE_SERIES),void 0===t.series.type&&(t.series.type=as.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===as.TYPE.BAR?as.AXIS.PRIMARY:as.AXIS.SECONDARY),t.series.type===as.TYPE.BAR&&t.series.axis===as.AXIS.SECONDARY&&(t.series.axis=as.AXIS.PRIMARY)})),e.version=xR.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
94
+ `),FO.rippleVisible,GO,550,(({theme:e})=>e.transitions.easing.easeInOut),FO.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),FO.child,FO.childLeaving,XO,550,(({theme:e})=>e.transitions.easing.easeInOut),FO.childPulsate,KO,(({theme:e})=>e.transitions.easing.easeInOut)),QO=F.forwardRef((function(e,t){const n=vO({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=$p(n,BO),[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=SC(),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,NE.jsx(ZO,{classes:{ripple:ZM(i.ripple,FO.ripple),rippleVisible:ZM(i.rippleVisible,FO.rippleVisible),ripplePulsate:ZM(i.ripplePulsate,FO.ripplePulsate),child:ZM(i.child,FO.child),childLeaving:ZM(i.childLeaving,FO.childLeaving),childPulsate:ZM(i.childPulsate,FO.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]),NE.jsx(JO,Tp({className:ZM(FO.root,i.root,o),ref:f},a,{children:NE.jsx(hv,{component:null,exit:!0,children:s})}))}));var eT=QO;function tT(e){return eC("MuiButtonBase",e)}var nT=tC("MuiButtonBase",["root","disabled","focusVisible"]);const rT=["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"],iT=LO("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"},[`&.${nT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),oT=F.forwardRef((function(e,t){const n=vO({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=$p(n,rT),I=F.useRef(null),L=F.useRef(null),P=yC(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=kC(),[_,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 gC((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=gC((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=gC((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=gC((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=yC(t,$,I),ce=Tp({},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=NC({root:["root",t&&"disabled",n&&"focusVisible"]},tT,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return NE.jsxs(iT,Tp({as:ae,className:ZM(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?NE.jsx(eT,Tp({ref:P,center:i},A)):null]}))}));var aT=oT;function sT(e){return eC("MuiButton",e)}var lT=tC("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 cT=F.createContext({});var uT=F.createContext(void 0);const dT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mT=e=>Tp({},"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}}),pT=LO(aT,{shouldForwardProp:e=>IO(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${WE(n.color)}`],t[`size${WE(n.size)}`],t[`${n.variant}Size${WE(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 Tp({},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":Tp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:KC.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:KC.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:KC.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg: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":Tp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${lT.focusVisible}`]:Tp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${lT.disabled}`]:Tp({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 ${KC.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg: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"},[`&.${lT.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${lT.disabled}`]:{boxShadow:"none"}})),fT=LO("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${WE(n.size)}`]]}})((({ownerState:e})=>Tp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},mT(e)))),hT=LO("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${WE(n.size)}`]]}})((({ownerState:e})=>Tp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},mT(e)))),gT=F.forwardRef((function(e,t){const n=F.useContext(cT),r=F.useContext(uT),i=vO({props:mC(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=$p(i,dT),x=Tp({},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 Tp({},a,NC({root:["root",o,`${o}${WE(t)}`,`size${WE(i)}`,`${o}Size${WE(i)}`,`color${WE(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${WE(i)}`],endIcon:["icon","endIcon",`iconSize${WE(i)}`]},sT,a))})(x),E=g&&NE.jsx(fT,{className:S.startIcon,ownerState:x,children:g}),M=m&&NE.jsx(hT,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return NE.jsxs(pT,Tp({ownerState:x,className:ZM(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:ZM(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var yT=gT;var vT=F.createContext({});function bT(e){return eC("MuiListItemButton",e)}var xT=tC("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const ST=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ET=LO(aT,{shouldForwardProp:e=>IO(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})=>Tp({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"}},[`&.${xT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:KC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:KC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:KC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:KC.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xT.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}))),MT=F.forwardRef((function(e,t){const n=vO({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=$p(n,ST),f=F.useContext(vT),h=F.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=F.useRef(null);fC((()=>{i&&g.current&&g.current.focus()}),[i]);const y=Tp({},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 Tp({},n,NC({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},bT,n))})(y),b=yC(g,t);return NE.jsx(vT.Provider,{value:h,children:NE.jsx(ET,Tp({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:ZM(v.focusVisible,u),ownerState:y,className:ZM(v.root,m)},p,{classes:v,children:a}))})}));var CT=MT;function OT(e){return eC("MuiListItemIcon",e)}tC("MuiListItemIcon",["root","alignItemsFlexStart"]);const TT=["className"],wT=LO("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})=>Tp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),AT=F.forwardRef((function(e,t){const n=vO({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=$p(n,TT),o=Tp({},n,{alignItems:F.useContext(vT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return NC({root:["root","flex-start"===t&&"alignItemsFlexStart"]},OT,n)})(o);return NE.jsx(wT,Tp({className:ZM(a.root,r),ownerState:o,ref:t},i))}));var RT=AT;function kT(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}function NT(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 IT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NT(Object(n),!0).forEach((function(t){kT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LT,PT,DT=function(e){var t=e.className,n=e.path,r=e.fillRule;return j.createElement(jO,{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)},qT={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)"}}};LO(yT,{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}}})),LO((function(e){var t=e.className;return j.createElement(DT,{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:qT.ICONS.COLOR.SECONDARY}})),LO((function(e){var t=e.className;return j.createElement(DT,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:qT.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:qT.ICONS.COLOR.DISABLED}}})),LO(yT,{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 zT={color:qT.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:qT.ICONS.COLOR.DISABLED}};LO((function(e){var t=e.className;return j.createElement(DT,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return zT})),LO((function(e){var t=e.className;return j.createElement(DT,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return zT})),LO((function(e){var t=e.className;return j.createElement(DT,{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:qT.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),LO(CT)((function(){return{padding:"4px 12px","&:focus":IT({},qT.FOCUS)}})),LO(RT)((function(){return{marginRight:0,justifyContent:"center"}})),LO((function(e){var t=e.className;return j.createElement(DT,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:qT.ICONS.COLOR.SECONDARY}}));var $T,_T=function(){if(PT)return LT;PT=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return LT=function e(){var t,n,r,l,c,u,d=arguments[0],m=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},m=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});m<p;++m)if(null!=(t=arguments[m]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(o(l)||(c=i(l)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},LT}();($T=_T)&&$T.__esModule&&Object.prototype.hasOwnProperty.call($T,"default")&&$T.default;var jT,FT=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))},BT={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(FT,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},HT={},VT=function(){if(jT)return HT;jT=1;var e=G;return HT.createRoot=e.createRoot,HT.hydrateRoot=e.hydrateRoot,HT}(),UT=gO({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 WT(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 YT(){var e={rendererBox:WT(),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=WT(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=VT.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,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(DO,{theme:UT},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var GT={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 XT({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 KT({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))];return e.findShapes("path").filter((e=>r.some((t=>t===e.key)))).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 JT({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function ZT({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(as.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 QT({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?JT:ZT)({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 ew({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(as.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 tw({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(as.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 nw({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(as.SCALE.MAJOR),d=e.scale(as.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?ew:tw)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function rw({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:nw({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 iw({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=QT({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(...rw({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 ow={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:KT({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=iw({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=KT({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return iw({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 aw=()=>{const e=$();return e.use(_),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",jm(e))};e.interaction("hammer",jm(Hammer))}(z)),e.use(Ib),e.use((function(e){e.renderer("react",kb()),e.component("data-title",wb(e.renderer("svg")()))})),e.renderer("react-qcm",YT),e.component("disclaimer",BT),e.component("scrollbar",hl),e.component("point-label",Cx),e.component("label-space",Ox),e.component("time-axis",pm.picassoComponents.timeAxis),e.component("axis-overlay",pm.picassoComponents.axisOverlay),e.component("reference-line-labels",Va),e.component("box-sliced-hat",Bb),e.component("box-out-of-bounds",zb),e.component("data-out-of-bounds-marker",GT),e.component("scroll-hint",Ho),e.component("brush-highlighter",ow),e.scale("time",pm.picassoScales.time),e.symbol("line-point",XT),e},sw=e=>"[object Object]"===Object.prototype.toString.call(e),lw=e=>Array.isArray(e);function cw(e,t){if(e===t)return!0;if(lw(e)){if(!lw(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cw(e[n],t[n]))return!1;return!0}if(sw(e)){if(!sw(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(!cw(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function uw({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=ne(!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=ne(!0,{},e),l=ne(!0,{},t);return a.exclude=!cw(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=!cw(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 dw={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},mw=e=>void 0===e.marker?dw.circle:dw[e.marker],pw=e=>void 0===e.markerFill||e.markerFill;function fw({series:e,layoutService:t}){switch(Su(e)){case ss.TYPE.MARKER:return(e=>({marker:mw(e),fill:pw(e)}))(e);case ss.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case ss.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function hw(e=ss.NOPE_SERIES,t){return t?e.axis===ss.AXIS.PRIMARY:e.axis===ss.AXIS.PRIMARY||Su(e)===ss.TYPE.BAR}var gw,yw,vw,bw,xw,Sw,Ew,Mw,Cw,Ow,Tw,ww,Aw,Rw,kw,Nw,Iw,Lw,Pw,Dw,qw,zw,$w,_w,jw,Fw,Bw,Hw,Vw,Uw,Ww,Yw,Gw,Xw,Kw,Jw,Zw,Qw,eA,tA,nA,rA,iA,oA,aA,sA,lA,cA,uA,dA,mA,pA,fA,hA,gA,yA,vA,bA,xA,SA,EA,MA,CA,OA,TA,wA,AA,RA,kA,NA,IA,LA,PA,DA,qA,zA,$A,_A,jA,FA,BA,HA,VA,UA,WA,YA,GA,XA,KA,JA={exports:{}};function ZA(){if(yw)return gw;yw=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return gw={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function QA(){if(bw)return vw;bw=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return vw=e}function eR(){return xw||(xw=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=ZA(),o=QA(),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*$")}(JA,JA.exports)),JA.exports}function tR(){if(Ew)return Sw;Ew=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Sw=n=>n?"object"!=typeof n?e:n:t}function nR(){if(Cw)return Mw;Cw=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),i=e.test(n);return r&&i&&(t=+t,n=+n),t===n?0:r&&!i?-1:i&&!r?1:t<n?-1:1};return Mw={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},Mw}function rR(){if(Tw)return Ow;Tw=1;const e=QA(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=ZA(),{safeRe:r,t:i}=eR(),o=tR(),{compareIdentifiers:a}=nR();class s{constructor(a,l){if(l=o(l),a instanceof s){if(a.loose===!!l.loose&&a.includePrerelease===!!l.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=a.trim().match(l.loose?r[i.LOOSE]:r[i.FULL]);if(!c)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[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(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(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 r=this.prerelease[n],i=t.prerelease[n];if(e("prerelease compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(e("build compare",n,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return a(r,i)}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===a(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}}return Ow=s}function iR(){if(Aw)return ww;Aw=1;const e=rR();return ww=(t,n,r=!1)=>{if(t instanceof e)return t;try{return new e(t,n)}catch(e){if(!r)return null;throw e}}}function oR(){if(Ww)return Uw;Ww=1;const e=rR();return Uw=(t,n,r)=>new e(t,r).compare(new e(n,r)),Uw}function aR(){if(Zw)return Jw;Zw=1;const e=rR();return Jw=(t,n,r)=>{const i=new e(t,r),o=new e(n,r);return i.compare(o)||i.compareBuild(o)},Jw}function sR(){if(iA)return rA;iA=1;const e=oR();return rA=(t,n,r)=>e(t,n,r)>0,rA}function lR(){if(aA)return oA;aA=1;const e=oR();return oA=(t,n,r)=>e(t,n,r)<0,oA}function cR(){if(lA)return sA;lA=1;const e=oR();return sA=(t,n,r)=>0===e(t,n,r),sA}function uR(){if(uA)return cA;uA=1;const e=oR();return cA=(t,n,r)=>0!==e(t,n,r),cA}function dR(){if(mA)return dA;mA=1;const e=oR();return dA=(t,n,r)=>e(t,n,r)>=0,dA}function mR(){if(fA)return pA;fA=1;const e=oR();return pA=(t,n,r)=>e(t,n,r)<=0,pA}function pR(){if(gA)return hA;gA=1;const e=cR(),t=uR(),n=sR(),r=dR(),i=lR(),o=mR();return hA=(a,s,l,c)=>{switch(s){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a===l;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof l&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return n(a,l,c);case">=":return r(a,l,c);case"<":return i(a,l,c);case"<=":return o(a,l,c);default:throw new TypeError(`Invalid operator: ${s}`)}},hA}function fR(){if(EA)return SA;EA=1;const e=/\s+/g;class t{constructor(n,r){if(r=i(r),n instanceof t)return n.loose===!!r.loose&&n.includePrerelease===!!r.includePrerelease?n:new t(n.raw,r);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=n.trim().replace(e," "),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=>!h(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&&g(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,n=r.get(t);if(n)return n;const i=this.options.loose,s=i?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[c.COMPARATORTRIM],u),a("comparator trim",e),e=e.replace(l[c.TILDETRIM],d),a("tilde trim",e),e=e.replace(l[c.CARETTRIM],m),a("caret trim",e);let g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>w(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE]))))),a("range list",g);const y=new Map,b=g.map((e=>new o(e,this.options)));for(const e of b){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const x=[...y.values()];return r.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>y(t,n)&&e.set.some((e=>y(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}SA=t;const n=(xA||(xA=1,bA=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}),bA),r=new n,i=tR(),o=hR(),a=QA(),s=rR(),{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:m}=eR(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=ZA(),h=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,y=(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},v=(e,t)=>(a("comp",e,t),e=E(e,t),a("caret",e),e=x(e,t),a("tildes",e),e=C(e,t),a("xrange",e),e=T(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{const n=t.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(n,((t,n,r,i,o)=>{let s;return a("tilde",e,t,n,r,i,o),b(n)?s="":b(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:b(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a("tilde return",s),s}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>M(e,t))).join(" "),M=(e,t)=>{a("caret",e,t);const n=t.loose?l[c.CARETLOOSE]:l[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),b(n)?l="":b(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l}))},C=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const n=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(n,((n,r,i,o,s,l)=>{a("xRange",e,n,r,i,o,s,l);const c=b(i),u=c||b(o),d=u||b(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(o=0),s=0,">"===r?(r=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n}))},T=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[c.STAR],"")),w=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,n,r,i,o,a,s,l,c,u,d,m)=>`${n=b(r)?"":b(i)?`>=${r}.0.0${e?"-0":""}`:b(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),R=(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(a(e[n].semver),e[n].semver!==o.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 SA}function hR(){if(CA)return MA;CA=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(">")))))))}}MA=t;const n=tR(),{safeRe:r,t:i}=eR(),o=pR(),a=QA(),s=rR(),l=fR();return MA}function gR(){if(TA)return OA;TA=1;const e=fR();return OA=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},OA}function yR(){if(qA)return DA;qA=1;const e=fR();return DA=(t,n)=>{try{return new e(t,n).range||"*"}catch(e){return null}},DA}function vR(){if($A)return zA;$A=1;const e=rR(),t=hR(),{ANY:n}=t,r=fR(),i=gR(),o=sR(),a=lR(),s=mR(),l=dR();return zA=(c,u,d,m)=>{let p,f,h,g,y;switch(c=new e(c,m),u=new r(u,m),d){case">":p=o,f=s,h=a,g=">",y=">=";break;case"<":p=a,f=l,h=o,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(c,u,m))return!1;for(let e=0;e<u.set.length;++e){const r=u.set[e];let i=null,o=null;if(r.forEach((e=>{e.semver===n&&(e=new t(">=0.0.0")),i=i||e,o=o||e,p(e.semver,i.semver,m)?i=e:h(e.semver,o.semver,m)&&(o=e)})),i.operator===g||i.operator===y)return!1;if((!o.operator||o.operator===g)&&f(c,o.semver))return!1;if(o.operator===y&&h(c,o.semver))return!1}return!0},zA}var bR=function(){if(KA)return XA;KA=1;const e=eR(),t=ZA(),n=rR(),r=nR(),i=iR(),o=function(){if(kw)return Rw;kw=1;const e=iR();return Rw=(t,n)=>{const r=e(t,n);return r?r.version:null},Rw}(),a=function(){if(Iw)return Nw;Iw=1;const e=iR();return Nw=(t,n)=>{const r=e(t.trim().replace(/^[=v]+/,""),n);return r?r.version:null},Nw}(),s=function(){if(Pw)return Lw;Pw=1;const e=rR();return Lw=(t,n,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new e(t instanceof e?t.version:t,r).inc(n,i,o).version}catch(e){return null}},Lw}(),l=function(){if(qw)return Dw;qw=1;const e=iR();return Dw=(t,n)=>{const r=e(t,null,!0),i=e(n,null,!0),o=r.compare(i);if(0===o)return null;const a=o>0,s=a?r:i,l=a?i:r,c=!!s.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=c?"pre":"";return r.major!==i.major?u+"major":r.minor!==i.minor?u+"minor":r.patch!==i.patch?u+"patch":"prerelease"},Dw}(),c=function(){if($w)return zw;$w=1;const e=rR();return zw=(t,n)=>new e(t,n).major,zw}(),u=function(){if(jw)return _w;jw=1;const e=rR();return _w=(t,n)=>new e(t,n).minor,_w}(),d=function(){if(Bw)return Fw;Bw=1;const e=rR();return Fw=(t,n)=>new e(t,n).patch,Fw}(),m=function(){if(Vw)return Hw;Vw=1;const e=iR();return Hw=(t,n)=>{const r=e(t,n);return r&&r.prerelease.length?r.prerelease:null}}(),p=oR(),f=function(){if(Gw)return Yw;Gw=1;const e=oR();return Yw=(t,n,r)=>e(n,t,r),Yw}(),h=function(){if(Kw)return Xw;Kw=1;const e=oR();return Xw=(t,n)=>e(t,n,!0),Xw}(),g=aR(),y=function(){if(eA)return Qw;eA=1;const e=aR();return Qw=(t,n)=>t.sort(((t,r)=>e(t,r,n))),Qw}(),v=function(){if(nA)return tA;nA=1;const e=aR();return tA=(t,n)=>t.sort(((t,r)=>e(r,t,n))),tA}(),b=sR(),x=lR(),S=cR(),E=uR(),M=dR(),C=mR(),O=pR(),T=function(){if(vA)return yA;vA=1;const e=rR(),t=iR(),{safeRe:n,t:r}=eR();return yA=(i,o)=>{if(i instanceof e)return i;if("number"==typeof i&&(i=String(i)),"string"!=typeof i)return null;let a=null;if((o=o||{}).rtl){const e=o.includePrerelease?n[r.COERCERTLFULL]:n[r.COERCERTL];let t;for(;(t=e.exec(i))&&(!a||a.index+a[0].length!==i.length);)a&&t.index+t[0].length===a.index+a[0].length||(a=t),e.lastIndex=t.index+t[1].length+t[2].length;e.lastIndex=-1}else a=i.match(o.includePrerelease?n[r.COERCEFULL]:n[r.COERCE]);if(null===a)return null;const s=a[2],l=a[3]||"0",c=a[4]||"0",u=o.includePrerelease&&a[5]?`-${a[5]}`:"",d=o.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${s}.${l}.${c}${u}${d}`,o)},yA}(),w=hR(),A=fR(),R=gR(),k=function(){if(AA)return wA;AA=1;const e=fR();return wA=(t,n)=>new e(t,n).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" "))),wA}(),N=function(){if(kA)return RA;kA=1;const e=rR(),t=fR();return RA=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&-1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},RA}(),I=function(){if(IA)return NA;IA=1;const e=rR(),t=fR();return NA=(n,r,i)=>{let o=null,a=null,s=null;try{s=new t(r,i)}catch(e){return null}return n.forEach((t=>{s.test(t)&&(o&&1!==a.compare(t)||(o=t,a=new e(o,i)))})),o},NA}(),L=function(){if(PA)return LA;PA=1;const e=rR(),t=fR(),n=sR();return LA=(r,i)=>{r=new t(r,i);let o=new e("0.0.0");if(r.test(o))return o;if(o=new e("0.0.0-0"),r.test(o))return o;o=null;for(let t=0;t<r.set.length;++t){const i=r.set[t];let a=null;i.forEach((t=>{const r=new e(t.semver.version);switch(t.operator){case">":0===r.prerelease.length?r.patch++:r.prerelease.push(0),r.raw=r.format();case"":case">=":a&&!n(r,a)||(a=r);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!a||o&&!n(o,a)||(o=a)}return o&&r.test(o)?o:null},LA}(),P=yR(),D=vR(),q=function(){if(jA)return _A;jA=1;const e=vR();return _A=(t,n,r)=>e(t,n,">",r),_A}(),z=function(){if(BA)return FA;BA=1;const e=vR();return FA=(t,n,r)=>e(t,n,"<",r),FA}(),$=function(){if(VA)return HA;VA=1;const e=fR();return HA=(t,n,r)=>(t=new e(t,r),n=new e(n,r),t.intersects(n,r))}(),_=function(){if(WA)return UA;WA=1;const e=gR(),t=oR();return UA=(n,r,i)=>{const o=[];let a=null,s=null;const l=n.sort(((e,n)=>t(e,n,i)));for(const t of l)e(t,r,i)?(s=t,a||(a=t)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const c=[];for(const[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),d="string"==typeof r.raw?r.raw:String(r);return u.length<d.length?u:r},UA}(),j=function(){if(GA)return YA;GA=1;const e=fR(),t=hR(),{ANY:n}=t,r=gR(),i=oR(),o=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],s=(e,t,s)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=s.includePrerelease?o:a}if(1===t.length&&t[0].semver===n){if(s.includePrerelease)return!0;t=a}const u=new Set;let d,m,p,f,h,g,y;for(const t of e)">"===t.operator||">="===t.operator?d=l(d,t,s):"<"===t.operator||"<="===t.operator?m=c(m,t,s):u.add(t.semver);if(u.size>1)return null;if(d&&m){if(p=i(d.semver,m.semver,s),p>0)return null;if(0===p&&(">="!==d.operator||"<="!==m.operator))return null}for(const e of u){if(d&&!r(e,String(d),s))return null;if(m&&!r(e,String(m),s))return null;for(const n of t)if(!r(e,String(n),s))return!1;return!0}let v=!(!m||s.includePrerelease||!m.semver.prerelease.length)&&m.semver,b=!(!d||s.includePrerelease||!d.semver.prerelease.length)&&d.semver;v&&1===v.prerelease.length&&"<"===m.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,d)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(f=l(d,e,s),f===e&&f!==d)return!1}else if(">="===d.operator&&!r(d.semver,String(e),s))return!1;if(m)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(h=c(m,e,s),h===e&&h!==m)return!1}else if("<="===m.operator&&!r(m.semver,String(e),s))return!1;if(!e.operator&&(m||d)&&0!==p)return!1}return!(d&&g&&!m&&0!==p||m&&y&&!d&&0!==p||b||v)},l=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},c=(e,t,n)=>{if(!e)return t;const r=i(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};return YA=(t,n,r={})=>{if(t===n)return!0;t=new e(t,r),n=new e(n,r);let i=!1;e:for(const e of t.set){for(const t of n.set){const n=s(e,t,r);if(i=i||null!==n,n)continue e}if(i)return!1}return!0}}();return XA={parse:i,valid:o,clean:a,inc:s,diff:l,major:c,minor:u,patch:d,prerelease:m,compare:p,rcompare:f,compareLoose:h,compareBuild:g,sort:y,rsort:v,gt:b,lt:x,eq:S,neq:E,gte:M,lte:C,cmp:O,coerce:T,Comparator:w,Range:A,satisfies:R,toComparators:k,maxSatisfying:N,minSatisfying:I,minVersion:L,validRange:P,outside:D,gtr:q,ltr:z,intersects:$,simplifyRange:_,subset:j,SemVer:n,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:r.compareIdentifiers,rcompareIdentifiers:r.rcompareIdentifiers}}(),xR=Q(bR),SR={BAR_IN_SECONDARY_AXIS:"0.23.1"};const ER=e=>!e||xR.lt(xR.coerce(e),xR.coerce(SR.BAR_IN_SECONDARY_AXIS)),MR=({layoutService:e})=>{const t=!ER(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[ss.TYPE.BAR]:0,[ss.TYPE.LINE]:0,[ss.TYPE.MARKER]:0};return({series:r=ss.NOPE_SERIES},i)=>{const o=hw(r,t),a=Su(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?as.SCALE.MINOR.PRIMARY:as.SCALE.MINOR.SECONDARY,collection:o?as.COLLECTION.PRIMARY:as.COLLECTION.SECONDARY,options:fw({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Su(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,ss.TYPE.BAR),l=r(i,ss.TYPE.BAR),c=r(o,ss.TYPE.BAR),u=e=>n.filter((t=>Su(t)===e)),d=u(ss.TYPE.LINE).map((e=>Vl(as.COMPONENT.POINT,e))),m=u(ss.TYPE.MARKER).map((e=>({key:Vl(as.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`),c>0&&f.push(`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=as.COMPONENT,y=u(ss.TYPE.LINE).map((e=>Vl(g.LINE,e))),v=u(ss.TYPE.MARKER).map((e=>Vl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${ss.AXIS.PRIMARY}`,`${g.BAR}-${ss.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:hw}}};function CR({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 OR({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(ye).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:CR({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function TR({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}):OR({genericObjectModel:e,layoutService:t})}const wR=e=>"number"==typeof e&&!Number.isNaN(e);function AR({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=>Su(e.series)===ss.TYPE.BAR)),a=i.filter((e=>Su(e.series)===ss.TYPE.LINE)),s=i.filter((e=>Su(e.series)===ss.TYPE.MARKER));return{min:Math.min(...i.filter((e=>wR(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>wR(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>wR(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>wR(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>wR(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>wR(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>wR(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>wR(e.qMax))).map((e=>e.qMax)))}}}}function RR({isPrimary:e,layoutService:t,seriesModel:n}){const r=AR({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(ss.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 kR({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(ss.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?AR({isPrimary:e,layoutService:t,seriesModel:n}):RR({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=>Su(e)===ss.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 NR=.2;function IR({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 LR({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=Rr().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 PR=50,DR=100,qR=200,zR=125,$R=e=>{switch(e){case.5:return PR;case 1:return DR;case 2:return qR;default:return e*zR}};function _R({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=$R(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=LR({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 jR=.3;function FR({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function BR({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const HR=10;function VR({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=LR({min:r,max:i,count:HR,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(HR),l=function({ticks:e}){const t=Math.round(e.length*jR),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?FR:BR;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 UR({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 WR({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=_R({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return IR({extrema:i,ticks:c.ticks})?c:VR({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=[...UR({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 YR({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*NR*Math.sign(t),max:n+n*NR*Math.sign(n)}}({extrema:o});return WR({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function GR({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 YR({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 XR({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return he.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 KR({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:ss.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===ss.TYPE.LINE?2:t!==ss.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==ss.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function JR({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function ZR({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:as.SCALE.COLOR}},config:{auto:JR,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:as.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:KR({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[`${as.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 QR="REJECTED",ek=()=>{},tk=1e4,nk={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},rk=50,ik=10,ok=100;var ak={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-ik<=t.qTop,i=n.qLeft+n.qWidth+ik>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+ik>=t.qTop+t.qHeight,a=n.qLeft-ik<=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 sk={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-ik<=t.qTop,i=n.qTop+n.qHeight+ik>=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 lk={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 ck="pages";const uk="discretePan",dk=10;function mk({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:uk,pointers:1,threshold:dk,enable(r,i){return this.started===uk||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${uk}start`](e){e.preventDefault(),this.started=uk;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-dk:dk},[`${uk}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)},[`${uk}end`](e){e.preventDefault(),this.started=!1},[`${uk}cancel`](e){e.preventDefault(),this.started=!1}}}}function pk({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)*ok;r.scroll(s)}}function fk({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(tk/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(nk.MAXIMUM,n));return{width:e,height:Math.max(nk.MINIMUM,Math.min(n*nk.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 hk(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(QR),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(QR),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(QR),n=null)},i}const gk={command:{update:()=>{}}};function yk({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=gk,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:fk({layoutService:r}),request:c({definitionPath:o}),process:hk(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!==QR)throw e}))}),rk);return function(e,{onProcessing:t=ek,onDataPage:n=ek}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var vk={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 bk={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 xk(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function Sk(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 Ek(e){return Sk(e.qMatrix,(e=>e[0].qElemNumber))-1}var Mk={inTotal:function({layoutService:e}){const t=xk(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=xk(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=xk(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=Ek(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 Ck=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),Ok=(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 Tk(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return Ck(e,n);const r=Ok(t.qMatrix,n);return r.successful?r.count:Ck(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return Ck(e,n);return Sk(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var wk={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=Tk(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=Tk(t).area(e(),l,a.qArea),d=Ek(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 Ak({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 Rk({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?vk:n?r?Mk:wk:bk}({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:Ak({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(tk/(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 kk({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=Rk({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 Nk({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 ak;case"K":return sk;case"T":return lk}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(ck,[]),{add:t=>{const n=e.get(ck);n.length=0,n.push(t)},getCurrent:()=>e.get(ck)[0],getAll:()=>e.get(ck),contains:n=>t(e.get(ck)[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=yk({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=kk({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:[mk({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:pk({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 Ik={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 Lk({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 Pk({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=tc,s=n.getStyles(),l=Lk({layoutService:e,key:"bar"}),c=Lk({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:12,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 Dk({layoutService:e}){return A({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function qk({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return de.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function zk({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}=as.COMPONENT,{PRIMARY:f,SECONDARY:h}=ss.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=as.COMPONENT,{PRIMARY:a,SECONDARY:s}=ss.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=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=h.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))&&!g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=h.data.source)||void 0===n?void 0:n.field)})))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>{var t,n;return(null===(t=e.data.end)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.end)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.field)}))||g.find((e=>{var t,n;return(null===(t=e.data.segment)||void 0===t||null===(t=t.source)||void 0===t?void 0:t.field)!==(null===(n=y.data.source)||void 0===n?void 0:n.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:as.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:[as.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}`,`${as.COMPONENT.BAR_OOB}-max-${f}`,`${as.COMPONENT.BAR_OOB}-max-${h}`,`${as.COMPONENT.BAR_OOB}-min-${f}`,`${as.COMPONENT.BAR_OOB}-min-${h}`,`${as.COMPONENT.DATA_OOB_MARKER}-max`,`${as.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:as.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:qk({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:as.COMPONENT.LEGEND_TOOLTIP,component:as.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:$k}=pm,_k=({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=uw({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=ss.NOPE_SERIES})=>Su(e)===ss.TYPE.LINE)),i=he.continuous(e,(()=>r&&le.isTime(!0,e))),o=!ER(E(e,"version","")),a=n.filter((({series:e=ss.NOPE_SERIES})=>Su(e)===ss.TYPE.BAR)),s=a.length,l=a.filter((({series:e=ss.NOPE_SERIES})=>e.axis!==ss.AXIS.SECONDARY)).length,c=a.filter((({series:e=ss.NOPE_SERIES})=>e.axis===ss.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:le.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:le.isTime(i,e),isSnapshot:he.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=TR({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=MR({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 Nk({chart:e,actions:s,componentKey:fm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:Ik,options:{axisKey:as.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?$k({model:w,layoutService:n,viewState:f,viewCache:h}):void 0,v=I({theme:m.theme,config:{id:"comboChart"}}),M=Pk({layoutService:n,dockService:l,themeService:v,flags:p}),O=ZR({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));return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0}}({layoutService:n,seriesModel:c}),q=kR({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=kR({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=Dk({layoutService:n}),_=GR({config:{measureAxesRef:"measureAxes.0",formatter:as.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:v}),j=GR({config:{measureAxesRef:"measureAxes.1",formatter:as.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:z,dockService:l,seriesModel:c,themeService:v}),F=XR({genericObjectModel:w,layoutService:n}),B=ws({flags:p,layout:b,app:A,model:w,picasso:e,chart:t,translator:i,localeInfo:R.qLocaleInfo,embed:D,options:r}),H=zk({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:v,propertiesModel:F,custom:B}),V=is({layoutService:n,discreteModel:u}),U=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:as.SCALE.MAJOR,MAJOR_INNER:as.SCALE.MAJOR_INNER,MINOR:{PRIMARY:as.SCALE.MINOR.PRIMARY,SECONDARY:as.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${as.COMPONENT.BAR}-${ss.AXIS.PRIMARY}`,BAR_SECONDARY:`${as.COMPONENT.BAR}-${ss.AXIS.SECONDARY}`,AXIS:{MAJOR:as.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:as.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:as.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:as.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:as.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:as.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:as.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:as.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:as.COLLECTION.MAIN}}}}(n),W=L({picassoInstance:e,plugins:P,pluginArgs:U}),Y=function({options:e,viewCache:t,layoutService:n}){const r={hasSlicedHats:!1,isPartialUpdating:!1,isSizeChanging:!1};return{enabled:()=>!(!1===e.chartAnimations||r.hasSlicedHats||r.isPartialUpdating||r.isSizeChanging||Ya.propertiesHaveChanged({viewCache:t,layout:n.getLayout()})),meta:r}}({options:r,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:z,primaryTickModel:_,secondaryTickModel:j,propertiesModel:F,colorService:O,themeService:v,appLayoutModel:R,tooltipService:H,disclaimerService:$,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[,z]=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(z)throw z;return O};const jk={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 Fk={query:{getCanScroll:()=>!0}};function Bk({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function Hk({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]===as.COMPONENT.LEGEND_CATEGORICAL}),r()}function Vk({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(as.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:Bk},selectionEvents:{start:Hk}}});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 Uk={version:"1.31.21",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 Wk=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=Su(n[e].qDef.series),i===ss.TYPE.BAR?r[0]=1:i===ss.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)},Yk=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===ss.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===ss.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function Gk(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&&Su(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===ss.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function Xk(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:Wk(t),added(e,t){Ss.addCallbackCustomTooltip(t)},moved(e,t){Ss.moveCallbackCustomTooltip(t,e)},removed(e,t){Ss.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Ss.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:Yk(t),added({qDef:e},t){var n;Gk(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:ss.TYPE.LINE,axis:ss.AXIS.SECONDARY}:e.series={type:ss.TYPE.BAR,axis:ss.AXIS.PRIMARY})},moved(e,t){Gk(t)}}}}function Kk(e){const t=Xk(e);return{properties:Uk,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&&ne(!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 Jk=({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:ge(t,as.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:ge(t,as.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const Zk=e=>{const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=ss.NOPE_SERIES})=>Su(e)===ss.TYPE.LINE));return he.continuous(e,(()=>t&&le.isTime(!0,e)))},Qk=(e,t,n)=>{let r;const i=n||0;var o,a;"function"==typeof(null==e?void 0:e.getMeasureLayouts)?r=e.getMeasureLayouts():r=null!==(o=null===(a=t.layout)||void 0===a||null===(a=a.qHyperCube)||void 0===a?void 0:a.qMeasureInfo)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?hw(t,!0):!hw(t,!0)}))},eN=(e,t)=>{const n=Qk(e,t,0).filter((e=>e.series.type===ss.TYPE.BAR)),r=Qk(e,t,1).filter((e=>e.series.type===ss.TYPE.BAR)),i="stacked"===E(t.layout,"barGrouping.grouping");return!he.continuous(t.layout)&&i&&(n.length>1||r.length>1)},tN=(e,t,n,r,i=void 0)=>{const o=`${t}.fontFamily`,a=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(a),defaultValue:()=>null!=i?i:n.getDefaultValue(a)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function nN(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"]}});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",show:(e,t)=>!Zk(t.layout),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:{...tN("bar.label.value","label.value",r,t,"12px"),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:tN("line.label.value","label.value",r,t)}}}:void 0}},markerSection:{translation:"Visualizations.Descriptions.Markers",component:"accordion",items:{labelValueSection:{translation:"properties.dataPoints.markerlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"marker",items:tN("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:tN("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:tN("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:tN("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:tN("legend.label","legend.label",r,t)}}}:void 0}}}const rN={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",show:(e,t)=>!Zk(t.layout),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 iN(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function oN(e){var t,n;return iN(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 aN(e){var t;return iN(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function sN(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 lN(e){return aN(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function cN(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?[...sN(n),...lN(e)]:lN(e)}(t,n,e)))}function uN(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||Zk(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 Su(null===(t=e.qDef)||void 0===t?void 0:t.series)===ss.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Su(null===(t=e.qDef)||void 0===t?void 0:t.series)===ss.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)=>iN(...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:oN},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:aN}}}}}}}}}}}}const dN=10,mN=!0;function pN(e){return e.qHyperCube.qMeasureInfo.filter((e=>Su(e.series)===ss.TYPE.LINE)).length>0}function fN(e,t){const n=e.qHyperCube.qMeasureInfo.filter((e=>Su(e.series)===ss.TYPE.BAR));return n.filter((e=>e.series.axis!==ss.AXIS.SECONDARY)).length>t||n.filter((e=>e.series.axis===ss.AXIS.SECONDARY)).length>t}function hN(e){return e.qHyperCube.qMeasureInfo.filter((e=>Su(e.series)===ss.TYPE.MARKER)).length>0}const gN=(e,t,n,r)=>{const i="vertical"===e.layout.orientation||Zk(e.layout)?"y":"x",o=Qk(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 yN(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=>cN(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>iN(e)))}}},u=e=>e.qHyperCubeDef.qMeasures.some((e=>iN(e))),d=(e,t)=>0!==e.filter((e=>e.series.axis===t)).length,m={items:{disclaimer:{show:(e,t)=>u(e),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)=>!u(e)}}},p={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,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&fN(n.layout,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t,n)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&pN(n.layout),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,n)=>i.get(Qk(t,n,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&Qk(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&&Qk(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"}}}}}}},f={uses:"settings",items:{simpleStyling:rN,simpleLabels:p,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:nN(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)=>fN(n.layout,1)&&!Zk(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)=>Zk(n.layout),convertFunctions:(h="vertical",{get:(e,t,n)=>Zk(n.layout)?h:e(t.type),set(e,t,n,r){t(n.type,Zk(r.layout)?h:e,h)}})},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)=>!Zk(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,n)=>pN(n.layout)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint",show:e=>pN(e)},show:(e,t,n)=>pN(n.layout),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"}]}}},barLabels:{type:"items",snapshot:{tid:"property-barLabels",show:e=>fN(e,0)},show:(e,t,n)=>fN(n.layout,0),items:{showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t,n)=>fN(n.layout,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showBarSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&eN(t,n)},showTotalLabels:{ref:"dataPoint.showBarTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showBarLabels&&eN(t,n)}}},showMarkerLabels:{ref:"dataPoint.showMarkerLabels",type:"boolean",translation:"properties.dataPoints.markerlabelmode",component:"switch",snapshot:{tid:"property-markerLabels",show:e=>hN(e)},show:(e,t,n)=>hN(n.layout),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"}]},gridLineAxis:{ref:"gridLine.axis",type:"integer",component:"dropdown",defaultValue:0,options(e,t,n){const r=[],i=n.layout.qHyperCube.qMeasureInfo,o=d(i,0),a=d(i,1);return o&&r.push({translation:"properties.axis.primary",value:0}),a&&r.push({translation:"properties.axis.secondary",value:1}),r},show:(e,t,n)=>e.gridLine&&!e.gridLine.auto&&0!==n.layout.qHyperCube.qMeasureInfo.length,convertFunctions:{get(e,t,n,r){var i;const o=null!==(i=r.gridLine.axis)&&void 0!==i?i:0,a=n.layout.qHyperCube.qMeasureInfo,s=d(a,0),l=d(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=>e.gridLine&&!e.gridLine.auto}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:m,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||Zk(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||Zk(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)=>!Zk(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:dN,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=dN: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,n)=>gN(t,n,i,0),show:(e,t,n)=>Qk(t,n,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>gN(t,n,i,0),show:(e,t,n)=>Qk(t,n,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)&&hw(null==e?void 0:e.series,mN)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t,n)=>"none"!==e.measureAxes[0].show&&Qk(t,n,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||Zk(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,n)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&Qk(t,n,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,n)=>Qk(t,n,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,n)=>gN(t,n,i,1),show:(e,t,n)=>Qk(t,n,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t,n)=>gN(t,n,i,1),show:(e,t,n)=>Qk(t,n,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)&&!hw(null==e?void 0:e.series,mN)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t,n)=>"none"!==e.measureAxes[1].show&&Qk(t,n,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||Zk(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,n)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&Qk(t,n,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,n)=>Qk(t,n,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 h;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(f.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 g={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!Zk(n.layout)}}}},measures:uN(e)}},y={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=>hw(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,mN)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!hw(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,mN)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:g,sorting:{uses:"sortingWithDisclaimer"},addons:y,settings:f}}}function vN(e){return e.qHyperCubeDef.qMeasures.filter((e=>Su(e.qDef.series)===ss.TYPE.LINE)).length>0}function bN(){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)=>vN(e)||!Zk(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=>Su(e.qDef.series)===ss.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===ss.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===ss.AXIS.SECONDARY)).length>1:n.length>1}(e,!ER(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!Zk(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)=>!Zk(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=>vN(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>vN(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>iN(e)))}}}}}}const xN={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 SN(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=xN[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 EN(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"});SN(r,o,t,n,"bar"),SN(r,o,t,n,"line"),SN(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 MN(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 CN=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function ON(e){return{definition:yN(e),softDefinition:bN(),support:{snapshot:CN,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:EN,extendMetrics:MN,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:Xk(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&&ne(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),cN(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(Ot),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Ot)}(e),function(e){return ER(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=ss.NOPE_SERIES),void 0===t.series.type&&(t.series.type=ss.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===ss.TYPE.BAR?ss.AXIS.PRIMARY:ss.AXIS.SECONDARY),t.series.type===ss.TYPE.BAR&&t.series.axis===ss.AXIS.SECONDARY&&(t.series.axis=ss.AXIS.PRIMARY)})),e.version=SR.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));