@nebula.js/sn-combo-chart 1.27.2 → 1.27.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-combo-chart.js +12 -12
- package/dist/sn-combo-chart.systemjs.js +8 -8
- package/package.json +1 -1
- package/sn-combo-chart-ext/dist/sn-combo-chart.js +12 -12
- package/sn-combo-chart-ext/sn-combo-chart.qext +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-combo-chart v1.27.
|
|
2
|
+
* @nebula.js/sn-combo-chart v1.27.4
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["@nebula.js/stardust","qlik-chart-modules","hammerjs","picasso.js","picasso-plugin-q","react","react-dom","qlik-object-conversion"],(function(e){"use strict";var t,n,r,i,o,a,s,l,c,u,d,m,p,f,h,g,y,v,b,x,S,E,M,C,O,w,T,A,R,k,N,I,L,P,D,q,z,$,_,j,F,B,H,V,U,W,Y,G;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,i=e.useRect,o=e.usePromise,a=e.useStaleLayout,s=e.useModel,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,O=e.debouncer,w=e.throttler,T=e.colorService,A=e.tooltipService,R=e.layoutService,k=e.dockService,N=e.themeService,I=e.pluginService,L=e.storage,P=e.selectionService,D=e.fontResolver},function(e){q=e.default},function(e){z=e.default},function(e){$=e.default},function(e){_=e.default,j=e,F=e.Children,B=e.isValidElement,H=e.cloneElement,V=e.forwardRef,U=e.useContext},function(e){W=e,Y=e.default},function(e){G=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(X).forEach((t=>{e.add(X[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=$A();return{qae:YI(e),ext:xL(e),component(){const e=function(){const[e,t]=n();return r((()=>t(C())),[]),e}(),i=function(){const[e,t]=n();return r((()=>{t(L({viewRange:[0,1],scrollOffset:void 0}))}),[]),e}(),c=function(){const e=m(),t=p(),i=d(),o=f(),[a,s]=n(),l=h();return r((()=>{s({options:{direction:"ltr",...e},translator:t,theme:o,embed:i,deviceType:l})}),[e.direction,e.freeResize,t.language(),o.name(),l]),a}(),u=function(){const e=g(),[t,i]=n(!1),[o,a]=n(!1),[s,l]=n(!1),c=function(){const e=g(),[t,i]=n(!1),[o,a]=n({}),[s,l]=n();return r((()=>()=>{a({})}),[]),r((()=>{e&&i(!e.select&&!e.active)}),[e]),{enabled:()=>t,emit:(e,...t)=>o[e].forEach((e=>e(...t))),removeListener:(e,t)=>{var n;const r=null===(n=o[e])||void 0===n?void 0:n.indexOf(t);r>-1&&o[e].splice(r,1)},on:(e,t)=>{Array.isArray(o[e])?o[e].push(t):o[e]=[t]},get brushSelectionIncludeMax(){return s},set brushSelectionIncludeMax(e){l(e)},getBrushOptions:void 0}}(),u=function(){var e;const t=g(),[i,o]=n(!1),[a,s]=n(!1),l=y(),c=p(),u=!!l.qSelectionInfo.qInSelections,d=!(null===(e=l.qHyperCube)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e||null===(e=e[0])||void 0===e||!e.qIsOneAndOnlyOne);r((()=>{t&&o(!t.select&&!t.active)}),[t]);const m=e=>{s("boolean"==typeof e?e:!a)};return v((()=>({key:"lasso",label:c.get(a?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:zI,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=$I;r((()=>{e&&(i(!e.active),a(!e.active),l(!e.passive))}),[e]);const[m]=n({});return m.scroll={enabled:()=>t&&d.query.getCanScroll(),attachDiscreteModel:e=>{d=e||$I}},m.interact={enabled:()=>o},m.tooltip={enabled:()=>s},m.lasso=u,m.select=c,m}(),b=function({picasso:e,environment:i}){const o=t(),[a,s]=n();return r((()=>{if(!i)return;o.style.overflow="hidden";const t=e({renderer:{prio:[i.options.renderer||"canvas"]}}).chart({element:o,data:[],settings:{}});s(t);const{destroy:n}=t;return()=>{n()}}),[i]),a}({picasso:l,environment:c}),x=FI({chart:b,actions:u}),S=qI({picasso:l,chart:b,environment:c,flags:a,viewState:i,viewCache:e,actions:u,selectionService:x});!function({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}){const{event:{onZoomIntercept:c,onZoomChange:u}}=bm,[,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}=n,{miniComponentKeys:g}=h.meta,{options:y}=r,{viewState:v={}}=y,{legendScrollOffset:b,scrollOffset:x}=o.meta.isSnapshot?o.getLayoutValue("snapshotData.content.chartData",{}):v;a.preventSet("scrollOffset",x),a.preventSet("legendScrollOffset",b),a.preventSet("title",o.getLayoutValue("title"));const S=()=>{f&&f.update(),t.update({partialData:!0,excludeFromUpdate:[...Fm,...g]})};function E(o=!1){t.update({settings:_m({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),data:o&&[Bm({models:n}),...Hm({models:n}),...d.getData()]})}a.onChanged("scrollOffset",S),o.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:o,continuousDataModel:m},S)),a.intercept("zoom",c({viewCache:s})));const M=o.getDataPages();o.setDataPages([]),E(!0),o.setDataPages(M),o.meta.isContinuous||await p.command.initialize(),E(!1)}),[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}),jm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),GI({models:S,chart:b,viewState:i})}}}));var X={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_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 K(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function J(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 Z=Object.prototype.hasOwnProperty,Q=Object.prototype.toString,ee=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ne=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Q.call(e)},re=function(e){if(!e||"[object Object]"!==Q.call(e))return!1;var t,n=Z.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Z.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Z.call(e,t)},ie=function(e,t){ee&&"__proto__"===t.name?ee(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},oe=function(e,t){if("__proto__"===t){if(!Z.call(e,t))return;if(te)return te(e,t).value}return e[t]},ae=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=oe(s,n),s!==(i=oe(t,n))&&(u&&i&&(re(i)||(o=ne(i)))?(o?(o=!1,a=r&&ne(r)?r:[]):a=r&&re(r)?r:{},ie(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&ie(s,{name:n,newValue:i}));return s},se=K(ae);const le="center",ce="bottom";var ue={NoDataExist:{label:"NoDataExist",alignment:le,default:!0},OnlyNanData:{label:"OnlyNanData",alignment:le,default:!0},OnlyNegativeOrZeroValues:{label:"OnlyNegativeOrZeroValues",alignment:le,default:!1},LimitedData:{label:"LimitedData",alignment:ce,default:!1},OnlyNanColor:{label:"OnlyNanColor",alignment:ce,default:!1},NegativeOrZeroValues:{label:"NegativeOrZeroValues",alignment:ce,default:!1},DataRangeIncludingZero:{label:"DataRangeIncludingZero",alignment:ce,default:!1}};const de=[["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}]],me={};de.forEach((([e,{width:t,height:n}])=>{me[e]={width:t,height:n}}));const pe={getLayoutModes:()=>me,getLayoutMode(e,t){let n;for(n=0;n<de.length;++n)if(e>=de[n][1].width&&t>=de[n][1].height)return de[n][0];return"SPARK"}};const fe=["$date","$timestamp","$time"],he=["D","TS","T"],ge={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>fe.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&he.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ge.hasTimeTag(t)&&ge.hasUnknownFormat(t)||ge.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ge.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)&&ge.canBeContinuousDimension(r[0])},maxNumberOfLines:12},ye=/^[A-Z][A-z0-9_]*$/i,ve={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||ye.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)},be=e=>ve.getValue(e,"qHyperCube.qDimensionInfo",[]),xe=e=>ve.getValue(e,"qHyperCube.qMeasureInfo",[]),Se=e=>ve.getValue(e,"barGrouping.grouping"),Ee={continuous:(e,t=!1)=>!!ge.canBeContinuous(e)&&(ve.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!be(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Se(e)&&(be(e).length>1||xe(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&be(e).length>1&&1===xe(e).length},groupedByMeasure(e){return this.grouped(e)&&1===be(e).length&&xe(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Se(e)||this.continuous(e))&&(be(e).length>1||xe(e).length>1)},stackedByDimension(e){return this.stacked(e)&&be(e).length>1&&1===xe(e).length},stackedByMeasure(e){return this.stacked(e)&&1===be(e).length&&xe(e).length>1},simple:e=>0===be(e).length||1===be(e).length&&1===xe(e).length,snapshot:e=>!!ve.getValue(e,"snapshotData")};function Me(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Ce=e=>{throw e.isHandled=!0,e};const Oe={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?Oe.getVerticalDock(t):n?Oe.getOppositeDock(Oe.getHorizontalDock(t)):Oe.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},we={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=we.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=we.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=we.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(we.stringWidthOverMWidth(o)+1.0909090909090908*a)}},Te=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Ae=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Re=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),ke={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Te.test(e),isRtlChar:e=>Ae.test(e)||Re.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],ke.isLtrChar(r))return"ltr";if(ke.isRtlChar(r))return"rtl"}return"ltr"}},Ne={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?Ne.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=ke.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=ke.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:ke.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=ke.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=ke.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Ne.getColorSymbol(e,t)]:[Ne.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=ke.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=ke.detectTextDirection(e.value);let l;return l=i?r?[e.value,Ne.getColorSymbol(t,n)]:[Ne.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 Ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Le(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pe(){}var De=.7,qe=1/De,ze="\\s*([+-]?\\d+)\\s*",$e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",je=/^#([0-9a-f]{3,8})$/,Fe=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),Be=new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`),He=new RegExp(`^rgba\\(${ze},${ze},${ze},${$e}\\)$`),Ve=new RegExp(`^rgba\\(${_e},${_e},${_e},${$e}\\)$`),Ue=new RegExp(`^hsl\\(${$e},${_e},${_e}\\)$`),We=new RegExp(`^hsla\\(${$e},${_e},${_e},${$e}\\)$`),Ye={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 Ge(){return this.rgb().formatHex()}function Xe(){return this.rgb().formatRgb()}function Ke(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=je.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Je(t):3===n?new tt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ze(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=Fe.exec(e))?new tt(t[1],t[2],t[3],1):(t=Be.exec(e))?new tt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=He.exec(e))?Ze(t[1],t[2],t[3],t[4]):(t=Ve.exec(e))?Ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ue.exec(e))?st(t[1],t[2]/100,t[3]/100,1):(t=We.exec(e))?st(t[1],t[2]/100,t[3]/100,t[4]):Ye.hasOwnProperty(e)?Je(Ye[e]):"transparent"===e?new tt(NaN,NaN,NaN,0):null}function Je(e){return new tt(e>>16&255,e>>8&255,255&e,1)}function Ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function Qe(e){return e instanceof Pe||(e=Ke(e)),e?new tt((e=e.rgb()).r,e.g,e.b,e.opacity):new tt}function et(e,t,n,r){return 1===arguments.length?Qe(e):new tt(e,t,n,null==r?1:r)}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function nt(){return`#${at(this.r)}${at(this.g)}${at(this.b)}`}function rt(){const e=it(this.opacity);return`${1===e?"rgb(":"rgba("}${ot(this.r)}, ${ot(this.g)}, ${ot(this.b)}${1===e?")":`, ${e})`}`}function it(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ot(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function at(e){return((e=ot(e))<16?"0":"")+e.toString(16)}function st(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ct(e,t,n,r)}function lt(e){if(e instanceof ct)return new ct(e.h,e.s,e.l,e.opacity);if(e instanceof Pe||(e=Ke(e)),!e)return new ct;if(e instanceof ct)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 ct(a,s,l,e.opacity)}function ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ut(e){return(e=(e||0)%360)<0?e+360:e}function dt(e){return Math.max(0,Math.min(1,e||0))}function mt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ie(Pe,Ke,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ge,formatHex:Ge,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lt(this).formatHsl()},formatRgb:Xe,toString:Xe}),Ie(tt,et,Le(Pe,{brighter(e){return e=null==e?qe:Math.pow(qe,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(ot(this.r),ot(this.g),ot(this.b),it(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:nt,formatHex:nt,formatHex8:function(){return`#${at(this.r)}${at(this.g)}${at(this.b)}${at(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rt,toString:rt})),Ie(ct,(function(e,t,n,r){return 1===arguments.length?lt(e):new ct(e,t,n,null==r?1:r)}),Le(Pe,{brighter(e){return e=null==e?qe:Math.pow(qe,e),new ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?De:Math.pow(De,e),new ct(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 tt(mt(e>=240?e-240:e+120,i,r),mt(e,i,r),mt(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ct(ut(this.h),dt(this.s),dt(this.l),it(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=it(this.opacity);return`${1===e?"hsl(":"hsla("}${ut(this.h)}, ${100*dt(this.s)}%, ${100*dt(this.l)}%${1===e?")":`, ${e})`}`}}));const pt=Math.PI/180,ft=180/Math.PI,ht=.96422,gt=1,yt=.82521,vt=4/29,bt=6/29,xt=3*bt*bt,St=bt*bt*bt;function Et(e){if(e instanceof Mt)return new Mt(e.l,e.a,e.b,e.opacity);if(e instanceof Rt)return kt(e);e instanceof tt||(e=Qe(e));var t,n,r=Tt(e.r),i=Tt(e.g),o=Tt(e.b),a=Ct((.2225045*r+.7168786*i+.0606169*o)/gt);return r===i&&i===o?t=n=a:(t=Ct((.4360747*r+.3850649*i+.1430804*o)/ht),n=Ct((.0139322*r+.0971045*i+.7141733*o)/yt)),new Mt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Mt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ct(e){return e>St?Math.pow(e,1/3):e/xt+vt}function Ot(e){return e>bt?e*e*e:xt*(e-vt)}function wt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Tt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function At(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Rt)return new Rt(e.h,e.c,e.l,e.opacity);if(e instanceof Mt||(e=Et(e)),0===e.a&&0===e.b)return new Rt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ft;return new Rt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Rt(e,t,n,null==r?1:r)}function Rt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function kt(e){if(isNaN(e.h))return new Mt(e.l,0,0,e.opacity);var t=e.h*pt;return new Mt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ie(Mt,(function(e,t,n,r){return 1===arguments.length?Et(e):new Mt(e,t,n,null==r?1:r)}),Le(Pe,{brighter(e){return new Mt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Mt(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 tt(wt(3.1338561*(t=ht*Ot(t))-1.6168667*(e=gt*Ot(e))-.4906146*(n=yt*Ot(n))),wt(-.9787684*t+1.9161415*e+.033454*n),wt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ie(Rt,At,Le(Pe,{brighter(e){return new Rt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Rt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return kt(this).rgb()}}));var Nt={isDark:function(e){return At(e).l<70}};function It(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Lt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pt(e){return 1===e.length&&(e=function(e){return function(t,n){return Lt(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Dt=Pt(Lt).right,qt=Math.sqrt(50),zt=Math.sqrt(10),$t=Math.sqrt(2);function _t(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=qt?10:o>=zt?5:o>=$t?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=qt?10:o>=zt?5:o>=$t?2:1)}function jt(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>=qt?i*=10:o>=zt?i*=5:o>=$t&&(i*=2),t<e?-i:i}function Ft(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Bt="$";function Ht(){}function Vt(e,t){var n=new Ht;if(e instanceof Ht)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 Ut(){}Ht.prototype=Vt.prototype={constructor:Ht,has:function(e){return Bt+e in this},get:function(e){return this[Bt+e]},set:function(e,t){return this[Bt+e]=t,this},remove:function(e){var t=Bt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Bt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Bt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Bt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Bt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Bt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Bt)return!1;return!0},each:function(e){for(var t in this)t[0]===Bt&&e(this[t],t.slice(1),this)}};var Wt=Vt.prototype;Ut.prototype={constructor:Ut,has:Wt.has,add:function(e){return this[Bt+(e+="")]=e,this},remove:Wt.remove,clear:Wt.clear,values:Wt.keys,size:Wt.size,empty:Wt.empty,each:Wt.each};var Yt=Array.prototype,Gt=Yt.map,Xt=Yt.slice;function Kt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zt(){}var Qt=.7,en=1/Qt,tn="\\s*([+-]?\\d+)\\s*",nn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",on=/^#([0-9a-f]{3})$/,an=/^#([0-9a-f]{6})$/,sn=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),ln=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),cn=new RegExp("^rgba\\("+[tn,tn,tn,nn]+"\\)$"),un=new RegExp("^rgba\\("+[rn,rn,rn,nn]+"\\)$"),dn=new RegExp("^hsl\\("+[nn,rn,rn]+"\\)$"),mn=new RegExp("^hsla\\("+[nn,rn,rn,nn]+"\\)$"),pn={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 fn(e){var t;return e=(e+"").trim().toLowerCase(),(t=on.exec(e))?new bn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=an.exec(e))?hn(parseInt(t[1],16)):(t=sn.exec(e))?new bn(t[1],t[2],t[3],1):(t=ln.exec(e))?new bn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=cn.exec(e))?gn(t[1],t[2],t[3],t[4]):(t=un.exec(e))?gn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,1):(t=mn.exec(e))?Sn(t[1],t[2]/100,t[3]/100,t[4]):pn.hasOwnProperty(e)?hn(pn[e]):"transparent"===e?new bn(NaN,NaN,NaN,0):null}function hn(e){return new bn(e>>16&255,e>>8&255,255&e,1)}function gn(e,t,n,r){return r<=0&&(e=t=n=NaN),new bn(e,t,n,r)}function yn(e){return e instanceof Zt||(e=fn(e)),e?new bn((e=e.rgb()).r,e.g,e.b,e.opacity):new bn}function vn(e,t,n,r){return 1===arguments.length?yn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Sn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new En(e,t,n,r)}function En(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Kt(Zt,fn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Kt(bn,vn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new bn(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"#"+xn(this.r)+xn(this.g)+xn(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+")")}})),Kt(En,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof En)return new En(e.h,e.s,e.l,e.opacity);if(e instanceof Zt||(e=fn(e)),!e)return new En;if(e instanceof En)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 En(a,s,l,e.opacity)}(e):new En(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new En(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new En(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 bn(Mn(e>=240?e-240:e+120,i,r),Mn(e,i,r),Mn(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 Cn=Math.PI/180,On=180/Math.PI,wn=.96422,Tn=1,An=.82521,Rn=4/29,kn=6/29,Nn=3*kn*kn,In=kn*kn*kn;function Ln(e){if(e instanceof Pn)return new Pn(e.l,e.a,e.b,e.opacity);if(e instanceof _n){if(isNaN(e.h))return new Pn(e.l,0,0,e.opacity);var t=e.h*Cn;return new Pn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof bn||(e=yn(e));var n,r,i=$n(e.r),o=$n(e.g),a=$n(e.b),s=Dn((.2225045*i+.7168786*o+.0606169*a)/Tn);return i===o&&o===a?n=r=s:(n=Dn((.4360747*i+.3850649*o+.1430804*a)/wn),r=Dn((.0139322*i+.0971045*o+.7141733*a)/An)),new Pn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Pn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Dn(e){return e>In?Math.pow(e,1/3):e/Nn+Rn}function qn(e){return e>kn?e*e*e:Nn*(e-Rn)}function zn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $n(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _n(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Kt(Pn,(function(e,t,n,r){return 1===arguments.length?Ln(e):new Pn(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new Pn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Pn(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 bn(zn(3.1338561*(t=wn*qn(t))-1.6168667*(e=Tn*qn(e))-.4906146*(n=An*qn(n))),zn(-.9787684*t+1.9161415*e+.033454*n),zn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Kt(_n,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof _n)return new _n(e.h,e.c,e.l,e.opacity);if(e instanceof Pn||(e=Ln(e)),0===e.a&&0===e.b)return new _n(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*On;return new _n(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _n(e,t,n,null==r?1:r)}),Jt(Zt,{brighter:function(e){return new _n(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new _n(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ln(this).rgb()}}));var jn=-.14861,Fn=1.78277,Bn=-.29227,Hn=-.90649,Vn=1.97294,Un=Vn*Hn,Wn=Vn*Fn,Yn=Fn*Bn-Hn*jn;function Gn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xn)return new Xn(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=yn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Yn*r+Un*t-Wn*n)/(Yn+Un-Wn),o=r-i,a=(Vn*(n-i)-Bn*o)/Hn,s=Math.sqrt(a*a+o*o)/(Vn*i*(1-i)),l=s?Math.atan2(a,o)*On-120:NaN;return new Xn(l<0?l+360:l,s,i,e.opacity)}(e):new Xn(e,t,n,null==r?1:r)}function Xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Kn(e){return function(){return e}}function Jn(e,t){return function(n){return e+n*t}}function Zn(e){return 1==(e=+e)?Qn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Kn(isNaN(t)?n:t)}}function Qn(e,t){var n=t-e;return n?Jn(e,n):Kn(isNaN(e)?t:e)}Kt(Xn,Gn,Jt(Zt,{brighter:function(e){return e=null==e?en:Math.pow(en,e),new Xn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Qt:Math.pow(Qt,e),new Xn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Cn,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new bn(255*(t+n*(jn*r+Fn*i)),255*(t+n*(Bn*r+Hn*i)),255*(t+n*(Vn*r)),this.opacity)}}));var er=function e(t){var n=Zn(t);function r(e,t){var r=n((e=vn(e)).r,(t=vn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Qn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function tr(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]=lr(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 nr(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function rr(e,t){return t-=e=+e,function(n){return e+t*n}}function ir(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]=lr(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var or=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ar=new RegExp(or.source,"g");function sr(e,t){var n,r,i,o=or.lastIndex=ar.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=or.exec(e))&&(r=ar.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:rr(n,r)})),o=ar.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 lr(e,t){var n,r=typeof t;return null==t||"boolean"===r?Kn(t):("number"===r?rr:"string"===r?(n=fn(t))?(t=n,er):sr:t instanceof fn?er:t instanceof Date?nr:Array.isArray(t)?tr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ir:rr)(e,t)}function cr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function ur(e){return function t(n){function r(t,r){var i=e((t=Gn(t)).h,(r=Gn(r)).h),o=Qn(t.s,r.s),a=Qn(t.l,r.l),s=Qn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function dr(e){return+e}ur((function(e,t){var n=t-e;return n?Jn(e,n>180||n<-180?n-360*Math.round(n/360):n):Kn(isNaN(e)?t:e)})),ur(Qn);var mr=[0,1];function pr(e){return e}function fr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function hr(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 gr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=fr(i,r),o=n(a,o)):(r=fr(r,i),o=n(o,a)),function(e){return o(r(e))}}function yr(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]=fr(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Dt(e,t,1,r)-1;return o[n](i[n](t))}}function vr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function br(e,t){return function(){var e,t,n,r,i,o,a=mr,s=mr,l=lr,c=pr;function u(){return r=Math.min(a.length,s.length)>2?yr:gr,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),rr)))(n)))},d.domain=function(e){return arguments.length?(a=Gt.call(e,dr),c===pr||(c=hr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Xt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Xt.call(e),l=cr,u()},d.clamp=function(e){return arguments.length?(c=e?hr(a):pr,d):c!==pr},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 xr(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 Sr(e){return(e=xr(Math.abs(e)))?e[1]:NaN}var Er,Mr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cr(e){return new Or(e)}function Or(e){if(!(t=Mr.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 wr(e,t){var n=xr(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")}Cr.prototype=Or.prototype,Or.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 Tr={"%":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 wr(100*e,t)},r:wr,s:function(e,t){var n=xr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Er=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")+xr(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 Ar(e){return e}var Rr,kr,Nr,Ir=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lr(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)}):Ar,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):Ar,s=e.percent||"%";function l(e){var t=(e=Cr(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"):Tr[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=Tr[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?Ir[8+Er/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=Cr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Sr(t)/3))),i=Math.pow(10,-r),o=Ir[8+r/3];return function(e){return n(i*e)+o}}}}function Pr(e,t,n,r){var i,o=jt(e,t,n);switch((r=Cr(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(Sr(t)/3)))-Sr(Math.abs(e)))}(o,a))||(r.precision=i),Nr(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,Sr(t)-Sr(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,-Sr(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return kr(r)}function Dr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=_t(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Pr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=_t(s,l,n))>0?r=_t(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=_t(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function qr(){var e=br(pr,pr);return e.copy=function(){return vr(e,qr())},Ft.apply(e,arguments),Dr(e)}Rr=Lr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),kr=Rr.format,Nr=Rr.formatPrefix;var zr=new Date,$r=new Date;function _r(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return _r((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return zr.setTime(+t),$r.setTime(+r),e(zr),e($r),Math.floor(n(zr,$r))},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 jr=_r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));jr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?_r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):jr:null},jr.range;var Fr=1e3,Br=6e4,Hr=36e5,Vr=864e5,Ur=6048e5,Wr=_r((function(e){e.setTime(Math.floor(e/Fr)*Fr)}),(function(e,t){e.setTime(+e+t*Fr)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getUTCSeconds()}));Wr.range;var Yr=_r((function(e){e.setTime(Math.floor(e/Br)*Br)}),(function(e,t){e.setTime(+e+t*Br)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getMinutes()}));Yr.range;var Gr=_r((function(e){var t=e.getTimezoneOffset()*Br%Hr;t<0&&(t+=Hr),e.setTime(Math.floor((+e-t)/Hr)*Hr+t)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getHours()}));Gr.range;var Xr=_r((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Br)/Vr}),(function(e){return e.getDate()-1}));function Kr(e){return _r((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Br)/Ur}))}Xr.range;var Jr=Kr(0),Zr=Kr(1),Qr=Kr(2),ei=Kr(3),ti=Kr(4),ni=Kr(5),ri=Kr(6);Jr.range,Zr.range,Qr.range,ei.range,ti.range,ni.range,ri.range;var ii=_r((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));ii.range;var oi=_r((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));oi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?_r((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},oi.range;var ai=_r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Br)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getUTCMinutes()}));ai.range;var si=_r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Hr)}),(function(e,t){return(t-e)/Hr}),(function(e){return e.getUTCHours()}));si.range;var li=_r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Vr}),(function(e){return e.getUTCDate()-1}));function ci(e){return _r((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ur}))}li.range;var ui=ci(0),di=ci(1),mi=ci(2),pi=ci(3),fi=ci(4),hi=ci(5),gi=ci(6);ui.range,di.range,mi.range,pi.range,fi.range,hi.range,gi.range;var yi=_r((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));yi.range;var vi=_r((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function bi(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 xi(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 Si(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}vi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?_r((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},vi.range;var Ei,Mi,Ci,Oi={"-":"",_:" ",0:"0"},wi=/^\s*\d+/,Ti=/^%/,Ai=/[\\^$*+?|[\]().{}]/g;function Ri(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 ki(e){return e.replace(Ai,"\\$&")}function Ni(e){return new RegExp("^(?:"+e.map(ki).join("|")+")","i")}function Ii(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Li(e,t,n){var r=wi.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Pi(e,t,n){var r=wi.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Di(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function zi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function $i(e,t,n){var r=wi.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _i(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ji(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 Fi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Bi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=wi.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ui(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wi(e,t,n){var r=wi.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Yi(e,t,n){var r=wi.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Gi(e,t,n){var r=wi.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xi(e,t,n){var r=Ti.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ki(e,t,n){var r=wi.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ji(e,t,n){var r=wi.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Zi(e,t){return Ri(e.getDate(),t,2)}function Qi(e,t){return Ri(e.getHours(),t,2)}function eo(e,t){return Ri(e.getHours()%12||12,t,2)}function to(e,t){return Ri(1+Xr.count(oi(e),e),t,3)}function no(e,t){return Ri(e.getMilliseconds(),t,3)}function ro(e,t){return no(e,t)+"000"}function io(e,t){return Ri(e.getMonth()+1,t,2)}function oo(e,t){return Ri(e.getMinutes(),t,2)}function ao(e,t){return Ri(e.getSeconds(),t,2)}function so(e){var t=e.getDay();return 0===t?7:t}function lo(e,t){return Ri(Jr.count(oi(e),e),t,2)}function co(e,t){var n=e.getDay();return e=n>=4||0===n?ti(e):ti.ceil(e),Ri(ti.count(oi(e),e)+(4===oi(e).getDay()),t,2)}function uo(e){return e.getDay()}function mo(e,t){return Ri(Zr.count(oi(e),e),t,2)}function po(e,t){return Ri(e.getFullYear()%100,t,2)}function fo(e,t){return Ri(e.getFullYear()%1e4,t,4)}function ho(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ri(t/60|0,"0",2)+Ri(t%60,"0",2)}function go(e,t){return Ri(e.getUTCDate(),t,2)}function yo(e,t){return Ri(e.getUTCHours(),t,2)}function vo(e,t){return Ri(e.getUTCHours()%12||12,t,2)}function bo(e,t){return Ri(1+li.count(vi(e),e),t,3)}function xo(e,t){return Ri(e.getUTCMilliseconds(),t,3)}function So(e,t){return xo(e,t)+"000"}function Eo(e,t){return Ri(e.getUTCMonth()+1,t,2)}function Mo(e,t){return Ri(e.getUTCMinutes(),t,2)}function Co(e,t){return Ri(e.getUTCSeconds(),t,2)}function Oo(e){var t=e.getUTCDay();return 0===t?7:t}function wo(e,t){return Ri(ui.count(vi(e),e),t,2)}function To(e,t){var n=e.getUTCDay();return e=n>=4||0===n?fi(e):fi.ceil(e),Ri(fi.count(vi(e),e)+(4===vi(e).getUTCDay()),t,2)}function Ao(e){return e.getUTCDay()}function Ro(e,t){return Ri(di.count(vi(e),e),t,2)}function ko(e,t){return Ri(e.getUTCFullYear()%100,t,2)}function No(e,t){return Ri(e.getUTCFullYear()%1e4,t,4)}function Io(){return"+0000"}function Lo(){return"%"}function Po(e){return+e}function Do(e){return Math.floor(+e/1e3)}!function(e){Ei=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=Ni(i),u=Ii(i),d=Ni(o),m=Ii(o),p=Ni(a),f=Ii(a),h=Ni(s),g=Ii(s),y=Ni(l),v=Ii(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:Zi,e:Zi,f:ro,H:Qi,I:eo,j:to,L:no,m:io,M:oo,p:function(e){return i[+(e.getHours()>=12)]},Q:Po,s:Do,S:ao,u:so,U:lo,V:co,w:uo,W:mo,x:null,X:null,y:po,Y:fo,Z:ho,"%":Lo},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:go,e:go,f:So,H:yo,I:vo,j:bo,L:xo,m:Eo,M:Mo,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Po,s:Do,S:Co,u:Oo,U:wo,V:To,w:Ao,W:Ro,x:null,X:null,y:ko,Y:No,Z:Io,"%":Lo},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:Bi,e:Bi,f:Gi,H:Vi,I:Vi,j:Hi,L:Yi,m:Fi,M:Ui,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:Ki,s:Ji,S:Wi,u:Pi,U:Di,V:qi,w:Li,W:zi,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:_i,Y:$i,Z:ji,"%":Xi};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=Oi[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=Si(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=xi(Si(o.y))).getUTCDay(),r=i>4||0===i?di.ceil(r):di(r),r=li.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(Si(o.y))).getDay(),r=i>4||0===i?Zr.ceil(r):Zr(r),r=Xr.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?xi(Si(o.y)).getUTCDay():t(Si(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,xi(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 Oi?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+="",bi);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,xi);return t.toString=function(){return e},t}}}(e),Ei.format,Ei.parse,Mi=Ei.utcFormat,Ci=Ei.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 qo="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Mi(qo),+new Date("2000-01-01T00:00:00.000Z")||Ci(qo);var zo=1e3,$o=60*zo,_o=60*$o,jo=24*_o,Fo=7*jo,Bo=30*jo,Ho=365*jo;function Vo(e){return new Date(e)}function Uo(e){return e instanceof Date?+e:+new Date(+e)}function Wo(e,t,n,r,i,o,a,s,l){var c=br(pr,pr),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,zo],[a,5,5*zo],[a,15,15*zo],[a,30,30*zo],[o,1,$o],[o,5,5*$o],[o,15,15*$o],[o,30,30*$o],[i,1,_o],[i,3,3*_o],[i,6,6*_o],[i,12,12*_o],[r,1,jo],[r,2,2*jo],[n,1,Fo],[t,1,Bo],[t,3,3*Bo],[e,1,Ho]];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=Pt((function(e){return e[2]})).right(x,o);a===x.length?(i=jt(n/Ho,r/Ho,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(jt(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(Gt.call(e,Uo)):d().map(Vo)},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 vr(c,Wo(e,t,n,r,i,o,a,s,l))},c}function Yo(){return Ft.apply(Wo(vi,yi,ui,li,si,ai,Wr,jr,Mi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Go={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"}}},Xo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Ko={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=Go[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Xo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Xo(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 Jo({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 Zo;function Qo(){Zo=Zo||document.createElement("canvas").getContext("2d")}const ea={measureTextWidth(e){Qo();const{width:t}=Zo.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Qo();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&&(Zo.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=ea.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(Qo(),!e||!e.length)return[];n&&(Zo.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||ea.measureTextWidth(c)<=t?o.push(c):(s=ea.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]?ea.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]=ea.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&ea.measureTextWidth(c)>t&&(o[o.length-1]=ea.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Qo();let i,o,a,s,l=e;const c=ea.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Zo.font=n),e&&t){if(ea.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,ea.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;Qo();let o,a=e,s="",l=[];if(ea.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),!(ea.measureTextWidth(a)<=t));i--);return(!i&&!a||ea.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ea.measureTextWidth(s)>t?(s=ea.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Qo(),e&&t?(n&&(Zo.font=n),ea.explodeWord(e,t,r,Math.max(1,ea.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?ea.lineWrap(e,t,n,r):[e],o=ea.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Qo(),e&&(Zo.font=e),1.5*ea.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Qo(),t&&(Zo.font=t);const s=ea.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(ea.wrapText(e,i,t,c[n])))})):d=ea.wrapText(e,i,t,c[0],n),d}},ta={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(se({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},na=se.bind(null,!0),ra={},{isArray:ia}=Array;function oa(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function aa(e){return void 0===e}function sa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function la(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]=aa(e[r||t])?o:e[t],e=e[r||t]})),e}function ca(e,t){let n=!0;if(oa(e)&&oa(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{ca(e[r],t[r])||(n=!1)})),n);if(ia(e)&&ia(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!ca(e[n],t[n]))return!1;return!0}return e===t}ra.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?na({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;ca(o,a)||sa(t,i)||(aa(a)?r.push({op:"add",path:s,value:o}):oa(o)&&oa(a)?r=r.concat(ra.generate(a,o,s)):ia(o)&&ia(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]&&aa(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(ca(t,i))return r;if(!aa(t[0])&&aa(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(ra.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=>{aa(t[i])&&!sa(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},ra.apply=function(e,t){t.forEach((t=>{let n=la(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(ia(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ia(i)&&ia(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(oa(i)&&oa(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!sa(a,e)&&delete a[e]})),na(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=la(e,t.from);ia(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(ia(n)?n.splice(+r,1):delete n[r]);var a}))},ra.clone=function(e){return na({},e)},ra.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},ra.updateObject=function(e,t){Object.keys(e).length?ra.apply(e,ra.generate(e,t)):na(e,t)};const ua=[[2,4,6],[2,4],[3]],da=[,[,,[[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 ma(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 pa(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)ma(e[r],t,n)}!function(){let e,t;for(pa(ua,1,10),e=0;e<da.length;e++)if(da[e])for(t=0;t<da[e].length;t++)Array.isArray(da[e][t])&&pa(da[e][t])}();const fa={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=fa.findSegmentPositionMeetMin(e,t);return fa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=fa.findSegmentPositionMeetMax(e,n);return fa.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=fa.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=fa.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,fa.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)fa.layoutPositionFromMin(e,t,n,r),fa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=fa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ha=(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},ga=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ya=e=>e.filter(ga),va=(e,t)=>ya(ve.getValue(e,t,[])),ba=e=>ga(e)&&(!1!==e.showValue||!1!==e.showLabel),xa=e=>e.filter(ba),Sa=(e,t)=>xa(ve.getValue(e,t,[])),Ea=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Ma=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ca=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Oa=({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},wa=({value:e,qMin:t})=>"NaN"!==t&&e<t,Ta=({value:e,qMax:t})=>"NaN"!==t&&e>t,Aa={isRefLineVisible:ga,getVisibleRefLines:ya,getRefLines:va,getMeasureRefLines:e=>va(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:va(e,"refLine.dimRefLines"),isRefLineLabelVisible:ba,getVisibleRefLineLabels:xa,getRefLineLabels:Sa,getMeasureRefLineLabels:e=>Sa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:Sa(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=ha(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=ha(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=ha(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=ve.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ve.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ve.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+m,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),o},getInputValue:Ea,extractInfoFromInputValue:Ma,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ea({refLineLayout:e,layoutService:n});return Ma(r,t,"id")},isDiscreteMinOutOfBounds:Ca,isDiscreteMaxOutOfBounds:Oa,isContinuousMinOutOfBounds:wa,isContinuousMaxOutOfBounds:Ta,isOutOfRange:({value:e,qMin:t,qMax:n})=>wa({value:e,qMin:t})||Ta({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Oa({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ca({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Ra="…";function ka(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines=ea.tokenize(i.title,t,`${Ra} ${i.valueString}`,3,n),i.maxNumLines=i.lines.length}}function Na({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=ea.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 Ia({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>Na({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 La(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Pa=3,Da=2;function qa({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 za=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Aa.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Aa.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Aa.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Aa.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},$a={hasEngineFormat:qa,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=Aa.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=za({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Aa.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=qa({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${ke.lrm}(${o})${ke.lrm}`,r.title=$a.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=qa({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${ke.lrm}(${o})${ke.lrm}`,n.title=$a.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${ke.lrm}(${o})${ke.lrm}`,n.title=$a.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((e=>t(e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=$a.getTotalNumLines(e)-r;if(t<=0)return;$a.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,$a.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;$a.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),La(e,"center"),$a.addLabelsNeighborInfo(e,r,i,o),ka(e,a,s),$a.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&($a.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines.length>i.maxNumLines&&(i.lines=ea.tokenize(i.title,t,`${Ra} ${i.valueString}`,i.maxNumLines,n))}}(e,a,s)),$a.addLabelsSize(e,s,l,d),$a.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:m,background:p}=t;let f=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const p={type:"text",text:t,title:Na({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),dx:0,dy:0,maxWidth:n,width:n,fontSize:d,fontFamily:m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return p[l]=u,p[s]=e.segment.position,p.y+=(i-(r-1)/2)*o,p}));e.background&&f.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=Pa,padding:c={}}=a,{top:u=Da,bottom:d=Da,left:m=Da,right:p=Da}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(m+p),height:i.height+(u+d),value:i.value,dock:r};return h[n]=e,h[t]=i.segment.position,h.x-=i.width/2+m,h.y-=f*o/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:p})),f=f.concat(i)})),f}};function _a(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function ja(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:i,bottom:o,maxLabelWidth:a}=t;let s=1;return $a.getMaxTextWidth(e)>a&&(ka(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+i+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,$a.getMaxTextWidth(e))+n+r}(t,n)}function Fa(e,t){return t?e.domain():[0,1]}function Ba(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function Ha(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 Va(e,t){return e>9?t[1]:t[0]}function Ua({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=ta.createOob({oob:ta.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:Ia({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[m]=a,[y,x,S]}function Wa(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:ea.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Ya=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 Ga={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=Ya(this.settings.labels),s=_a(this.chart,this.settings.formatter,e);$a.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=Fa(t,n);return Ba(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Ba(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Wa(t.label),{dock:n}=this.settings.layout;return $a.measureLabelsWidth(u,this.measureText),d=ja(n,u,e),d}const m=Ha(this.measureText),p=l?Va(l,m):0,f=c?Va(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=Ya(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,{font:v,lineHeight:b,gap:x,maxLabelWidth:S}=Wa(n.label),E=_a(this.chart,this.settings.formatter,e),M=y;$a.addLabelTitles({labels:c,formatter:E,isContinuous:o,canBeContinuous:l,localeInfo:s}),$a.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[C,O]=Fa(e,o),{filteredLabels:w,lowerOobs:T,upperOobs:A,lowerCircleSize:R,upperCircleSize:k,lowerOobSpace:N,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=Ba(e,t,n,c),p="scaledValue"!==c&&Aa.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=Ha(l),b=Va(g,v),x=Va(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:C,maxValue:O,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=N,P=y-I;La(T),La(A);const D=Ua({alignment:0,dockValue:0,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+R/2,areaProps:p,radius:R/2,font:v}),q=Ua({alignment:1,dockValue:1,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+k/2),areaProps:p,radius:k/2,font:v});$a.addLabelsInfo({labels:w,scale:e,majorSize:y,lowerLimit:L,upperLimit:P,font:v,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),fa.layout(w.map((e=>e.segment)),L,P,n.label.gap);const z=w.filter((e=>fa.isInside(e.segment,L,P,o)));return $a.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:p,area:f,lineHeight:b,font:v,theme:i}).concat([...D,...q])}};var Xa={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 Ka(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=se(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Xa;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 Ja={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.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Ka(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Ka(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Za,extractInfoFromInputValue:Qa,resolveValue:es}=Aa;var ts={resolveValue:es,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Za({refLineLayout:e,layoutService:n});return Qa(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Za({refLineLayout:e,layoutService:n});return Qa(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Za({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Za({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const ns=({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=ts.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=Aa.getScaledPosition({scale:a.scale(s),value:ts.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 rs({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:Ja.lines.trackBy,compensateForLayoutChanges:Ja.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(ns({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 is={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},os=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:Ja.refLineLabels.trackBy,compensateForLayoutChanges:Ja.refLineLabels.compensateForLayoutChanges}}),as=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>ts.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>ts.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>ts.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function ss({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=>as({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(os({isDimension:e,rtl:d,style:se(!0,is,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function ls({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=Ee.dimensionless(o),l=Aa.getMeasureRefLines(o),c=Aa.getDimensionRefLines(o,s),u=Aa.getMeasureRefLineLabels(o),d=Aa.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=Aa.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return Aa.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 Aa.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=>Aa.getRefLines(o,e),getRefLineLabels:e=>Aa.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=Aa.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=Aa.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 cs(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 us={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",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"}},ds={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ms={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 ps(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const fs={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 hs(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 fs.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function gs(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 hs(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&&ps(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await fs.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 fs.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(ps(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await fs.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 ys={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(gs(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}},vs={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await ys.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>ys.checkIfPromisesExist({customTooltipModel:e})};const bs=(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:ms.CHART.CHART_PARENT_TYPE,qId:ms.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},xs=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:ms.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Ss={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=ms.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:ms.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 Ss.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ms.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=ms.CHART.STATE,a=bs(t,o),s=await e.createSessionObject(a),l=xs(t);if(s.id!==ms.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(ms.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 Ss.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Ss.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ms.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ms.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 Es(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Ms(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ms.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function Cs(e){const t=Ms();return e.filter((e=>t[e.id]))}const Os={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}=Os.getAttrExprData(a);o.length||n.length?vs.handlePromises({customTooltipModel:i,nodes:Os.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&&Ss.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>vs.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[ms.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[ms.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ms.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Cs(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[ms.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ms.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Es(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===Cs(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=Es(e)||[];[...i,t].forEach((e=>{const t=Cs(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Ms(),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:ke.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ke.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 ws(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 ms.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ms.CUSTOM.TITLE:case ms.CUSTOM.DESCRIPTION:case ms.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const Ts={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ws(t,e,r,n)}}};const As={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={[ms.CUSTOM.TITLE]:!0,[ms.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Os.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ms.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===ms.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Ne.getMeasure(e,t))),e,i)}};function Rs({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(As.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:ks}=ms;function Ns({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:Os,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=Rs({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===ks.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===ks.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Os.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>Os.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=Os.getDataNodes(o,r),{attrExps:a}=Os.getAttrExprData(t);return vs.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})=>Ss.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Os.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>Ss.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:()=>Ss.hide({app:n,customTooltipModel:d}),destroy:()=>Ss.destroyVisualization({customTooltipModel:d})}}}function Is({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===ds.TYPE.BAR)),c=n.meta.isContinuous?s:a,u=e=>"NaN"!==e.qNum?e.qNum:0;return[{key:e,data:{extract:l.map((({ref:e,typeIndex:r,refIndex:o})=>({source:t,field:a,value:n.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},segment:{field:e,value:u,reduceLabel:"none"},end:{field:e,value:u,reduceLabel:"none"},null:{fields:l.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},typeIndex:r,...i.getDatumProps(o),customTooltipAttrExps:Ts.getNode(n.getLayout(),n.meta),sumOfPositives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"}}}))),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}]}return[]}function Ls({key:e,series:t,source:n,fieldModel:r,colorService:i,layoutService:o,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=o.meta.isContinuous?s:a;return[{key:e,data:{extract:t.map((({ref:e,refIndex:t,typeIndex:r,options:s},u)=>({source:n,field:a,value:o.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},end:{field:e,value:s.showAsZeros?l:void 0,reduceLabel:"none"},start:0,line:u,typeIndex:r,null:{field:e,value:e=>"NaN"===e.qNum,reduceLabel:"none"},customTooltipAttrExps:Ts.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function Ps({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===ds.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 Ds={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var qs={OPTIONS:Ds,DEFAULT:Ds.MINI_CHART};function zs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function $s({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const _s=e=>({miniChart:e===qs.OPTIONS.MINI_CHART.value,bar:e===qs.OPTIONS.BAR.value,none:e===qs.OPTIONS.NONE.value}),js=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return _s(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return _s(qs.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return _s(!n&&(r||!r&&i)?qs.OPTIONS.NONE.value:qs.OPTIONS.MINI_CHART.value)};function Fs({layoutService:e,override:t}){const n=js({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===qs.OPTIONS.MINI_CHART.value,n.bar=t.value===qs.OPTIONS.BAR.value,n.none=t.value===qs.OPTIONS.NONE.value),n}function Bs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===o.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=$s({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Hs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=$s({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Vs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Hs({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 Us="data-scrollbar-handle";function Ws({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Us)||""}const Ys="scrollbarResize",Gs=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Xs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Ys}`,options:{event:Ys,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Ys]=this[Ys]||{},Gs(t)&&Ws({e:t})&&(this[Ys].panningEvent=t.srcEvent),!!this[Ys].panningEvent))}},events:{[`${Ys}start`](n){n.preventDefault(),this[Ys]=this[Ys]||{},this[Ys].panningEvent&&t.component(e).emit("dragStart",this[Ys].panningEvent)},[`${Ys}move`](n){if(n.preventDefault(),this[Ys]=this[Ys]||{},!this[Ys].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=Ws({e:this[Ys].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")},[`${Ys}end`](n){n.preventDefault(),this[Ys]=this[Ys]||{},delete this[Ys].panningEvent,t.component(e).emit("dragEnd")},[`${Ys}cancel`](n){n.preventDefault(),this[Ys]=this[Ys]||{},delete this[Ys].panningEvent,t.component(e).emit("dragEnd")}}}}const Ks="scrollbarPan";function Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Hs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Ks}`,options:{event:Ks,threshold:0,enable(r,i){return this[Ks]=this[Ks]||{},!(i&&!this[Ks].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:{[`${Ks}start`](n){n.preventDefault();const a=c(n);if(this[Ks]=this[Ks]||{},this[Ks].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[Ks].relative=a.relative,this[Ks].zoom=r.get("zoom"),this[Ks].zoom.span=this[Ks].zoom.max-this[Ks].zoom.min,this[Ks].zoom.fullSpan=o-n}else if(a.onThumb)this[Ks].offset=a.thumb;else{const e=u();this[Ks].offset=a.beforeThumb?0:e.thumbSize}},[`${Ks}move`](n){n.preventDefault();const a=c(n);if(this[Ks]=this[Ks]||{},o.meta.isContinuous){const e=a.relative-this[Ks].relative,{fullSpan:t,span:n,min:o,max:s}=this[Ks].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[Ks].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Ks}end`](n){n.preventDefault(),this[Ks]=this[Ks]||{},this[Ks].isPanning=!1,t.component(e).emit("unlockState")},[`${Ks}cancel`](n){n.preventDefault(),this[Ks]=this[Ks]||{},this[Ks].isPanning=!1,t.component(e).emit("unlockState")}}}}function Zs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[Vs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Xs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Qs({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 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:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:tl,endHandle:tl,startHandleBorder:nl,endHandleBorder:nl};const il={background:"rgba(0, 0, 0, 0.1)"},ol={top:-1,bottom:-1,width:6},al={width:2,background:"#595959"};var sl={before:il,after:il,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:ol,endHandle:ol,startHandleBorder:al,endHandleBorder:al};const ll={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},cl={pointerEvents:"initial"},ul={pointerEvents:"none"};const dl="ew-resize",ml="default";function pl(){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 fl(){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?dl:ml}function hl(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 gl(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function yl(){const{size:e,start:t,end:n}=pl.call(this);this.renderer.render(this.elements(this.h,hl.call(this,e,t,n)))}function vl(){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?sl:rl;return{container:{...ll},before:{...ll,...n.before,...t.before},after:{...ll,...n.after,...t.after},thumb:{...ll,...n.thumb,...t.thumb},startHandle:{...ll,...cl,...n.startHandle},endHandle:{...ll,...cl,...n.endHandle},startHandleBorder:{...ll,...ul,...n.startHandleBorder},endHandleBorder:{...ll,...ul,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var bl={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(){yl.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||!gl.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Ws({e:e});t&&(this.state.hover[t]=!0),fl.call(this),yl.call(this)},leave(){this.state.locked||(this.state.hover.reset(),fl.call(this),yl.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Ws({e:e});t&&(this.state.drag[t]=!0),fl.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),fl.call(this),yl.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}=pl.call(this);return this.elements(e,hl.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",[Us]:"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",[Us]:"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:vl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function xl({layoutService:e}){return e.meta.isContinuous&&Fs({layoutService:e}).miniChart}function Sl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(ds.TYPE.LINE),l=[...Ls({forceCreate:!0,key:us.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...Ls({key:us.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...Ls({key:us.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...Is({key:us.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...Is({key:us.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...Ps({key:us.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...Ps({key:us.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return xl(e)&&(l.push(...Ls({key:us.COLLECTION.REDUCED,source:us.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...Ls({key:us.COLLECTION.REDUCED_PRIMARY,source:us.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...Ls({key:us.COLLECTION.REDUCED_SECONDARY,source:us.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:us.COLLECTION.REDUCED_STACKED_PRIMARY,source:us.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===ds.TYPE.BAR)),colorService:i})),l.push(...Is({key:us.COLLECTION.REDUCED_STACKED_SECONDARY,source:us.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===ds.TYPE.BAR)),colorService:i}))),l}const El=({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 Ml({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 Cl=({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:El({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:Ml({models:e})}},Ol=({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:El({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:Ml({models:e})}};function wl({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:i}=t,{orientation:o}=i.meta.major;return{type:"linear",invert:"horizontal"===o&&"rtl"===n.options.direction,data:{extract:{field:r.main.majorNumeric}},ticks:{forceBounds:!0,count:e.get("zoom").min===e.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>e.get("zoom").min,max:()=>e.get("zoom").max}}function Tl({viewCache:e,mainMajor:t}){return se(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function Al({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 Rl({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:Al({viewState:t,viewCache:n,layoutService:o})};return{[us.SCALE.MAJOR]:se(!0,{},m,{ticks:{level:"outer"}}),[us.SCALE.MAJOR_INNER]:se(!0,{},m,{ticks:{level:"inner"}})}}function kl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Rl({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[us.SCALE.MAJOR]:wl({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[us.SCALE.MAJOR]:Ol({models:t,environment:i})}:{[us.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Ol({models:t,environment:i}):Cl({models:t,environment:i})};return xl(t)?{...a,[us.SCALE.REDUCED]:Tl({viewCache:r,mainMajor:a[us.SCALE.MAJOR]})}:a}function Nl({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 Il({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!xl({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 Ll({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{...kl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[us.SCALE.MINOR.PRIMARY]:Nl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[us.SCALE.MINOR.SECONDARY]:Nl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[us.SCALE.MINOR.REDUCED_PRIMARY]:Il({layoutService:o,tickModel:s,dockService:u,environment:i}),[us.SCALE.MINOR.REDUCED_SECONDARY]:Il({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var Pl={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 Dl=["all","labels"];function ql({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:i,themeService:o,styleModel:a}=e,s=n.getLayoutValue("measureAxes");if(!s||!s.length)return[];const l=o.getStyles(),c=a.query.axis.label.getStyle(),{measureAxes:u}=i.meta;return u.filter((e=>{const t=e.isPrimary?0:1;return Dl.some((e=>s[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?us.COMPONENT.AXIS.MINOR.PRIMARY:us.COMPONENT.AXIS.MINOR.SECONDARY,renderer:cs(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:Pl.AXIS.MINOR},settings:{labels:{show:!0,fontFamily:c.fontFamily,fontSize:c.fontSize,fill:c.fill},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}}})))}var zl={INACTIVE:.5},$l={LOWER:3,UPPER:13};const _l=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return we.getAdjustedMaxGlyphCount(t,r,0,"qText")};function jl({models:e,environment:t,flags:n}){const{layoutService:r,dockService:i,styleModel:o}=e,a="rtl"===t.options.direction,s=r.getLayoutValue("dimensionAxis"),l=o.query.axis.label.getStyle(),c=_l({layoutService:r}),{orientation:u}=i.meta.major,d="horizontal"===u?s.label:"auto";return{type:"axis",key:us.COMPONENT.AXIS.MAJOR,renderer:cs(n),scale:us.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:Pl.AXIS.MAJOR[u.toUpperCase()]},settings:{labels:{mode:s.label,tiltAngle:a?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===d?void 0:i.meta.minor.size/4,maxGlyphCount:c,tiltThreshold:c>$l.LOWER&&c<$l.UPPER?1:void 0,fontFamily:l.fontFamily,fontSize:l.fontSize,fill:l.fill},line:{show:!1},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:zl.INACTIVE}}}]}}}function Fl({models:e,flags:t}){const{dockService:n,styleModel:r}=e,{orientation:i}=n.meta.major,o=r.query.axis.label.getStyle();return{type:"axis",key:us.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:cs(t),scale:us.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:Pl.AXIS.MAJOR[i.toUpperCase()]},settings:{labels:{align:0,offset:4,fontFamily:o.fontFamily,fontSize:o.fontSize,fill:o.fill},line:{show:!1}}}}function Bl({models:e,environment:t,flags:n}){const{layoutService:r}=e,i=r.getLayoutValue("dimensionAxis");if(!i)return[];const{show:o}=i;return"none"===o||"title"===o?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:i}=e,o="rtl"===t.options.direction,{orientation:a}=n.meta.major,s="bottom"===n.meta.major.dock?0:1,l=r.getStyles(),c=i.query.axis.label.getStyle(),u=o?1:0,d={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:Pl.AXIS.MAJOR[a]},preferredSize:()=>({size:2*parseFloat(c.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:o?"end":"start",label:{align:s,justify:u},guideLine:{major:{justify:u},minor:{align:s}},line:{show:!1}},style:{label:{fontFamily:c.fontFamily,fontSize:c.fontSize,fill:c.fill},majorGuideLine:{stroke:l.axis.line.major.color},minorGuideLine:{stroke:l.axis.line.minor.color}}};return[se(!0,{},d,{key:us.COMPONENT.AXIS.TIME_INNER,scale:us.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}}},style:{majorGuideLine:{stroke:l.axis.line.minor.color},minorGuideLine:{stroke:l.axis.line.major.color}}}),se(!0,{},d,{key:us.COMPONENT.AXIS.TIME_OUTER,scale:us.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[Fl({models:e,flags:n})]:[jl({models:e,environment:t,flags:n})]}const Hl=({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,Vl=({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 Ul({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:zl.INACTIVE},...n}}}]}}var Wl={MAX:"max",MIN:"min"};function Yl(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 Gl=(e,t)=>`${e}-${t.id}`,Xl=4,Kl=12,Jl=4;function Zl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Jl}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(us.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Xl,Math.min(Kl,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const{isDark:Ql}=Nt;const ec=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:i,seriesModel:o,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c}=t,u=a.getColor(),{fill:d,marker:m}=n.options,{isContinuous:p}=i.meta,f="rtl"===r.options.direction,{orientation:h}=s.meta.major,g="horizontal"===h,y=(n.isPrimary?l:c).query.getExtrema(),v=({end:e})=>{const{value:t}=e;return Yl(t,y)},b=Gl(us.COMPONENT.MARKER,n);return{type:"point",key:b,data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{[g?"x":"y"]:{scale:us.SCALE.MAJOR,fn:Vl({layoutService:i,seriesModel:o,rtl:f,orientation:h}),ref:p?"major":void 0},[g?"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:d||"bar"===m?u:"none",opacity:e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)||v(e.datum)?0:1},stroke:e=>{const t=u(e);return d?Ql(t)?function(e){return et(e).brighter(.5).toString()}(t):function(e){return et(e).darker().toString()}(t):t},size:Zl({chart:e,layoutService:i,dockService:s,markerKey:b,markerType:m}),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:m,horizontal:g,rtl:f})},brush:Ul({layoutService:i,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||v(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||v(e.data)?0:zl.INACTIVE}}})}};function tc({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(us.SCALE.MAJOR),c=s(us.SCALE.COLOR),u=t&&i?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const i="NaN"===n[e].value||Number.isNaN(n[e].value),o=u[r+1],a=o&&"NaN"!==o[e].value&&!Number.isNaN(o[e].value);return i?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const i=d[t],o=i.color&&i.color.value,a=n?o||r:c(o)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===i[e].value||Number.isNaN(i[e].value))v[t-1].virtual||v.push({virtual:!0});else{const n=d[t-1];n&&"NaN"!==n[e].value&&!Number.isNaN(n[e].value)?v.push({color:a,offset:s?0:Math.max(0,parseFloat((u-(u-y[t-1])/2).toFixed(5)))}):v.push({color:a,offset:u});const r=d[t+1];r&&"NaN"!==r[e].value&&!Number.isNaN(r[e].value)?v.push({color:a,offset:l?1:Math.max(0,parseFloat((u+(y[t+1]-u)/2).toFixed(5)))}):v.push({color:a,offset:u})}}const b=v.reduce(((e,t,n)=>{if(t.virtual){const t=v[n-1],r=v[n+1],i=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:i},{color:r.color,offset:i})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function nc({environment:e,models:t,measureIndex:n}){const{layoutService:r,colorService:i,dockService:o}=t,a="rtl"===e.options.direction,{hasMultipleMeasures:s}=r.meta,{mode:l,type:c,nil:u}=i.getSettingsForMeasure(n),d="horizontal"===o.meta.major.orientation;if(!l||"constant"===c)return i.getColor();if("measure"===l&&"categorical"===c)return i.getColor();const m=r.getHyperCubeValue(`qMeasureInfo.${n}.color`);if(null!=m&&m.on)return"byExpression"===m.mode?tc({isHorizontal:d,isColor:!0,fallback:u,rtl:a}):i.getColor();const p=r.getLayoutValue("color",{}),f=!p.auto&&"byExpression"===p.mode,h=!!p.colorExpression;if(f&&!h)return u;const g=!p.auto&&"byMeasure"===p.mode&&p.byMeasureDef&&void 0!==p.byMeasureDef.activeMeasureIndex;return s||!g?tc({isHorizontal:d,isColor:"color"===c,fallback:u,rtl:a}):"continuous"===c?function({isHorizontal:e,rtl:t}){return function(n){const{datum:{points:r},resources:{scale:i}}=n,o=i(us.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(us.SCALE.COLOR),l=o.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),c=Math.min(...l),u=Math.max(...l),d=t?Math.min(0,c):c,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const i=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(i-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const rc=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:i,dockService:o,styleModel:a}=e,s="rtl"===t.options.direction,{orientation:l}=o.meta.major,c=Vl({layoutService:r,seriesModel:i,rtl:s,orientation:l});return{key:Gl(us.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:us.SCALE.MAJOR,fn:c},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:nc({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:o.meta.major.orientation},brush:Ul({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:zl.INACTIVE},inactive:{opacity:zl.INACTIVE}})}};var ic={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}},LINE:{CURVE:{LINEAR:"linear",MONOTONE:"monotone",STEP:"step"},WIDTH:{FULL:{DEFAULT:2,ACTIVE:2},LESS:{DEFAULT:1,ACTIVE:1}},TYPE:{SOLID:void 0,DASHED:"5, 5"}},POINT:{SIZE:{DEFAULT:6,ACTIVE:4}}};function oc({series:e,layoutService:t}){const{showAsConnections:n}=e.options,r=function({layoutService:e}){const{isDiscrete:t}=e.meta;return({item:e})=>{if(e.dummy)return t;const{value:n}=e.end;return"NaN"===n||Number.isNaN(n)}}({layoutService:t}),i=n?(e,t)=>0!==e&&t.slice(0,e).reverse().some((e=>!r({item:e}))):(e,t)=>0!==e&&!r({item:t[e-1]}),o=n?(e,t)=>e!==t.length-1&&t.slice(e+1,t.length).some((e=>!r({item:e}))):(e,t)=>e!==t.length-1&&!r({item:t[e+1]});return({index:e,items:t})=>({before:i(e,t),after:o(e,t)})}const ac=3,sc=20;function lc({models:e,series:t,environment:n}){const{layoutService:r,colorService:i,seriesModel:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u}=e,d=r.getLayoutValue("dataPoint.show",!1),{orientation:m}=a.meta.major,p="horizontal"===m,f="SPARK"===a.meta.chart.mode,h=i.getColor(),{POINT:g}=ic,y=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=oc({series:t,layoutService:e});return({item:e,items:t})=>{n.key!==t&&(n.key=t,n.map=function({items:e}){const t=e.reduce(((e,t)=>{const{value:n}=t.line;return e[n]||(e[n]={items:[],keys:[]}),e[n].items.push(t),e[n].keys.push(`${t.major.value}-${t.line.value}`),e}),{});return t}({items:t}));const{value:i}=e.line,o=n.map[i],a=`${e.major.value}-${i}`,s=o.keys.indexOf(a),{before:l,after:c}=r({index:s,items:o.items});return!l&&!c}}({series:t,layoutService:r}),v="rtl"===n.options.direction,b=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:x}=r.meta,S=({end:e})=>{const{value:t}=e;return Yl(t,b)};return{type:"point",key:Gl(us.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:p?g.SIZE.DEFAULT/2:0}}),settings:{[p?"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))}},[p?"x":"y"]:{scale:us.SCALE.MAJOR,fn:Vl({layoutService:r,seriesModel:o,rtl:v,orientation:m}),ref:"major"},sizeLimits:{minPx:ac,maxPx:sc},size:e=>{const{value:t}=e.datum.line;return`${s.query.point.getSize(t)}px`},fill:h,opacity:({datum:e,data:t})=>{var n;return null!==(n=e.null)&&void 0!==n&&n.value||S(e)?0:f?y({item:e,items:t.items})?1:0:d||y({item:e,items:t.items})?1:0}},brush:Ul({layoutService:r,active:{r:e=>e.r+ic.POINT.SIZE.ACTIVE/2,strokeWidth:1.5,stroke:"#FFFFFF",opacity:e=>{var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||S(e.data))return 0;if(!x||d)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const i=[us.COMPONENT.AXIS_OVERLAY.CONTINUOUS,us.COMPONENT.AXIS_OVERLAY.TIME_INNER,us.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return i?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}})}}const cc=(e,{dataset:t})=>{const{value:n,label:r,source:i}=e.end,o=t(i.key).field(i.field);return ve.shouldUseFormat(o.raw())?o.formatter()(n):r};function uc({chart:e,models:t,environment:n,flags:r,series:i,lineSeries:o}){const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u}=t,{id:d}=i,m="rtl"===n.options.direction,p=a.getLayoutValue("dataPoint");if(!p)return!1;if(!p.show||!p.showLineLabels)return!1;const f=(i.isPrimary?c:u).query.getExtrema(),h=l.query.point.label.getStyle();return{type:"point-label",key:`${us.COMPONENT.POINT_LABEL}-${d}`,renderer:cs(r),layout:{displayOrder:2,minimumLayoutMode:Pl.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:m,connect:i.options.showAsConnections,label:t=>cc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${us.COMPONENT.POINT}-${d}`,allPoints:o.map((e=>`${us.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Yl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(us.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,fill:h.fill}}}const dc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${us.COMPONENT.SLICED_HAT}-${Wl.MAX}`),i=e.component(`${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.PRIMARY}`),o=e.component(`${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.SECONDARY}`);return r?n=`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}`:i?n=`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.PRIMARY}`:o&&(n=`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.SECONDARY}`),n},mc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}`&&e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.PRIMARY}`&&e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MAX}-${ds.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MIN}`&&e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MIN}-${ds.AXIS.PRIMARY}`&&e!==`@${us.COMPONENT.SLICED_HAT}-${Wl.MIN}-${ds.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function pc({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:us.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:Pl.LABEL_SPACE,dock:dc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${us.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(us.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(us.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 fc={min:"Min",max:"Max"};function hc(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 gc(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 yc(e,t,n){return hc(e,t,n)||gc(e,t,n)}function vc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function bc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function xc(e,t){return vc(e,t)||bc(e,t)}function Sc({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${fc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Wl.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Wl.MAX?!vc(r,e):!bc(r,e)}({extrema:e,type:t}))}var Ec=Object.freeze({__proto__:null,isMaxOutOfBounds:vc,isMinOutOfBounds:bc,isOutOfBounds:xc,isSegmentMaxOutOfBounds:hc,isSegmentMinOutOfBounds:gc,isSegmentOutOfBounds:yc,shouldShowOob:Sc});const Mc={min:"Min",max:"Max"},Cc=({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}=t,g="rtl"===o.options.direction,{dock:y,opposite:v,orientation:b}=s.meta.major,x=l.query.getExtrema(),S=c.query.getExtrema(),E=a===Wl.MAX,{isBarSeriesGrouped:M}=m.meta,C=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Wl.MAX?n:r;const o=e.component(`${us.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.PRIMARY}`),s=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.SECONDARY}`),l=e.component(us.COMPONENT.LABEL_SPACE),c=e.component(`${us.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.PRIMARY}`),d=e.component(`${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.SECONDARY}`);return o?i=`@${us.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.PRIMARY}`:s?i=`@${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.SECONDARY}`:c||u||d?l&&t===Wl.MAX?i=`@${us.COMPONENT.LABEL_SPACE}`:c?i=`@${us.COMPONENT.BAR_OOB}-${t}`:u?i=`@${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.PRIMARY}`:d&&(i=`@${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.SECONDARY}`):l&&t===Wl.MAX&&(i=`@${us.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:v,dock:y}),O=Vl({layoutService:m,seriesModel:p,rtl:g,orientation:b}),w=r.concat(n);if(!w.length)return!1;const T=E?x.implicit.bar.max:x.implicit.bar.min,A=Number(T.toFixed(13));if(!M&&i.length&&Ec[`is${Mc[a]}OutOfBounds`](A,x))return!1;if(!x.meta.hasExplicit&&!S.meta.hasExplicit)return!1;const R=E?"max":"min",k=Math[R](Number(x.implicit.line[R].toFixed(13)),Number(x.implicit.marker[R].toFixed(13))),N=Math[R](Number(S.implicit.line[R].toFixed(13)),Number(S.implicit.marker[R].toFixed(13))),I=w.filter((e=>e.isPrimary)),L=w.filter((e=>!e.isPrimary)),P=I.length>0,D=L.length>0,{major:q,majorNumeric:z}=h.main,$=e=>"NaN"!==e.qNum?e.qNum:0,_=m.meta.isContinuous?z:q;return{type:"data-out-of-bounds-marker",key:`${us.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:C,minimumLayoutMode:Pl.OUT_OF_BOUNDS_MARKER},data:{extract:w.map((({ref:e,typeIndex:t,options:n})=>({field:q,value:m.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:_},end:{field:e,value:n.showAsZeros?$:void 0},typeIndex:t,null:{field:e,value:e=>"NaN"===e.qNum}}})))},settings:{type:a,primaryExtremum:E?()=>u.query.getMax():()=>u.query.getMin(),secondaryExtremum:E?()=>d.query.getMax():()=>d.query.getMin(),primarySeries:I,secondarySeries:L,orientation:b,rtl:g,major:{scale:us.SCALE.MAJOR,fn:O},markerOffset:mc({dockPosition:C,orientation:b,rtl:g})},brush:Ul({layoutService:m}),show:()=>{if(E){if(P&&k>u.query.getMax())return!0;if(D&&N>d.query.getMax())return!0}if(!E){if(P&&k<u.query.getMin())return!0;if(D&&N<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color}}},Oc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function wc({chart:e,models:t,viewState:n,viewCache:r,axis:i}){const o=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${us.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=Oc[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=Oc[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 Tc=({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 Ac(e){return Math.min(Math.max(0,e),1)}const Rc=({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}=t,{isContinuous:p,isBarSeriesStacked:f,isBarSeriesGrouped:h,isBarSeriesStackedInBothAxis:g}=o.meta,y=e=>e.datum.start?e.datum.start.value:e.scale.min(),v=i?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY,b=i?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY;if(!(i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const x=f?{scale:b,start:{ref:"start",fn:e=>{const t=y(e);return Ac(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:y(e))(e);return Ac(e.scale(t))}}}:{scale:b,start:{ref:"start",fn:e=>{const t=y(e);return Ac(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)?y(e):e.datum.end.value;return Ac(e.scale(n))}}},S=(i?d:m).query.getExtrema(),E=f?({start:e,end:t})=>yc(e.value,t.value,S):({end:e})=>xc(e.value,S);return{type:"box",key:`${us.COMPONENT.BAR}-${v}`,data:{filter:(()=>{if(f)return;const e=l.query.series(ds.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:f?i?us.COLLECTION.STACKED_PRIMARY:us.COLLECTION.STACKED_SECONDARY:i?us.COLLECTION.PRIMARY:us.COLLECTION.SECONDARY},preferredSize:p?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:us.SCALE.MAJOR,fn:Hl({layoutService:o,axis:v}),ref:p?{start:"major",end:"major"}:void 0},minor:x,box:{width:Tc({isContinuous:p,isBarSeriesGrouped:h,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:g}),minWidthPx:p?wc({chart:e,models:t,viewState:n,viewCache:r,axis:v}):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)||E(e.datum)?0:1}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:Ul({layoutService:o,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data)?0:zl.INACTIVE}}})}},kc=({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?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${us.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?us.COLLECTION.STACKED_TOTAL_PRIMARY:us.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:us.SCALE.MAJOR,fn:Hl({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:Tc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?wc({chart:e,models:t,viewState:n,viewCache:r,axis:h}):2,opacity:0,fill:s.getColor()},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}}};function Nc(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=>Nt.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 Ic="vertical",Lc="horizontal";function Pc(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===Ic&&i<0?o="down":t===Lc&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const Dc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!n||!r},qc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!!n&&(!!r||!1!==e)};function zc(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}const $c=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s}=e,{meta:l}=i,c="rtl"===t.options.direction,u=s.getStyles(),d=a.query.bar.label.getStyle(),m=e.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),p=r?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!Dc(m,l))return!1;let f;!l.isBarSeriesStacked&&(f=l.isBarSeriesStacked?1:0);const h={label:e=>cc(e.data,e),simplifiedPlacements:zc(f,0===f?1:0,l.isBarSeriesStacked?.5:1,l.isContinuous),style:u.label.value},g=[Nc(e,h)],y={component:`${us.COMPONENT.BAR}-${p}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Pc(t.data.end.value,e.dockService.meta.minor.orientation,c,0),labels:g,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily}}},v=[y];return{type:"labels",key:`${us.COMPONENT.BAR_LABEL}-${p}`,renderer:cs(n),layout:{minimumLayoutMode:Pl.VALUE_LABEL},settings:{sources:v}}};function _c(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 jc({chart:e,models:t,environment:n,flags:r,isPrimary:i}){const{meta:o}=t.layoutService,a="rtl"===n.options.direction,s=t.themeService.getStyles(),l=t.styleModel.query.bar.label.getStyle(),c=t.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),u=i?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!qc(c,o))return!1;const d=l.useContrastColor,m=e.formatter(i?us.FORMATTER.PRIMARY:us.FORMATTER.SECONDARY)||(e=>e),p=e=>m(e),f={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":p(e.data.sumOfPositives.value),simplifiedPlacements:_c("outside",true,d,o.isContinuous),style:s.label.value},h={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":p(e.data.sumOfNegatives.value),simplifiedPlacements:_c("opposite",true,d,o.isContinuous),style:s.label.value},g=[Nc(t,f),Nc(t,h)];return{type:"labels",key:`${us.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:cs(r),layout:{displayOrder:2,minimumLayoutMode:Pl.VALUE_LABEL},settings:{sources:[{component:`${us.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Pc(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:g,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]}}}var Fc=Object.freeze({__proto__:null,hasMaxHat:function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r>0},hasMinHat:function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r<0}});const Bc={min:"Min",max:"Max"},Hc=1e-12;function Vc({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?kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Rc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Wl.MAX,b=o?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${Bc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!Fc[`has${Bc[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Bc[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?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.PRIMARY}`),a=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${us.COMPONENT.SLICED_HAT}-${t}-${ds.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:`${us.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:se({},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)<Hc?t:e}(e.datum[x].value);return v?n>t:n<t},width:Tc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Ul({layoutService:a})};return M}const Uc={min:"Min",max:"Max"},Wc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Yc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u}=t,{end:d,start:m}=s.meta.minor,{isBarSeriesStacked:p}=a.meta,f=p?kc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Rc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),h=o?l.query.getExtrema():c.query.getExtrema(),g=n===Wl.MAX?h.implicit.bar.max:h.implicit.bar.min,y=Number(g.toFixed(13)),v=o?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY;if(!f)return!1;if(!Ec[`is${Uc[n]}OutOfBounds`](y,h))return!1;const b=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Wl.MAX?n:r;const a=e.component(us.COMPONENT.LABEL_SPACE),s=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.PRIMARY}`),l=e.component(`${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.SECONDARY}`),c=e.component(`${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.PRIMARY}`),u=e.component(`${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.SECONDARY}`);return s?o=`@${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.PRIMARY}`:l?o=`@${us.COMPONENT.SLICED_HAT}-${t}-${ds.AXIS.SECONDARY}`:c&&u&&!i?o=`@${us.COMPONENT.BAR_OOB}-${t}-${ds.AXIS.PRIMARY}`:a&&t===Wl.MAX&&(o=`@${us.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:d,start:m,isPrimary:o});let x="end";p&&(x=n===Wl.MAX?"sumOfPositives":"sumOfNegatives");const S={type:"box-out-of-bounds",key:`${us.COMPONENT.BAR_OOB}-${n}-${v}`,layout:{dock:b},data:f.data,settings:{orientation:f.settings.orientation,major:f.settings.major,minor:f.settings.minor,dockValue:Oe.getDockValue(n===Wl.MAX?d:m),oob:se({},f.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=p&&0===e.datum[x].value,i=Ec[`is${Uc[n]}OutOfBounds`](e.datum[x].value,h,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Wc[n]].value;return 0!==i&&Ec[`is${Uc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:x,extrema:h}))&&i;return o}})},brush:Ul({layoutService:a})};return S}function Gc(e){return Math.min(Math.max(0,e),1)}const Xc=({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?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY),p=r?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Wl.MAX;if(!Sc({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:`${us.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(ds.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?us.COLLECTION.STACKED_TOTAL_PRIMARY:us.COLLECTION.STACKED_TOTAL_SECONDARY:r?us.COLLECTION.PRIMARY:us.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:us.SCALE.MAJOR,fn:Hl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Gc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Gc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Gc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Gc(e.scale(t))}}},box:{width:Tc({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 Kc(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 Jc=({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}=t,p=m.getStyles(),f=u.query.bar.label.getStyle(),{meta:h}=a,{isBarSeriesStacked:g}=h,y=e.formatter(o?us.FORMATTER.PRIMARY:us.FORMATTER.SECONDARY),v=a.getLayoutValue("dataPoint.showBarLabels",!1),b="horizontal"===s.meta.major.orientation,x="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!g&&!Dc(v,h)||g&&!qc(v,h))return!1;const S=o?l.query.getExtrema():c.query.getExtrema();if(!S.meta.hasExplicit)return!1;const E=n===Wl.MAX?S.implicit.bar.max:S.implicit.bar.min;if(!(n===Wl.MAX?vc(E,S):bc(E,S)))return!1;let M=e=>cc(e.data,e);h.isBarSeriesStacked&&(M=n===Wl.MAX?function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(vc(e.data.sumOfPositives.value,S)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value;return y?y(t):t}return""}:function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(bc(e.data.sumOfNegatives.value,S)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return y?y(t):t}return""});const C={label:M,simplifiedPlacements:Kc("outside",true,h.isContinuous,b,x),style:p.label.value},O={label:M,simplifiedPlacements:Kc("opposite",true,h.isContinuous,b,x),style:p.label.value},w=[Nc(t,C),Nc(t,O)],T=o?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY,A="horizontal"===s.meta.major.orientation?"down":"right",R=[{component:`${us.COMPONENT.GHOST_BAR_OOB}-${n}-${T}`,selector:"rect",strategy:{type:"bar",settings:{direction:A,labels:w,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily}}}];return{key:`${us.COMPONENT.BAR_OOB_LABEL}-${n}-${T}`,type:"labels",renderer:cs(i),layout:{minimumLayoutMode:Pl.VALUE_LABEL},settings:{sources:R}}},Zc=({chart:e,models:t,viewState:n,viewCache:r})=>[Rc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Rc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Qc=({chart:e,models:t,viewState:n,viewCache:r})=>[kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),kc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],eu=({chart:e,models:t,environment:n,flags:r})=>{const{isBarSeriesStacked:i}=t.layoutService.meta;if(i){return[jc({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),jc({chart:e,models:t,environment:n,flags:r,isPrimary:!1})]}return[$c({models:t,environment:n,flags:r,isPrimary:!0}),$c({models:t,environment:n,flags:r,isPrimary:!1})]},tu=({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})],nu=({chart:e,models:t,viewCache:n,viewState:r})=>[Yc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Yc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Yc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Yc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],ru=({chart:e,models:t})=>[Xc({chart:e,models:t,type:"max",isPrimary:!0}),Xc({chart:e,models:t,type:"min",isPrimary:!0}),Xc({chart:e,models:t,type:"max",isPrimary:!1}),Xc({chart:e,models:t,type:"min",isPrimary:!1})],iu=({chart:e,models:t,environment:n,flags:r})=>[Jc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Jc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Jc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Jc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],ou=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(ds.TYPE.BAR).slice(-1),l=a.query.series(ds.TYPE.LINE),c=a.query.series(ds.TYPE.MARKER);return[...Zc({chart:e,models:r,viewState:i,viewCache:o}),...Qc({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>rc({models:r,environment:t,series:e}))),...l.map((e=>lc({models:r,series:e,environment:t}))),...c.map((n=>ec({chart:e,models:r,series:n,environment:t}))),...l.map((i=>uc({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...eu({chart:e,models:r,environment:t,flags:n}),...tu({chart:e,models:r,viewCache:o,viewState:i}),...nu({chart:e,models:r,viewCache:o,viewState:i}),...ru({chart:e,models:r}),...iu({chart:e,models:r,environment:t,flags:n}),Cc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Cc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),pc({chart:e,models:r,environment:t,lineSeries:l})]},au={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function su({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:i}=e,{auto:o,spacing:a}=r.getLayoutValue("gridLine",{});if(!o&&a===au.NONE)return!1;const s=i.getStyles(),l=n.meta.primarySeries.length>0;return{key:us.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:Pl.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!o&&a===au.WIDE)||((e,t)=>t%2==0),stroke:s.grid.line.major.color},minorTicks:{show:!o&&a===au.NARROW,stroke:s.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:l?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY}}function lu({models:e}){const{primaryExtremumModel:t,primaryTickModel:n,themeService:r,dockService:i,seriesModel:o}=e,a=t.query.getExtrema();return!!(o.meta.primarySeries.length>0&&a.meta.includesZero)&&{key:us.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:Pl.GRID_LINE},show:()=>n.query.getMin()<=0&&n.query.getMax()>=0,lines:{["horizontal"===i.meta.minor.orientation?"x":"y"]:[{value:0,scale:us.SCALE.MINOR.PRIMARY,line:{stroke:r.getStyles().grid.line.highContrast.color}}]}}}function cu({models:e}){const{layoutService:t,themeService:n}=e,{isContinuous:r,isTime:i}=t.meta;if(!r)return[];const o=n.getStyles(),a={type:"grid-line",layout:{minimumLayoutMode:Pl.GRID_LINE},ticks:{stroke:o.grid.line.major.color},minorTicks:{show:!1,stroke:o.grid.line.minor.color}};return i?[se(!0,{},a,{key:"time-inner-grid",x:{scale:us.SCALE.MAJOR_INNER},ticks:{stroke:o.grid.line.minor.color}}),se(!0,{},a,{key:"time-outer-grid",x:{scale:us.SCALE.MAJOR}})]:[se(!0,{},a,{key:"continuous-grid",x:{scale:us.SCALE.MAJOR},minorTicks:{show:!0}})]}function uu({models:e}){return[su({models:e}),lu({models:e}),...cu({models:e})]}function du({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:us.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:Pl.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 mu=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function pu({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?us.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:us.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:Pl.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:mu(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 fu({models:e,environment:t,actions:n,flags:r}){return[du({models:e,environment:t,actions:n,flags:r}),...pu({models:e,environment:t,actions:n,flags:r})]}function hu({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=Fs({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>$s({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[zs({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:qs.OPTIONS.BAR.value},deviceType:t.deviceType})}function gu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=Rc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY;return a.key=`${us.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?us.COLLECTION.REDUCED_STACKED_PRIMARY:us.COLLECTION.REDUCED_STACKED_SECONDARY:i?us.COLLECTION.REDUCED_PRIMARY:us.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?us.SCALE.MINOR.REDUCED_PRIMARY:us.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=us.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function yu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(ds.TYPE.LINE).map((r=>{const i=rc({models:t,environment:e,series:r});return i.key=Gl(us.COMPONENT.MINI_CHART.LINE,r),i.data.collection=us.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?us.SCALE.MINOR.REDUCED_PRIMARY:us.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=us.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 vu({models:e,environment:t}){return e.seriesModel.query.series(ds.TYPE.MARKER).map((n=>{const r=ec({models:e,environment:t,series:n});return r.key=Gl(us.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=us.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?us.SCALE.MINOR.REDUCED_PRIMARY:us.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=us.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function bu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return xl(t)?[gu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),gu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...yu({environment:i,models:t}),...vu({models:t,environment:i})]:[]}function xu({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=Pl.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:us.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:us.SCALE.MAJOR_INNER,layout:{dock:`@${us.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:us.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:us.SCALE.MAJOR,layout:{dock:`@${us.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:us.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:us.SCALE.MAJOR,layout:{dock:`@${us.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function Su({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:i,colorService:o,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c}=t,u=l.qLocaleInfo,{options:d,theme:m}=n,p="rtl"===d.direction,f=c.query.series(ds.TYPE.BAR).filter((e=>e.isPrimary)),h=c.query.series(ds.TYPE.BAR).filter((e=>!e.isPrimary)),g=c.query.series(ds.TYPE.LINE),y=c.query.series(ds.TYPE.MARKER),v=c.query.all(),b=v.some((e=>e.isPrimary)),x=v.some((e=>!e.isPrimary)),S=b&&x,E={resolveUIColor:o.getPaletteColor},M=b?ss({refLineModel:r,layoutService:i,colorModel:E,dock:S?a.meta.minor.dock:a.meta.minor.opposite,scale:us.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:us.FORMATTER.PRIMARY,theme:m,localeInfo:u,rtl:p,key:us.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL}):[],C=x?ss({refLineModel:r,layoutService:i,colorModel:E,dock:S?a.meta.minor.opposite:a.meta.minor.dock,scale:us.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:us.FORMATTER.SECONDARY,theme:m,localeInfo:u,rtl:p,key:us.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2"}):[];return[!!b&&rs({refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:us.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:us.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:Pl.REFERENCE_LINE}),!!x&&rs({refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:us.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:us.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:Pl.REFERENCE_LINE}),rs({isDimension:!0,refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:us.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:p,key:us.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:f.length?`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`:h.length?`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`:g.length?`${us.COMPONENT.LINE}-${g[0].id}`:y.length?`${us.COMPONENT.MARKER}-${y[0].id}`:`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`,minimumLayoutMode:Pl.REFERENCE_LINE}),...M,...C,...ss({isDimension:!0,refLineModel:r,layoutService:i,colorModel:E,dock:a.meta.major.opposite,scale:us.SCALE.MAJOR,style:s.getStyles(),theme:m,localeInfo:u,rtl:p,key:us.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function Eu(e){return"NaN"===e.qMin&&"NaN"===e.qMax}var Mu=[{key:"NoDataExist",alignment:"center",condition:({layoutService:e})=>{const{x:t,y:n}=e.meta.size;return t*n==0}},{key:"OnlyNanData",alignment:"center",condition:({layoutService:e})=>{const{isContinuous:t}=e.meta;if(!t)return!1;const n=e.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNanData",alignment:"center",condition:({layoutService:e})=>e.getHyperCubeValue("qMeasureInfo").every(Eu)},{key:"DataRangeIncludingZero",alignment:"bottom",condition:({layoutService:e,primaryExtremumModel:t,secondaryExtremumModel:n,flags:r})=>{if(!1===e.getLayout().showDisclaimer&&r.isEnabled("SHOW_DISCLAIMER"))return!1;const i=e.getLayoutValue("measureAxis.logarithmic",!1),o=t.query.getExtrema(),a=n.query.getExtrema();return i&&(o.meta.includesZero||a.meta.includesZero)}}];function Cu({environment:e,models:t}){const{flags:n,translator:r,options:i}=e,{layoutService:o,primaryExtremumModel:a,secondaryExtremumModel:s,themeService:l}=t,c=function({layoutService:e,primaryExtremumModel:t,secondaryExtremumModel:n,flags:r}){let i,o;for(let a=0,s=Mu.length;a<s;a++){i=Mu[a];try{o=i.condition({layoutService:e,primaryExtremumModel:t,secondaryExtremumModel:n,flags:r})}catch(e){throw Error("failing disclaimer condition",e)}if(o)return i}return!1}({layoutService:o,primaryExtremumModel:a,secondaryExtremumModel:s,flags:n});if(!c)return!1;const{fontFamily:u}=l.getStyles(),d=function(e,t,n,r={}){if(!e)return!1;const{translator:i}=t,{rtl:o}=n;return{key:"disclaimer",type:"disclaimer",layout:{dock:ue[e].alignment},settings:{label:i.get(`Object.Disclaimer.${e}`),isRTL:o},style:r}}(c.key,{translator:r},{rtl:"rtl"===i.direction},{fontFamily:u});return d}function Ou({layoutService:e}){return!!xl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:us.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function wu(e){return(null==e?void 0:e.type)||ds.TYPE.BAR}function Tu({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=>wu(e)===ds.TYPE.LINE)).map((e=>({key:Gl(us.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:us.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 Au({models:{fieldModel:e}}){return{[us.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[us.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var Ru={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:ku}=Ru;function Nu({layoutService:e,largeDataService:t}){const{maxNumPoints:n=ku}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:Iu}=Ru,Lu=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=Iu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!Nu({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Pu}=Ru,{MAX_NUM_POINTS:Du,DEFAULT_NUM_POINTS:qu,DEFAULT_NUM_LINES:zu}=Ru,{DEFAULT_NUM_POINTS:$u}=Ru,_u=({layoutService:e,largeDataService:t})=>{if(!Nu({layoutService:e,largeDataService:t})){const{maxNumPoints:e=$u}=(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=zu,maxNumPoints:o=qu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Lu({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>zu||o>qu)?Math.min(c,Math.ceil(Du/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Pu}=(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})},ju=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:_u({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:Lu({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function Fu({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Nu({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>_u({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Lu({layoutService:t,largeDataService:n}),fetch:(i,o)=>ju({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Bu(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Hu({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 Vu(){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 Uu(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=Vu(),o=Vu();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 Wu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Yu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Uu(e,t,n.qMatrix),i=Wu(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 Gu=2**.5,Xu=1/Gu,Ku=1e-6,Ju=Xu**44;function Zu(e){return e.qIsOtherCell}function Qu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Zu)){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(Zu)||t++})),t}(n)}const ed={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var td={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 nd="…";function rd(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function id(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]}${nd}`).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=rd(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:rd(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 od(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=rd(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:rd(i,n.minorGuideLine.strokeWidth),x2:o,y2:rd(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function ad(e){return e.filter((e=>e.show)).map((e=>se({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var sd={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=rd(1,t.line.strokeWidth);return{show:n.line.show,x1:rd(0,t.line.strokeWidth),y1:r,x2:rd(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=id(n,this),this.state.minor=od(r,this)},render(){return[...ad([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>se({},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})))),...ad(this.state.major.map((e=>e.guideLine))),...ad(this.state.minor.map((e=>e.guideLine)))];var e}};function ld(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 cd(e){return e.qTags.indexOf("$qualified")>-1}function ud({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];ld(o,a)?(cd(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function dd({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 md=16;function pd({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+md}))),r.clamp(n),i.rangeAndWidth}}}const fd=6;function hd({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>=fd,canFitHalfDayTicks:n=>n>=t*e.count()}}function gd({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=pd,queryFactory:s=hd}={attributesFactory:pd,queryFactory:hd}){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 yd({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=gd,mapper:a=ud,resolver:s=dd}={metaFactory:gd,mapper:ud,resolver:dd}){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 vd=86400,bd=864e5;function xd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(bd*(e-Math.floor(e)))))}const Sd=xd(0).getTime();function Ed(e){return(e.getTime()-Sd)/vd/1e3}const Md=new Date,Cd=new Date;function Od(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=>Od((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)=>(Md.setTime(+t),Cd.setTime(+r),e(Md),e(Cd),Math.floor(n(Md,Cd))),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 wd=1e3,Td=6e4,Ad=36e5,Rd=864e5,kd=6048e5,Nd=Od((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*wd)}),((e,t)=>(t-e)/wd),(e=>e.getUTCSeconds()));Nd.range;const Id=Od((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wd)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getMinutes()));Id.range;const Ld=Od((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Td)}),((e,t)=>(t-e)/Td),(e=>e.getUTCMinutes()));Ld.range;const Pd=Od((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wd-e.getMinutes()*Td)}),((e,t)=>{e.setTime(+e+t*Ad)}),((e,t)=>(t-e)/Ad),(e=>e.getHours()));Pd.range;const Dd=Od((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Ad)}),((e,t)=>(t-e)/Ad),(e=>e.getUTCHours()));Dd.range;const qd=Od((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Td)/Rd),(e=>e.getDate()-1));qd.range;const zd=Od((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rd),(e=>e.getUTCDate()-1));zd.range;const $d=Od((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Rd),(e=>Math.floor(e/Rd)));function _d(e){return Od((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())*Td)/kd))}$d.range;const jd=_d(0),Fd=_d(1),Bd=_d(2),Hd=_d(3),Vd=_d(4),Ud=_d(5),Wd=_d(6);function Yd(e){return Od((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)/kd))}jd.range,Fd.range,Bd.range,Hd.range,Vd.range,Ud.range,Wd.range;const Gd=Yd(0),Xd=Yd(1),Kd=Yd(2),Jd=Yd(3),Zd=Yd(4),Qd=Yd(5),em=Yd(6);Gd.range,Xd.range,Kd.range,Jd.range,Zd.range,Qd.range,em.range;const tm=Od((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()));tm.range;const nm=Od((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()));nm.range;const rm=Od((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()));rm.every=e=>isFinite(e=Math.floor(e))&&e>0?Od((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,rm.range;const im=Od((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()));im.every=e=>isFinite(e=Math.floor(e))&&e>0?Od((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,im.range;const om={second:1,minute:2,hour:3,day:4,month:5,year:6};function am({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 im.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Nd.count(e,t),l=Ld.count(e,t),c=Dd.count(e,t),u=zd.count(e,t),d=Gd.count(e,t),m=nm.count(e,t),p=im.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:im.every(1),formatter:r.year.formatter,offset:e=>im.offset(e,-1),floor:im.floor};if(s<=f)v.type=om.second,v.desc="second",v.count=s,v.interval=Nd.every(1),v.formatter=r.second.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=Nd.floor;else if(s/2<=f)v.type=om.second,v.desc="every other second",v.count=s/2,v.interval=Nd.every(2),v.formatter=r.second.formatter,v.offset=e=>Nd.offset(e,-2),v.floor=Nd.floor;else if(s/5<=f)v.type=om.second,v.desc="every 5 second",v.count=s/5,v.interval=Nd.every(5),v.formatter=r.second.formatter,v.offset=e=>Nd.offset(e,-5),v.floor=Nd.floor;else if(s/15<=f)v.type=om.second,v.desc="every 15 second",v.count=s/15,v.interval=Nd.every(15),v.formatter=r.second.formatter,v.offset=e=>Nd.offset(e,-15),v.floor=Nd.floor;else if(s/30<=f)v.type=om.second,v.desc="every 30 second",v.count=s/30,v.interval=Nd.every(30),v.formatter=r.second.formatter,v.offset=e=>Nd.offset(e,-30),v.floor=Nd.floor;else if(l<=h)v.type=om.minute,v.desc="minute",v.count=l,v.interval=Ld.every(1),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-1),v.floor=Ld.floor;else if(l/2<=h)v.type=om.minute,v.desc="every 2 minute",v.count=l/2,v.interval=Ld.every(2),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-2),v.floor=Ld.floor;else if(l/5<=h)v.type=om.minute,v.desc="every 5 minute",v.count=l/5,v.interval=Ld.every(5),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-5),v.floor=Ld.floor;else if(l/10<=h)v.type=om.minute,v.desc="every 10 minute",v.count=l/10,v.interval=Ld.every(10),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-10),v.floor=Ld.floor;else if(l/15<=h)v.type=om.minute,v.desc="every 15 minute",v.count=l/15,v.interval=Ld.every(15),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-15),v.floor=Ld.floor;else if(l/30<=h)v.type=om.minute,v.desc="every 30 minute",v.count=l/30,v.interval=Ld.every(30),v.formatter=r.minute.formatter,v.offset=e=>Ld.offset(e,-30),v.floor=Ld.floor;else if(c<=h)v.type=om.hour,v.desc="hour",v.count=c,v.interval=Dd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Dd.offset(e,-1),v.floor=Dd.floor;else if(c/2<=h)v.type=om.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Dd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Dd.offset(e,-2),v.floor=Dd.floor;else if(c/3<=h)v.type=om.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Dd.every(3),v.formatter=r.minute.formatter,v.offset=e=>Dd.offset(e,-3),v.floor=Dd.floor;else if(c/6<=h)v.type=om.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Dd.every(6),v.formatter=r.minute.formatter,v.offset=e=>Dd.offset(e,-6),v.floor=Dd.floor;else if(c/12<=h||i)v.type=om.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Dd.every(12),v.formatter=r.minute.formatter,v.offset=e=>Dd.offset(e,-12),v.floor=Dd.floor;else if(u<=g)v.type=om.day,v.desc="day",v.count=u,v.interval=zd.every(1),v.formatter=r.date.formatter,v.offset=e=>zd.offset(e,-1),v.floor=zd.floor;else if(u/2<=g)v.type=om.day,v.desc="every 2 day",v.count=u/2,v.interval=zd.every(2),v.formatter=r.date.formatter,v.offset=e=>zd.offset(e,-2),v.floor=zd.floor;else if(u/3<=g)v.type=om.day,v.desc="every 3 day",v.count=u/3,v.interval=zd.every(3),v.formatter=r.date.formatter,v.offset=e=>zd.offset(e,-3),v.floor=zd.floor;else if(d<=g)v.type=om.day,v.desc="week",v.count=d,v.interval=Gd.every(1),v.formatter=r.date.formatter,v.offset=e=>Gd.offset(e,-1),v.floor=zd.floor;else if(d/2<=g)v.type=om.day,v.desc="every 2 week",v.count=d/2,v.interval=Gd.every(2),v.formatter=r.date.formatter,v.offset=e=>Gd.offset(e,-2),v.floor=zd.floor;else if(m<=g)v.type=om.month,v.desc="month",v.count=m,v.interval=nm.every(1),v.formatter=r.date.formatter,v.offset=e=>nm.offset(e,-1),v.floor=zd.floor;else if(m/3<=g)v.type=om.month,v.desc="quarter",v.count=m/3,v.interval=nm.every(3),v.formatter=r.date.formatter,v.offset=e=>nm.offset(e,-3),v.floor=zd.floor;else if(m/6<=g)v.type=om.month,v.desc="half year",v.count=m/6,v.interval=nm.every(6),v.formatter=r.date.formatter,v.offset=e=>nm.offset(e,-6),v.floor=zd.floor;else if(p<=y)v.type=om.year,v.desc="year",v.count=p,v.interval=im.every(1),v.formatter=r.year.formatter,v.offset=e=>im.offset(e,-1),v.floor=im.floor;else if(p/2<=y)v.type=om.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>im.offset(e,-2),v.floor=im.floor;else if(p/5<=y)v.type=om.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>im.offset(e,-5),v.floor=im.floor;else if(p/10<=y)v.type=om.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>im.offset(e,-10),v.floor=im.floor;else{const e=Math.floor(p/y);v.type=om.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>im.offset(t,-e),v.floor=im.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<=om.hour){const n=t.getFormat("date"),r=e.ticks(zd.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(zd.offset(r[0],-1)),p=(r.length?r:[zd.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 sm=86400,lm=1440,cm={};function um(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function dm(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=Yo().domain([xd(l),xd(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)=>am({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:xd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(cm[[t,n,r,r,o]])return cm[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=xd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/sm,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,w=null,T=null,A=null,R=null,k=null,N=null;const I={outer:[],inner:[]};for(y<1?(w=1,O=1/sm):y<2?(w=2,O=1/sm*2):y<5?(w=5,O=1/sm*5):y<10?(w=10,O=1/sm*10):y<30?(w=30,O=1/sm*30):v<1?(T=1,O=1/lm):v<2?(T=2,O=1/lm*2):v<5?(T=5,O=1/lm*5):v<10?(T=10,O=1/lm*10):v<30?(T=30,O=1/lm*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?um("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?um("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?um("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?um("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):T?um("minute",[l,c,u,0,0+E*T],[l,c,u,0,0+M*T],a.minute.formatter):um("second",[l,c,u,0,0,0+E*w],[l,c,u,0,0,0+M*w],a.second.formatter),C=Ed(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:xd(e),end:xd(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,cm[[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?Ed(t.start):"end"===i?Ed(t.end):(Ed(t.start)+Ed(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:Ed(t.start),end:Ed(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const mm=41000.2343433,pm=/t+/i,fm=16,hm=60;const gm={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 ym(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 vm="continuousPan";var bm={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=ed,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=Fu,snapshotFetcherFactory:c=Hu,cacheFetcherFactory:u=Bu,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(Ku,(r-n)*Ju))),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=Wu(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=>Yu(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=Wu(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=>Yu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Yu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return se({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return se({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Qu(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 w(((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?Xu:Gu)*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:vm,pointers:1,threshold:10,enable(r,i){return this.started===vm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${vm}start`](n){n.preventDefault(),this.started=vm;const{min:i,max:o}=r.get("zoom");this[vm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${vm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[vm],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)})},[`${vm}end`](e){e.preventDefault(),this.started=!1},[`${vm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:td,timeAxis:sd},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]=se(!0,{},t[i],o)})),r}(t,gm,n),{qAxis:i}=r,o=qr(),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=>(ym(a,m),a.instance(e)),m.normInvert=e=>(ym(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:hm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:hm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:hm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:hm,formatter:void 0}};return i&&pm.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(mm)).width+fm)})),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=xd(t[0].data.start),i=xd(t[n-1].data.start);return zd.count(r,i)/n>=1?o.date:Dd.count(r,i)/n>0?o.minute:Ld.count(r,i)/n>0?o.second:o.date},t}(r);return u=dm(o.copy(),r,p),c=yd({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 xm=e=>e.meta.seriesComponentKeys[0],Sm=(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 Em({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=bm,{layoutService:s,seriesModel:l}=t,c=xm(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===us.COMPONENT.LEGEND_CATEGORICAL));Sm(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const Mm="continuousPinchZoom";function Cm({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=bm.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:[...Zs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Qs({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=[Em({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:xm(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=bm.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:Mm,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:{[`${Mm}start`](e){a.last=e.scale,e.preventDefault()},[`${Mm}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:xm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const Om=({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}}}),wm="lasso",Tm=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:wm,enable(e,n){if(this.started===wm||!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!==wm&&(i.actions.select.emit("start",wm),this.chart.component(e).emit("lassoStart",t),this.started=wm)},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",wm),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Am=({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 Rm=({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 km=({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 Nm(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=km(e,t,"range");return{interactions:[e.onEdited?Rm(e,t):null,r].filter(Boolean),components:[n]}}const Im=/axis|legend/,Lm=e=>e.some((e=>Im.test(e.type)));function Pm({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`,`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`,...n.query.series(ds.TYPE.MARKER).map((e=>Gl(us.COMPONENT.MARKER,e))),...n.query.series(ds.TYPE.LINE).map((e=>Gl(us.COMPONENT.POINT,e))),us.COMPONENT.AXIS.MAJOR,us.COMPONENT.AXIS_OVERLAY.TIME_INNER,us.COMPONENT.AXIS_OVERLAY.TIME_OUTER,us.COMPONENT.AXIS_OVERLAY.CONTINUOUS,us.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===[us.COMPONENT.AXIS.MAJOR,us.COMPONENT.AXIS_OVERLAY.TIME_INNER,us.COMPONENT.AXIS_OVERLAY.TIME_OUTER,us.COMPONENT.AXIS_OVERLAY.CONTINUOUS,us.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=>Lm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Am(e,t)],components:[]}}(s,l)}function Dm({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,us.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:[km(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[us.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const qm={components:[],interactions:[]};function zm({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"))&&Nm({eventName:"minorRange",key:"minor-range-brush",targets:[us.COMPONENT.AXIS.MINOR.PRIMARY,`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`,...i.query.series(ds.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Gl(us.COMPONENT.MARKER,e))),...i.query.series(ds.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Gl(us.COMPONENT.POINT,e)))],fillTargets:[us.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:us.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||qm,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"))&&Nm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[us.COMPONENT.AXIS.MINOR.SECONDARY,`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`,...i.query.series(ds.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Gl(us.COMPONENT.MARKER,e))),...i.query.series(ds.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Gl(us.COMPONENT.POINT,e)))],fillTargets:[us.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:us.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||qm,a=Dm({actions:e,models:n})||qm,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?[us.COMPONENT.AXIS_OVERLAY.TIME_INNER,us.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[us.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Nm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`,`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`,...o.query.series(ds.TYPE.MARKER).map((e=>Gl(us.COMPONENT.MARKER,e))),...o.query.series(ds.TYPE.LINE).map((e=>Gl(us.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?us.SCALE.MAJOR_INNER:us.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(us.FORMATTER.PRIMARY),o=t.scale(us.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||qm,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=`${us.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Nm({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})||qm;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function $m({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=Om(n);return{interactions:[Tm(n,t)],components:[r]}}(o,{actions:e})}function _m({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:d,options:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:pe.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}){var s;const{colorService:l,layoutService:c,dockService:u,tooltipService:d}=t,m=Cu({environment:n,models:t});return"center"===(null==m||null===(s=m.layout)||void 0===s?void 0:s.dock)?[m]:[...uu({models:t}),...ql({models:t,flags:r}),...ou({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Tu({models:t,environment:n}),...Bl({models:t,environment:n,flags:r}),...fu({models:t,environment:n,actions:a,flags:r}),Jo({viewState:i,viewCache:o,layoutService:c,dockService:u}),...xu({models:t}),...Su({chart:e,models:t,environment:n}),hu({models:t,environment:n,viewState:i,viewCache:o}),...l.custom.legendComponents(),Ou(t),...bu({chart:e,models:t,viewState:i,viewCache:o,environment:n}),...d.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=Pm({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=zm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=$m({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:Sl({models:n}),scales:Ll({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Au({models:n}),interactions:Cm({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const jm=({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}=n;function g(){t.update({settings:_m({picasso:e,chart:t,models:n,environment:r,flags:a,viewState:s,viewCache:l,actions:c,isUnsupportedFeature:u})})}p.update({width:d,height:m}),i.custom.updateLegend(),h.update({picasso:e,chart:t,models:n,environment:r,viewState:s,viewCache:l,actions:c});const y=f.getDataPages();f.setDataPages([]),g(),f.setDataPages(y),f.meta.isContinuous||await o.command.initialize(),g()}),[d,m]);if(p)throw p},Fm=[us.COMPONENT.AXIS_TITLE.MAJOR,us.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,us.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,us.COMPONENT.GRID_LINE,us.COMPONENT.ZERO_LINE],Bm=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:us.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),Hm=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:us.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const Vm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Um(e){return Vm[e]||e}function Wm(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=Um(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=Um(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 Ym={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"},Gm={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"},Xm={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"},Km={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"},Jm={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"},Zm={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"},Qm={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"},ep={single:"N",drillDown:"H",cyclic:"C"},tp={N:void 0,H:Ym,C:Xm},np=(e,t)=>{switch(e.qGrouping){case ep.single:return;case ep.drillDown:return{path:Ym,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case ep.cyclic:return{path:t?Gm:Xm,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 rp(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=ra.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 ip(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=se(!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}),rp(e,a,c)}))}function op(e){return e.qGrouping===ep.single?e.qFallbackTitle||"":e.title||""}const ap=async(e,t,n,r,i,o="/qHyperCubeDef")=>{const a=!i;switch(e.qGrouping){case ep.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1),i=a?[]:n.map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:a?void 0:Ym,groupItem:!a,title:e.title,selected:a,children:i}}case ep.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=a||!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:a?void 0:Xm,groupItem:!a,title:e.title,selected:a,children:r}}default:return{selected:!0,id:e.cId,title:op(e)}}},sp=(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))},lp=async(e,t,n,r,i,o)=>{const a=await sp(e,n),s=!o,l=n.filter((e=>!a.includes(e.qDef.cId))),c=await Promise.all(l.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===ep.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),l=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,c=s?void 0:tp[l],u=!s&&l!==ep.single;return{id:n.qDef.cId,icon:c,groupItem:u,selected:!1,title:a,onSelect(e){ip(t,e,n.qDef.cId,"qDimensions",i)}}})));return c};function cp({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c,isCyclicFFEnabled:u}){const d=l.qGrouping===ep.single;return 0!==r.length||u&&!d?{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ap(l,i,a,e,u),n=c?await lp(a,i,r,o,s,u):[];return(d||0===t.children.length)&&0===n.length?[]:[t,...n]}}:null}function up(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===ep.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:np(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===ep.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:op(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function dp({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 sp(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){ip(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function mp(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function pp(){return pp=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},pp.apply(this,arguments)}var fp={exports:{}};function hp(){}function gp(){}gp.resetWarningCache=hp;fp.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gp,resetWarningCache:hp};return n.PropTypes=n,n}();var yp=K(fp.exports),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 wp(){return wp=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},wp.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 Ap(e){return e&&"object"===Tp(e)&&e.constructor===Object}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?wp({},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"!==Tp(e)||null===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:String(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 wp({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")),wp({paddingLeft:t(2),paddingRight:t(2)},n,Np({},e.up("sm"),wp({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=wp({},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(wp({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 wp({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(wp({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 wp({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 wf=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+=wf(e[n]," ");else t=wf(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+Tf(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=Rf(f+":"+c+Tf(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Rf(g+":"+c+Tf(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]=Tf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?wp({},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(wp({},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(wp({},n,{parent:this})),t)this.rules.add(s,t[s],wp({},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?wp({},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=wp({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=wp({},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=wp({},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=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},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})),wh=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},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=Th(n,t);if(!1===(i=wh(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=wh(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=wp({},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,wp({},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=wp({},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}
|
|
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,w,T,A,R,k,N,I,L,P,D,q,z,$,_,j,F,B,H,V,U,W,Y,G,X;return{setters:[function(e){t=e.useElement,n=e.useState,r=e.useEffect,i=e.useRect,o=e.usePromise,a=e.useStaleLayout,s=e.useModel,l=e.useApp,c=e.useAppLayout,u=e.usePlugins,d=e.useEmbed,m=e.useOptions,p=e.useTranslator,f=e.useTheme,h=e.useDeviceType,g=e.useConstraints,y=e.useLayout,v=e.useAction,b=e.useSelections,x=e.onTakeSnapshot,S=e.useImperativeHandle},function(e){E=e.getValue,M=e.setValue,C=e.cache,O=e.debouncer,w=e.throttler,T=e.colorService,A=e.disclaimerService,R=e.tooltipService,k=e.layoutService,N=e.dockService,I=e.themeService,L=e.pluginService,P=e.storage,D=e.selectionService,q=e.fontResolver},function(e){z=e.default},function(e){$=e.default},function(e){_=e.default},function(e){j=e.default,F=e,B=e.Children,H=e.isValidElement,V=e.cloneElement,U=e.forwardRef,W=e.useContext},function(e){Y=e,G=e.default},function(e){X=e.default}],execute:function(){e("default",(function(e){var i;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(K).forEach((t=>{e.add(K[t])}))}}(e.translator);const{flags:a}=e,s=null===(i=e.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.isUnsupportedFeature,l=PA();return{qae:VI(e),ext:yL(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:PI,hidden:!i||!u||d,active:a,action:m})),[u,d,a,i,c.language()]),{action:m,enabled:()=>i,active:()=>a}}();let d=DI;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||DI}},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=$I({chart:b,actions:u}),S=LI({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}}=hm,[,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}=n,{miniComponentKeys:g}=h.meta,{options:y}=r,{viewState:v={}}=y,{legendScrollOffset:b,scrollOffset:x}=o.meta.isSnapshot?o.getLayoutValue("snapshotData.content.chartData",{}):v;a.preventSet("scrollOffset",x),a.preventSet("legendScrollOffset",b),a.preventSet("title",o.getLayoutValue("title"));const S=()=>{f&&f.update(),t.update({partialData:!0,excludeFromUpdate:[...zm,...g]})};function E(o=!1){t.update({settings:Dm({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:a,viewCache:s,actions:l}),data:o&&[$m({models:n}),..._m({models:n}),...d.getData()]})}a.onChanged("scrollOffset",S),o.meta.isContinuous&&(a.onChanged("zoom",u({layoutService:o,continuousDataModel:m},S)),a.intercept("zoom",c({viewCache:s})));const M=o.getDataPages();o.setDataPages([]),E(!0),o.setDataPages(M),o.meta.isContinuous||await p.command.initialize(),E(!1)}),[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}),qm({picasso:l,chart:b,models:S,environment:c,flags:a,viewState:i,viewCache:e,actions:u,isUnsupportedFeature:s}),UI({models:S,chart:b,viewState:i})}}}));var K={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.toString,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ee.call(e)},ie=function(e){if(!e||"[object Object]"!==ee.call(e))return!1;var t,n=Q.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Q.call(e,t)},oe=function(e,t){te&&"__proto__"===t.name?te(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ae=function(e,t){if("__proto__"===t){if(!Q.call(e,t))return;if(ne)return ne(e,t).value}return e[t]},se=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ae(s,n),s!==(i=ae(t,n))&&(u&&i&&(ie(i)||(o=re(i)))?(o?(o=!1,a=r&&re(r)?r:[]):a=r&&ie(r)?r:{},oe(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&oe(s,{name:n,newValue:i}));return s},le=J(se);const ce=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],ue={};ce.forEach((([e,{width:t,height:n}])=>{ue[e]={width:t,height:n}}));const de={getLayoutModes:()=>ue,getLayoutMode(e,t){let n;for(n=0;n<ce.length;++n)if(e>=ce[n][1].width&&t>=ce[n][1].height)return ce[n][0];return"SPARK"}};const me=["$date","$timestamp","$time"],pe=["D","TS","T"],fe={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>me.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&pe.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(fe.hasTimeTag(t)&&fe.hasUnknownFormat(t)||fe.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&fe.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&fe.canBeContinuousDimension(r[0])},maxNumberOfLines:12},he=/^[A-Z][A-z0-9_]*$/i,ge={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||he.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},ye=e=>ge.getValue(e,"qHyperCube.qDimensionInfo",[]),ve=e=>ge.getValue(e,"qHyperCube.qMeasureInfo",[]),be=e=>ge.getValue(e,"barGrouping.grouping"),xe={continuous:(e,t=!1)=>!!fe.canBeContinuous(e)&&(ge.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!ye(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===be(e)&&(ye(e).length>1||ve(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&ye(e).length>1&&1===ve(e).length},groupedByMeasure(e){return this.grouped(e)&&1===ye(e).length&&ve(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==be(e)||this.continuous(e))&&(ye(e).length>1||ve(e).length>1)},stackedByDimension(e){return this.stacked(e)&&ye(e).length>1&&1===ve(e).length},stackedByMeasure(e){return this.stacked(e)&&1===ye(e).length&&ve(e).length>1},simple:e=>0===ye(e).length||1===ye(e).length&&1===ve(e).length,snapshot:e=>!!ge.getValue(e,"snapshotData")};function Se(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Ee=e=>{throw e.isHandled=!0,e};const Me={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Me.getVerticalDock(t):n?Me.getOppositeDock(Me.getHorizontalDock(t)):Me.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n},Ce={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Ce.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Ce.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Ce.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Ce.stringWidthOverMWidth(o)+1.0909090909090908*a)}},Oe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),we=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Te=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Ae={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Oe.test(e),isRtlChar:e=>we.test(e)||Te.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Ae.isLtrChar(r))return"ltr";if(Ae.isRtlChar(r))return"rtl"}return"ltr"}},Re={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Re.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Ae.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Ae.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Ae.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Ae.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Ae.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Re.getColorSymbol(e,t)]:[Re.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=Ae.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Ae.detectTextDirection(e.value);let l;return l=i?r?[e.value,Re.getColorSymbol(t,n)]:[Re.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function ke(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ie(){}var Le=.7,Pe=1/Le,De="\\s*([+-]?\\d+)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$e=/^#([0-9a-f]{3,8})$/,_e=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),je=new RegExp(`^rgb\\(${ze},${ze},${ze}\\)$`),Fe=new RegExp(`^rgba\\(${De},${De},${De},${qe}\\)$`),Be=new RegExp(`^rgba\\(${ze},${ze},${ze},${qe}\\)$`),He=new RegExp(`^hsl\\(${qe},${ze},${ze}\\)$`),Ve=new RegExp(`^hsla\\(${qe},${ze},${ze},${qe}\\)$`),Ue={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function We(){return this.rgb().formatHex()}function Ye(){return this.rgb().formatRgb()}function Ge(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xe(t):3===n?new Qe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ke(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ke(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=_e.exec(e))?new Qe(t[1],t[2],t[3],1):(t=je.exec(e))?new Qe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fe.exec(e))?Ke(t[1],t[2],t[3],t[4]):(t=Be.exec(e))?Ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=He.exec(e))?ot(t[1],t[2]/100,t[3]/100,1):(t=Ve.exec(e))?ot(t[1],t[2]/100,t[3]/100,t[4]):Ue.hasOwnProperty(e)?Xe(Ue[e]):"transparent"===e?new Qe(NaN,NaN,NaN,0):null}function Xe(e){return new Qe(e>>16&255,e>>8&255,255&e,1)}function Ke(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qe(e,t,n,r)}function Je(e){return e instanceof Ie||(e=Ge(e)),e?new Qe((e=e.rgb()).r,e.g,e.b,e.opacity):new Qe}function Ze(e,t,n,r){return 1===arguments.length?Je(e):new Qe(e,t,n,null==r?1:r)}function Qe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function et(){return`#${it(this.r)}${it(this.g)}${it(this.b)}`}function tt(){const e=nt(this.opacity);return`${1===e?"rgb(":"rgba("}${rt(this.r)}, ${rt(this.g)}, ${rt(this.b)}${1===e?")":`, ${e})`}`}function nt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function it(e){return((e=rt(e))<16?"0":"")+e.toString(16)}function ot(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,n,r)}function at(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Ie||(e=Ge(e)),!e)return new st;if(e instanceof st)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new st(a,s,l,e.opacity)}function st(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function lt(e){return(e=(e||0)%360)<0?e+360:e}function ct(e){return Math.max(0,Math.min(1,e||0))}function ut(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ke(Ie,Ge,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:We,formatHex:We,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return at(this).formatHsl()},formatRgb:Ye,toString:Ye}),ke(Qe,Ze,Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(rt(this.r),rt(this.g),rt(this.b),nt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:et,formatHex:et,formatHex8:function(){return`#${it(this.r)}${it(this.g)}${it(this.b)}${it(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tt,toString:tt})),ke(st,(function(e,t,n,r){return 1===arguments.length?at(e):new st(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Le:Math.pow(Le,e),new st(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Qe(ut(e>=240?e-240:e+120,i,r),ut(e,i,r),ut(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new st(lt(this.h),ct(this.s),ct(this.l),nt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=nt(this.opacity);return`${1===e?"hsl(":"hsla("}${lt(this.h)}, ${100*ct(this.s)}%, ${100*ct(this.l)}%${1===e?")":`, ${e})`}`}}));const dt=Math.PI/180,mt=180/Math.PI,pt=.96422,ft=1,ht=.82521,gt=4/29,yt=6/29,vt=3*yt*yt,bt=yt*yt*yt;function xt(e){if(e instanceof St)return new St(e.l,e.a,e.b,e.opacity);if(e instanceof Tt)return At(e);e instanceof Qe||(e=Je(e));var t,n,r=Ot(e.r),i=Ot(e.g),o=Ot(e.b),a=Et((.2225045*r+.7168786*i+.0606169*o)/ft);return r===i&&i===o?t=n=a:(t=Et((.4360747*r+.3850649*i+.1430804*o)/pt),n=Et((.0139322*r+.0971045*i+.7141733*o)/ht)),new St(116*a-16,500*(t-a),200*(a-n),e.opacity)}function St(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Et(e){return e>bt?Math.pow(e,1/3):e/vt+gt}function Mt(e){return e>yt?e*e*e:vt*(e-gt)}function Ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ot(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Tt)return new Tt(e.h,e.c,e.l,e.opacity);if(e instanceof St||(e=xt(e)),0===e.a&&0===e.b)return new Tt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mt;return new Tt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Tt(e,t,n,null==r?1:r)}function Tt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function At(e){if(isNaN(e.h))return new St(e.l,0,0,e.opacity);var t=e.h*dt;return new St(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ke(St,(function(e,t,n,r){return 1===arguments.length?xt(e):new St(e,t,n,null==r?1:r)}),Ne(Ie,{brighter(e){return new St(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new St(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Qe(Ct(3.1338561*(t=pt*Mt(t))-1.6168667*(e=ft*Mt(e))-.4906146*(n=ht*Mt(n))),Ct(-.9787684*t+1.9161415*e+.033454*n),Ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ke(Tt,wt,Ne(Ie,{brighter(e){return new Tt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Tt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return At(this).rgb()}}));var Rt={isDark:function(e){return wt(e).l<70}};function kt(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Nt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function It(e){return 1===e.length&&(e=function(e){return function(t,n){return Nt(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Lt=It(Nt).right,Pt=Math.sqrt(50),Dt=Math.sqrt(10),qt=Math.sqrt(2);function zt(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Pt?10:o>=Dt?5:o>=qt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Pt?10:o>=Dt?5:o>=qt?2:1)}function $t(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Pt?i*=10:o>=Dt?i*=5:o>=qt&&(i*=2),t<e?-i:i}function _t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var jt="$";function Ft(){}function Bt(e,t){var n=new Ft;if(e instanceof Ft)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Ht(){}Ft.prototype=Bt.prototype={constructor:Ft,has:function(e){return jt+e in this},get:function(e){return this[jt+e]},set:function(e,t){return this[jt+e]=t,this},remove:function(e){var t=jt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===jt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===jt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===jt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===jt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===jt&&++e;return e},empty:function(){for(var e in this)if(e[0]===jt)return!1;return!0},each:function(e){for(var t in this)t[0]===jt&&e(this[t],t.slice(1),this)}};var Vt=Bt.prototype;Ht.prototype={constructor:Ht,has:Vt.has,add:function(e){return this[jt+(e+="")]=e,this},remove:Vt.remove,clear:Vt.clear,values:Vt.keys,size:Vt.size,empty:Vt.empty,each:Vt.each};var Ut=Array.prototype,Wt=Ut.map,Yt=Ut.slice;function Gt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Xt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kt(){}var Jt=.7,Zt=1/Jt,Qt="\\s*([+-]?\\d+)\\s*",en="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",tn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nn=/^#([0-9a-f]{3})$/,rn=/^#([0-9a-f]{6})$/,on=new RegExp("^rgb\\("+[Qt,Qt,Qt]+"\\)$"),an=new RegExp("^rgb\\("+[tn,tn,tn]+"\\)$"),sn=new RegExp("^rgba\\("+[Qt,Qt,Qt,en]+"\\)$"),ln=new RegExp("^rgba\\("+[tn,tn,tn,en]+"\\)$"),cn=new RegExp("^hsl\\("+[en,tn,tn]+"\\)$"),un=new RegExp("^hsla\\("+[en,tn,tn,en]+"\\)$"),dn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function mn(e){var t;return e=(e+"").trim().toLowerCase(),(t=nn.exec(e))?new yn((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=rn.exec(e))?pn(parseInt(t[1],16)):(t=on.exec(e))?new yn(t[1],t[2],t[3],1):(t=an.exec(e))?new yn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sn.exec(e))?fn(t[1],t[2],t[3],t[4]):(t=ln.exec(e))?fn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cn.exec(e))?bn(t[1],t[2]/100,t[3]/100,1):(t=un.exec(e))?bn(t[1],t[2]/100,t[3]/100,t[4]):dn.hasOwnProperty(e)?pn(dn[e]):"transparent"===e?new yn(NaN,NaN,NaN,0):null}function pn(e){return new yn(e>>16&255,e>>8&255,255&e,1)}function fn(e,t,n,r){return r<=0&&(e=t=n=NaN),new yn(e,t,n,r)}function hn(e){return e instanceof Kt||(e=mn(e)),e?new yn((e=e.rgb()).r,e.g,e.b,e.opacity):new yn}function gn(e,t,n,r){return 1===arguments.length?hn(e):new yn(e,t,n,null==r?1:r)}function yn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function vn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function bn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xn(e,t,n,r)}function xn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Sn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Gt(Kt,mn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Gt(yn,gn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+vn(this.r)+vn(this.g)+vn(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Gt(xn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof xn)return new xn(e.h,e.s,e.l,e.opacity);if(e instanceof Kt||(e=mn(e)),!e)return new xn;if(e instanceof xn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new xn(a,s,l,e.opacity)}(e):new xn(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new xn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new xn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new yn(Sn(e>=240?e-240:e+120,i,r),Sn(e,i,r),Sn(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var En=Math.PI/180,Mn=180/Math.PI,Cn=.96422,On=1,wn=.82521,Tn=4/29,An=6/29,Rn=3*An*An,kn=An*An*An;function Nn(e){if(e instanceof In)return new In(e.l,e.a,e.b,e.opacity);if(e instanceof zn){if(isNaN(e.h))return new In(e.l,0,0,e.opacity);var t=e.h*En;return new In(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof yn||(e=hn(e));var n,r,i=qn(e.r),o=qn(e.g),a=qn(e.b),s=Ln((.2225045*i+.7168786*o+.0606169*a)/On);return i===o&&o===a?n=r=s:(n=Ln((.4360747*i+.3850649*o+.1430804*a)/Cn),r=Ln((.0139322*i+.0971045*o+.7141733*a)/wn)),new In(116*s-16,500*(n-s),200*(s-r),e.opacity)}function In(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ln(e){return e>kn?Math.pow(e,1/3):e/Rn+Tn}function Pn(e){return e>An?e*e*e:Rn*(e-Tn)}function Dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function zn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Gt(In,(function(e,t,n,r){return 1===arguments.length?Nn(e):new In(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new In(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new In(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new yn(Dn(3.1338561*(t=Cn*Pn(t))-1.6168667*(e=On*Pn(e))-.4906146*(n=wn*Pn(n))),Dn(-.9787684*t+1.9161415*e+.033454*n),Dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Gt(zn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zn)return new zn(e.h,e.c,e.l,e.opacity);if(e instanceof In||(e=Nn(e)),0===e.a&&0===e.b)return new zn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Mn;return new zn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new zn(e,t,n,null==r?1:r)}),Xt(Kt,{brighter:function(e){return new zn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new zn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Nn(this).rgb()}}));var $n=-.14861,_n=1.78277,jn=-.29227,Fn=-.90649,Bn=1.97294,Hn=Bn*Fn,Vn=Bn*_n,Un=_n*jn-Fn*$n;function Wn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yn)return new Yn(e.h,e.s,e.l,e.opacity);e instanceof yn||(e=hn(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Un*r+Hn*t-Vn*n)/(Un+Hn-Vn),o=r-i,a=(Bn*(n-i)-jn*o)/Fn,s=Math.sqrt(a*a+o*o)/(Bn*i*(1-i)),l=s?Math.atan2(a,o)*Mn-120:NaN;return new Yn(l<0?l+360:l,s,i,e.opacity)}(e):new Yn(e,t,n,null==r?1:r)}function Yn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gn(e){return function(){return e}}function Xn(e,t){return function(n){return e+n*t}}function Kn(e){return 1==(e=+e)?Jn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Gn(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?Xn(e,n):Gn(isNaN(e)?t:e)}Gt(Yn,Wn,Xt(Kt,{brighter:function(e){return e=null==e?Zt:Math.pow(Zt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Jt:Math.pow(Jt,e),new Yn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*En,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new yn(255*(t+n*($n*r+_n*i)),255*(t+n*(jn*r+Fn*i)),255*(t+n*(Bn*r)),this.opacity)}}));var Zn=function e(t){var n=Kn(t);function r(e,t){var r=n((e=gn(e)).r,(t=gn(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Jn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Qn(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ar(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function er(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function tr(e,t){return t-=e=+e,function(n){return e+t*n}}function nr(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=ar(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ir=new RegExp(rr.source,"g");function or(e,t){var n,r,i,o=rr.lastIndex=ir.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=rr.exec(e))&&(r=ir.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:tr(n,r)})),o=ir.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function ar(e,t){var n,r=typeof t;return null==t||"boolean"===r?Gn(t):("number"===r?tr:"string"===r?(n=mn(t))?(t=n,Zn):or:t instanceof mn?Zn:t instanceof Date?er:Array.isArray(t)?Qn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?nr:tr)(e,t)}function sr(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function lr(e){return function t(n){function r(t,r){var i=e((t=Wn(t)).h,(r=Wn(r)).h),o=Jn(t.s,r.s),a=Jn(t.l,r.l),s=Jn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function cr(e){return+e}lr((function(e,t){var n=t-e;return n?Xn(e,n>180||n<-180?n-360*Math.round(n/360):n):Gn(isNaN(e)?t:e)})),lr(Jn);var ur=[0,1];function dr(e){return e}function mr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function pr(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function fr(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=mr(i,r),o=n(a,o)):(r=mr(r,i),o=n(o,a)),function(e){return o(r(e))}}function hr(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=mr(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Lt(e,t,1,r)-1;return o[n](i[n](t))}}function gr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function yr(e,t){return function(){var e,t,n,r,i,o,a=ur,s=ur,l=ar,c=dr;function u(){return r=Math.min(a.length,s.length)>2?hr:fr,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,a.map(e),tr)))(n)))},d.domain=function(e){return arguments.length?(a=Wt.call(e,cr),c===dr||(c=pr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=Yt.call(e),u()):s.slice()},d.rangeRound=function(e){return s=Yt.call(e),l=sr,u()},d.clamp=function(e){return arguments.length?(c=e?pr(a):dr,d):c!==dr},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function vr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function br(e){return(e=vr(Math.abs(e)))?e[1]:NaN}var xr,Sr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Er(e){return new Mr(e)}function Mr(e){if(!(t=Sr.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Cr(e,t){var n=vr(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Er.prototype=Mr.prototype,Mr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Or={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Cr(100*e,t)},r:Cr,s:function(e,t){var n=vr(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(xr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vr(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function wr(e){return e}var Tr,Ar,Rr,kr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Nr(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):wr,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):wr,s=e.percent||"%";function l(e){var t=(e=Er(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,m=e.comma,p=e.precision,f=e.trim,h=e.type;"n"===h?(m=!0,h="g"):Or[h]||(null==p&&(p=12),f=!0,h="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?i[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(h)?s:"",v=Or[h],b=/[defgprs%]/.test(h);function x(e){var i,s,c,x=g,S=y;if("c"===h)S=v(e)+S,e="";else{var E=(e=+e)<0;if(e=v(Math.abs(e),p),f&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&(E=!1),x=(E?"("===l?l:"-":"-"===l||"("===l?"":l)+x,S=("s"===h?kr[8+xr/3]:"")+S+(E&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){S=(46===c?o+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}m&&!u&&(e=r(e,1/0));var M=x.length+e.length+S.length,C=M<d?new Array(d-M+1).join(t):"";switch(m&&u&&(e=r(C+e,C.length?d-S.length:1/0),C=""),n){case"<":e=x+e+S+C;break;case"=":e=x+C+e+S;break;case"^":e=C.slice(0,M=C.length>>1)+x+e+S+C.slice(M);break;default:e=C+x+e+S}return a(e)}return p=null==p?6:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Er(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(br(t)/3))),i=Math.pow(10,-r),o=kr[8+r/3];return function(e){return n(i*e)+o}}}}function Ir(e,t,n,r){var i,o=$t(e,t,n);switch((r=Er(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(br(t)/3)))-br(Math.abs(e)))}(o,a))||(r.precision=i),Rr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-br(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Ar(r)}function Lr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=zt(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ir(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=zt(s,l,n))>0?r=zt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=zt(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function Pr(){var e=yr(dr,dr);return e.copy=function(){return gr(e,Pr())},_t.apply(e,arguments),Lr(e)}Tr=Nr({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Ar=Tr.format,Rr=Tr.formatPrefix;var Dr=new Date,qr=new Date;function zr(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return zr((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Dr.setTime(+t),qr.setTime(+r),e(Dr),e(qr),Math.floor(n(Dr,qr))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var $r=zr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));$r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?zr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):$r:null},$r.range;var _r=1e3,jr=6e4,Fr=36e5,Br=864e5,Hr=6048e5,Vr=zr((function(e){e.setTime(Math.floor(e/_r)*_r)}),(function(e,t){e.setTime(+e+t*_r)}),(function(e,t){return(t-e)/_r}),(function(e){return e.getUTCSeconds()}));Vr.range;var Ur=zr((function(e){e.setTime(Math.floor(e/jr)*jr)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getMinutes()}));Ur.range;var Wr=zr((function(e){var t=e.getTimezoneOffset()*jr%Fr;t<0&&(t+=Fr),e.setTime(Math.floor((+e-t)/Fr)*Fr+t)}),(function(e,t){e.setTime(+e+t*Fr)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getHours()}));Wr.range;var Yr=zr((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jr)/Br}),(function(e){return e.getDate()-1}));function Gr(e){return zr((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jr)/Hr}))}Yr.range;var Xr=Gr(0),Kr=Gr(1),Jr=Gr(2),Zr=Gr(3),Qr=Gr(4),ei=Gr(5),ti=Gr(6);Xr.range,Kr.range,Jr.range,Zr.range,Qr.range,ei.range,ti.range;var ni=zr((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));ni.range;var ri=zr((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));ri.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zr((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},ri.range;var ii=zr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*jr)}),(function(e,t){return(t-e)/jr}),(function(e){return e.getUTCMinutes()}));ii.range;var oi=zr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Fr)}),(function(e,t){return(t-e)/Fr}),(function(e){return e.getUTCHours()}));oi.range;var ai=zr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Br}),(function(e){return e.getUTCDate()-1}));function si(e){return zr((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Hr}))}ai.range;var li=si(0),ci=si(1),ui=si(2),di=si(3),mi=si(4),pi=si(5),fi=si(6);li.range,ci.range,ui.range,di.range,mi.range,pi.range,fi.range;var hi=zr((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));hi.range;var gi=zr((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function yi(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vi(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function bi(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}gi.every=function(e){return isFinite(e=Math.floor(e))&&e>0?zr((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},gi.range;var xi,Si,Ei,Mi={"-":"",_:" ",0:"0"},Ci=/^\s*\d+/,Oi=/^%/,wi=/[\\^$*+?|[\]().{}]/g;function Ti(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Ai(e){return e.replace(wi,"\\$&")}function Ri(e){return new RegExp("^(?:"+e.map(Ai).join("|")+")","i")}function ki(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Ni(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ii(e,t,n){var r=Ci.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Li(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Pi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Di(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function qi(e,t,n){var r=Ci.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function zi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $i(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _i(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ji(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fi(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Bi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Hi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vi(e,t,n){var r=Ci.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ui(e,t,n){var r=Ci.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wi(e,t,n){var r=Ci.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yi(e,t,n){var r=Oi.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Xi(e,t,n){var r=Ci.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ki(e,t){return Ti(e.getDate(),t,2)}function Ji(e,t){return Ti(e.getHours(),t,2)}function Zi(e,t){return Ti(e.getHours()%12||12,t,2)}function Qi(e,t){return Ti(1+Yr.count(ri(e),e),t,3)}function eo(e,t){return Ti(e.getMilliseconds(),t,3)}function to(e,t){return eo(e,t)+"000"}function no(e,t){return Ti(e.getMonth()+1,t,2)}function ro(e,t){return Ti(e.getMinutes(),t,2)}function io(e,t){return Ti(e.getSeconds(),t,2)}function oo(e){var t=e.getDay();return 0===t?7:t}function ao(e,t){return Ti(Xr.count(ri(e),e),t,2)}function so(e,t){var n=e.getDay();return e=n>=4||0===n?Qr(e):Qr.ceil(e),Ti(Qr.count(ri(e),e)+(4===ri(e).getDay()),t,2)}function lo(e){return e.getDay()}function co(e,t){return Ti(Kr.count(ri(e),e),t,2)}function uo(e,t){return Ti(e.getFullYear()%100,t,2)}function mo(e,t){return Ti(e.getFullYear()%1e4,t,4)}function po(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ti(t/60|0,"0",2)+Ti(t%60,"0",2)}function fo(e,t){return Ti(e.getUTCDate(),t,2)}function ho(e,t){return Ti(e.getUTCHours(),t,2)}function go(e,t){return Ti(e.getUTCHours()%12||12,t,2)}function yo(e,t){return Ti(1+ai.count(gi(e),e),t,3)}function vo(e,t){return Ti(e.getUTCMilliseconds(),t,3)}function bo(e,t){return vo(e,t)+"000"}function xo(e,t){return Ti(e.getUTCMonth()+1,t,2)}function So(e,t){return Ti(e.getUTCMinutes(),t,2)}function Eo(e,t){return Ti(e.getUTCSeconds(),t,2)}function Mo(e){var t=e.getUTCDay();return 0===t?7:t}function Co(e,t){return Ti(li.count(gi(e),e),t,2)}function Oo(e,t){var n=e.getUTCDay();return e=n>=4||0===n?mi(e):mi.ceil(e),Ti(mi.count(gi(e),e)+(4===gi(e).getUTCDay()),t,2)}function wo(e){return e.getUTCDay()}function To(e,t){return Ti(ci.count(gi(e),e),t,2)}function Ao(e,t){return Ti(e.getUTCFullYear()%100,t,2)}function Ro(e,t){return Ti(e.getUTCFullYear()%1e4,t,4)}function ko(){return"+0000"}function No(){return"%"}function Io(e){return+e}function Lo(e){return Math.floor(+e/1e3)}!function(e){xi=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ri(i),u=ki(i),d=Ri(o),m=ki(o),p=Ri(a),f=ki(a),h=Ri(s),g=ki(s),y=Ri(l),v=ki(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ki,e:Ki,f:to,H:Ji,I:Zi,j:Qi,L:eo,m:no,M:ro,p:function(e){return i[+(e.getHours()>=12)]},Q:Io,s:Lo,S:io,u:oo,U:ao,V:so,w:lo,W:co,x:null,X:null,y:uo,Y:mo,Z:po,"%":No},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:fo,e:fo,f:bo,H:ho,I:go,j:yo,L:vo,m:xo,M:So,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Io,s:Lo,S:Eo,u:Mo,U:Co,V:Oo,w:wo,W:To,x:null,X:null,y:Ao,Y:Ro,Z:ko,"%":No},S={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:ji,e:ji,f:Wi,H:Bi,I:Bi,j:Fi,L:Ui,m:_i,M:Hi,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Gi,s:Xi,S:Vi,u:Ii,U:Li,V:Pi,w:Ni,W:Di,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:zi,Y:qi,Z:$i,"%":Yi};function E(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Mi[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,i,o=bi(1900);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=vi(bi(o.y))).getUTCDay(),r=i>4||0===i?ci.ceil(r):ci(r),r=ai.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(bi(o.y))).getDay(),r=i>4||0===i?Kr.ceil(r):Kr(r),r=Yr.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vi(bi(o.y)).getUTCDay():t(bi(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vi(o)):t(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=S[i in Mi?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",yi);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e,vi);return t.toString=function(){return e},t}}}(e),xi.format,xi.parse,Si=xi.utcFormat,Ei=xi.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Po="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Si(Po),+new Date("2000-01-01T00:00:00.000Z")||Ei(Po);var Do=1e3,qo=60*Do,zo=60*qo,$o=24*zo,_o=7*$o,jo=30*$o,Fo=365*$o;function Bo(e){return new Date(e)}function Ho(e){return e instanceof Date?+e:+new Date(+e)}function Vo(e,t,n,r,i,o,a,s,l){var c=yr(dr,dr),u=c.invert,d=c.domain,m=l(".%L"),p=l(":%S"),f=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,Do],[a,5,5*Do],[a,15,15*Do],[a,30,30*Do],[o,1,qo],[o,5,5*qo],[o,15,15*qo],[o,30,30*qo],[i,1,zo],[i,3,3*zo],[i,6,6*zo],[i,12,12*zo],[r,1,$o],[r,2,2*$o],[n,1,_o],[t,1,jo],[t,3,3*jo],[e,1,Fo]];function S(s){return(a(s)<s?m:o(s)<s?p:i(s)<s?f:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function E(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=It((function(e){return e[2]})).right(x,o);a===x.length?(i=$t(n/Fo,r/Fo,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max($t(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(Wt.call(e,Ho)):d().map(Bo)},c.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=E(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=E(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return gr(c,Vo(e,t,n,r,i,o,a,s,l))},c}function Uo(){return _t.apply(Vo(gi,hi,li,ai,oi,ii,Vr,$r,Si).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Wo={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Yo=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Go={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=Wo[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Yo(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Yo(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Xo({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Ko;function Jo(){Ko=Ko||document.createElement("canvas").getContext("2d")}const Zo={measureTextWidth(e){Jo();const{width:t}=Ko.measureText(e);return t},lineWrap(e,t,n,r){let i,o;Jo();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,m=e?e.split(/\s+/):[],p=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Ko.font=n),o=0;o<a.length;o++){for(d=a[o]||"",m=d.split(/\s+/),[p]=m,u="",i=1;i<m.length;i++)if(l=`${p} ${m[i]}`,c=Zo.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(p),p=m[i]):p=l,"number"==typeof r&&s.length>=r){u=m.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(p):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${p} ${u}`}return s},wordWrap(e,t,n,r,i){if(Jo(),!e||!e.length)return[];n&&(Ko.font=n);let o=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Zo.measureTextWidth(c)<=t?o.push(c):(s=Zo.splitWord(c,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[u+1]?Zo.measureTextWidth(`${l} ${a[u+1]}`)>t&&o.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=Zo.truncate(o[o.length-1],t,n,i).text):(c=o[o.length-1],c&&c.length>1&&Zo.measureTextWidth(c)>t&&(o[o.length-1]=Zo.truncate(c,t,n,i).text)),o},truncate(e,t,n,r="…"){Jo();let i,o,a,s,l=e;const c=Zo.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Ko.font=n),e&&t){if(Zo.measureTextWidth(l)>t){for(i=Math.min(u,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,Zo.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;Jo();let o,a=e,s="",l=[];if(Zo.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(i=Math.min(e.length,c);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(Zo.measureTextWidth(a)<=t));i--);return(!i&&!a||Zo.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Zo.measureTextWidth(s)>t?(s=Zo.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(Jo(),e&&t?(n&&(Ko.font=n),Zo.explodeWord(e,t,r,Math.max(1,Zo.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?Zo.lineWrap(e,t,n,r):[e],o=Zo.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(Jo(),e&&(Ko.font=e),1.5*Zo.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){Jo(),t&&(Ko.font=t);const s=Zo.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(o<s)return[];const m=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?m-u:e)}))):c=[Number.isNaN(r)||r<=0?m:Math.min(m,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<m&&(d=d.concat(Zo.wrapText(e,i,t,c[n])))})):d=Zo.wrapText(e,i,t,c[0],n),d}},Qo={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},ea=le.bind(null,!0),ta={},{isArray:na}=Array;function ra(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ia(e){return void 0===e}function oa(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function aa(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=ia(e[r||t])?o:e[t],e=e[r||t]})),e}function sa(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function la(e,t,n){let r=!0;if(ra(e)&&ra(t))return sa(e,n)===sa(t,n)&&(Object.keys(e).forEach((i=>{la(e[i],t[i],n)||(r=!1)})),r);if(na(e)&&na(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!la(e[r],t[r],n))return!1;return!0}return e===t}ta.compare=la,ta.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?ea({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;la(o,a)||oa(t,i)||(ia(a)?r.push({op:"add",path:s,value:o}):ra(o)&&ra(a)?r=r.concat(ta.generate(a,o,s)):na(o)&&na(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&ia(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(la(t,i))return r;if(!ia(t[0])&&ia(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(ta.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{ia(t[i])&&!oa(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},ta.apply=function(e,t){t.forEach((t=>{let n=aa(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(na(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(na(i)&&na(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(ra(i)&&ra(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!oa(a,e)&&delete a[e]})),ea(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=aa(e,t.from);na(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(na(n)?n.splice(+r,1):delete n[r]);var a}))},ta.clone=function(e){return ea({},e)},ta.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},ta.updateObject=function(e,t){Object.keys(e).length?ta.apply(e,ta.generate(e,t)):ea(e,t)};const ca=[[2,4,6],[2,4],[3]],ua=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function da(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function ma(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)da(e[r],t,n)}!function(){let e,t;for(ma(ca,1,10),e=0;e<ua.length;e++)if(ua[e])for(t=0;t<ua[e].length;t++)Array.isArray(ua[e][t])&&ma(ua[e][t])}();const pa={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=pa.findSegmentPositionMeetMin(e,t);return pa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=pa.findSegmentPositionMeetMax(e,n);return pa.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=pa.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=pa.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let c,u=0;for(o=i;o>0&&(a=e[o],s=e[o-1],c=Math.max(0,pa.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));o--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,o=0;o<=i;o++)a=e[o],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)pa.layoutPositionFromMin(e,t,n,r),pa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=pa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},fa=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},ha=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ga=e=>e.filter(ha),ya=(e,t)=>ga(ge.getValue(e,t,[])),va=e=>ha(e)&&(!1!==e.showValue||!1!==e.showLabel),ba=e=>e.filter(va),xa=(e,t)=>ba(ge.getValue(e,t,[])),Sa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,Ea=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},Ma=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},Ca=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},Oa=({value:e,qMin:t})=>"NaN"!==t&&e<t,wa=({value:e,qMax:t})=>"NaN"!==t&&e>t,Ta={isRefLineVisible:ha,getVisibleRefLines:ga,getRefLines:ya,getMeasureRefLines:e=>ya(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:ya(e,"refLine.dimRefLines"),isRefLineLabelVisible:va,getVisibleRefLineLabels:ba,getRefLineLabels:xa,getMeasureRefLineLabels:e=>xa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:xa(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=fa(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=fa(s,i,o,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===c?s(n):c)+l}return l=fa(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=ge.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ge.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ge.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),m=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():i?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],i=t+m,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+m,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),o},getInputValue:Sa,extractInfoFromInputValue:Ea,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Sa({refLineLayout:e,layoutService:n});return Ea(r,t,"id")},isDiscreteMinOutOfBounds:Ma,isDiscreteMaxOutOfBounds:Ca,isContinuousMinOutOfBounds:Oa,isContinuousMaxOutOfBounds:wa,isOutOfRange:({value:e,qMin:t,qMax:n})=>Oa({value:e,qMin:t})||wa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&Ca({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&Ma({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},Aa="…";function Ra(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,3,n),i.maxNumLines=i.lines.length}}function ka({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=Zo.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function Na({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>ka({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function Ia(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const La=3,Pa=2;function Da({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const qa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(Ta.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(Ta.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return Ta.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:Ta.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},za={hasEngineFormat:Da,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=Ta.getInvert({orientation:i,rtl:o,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let m,p;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");m=e.qMin,p=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:c,valueInfo:d}=o,f=qa({label:o,dataPages:u,qMin:m,qMax:p});o.scaledValue=1===f?l?-.1:1.1:-1===f?l?1.1:-.1:Ta.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=Da({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,r.title=za.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=Da({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=za.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Ae.lrm}(${o})${Ae.lrm}`,n.title=za.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((e=>t(e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=za.getTotalNumLines(e)-r;if(t<=0)return;za.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,za.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:m,layoutService:p,isContinuous:f,isDimension:h}){const g=e.map((e=>e)),y=n;za.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:p,orientation:u,rtl:m,isContinuous:f,isDimension:h}),Ia(e,"center"),za.addLabelsNeighborInfo(e,r,i,o),Ra(e,a,s),za.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===u&&(za.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines.length>i.maxNumLines&&(i.lines=Zo.tokenize(i.title,t,`${Aa} ${i.valueString}`,i.maxNumLines,n))}}(e,a,s)),za.addLabelsSize(e,s,l,d),za.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=i,{fontSize:d,fontFamily:m,background:p}=t;let f=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const p={type:"text",text:t,title:ka({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),dx:0,dy:0,maxWidth:n,width:n,fontSize:d,fontFamily:m,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return p[l]=u,p[s]=e.segment.position,p.y+=(i-(r-1)/2)*o,p}));e.background&&f.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=La,padding:c={}}=a,{top:u=Pa,bottom:d=Pa,left:m=Pa,right:p=Pa}=c,f=s.length,h={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(m+p),height:i.height+(u+d),value:i.value,dock:r};return h[n]=e,h[t]=i.segment.position,h.x-=i.width/2+m,h.y-=f*o/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:o,background:p})),f=f.concat(i)})),f}};function $a(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function _a(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:i,bottom:o,maxLabelWidth:a}=t;let s=1;return za.getMaxTextWidth(e)>a&&(Ra(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+i+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,za.getMaxTextWidth(e))+n+r}(t,n)}function ja(e,t){return t?e.domain():[0,1]}function Fa(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function Ba(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function Ha(e,t){return e>9?t[1]:t[0]}function Va({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:m,minorAxis:p,minorDimension:f,dock:h}=s,g=i[f],y=Qo.createOob({oob:Qo.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=h;const v=`c${m}`,b=`c${p}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:Na({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[p]=g/2,S[m]=a,[y,x,S]}function Ua(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:Zo.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const Wa=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Ya={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=Wa(this.settings.labels),s=$a(this.chart,this.settings.formatter,e);za.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=ja(t,n);return Fa(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Fa(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),u&&u.length){const e=Ua(t.label),{dock:n}=this.settings.layout;return za.measureLabelsWidth(u,this.measureText),d=_a(n,u,e),d}const m=Ba(this.measureText),p=l?Ha(l,m):0,f=c?Ha(c,m):0;return d=Math.max(p,f),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,c=Wa(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:m}=n.label,p=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),f=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,p,m),{orientation:h,majorDimension:g}=p,{majorSize:y}=f,{font:v,lineHeight:b,gap:x,maxLabelWidth:S}=Ua(n.label),E=$a(this.chart,this.settings.formatter,e),M=y;za.addLabelTitles({labels:c,formatter:E,isContinuous:o,canBeContinuous:l,localeInfo:s}),za.calculateLabelPositions({labels:c,scale:e,size:M,layoutService:r,orientation:h,rtl:d,isContinuous:o,isDimension:a});const[C,O]=ja(e,o),{filteredLabels:w,lowerOobs:T,upperOobs:A,lowerCircleSize:R,upperCircleSize:k,lowerOobSpace:N,upperOobSpace:I}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:m}=Fa(e,t,n,c),p="scaledValue"!==c&&Ta.getInvert({orientation:r,rtl:i,isContinuous:o}),f=function(e,t,n){return n?t:e}(d,u,p),h=function(e,t,n){return n?e:t}(d,u,p),g=f.length,y=h.length,v=Ba(l),b=Ha(g,v),x=Ha(y,v),S=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),E=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:m,lowerOobs:f,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:E}}({labels:c,minValue:C,maxValue:O,orientation:h,rtl:d,isContinuous:o,style:n,padding:m,measureText:this.measureText,prop:o?"value":"scaledValue"}),L=N,P=y-I;Ia(T),Ia(A);const D=Va({alignment:0,dockValue:0,oobs:T,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+R/2,areaProps:p,radius:R/2,font:v}),q=Va({alignment:1,dockValue:1,oobs:A,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+k/2),areaProps:p,radius:k/2,font:v});za.addLabelsInfo({labels:w,scale:e,majorSize:y,lowerLimit:L,upperLimit:P,font:v,lineHeight:b,gap:x,maxLabelWidth:S,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),pa.layout(w.map((e=>e.segment)),L,P,n.label.gap);const z=w.filter((e=>pa.isInside(e.segment,L,P,o)));return za.createLabels({labels:z,style:n.label,maxLabelWidth:S,areaProps:p,area:f,lineHeight:b,font:v,theme:i}).concat([...D,...q])}};var Ga={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function Xa(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=le(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=Ga;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==E(l,e)&&M(l,e,null);else{const e=t[0],n=t[1].split("].")[1];E(l,e,[]).forEach((e=>{void 0!==E(e,n)&&M(e,n,null)}))}})),l}var Ka={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=Xa(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=Xa(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Ja,extractInfoFromInputValue:Za,resolveValue:Qa}=Ta;var es={resolveValue:Qa,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Ja({refLineLayout:e,layoutService:n});return Za(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=Ja({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Ja({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const ts=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var m,p;const f={dir:l,line:{strokeWidth:(null==t||null===(m=t.style)||void 0===m?void 0:m.lineThickness)||2,strokeDasharray:null==t||null===(p=t.style)||void 0===p?void 0:p.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(f.scale=s,f.value=t.refLineExpr.value):(f.valueInfo=es.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),f.value=()=>{var e;const i=Ta.getScaledPosition({scale:a.scale(s),value:es.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:f.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),f};function ns({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:m,minimumLayoutMode:p}){const f=e?t.dimensionRefLines:m?t.query.getRefLines(m):t.measureRefLines;if(!f.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:p},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:Ka.lines.trackBy,compensateForLayoutChanges:Ka.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return f.forEach((o=>{h.lines[l].push(ts({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const rs={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},is=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:m})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:m,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:Ka.refLineLabels.trackBy,compensateForLayoutChanges:Ka.refLineLabels.compensateForLayoutChanges}}),os=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>es.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>es.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>es.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function as({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:m,path:p}){const f=e?t.dimensionRefLineLabels:p?t.query.getRefLineLabels(p):t.measureRefLineLabels;if(!f.length)return[];const h=[],g=!e||n.meta.isContinuous,y=f.map((e=>os({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push(is({isDimension:e,rtl:d,style:le(!0,rs,s),dock:o,key:m,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:c,isContinuous:g,localeInfo:u})),h}function ss({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=xe.dimensionless(o),l=Ta.getMeasureRefLines(o),c=Ta.getDimensionRefLines(o,s),u=Ta.getMeasureRefLineLabels(o),d=Ta.getDimensionRefLineLabels(o,s);let m={},p={};const f=()=>!(!c||!c.length)&&!c.every((t=>{const o=Ta.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return Ta.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 Ta.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=>Ta.getRefLines(o,e),getRefLineLabels:e=>Ta.getRefLineLabels(o,e)},update:()=>{p=h.dimensionRefLineInfo,f()&&(m=Ta.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),h.dimensionValuesInfo=m,c.forEach((t=>{const n=Ta.getInputValue({refLineLayout:t,layoutService:e});m[n]&&(p[n]?(p[n].innerValues=m[n].innerValues,p[n].minOrder=Math.min(p[n].minOrder,m[n].minOrder),p[n].maxOrder=Math.max(p[n].maxOrder,m[n].maxOrder),p[n].isMinOrderOk=p[n].isMinOrderOk||m[n].isMinOrderOk,p[n].isMaxOrderOk=p[n].isMaxOrderOk||m[n].isMaxOrderOk):p[n]={id:m[n].id,qText:m[n].qText,innerValues:m[n].innerValues,minOrder:m[n].minOrder,maxOrder:m[n].maxOrder,isMinOrderOk:m[n].isMinOrderOk,isMaxOrderOk:m[n].isMaxOrderOk},p[n].numInnerValues=(p[n].maxOrder||0)-(p[n].minOrder||0)+1)})))}};return h.update(),h}function ls(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}var cs={DATA:{MAIN:"qHyperCube",REDUCED:"reduced-data"},SCALE:{MAJOR:"main-major",MAJOR_INNER:"major-inner",MINOR:{PRIMARY:"minor-primary",SECONDARY:"minor-secondary",REDUCED_PRIMARY:"reduced-minor-primary",REDUCED_SECONDARY:"reduced-minor-secondary"},COLOR:"color",REDUCED:"reduced-major"},COMPONENT:{BAR:"bar-series",BAR_LABEL:"bar-label",BAR_OOB_LABEL:"bar-oob-label",STACK_BAR:"stack-bar",STACK_BAR_LABEL:"stack-bar-label",AXIS:{MAJOR:"major-axis",MAJOR_CONTINUOUS:"major-axis-continuous",TIME_INNER:"major-axis-time-inner",TIME_OUTER:"major-axis-time-outer",MINOR:{PRIMARY:"minor-primary-axis",SECONDARY:"minor-secondary-axis"}},AXIS_OVERLAY:{TIME_INNER:"axis-overlay-time-inner",TIME_OUTER:"axis-overlay-time-outer",CONTINUOUS:"axis-overlay-continuous"},AXIS_TITLE:{MAJOR:"major-axis-title",MINOR:{PRIMARY:"minor-primary-axis-title",SECONDARY:"minor-secondary-axis-title"}},MARKER:"marker-series",LINE:"line-series",POINT:"point-component",LABEL_SPACE:"label-space-component",POINT_LABEL:"point-label",GRID_LINE:"grid-line",ZERO_LINE:"zero-line",LEGEND:"legend",LEGEND_CATEGORICAL:"legend-cat",LEGEND_TOOLTIP:"legend-tooltip",TOOLTIP:"tooltip-qcm",MINI_CHART:{BAR:"mini-chart-bar-series",LINE:"mini-chart-line-series",MARKER:"mini-chart-marker-series"},BAR_OOB:"bar-oob",GHOST_BAR_OOB:"ghost-bar-oob",SLICED_HAT:"sliced-hat",DATA_OOB_MARKER:"data-out-of-bounds-marker",PRIMARY_MEASURE_AXIS_REF_LINE:"primary-mes-axis-ref-line",SECONDARY_MEASURE_AXIS_REF_LINE:"secondary-mes-axis-ref-line",DIMENSION_REF_LINE:"dim-ref-line",PRIMARY_MEASURE_AXIS_REF_LINE_LABEL:"primary-mes-ref-line-label",SECONDARY_MEASURE_AXIS_REF_LINE_LABEL:"secondary-mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label"},COLLECTION:{PRIMARY:"primary-collection",SECONDARY:"secondary-collection",STACKED_PRIMARY:"stacked-collection-primary",STACKED_SECONDARY:"stacked-collection-secondary",STACKED_TOTAL_PRIMARY:"stacked-total-collection-primary",STACKED_TOTAL_SECONDARY:"stacked-total-collection-secondary",REDUCED:"reduced-collection",REDUCED_PRIMARY:"reduced-collection-primary",REDUCED_SECONDARY:"reduced-collection-secondary",REDUCED_STACKED_PRIMARY:"reduced-collection-stacked-primary",REDUCED_STACKED_SECONDARY:"reduced-collection-stacked-secondary",LINE:"line-collection"},FORMATTER:{PRIMARY:"primary-formatter",SECONDARY:"secondary-formatter"}},us={TYPE:{LINE:"line",BAR:"bar",MARKER:"marker"},AXIS:{PRIMARY:0,SECONDARY:1},NOPE_SERIES:{type:"bar",axis:0}};const ds={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function ms(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const ps={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function fs(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,c;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var u;if(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await ps.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function hs(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",m=u.type||"media";let p=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){p=e;break}const f=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let h;if(-1!==p&&f[p]&&(h=f[p]),"media"===m&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return fs(u,d,s);if("url"===m)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&ms(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await ps.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await ps.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===m&&h&&h.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(ms(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await ps.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[p],d,h)}return[]}const gs={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(hs(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},ys={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await gs.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>gs.checkIfPromisesExist({customTooltipModel:e})};const vs=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:ds.CHART.CHART_PARENT_TYPE,qId:ds.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},bs=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:ds.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const xs={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=ds.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:ds.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await xs.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=ds.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=ds.CHART.STATE,a=vs(t,o),s=await e.createSessionObject(a),l=bs(t);if(s.id!==ds.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,m;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var p,f;const e=null!==(p=n[0].data.selectionOuterDimension)&&void 0!==p?p:n[0].data.selectionDimension;if(null!=e&&null!==(f=e.source)&&void 0!==f&&f.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(ds.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(m=s.miniChartToken.model)||void 0===m?void 0:m.genericType})}}catch(t){await xs.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(xs.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(ds.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=ds.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function Ss(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Es(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=ds.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function Ms(e){const t=Es();return e.filter((e=>t[e.id]))}const Cs={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=Cs.getAttrExprData(a);o.length||n.length?ys.handlePromises({customTooltipModel:i,nodes:Cs.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&xs.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>ys.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[ds.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[ds.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[ds.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Ms(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[ds.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[ds.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Ss(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===Ms(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=Ss(e)||[];[...i,t].forEach((e=>{const t=Ms(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=Es(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Ae.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Ae.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function Os(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case ds.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case ds.CUSTOM.TITLE:case ds.CUSTOM.DESCRIPTION:case ds.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const ws={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>Os(t,e,r,n)}}};const Ts={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[ds.CUSTOM.TITLE]:!0,[ds.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=Cs.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===ds.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===ds.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Re.getMeasure(e,t))),e,i)}};function As({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(Ts.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}const{CUSTOM:Rs}=ds;function ks({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:Cs,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),m="rtl"===c.direction,p=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>p(),hideBasic:()=>p()&&E(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=As({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===Rs.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>Cs.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>Cs.getImageRow(e,{h:t,rtl:m}),addImages:({nodes:r})=>{const i=Cs.getDataNodes(o,r),{attrExps:a}=Cs.getAttrExprData(t);return ys.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(p()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>xs.createContainer({layout:t,ctx:{h:e,rtl:m}}),createLimitationRow:()=>Cs.getFooterRow(a.get("properties.tooltip.notselectedmessage"),m),show:({nodes:e,properties:t})=>xs.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:m}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>xs.hide({app:n,customTooltipModel:d}),destroy:()=>xs.destroyVisualization({customTooltipModel:d})}}}function Ns({key:e,source:t,layoutService:n,fieldModel:r,colorService:i,series:o}){const{meta:a}=n;if(a.isBarSeriesStacked){const{major:a,majorNumeric:s}=r.main,l=o.filter((e=>e.type===us.TYPE.BAR)),c=n.meta.isContinuous?s:a,u=e=>"NaN"!==e.qNum?e.qNum:0;return[{key:e,data:{extract:l.map((({ref:e,typeIndex:r,refIndex:o})=>({source:t,field:a,value:n.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},segment:{field:e,value:u,reduceLabel:"none"},end:{field:e,value:u,reduceLabel:"none"},null:{fields:l.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},typeIndex:r,...i.getDatumProps(o),customTooltipAttrExps:ws.getNode(n.getLayout(),n.meta),sumOfPositives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:l.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"}}}))),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}]}return[]}function Is({key:e,series:t,source:n,fieldModel:r,colorService:i,layoutService:o,forceCreate:a=!1}){if(t.length||a){const{major:a,majorNumeric:s}=r.main,l=e=>"NaN"!==e.qNum?e.qNum:0,c=o.meta.isContinuous?s:a;return[{key:e,data:{extract:t.map((({ref:e,refIndex:t,typeIndex:r,options:s},u)=>({source:n,field:a,value:o.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:c},selectionDimension:{field:a},end:{field:e,value:s.showAsZeros?l:void 0,reduceLabel:"none"},start:0,line:u,typeIndex:r,null:{field:e,value:e=>"NaN"===e.qNum,reduceLabel:"none"},customTooltipAttrExps:ws.getNode(o.getLayout(),o.meta),...i.getDatumProps(t)}})))}}]}return[]}function Ls({key:e,layoutService:t,fieldModel:n,series:r}){const{meta:i}=t;if(i.isBarSeriesStacked){const{major:t,majorNumeric:o}=n.main,a=r.filter((e=>e.type===us.TYPE.BAR)),s=i.isContinuous?{field:o,value:e=>e.qNum,reduceLabel:"none"}:[];return[{key:e,data:{extract:{field:0,props:{major:{field:i.isContinuous?o:t},null:{fields:a.map((e=>({field:e.ref}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"},sumOfPositives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:a.map((e=>({field:e.ref}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},timeStart:s,timeEnd:s},value:i.isContinuous?e=>e.qNum:void 0}}}]}return[]}const Ps={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var Ds={OPTIONS:Ps,DEFAULT:Ps.MINI_CHART};function qs({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<o){const e=(o-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function zs({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const $s=e=>({miniChart:e===Ds.OPTIONS.MINI_CHART.value,bar:e===Ds.OPTIONS.BAR.value,none:e===Ds.OPTIONS.NONE.value}),_s=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return $s(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return $s(Ds.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return $s(!n&&(r||!r&&i)?Ds.OPTIONS.NONE.value:Ds.OPTIONS.MINI_CHART.value)};function js({layoutService:e,override:t}){const n=_s({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===Ds.OPTIONS.MINI_CHART.value,n.bar=t.value===Ds.OPTIONS.BAR.value,n.none=t.value===Ds.OPTIONS.NONE.value),n}function Fs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),m="horizontal"===o.meta.major.orientation,p=m?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,f=m?d.rect.computedInner.width:d.rect.computedInner.height,h=m&&a?f-p:p,g=Math.max(0,Math.min(h/f,1)),[y,v]=zs({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*f:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function Bs({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,m]=zs({layoutService:i,viewState:n,viewCache:r});return{size:u,thumbSize:(m-d)*u}}}function Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const Vs="data-scrollbar-handle";function Us({e:e}){return(e.srcEvent||e).srcElement.getAttribute(Vs)||""}const Ws="scrollbarResize",Ys=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${Ws}`,options:{event:Ws,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[Ws]=this[Ws]||{},Ys(t)&&Us({e:t})&&(this[Ws].panningEvent=t.srcEvent),!!this[Ws].panningEvent))}},events:{[`${Ws}start`](n){n.preventDefault(),this[Ws]=this[Ws]||{},this[Ws].panningEvent&&t.component(e).emit("dragStart",this[Ws].panningEvent)},[`${Ws}move`](n){if(n.preventDefault(),this[Ws]=this[Ws]||{},!this[Ws].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),c=i.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=Us({e:this[Ws].panningEvent});let m="start"===d?Math.min(u,o.max):o.min,p="end"===d?Math.max(u,o.min):o.max;m===p&&(m-="start"===d?c:0,p+="end"===d?c:0),r.set("zoom",{min:m,max:p}),t.component(e).emit("render")},[`${Ws}end`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")},[`${Ws}cancel`](n){n.preventDefault(),this[Ws]=this[Ws]||{},delete this[Ws].panningEvent,t.component(e).emit("dragEnd")}}}}const Xs="scrollbarPan";function Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const c=Fs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),u=Bs({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${Xs}`,options:{event:Xs,threshold:0,enable(r,i){return this[Xs]=this[Xs]||{},!(i&&!this[Xs].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${Xs}start`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},this[Xs].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[Xs].relative=a.relative,this[Xs].zoom=r.get("zoom"),this[Xs].zoom.span=this[Xs].zoom.max-this[Xs].zoom.min,this[Xs].zoom.fullSpan=o-n}else if(a.onThumb)this[Xs].offset=a.thumb;else{const e=u();this[Xs].offset=a.beforeThumb?0:e.thumbSize}},[`${Xs}move`](n){n.preventDefault();const a=c(n);if(this[Xs]=this[Xs]||{},o.meta.isContinuous){const e=a.relative-this[Xs].relative,{fullSpan:t,span:n,min:o,max:s}=this[Xs].zoom,l=i.get("continuousMin"),c=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[Xs].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${Xs}end`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")},[`${Xs}cancel`](n){n.preventDefault(),this[Xs]=this[Xs]||{},this[Xs].isPanning=!1,t.component(e).emit("unlockState")}}}}function Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[Hs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),Gs({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),Ks({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function Zs({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}const Qs={background:"rgba(0, 0, 0, 0.1)"},el={top:-1,bottom:-1,width:6},tl={width:2,background:"#595959"};var nl={before:Qs,after:Qs,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:el,endHandle:el,startHandleBorder:tl,endHandleBorder:tl};const rl={background:"rgba(0, 0, 0, 0.1)"},il={top:-1,bottom:-1,width:6},ol={width:2,background:"#595959"};var al={before:rl,after:rl,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:il,endHandle:il,startHandleBorder:ol,endHandleBorder:ol};const sl={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},ll={pointerEvents:"initial"},cl={pointerEvents:"none"};const ul="ew-resize",dl="default";function ml(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function pl(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?ul:dl}function fl(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function hl(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function gl(){const{size:e,start:t,end:n}=ml.call(this);this.renderer.render(this.elements(this.h,fl.call(this,e,t,n)))}function yl(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?al:nl;return{container:{...sl},before:{...sl,...n.before,...t.before},after:{...sl,...n.after,...t.after},thumb:{...sl,...n.thumb,...t.thumb},startHandle:{...sl,...ll,...n.startHandle},endHandle:{...sl,...ll,...n.endHandle},startHandleBorder:{...sl,...cl,...n.startHandleBorder},endHandleBorder:{...sl,...cl,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var vl={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){gl.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!hl.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=Us({e:e});t&&(this.state.hover[t]=!0),pl.call(this),gl.call(this)},leave(){this.state.locked||(this.state.hover.reset(),pl.call(this),gl.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=Us({e:e});t&&(this.state.drag[t]=!0),pl.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),pl.call(this),gl.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=ml.call(this);return this.elements(e,fl.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[i.end]:t-n},m={[i.start]:r},p={left:-3},f={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?m:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:m},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:p},class:"scrollbar--start-handle",[Vs]:"start"},o?e("div",{style:{...s.startHandleBorder,...c?g:f}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?p:h},class:"scrollbar--end-handle",[Vs]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?f:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:yl.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};function bl({layoutService:e}){return e.meta.isContinuous&&js({layoutService:e}).miniChart}function xl({models:e}){const{layoutService:t,fieldModel:n,seriesModel:r,colorService:i}=e,{primarySeries:o,secondarySeries:a}=r.meta,s=r.query.series(us.TYPE.LINE),l=[...Is({forceCreate:!0,key:cs.COLLECTION.PRIMARY,series:o,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.SECONDARY,series:a,fieldModel:n,colorService:i,layoutService:t}),...Is({key:cs.COLLECTION.LINE,series:s,fieldModel:n,colorService:i,layoutService:t}),...Ns({key:cs.COLLECTION.STACKED_PRIMARY,layoutService:t,fieldModel:n,colorService:i,series:o}),...Ns({key:cs.COLLECTION.STACKED_SECONDARY,layoutService:t,fieldModel:n,colorService:i,series:a}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_PRIMARY,layoutService:t,fieldModel:n,series:o}),...Ls({key:cs.COLLECTION.STACKED_TOTAL_SECONDARY,layoutService:t,fieldModel:n,series:a})];return bl(e)&&(l.push(...Is({key:cs.COLLECTION.REDUCED,source:cs.DATA.REDUCED,series:r.query.all(),fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_PRIMARY,source:cs.DATA.REDUCED,series:o,fieldModel:n,colorService:i,layoutService:t})),l.push(...Is({key:cs.COLLECTION.REDUCED_SECONDARY,source:cs.DATA.REDUCED,series:a,fieldModel:n,colorService:i,layoutService:t})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_PRIMARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.primarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i})),l.push(...Ns({key:cs.COLLECTION.REDUCED_STACKED_SECONDARY,source:cs.DATA.REDUCED,layoutService:t,fieldModel:n,series:r.meta.secondarySeries.filter((e=>e.type===us.TYPE.BAR)),colorService:i}))),l}const Sl=({layoutService:e,dockService:t})=>"custom"!==e.getLayoutValue("dimensionAxis.axisDisplayMode")?Math.min(200,t.meta.chart.size["horizontal"===t.meta.major.orientation?"height":"width"]/4):void 0;function El({models:e}){const{dockService:t,seriesModel:n,layoutService:r}=e,i=2===n.meta.measureAxes.length;if(i)return.5;const o=n.meta.measureAxes[0].isPrimary?t.meta.minor.dock:t.meta.minorSecondary.dock;if(!i){const e=n.meta.measureAxes[0].isPrimary?0:1;if("none"===r.getLayoutValue(`measureAxes.${e}.show`))return.5}return"horizontal"===t.meta.minor.orientation?"near"===o||"bottom"===o?1:0:"near"===o||"left"===o?0:1}const Ml=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{data:{extract:{field:n.main.major,props:{selectionDimension:{field:n.main.major}}}},maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}},Cl=({models:e,environment:t})=>{const{fieldModel:n,discreteModel:r,layoutService:i,dockService:o}=e,{orientation:a}=o.meta.major;return{type:"group-by-measure",data:{extract:{field:n.main.major}},measureCount:i.meta.groupSize,maxPxStep:Sl({layoutService:i,dockService:o}),invert:"horizontal"===a&&"rtl"===t.options.direction,range:r.query.getScaleRange,align:El({models:e})}};function Ol({viewState:e,models:t,environment:n}){const{fieldModel:r,dockService:i}=t,{orientation:o}=i.meta.major;return{type:"linear",invert:"horizontal"===o&&"rtl"===n.options.direction,data:{extract:{field:r.main.majorNumeric}},ticks:{forceBounds:!0,count:e.get("zoom").min===e.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>e.get("zoom").min,max:()=>e.get("zoom").max}}function wl({viewCache:e,mainMajor:t}){return le(!0,{},t,{min:()=>e.get("continuousMin"),max:()=>e.get("continuousMax")})}function Tl({viewState:e,viewCache:t,layoutService:n}){return t.set("qTimeAxisCache",[]),{get:(e,n=0)=>{const r=t.get("qTimeAxisCache");return r[n]&&r[n][0]===e?r[n][1]:void 0},set:(e,n,r=0)=>{t.get("qTimeAxisCache")[r]=[e,n]},key:({distance:r})=>{const{min:i,max:o}=e.get("zoom"),a=(o-i)/(t.get("continuousMax")-t.get("continuousMin")),s=n.getHyperCubeValue("qAxisData.qAxis",[]).map((e=>e.qName));return[r,Number.parseFloat(a).toFixed(12),...s].toString()}}}function Al({picasso:e,viewState:t,viewCache:n,models:r,environment:i}){const{layoutService:o,fieldModel:a,appLayoutModel:s,themeService:l}=r,{measureText:c}=e.renderer("svg")(),{majorNumeric:u}=a.main,d=l.getStyles(),m={type:"time",data:{field:u},qAxis:()=>o.getHyperCubeValue("qAxisData.qAxis",[]),field:u,min:()=>t.get("zoom").min,max:()=>t.get("zoom").max,invert:"rtl"===i.options.direction,formatter:{fn:e.formatter("q-time"),localeInfo:s.qLocaleInfo,qNumFormat:o.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:e=>c({text:e,fontFamily:d.axis.label.name.fontFamily,fontSize:d.axis.label.name.fontSize})},ticks:{generator:{type:"d3",initialMin:t.get("zoom").min},anchor:"start",clamp:!0},cache:Tl({viewState:t,viewCache:n,layoutService:o})};return{[cs.SCALE.MAJOR]:le(!0,{},m,{ticks:{level:"outer"}}),[cs.SCALE.MAJOR_INNER]:le(!0,{},m,{ticks:{level:"inner"}})}}function Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{meta:o}=t.layoutService,a=o.isTime?{...Al({picasso:e,viewState:n,viewCache:r,models:t,environment:i})}:o.isContinuous?{[cs.SCALE.MAJOR]:Ol({models:t,viewState:n,environment:i})}:o.isBarSeriesGrouped?{[cs.SCALE.MAJOR]:Cl({models:t,environment:i})}:{[cs.SCALE.MAJOR]:o.isBarSeriesStackedInBothAxis?Cl({models:t,environment:i}):Ml({models:t,environment:i})};return bl(t)?{...a,[cs.SCALE.REDUCED]:wl({viewCache:r,mainMajor:a[cs.SCALE.MAJOR]})}:a}function kl({fields:e,tickModel:t,dockService:n,environment:r}){const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{data:{source:"qHyperCube",fields:e},invert:"vertical"===o||i,ticks:{values:t.query.getValues},min:t.query.getMin,max:t.query.getMax}}function Nl({layoutService:e,tickModel:t,dockService:n,environment:r}){if(!bl({layoutService:e}))return;const i="rtl"===r.options.direction,{orientation:o}=n.meta.minor;return{type:"linear",invert:"vertical"===o||i,min:t.query.getMin,max:t.query.getMax}}function Il({picasso:e,models:t,viewState:n,viewCache:r,environment:i}){const{layoutService:o,fieldModel:a,primaryTickModel:s,secondaryTickModel:l,colorService:c,dockService:u}=t;return{...Rl({picasso:e,models:t,viewState:n,viewCache:r,environment:i}),[cs.SCALE.MINOR.PRIMARY]:kl({fields:a.main.minorsPrimary,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.SECONDARY]:kl({fields:a.main.minorsSecondary,tickModel:l,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_PRIMARY]:Nl({layoutService:o,tickModel:s,dockService:u,environment:i}),[cs.SCALE.MINOR.REDUCED_SECONDARY]:Nl({layoutService:o,tickModel:l,dockService:u,environment:i}),...c.custom.wrappedScales()}}var Ll={AXIS:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"SMALL"},VERTICAL:{width:"SMALL",height:"XSMALL"}},MINOR:"XSMALL"},AXIS_TITLE:{MAJOR:{HORIZONTAL:{width:"XSMALL",height:"MEDIUM"},VERTICAL:{width:"MEDIUM",height:"XSMALL"}},MINOR:"SMALL"},GRID_LINE:"XSMALL",VALUE_LABEL:"XSMALL",LABEL_SPACE:"XSMALL",OUT_OF_BOUNDS_MARKER:"XSMALL",REFERENCE_LINE:"SPARK"};const Pl=["all","labels"];function Dl({models:e,flags:t}){const{layoutService:n,dockService:r,seriesModel:i,themeService:o,styleModel:a}=e,s=n.getLayoutValue("measureAxes");if(!s||!s.length)return[];const l=o.getStyles(),c=a.query.axis.label.getStyle(),{measureAxes:u}=i.meta;return u.filter((e=>{const t=e.isPrimary?0:1;return Pl.some((e=>s[t].show===e))})).map((e=>({type:"axis",key:e.isPrimary?cs.COMPONENT.AXIS.MINOR.PRIMARY:cs.COMPONENT.AXIS.MINOR.SECONDARY,renderer:ls(t),scale:e.scale,layout:{dock:e.isPrimary?r.meta.minor.dock:r.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS.MINOR},settings:{labels:{show:!0,fontFamily:c.fontFamily,fontSize:c.fontSize,fill:c.fill},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}}})))}var ql={INACTIVE:.5},zl={LOWER:3,UPPER:13};const $l=({layoutService:e})=>{const t=e.getHyperCubeValue("qDimensionInfo.0.qApprMaxGlyphCount"),[n]=e.getDataPages(),r=n?n.qMatrix:[];return Ce.getAdjustedMaxGlyphCount(t,r,0,"qText")};function _l({models:e,environment:t,flags:n}){const{layoutService:r,dockService:i,styleModel:o}=e,a="rtl"===t.options.direction,s=r.getLayoutValue("dimensionAxis"),l=o.query.axis.label.getStyle(),c=$l({layoutService:r}),{orientation:u}=i.meta.major,d="horizontal"===u?s.label:"auto";return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR,renderer:ls(n),scale:cs.SCALE.MAJOR,layout:{dock:i.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[u.toUpperCase()]},settings:{labels:{mode:s.label,tiltAngle:a?-40:40,maxEdgeBleed:50,maxLengthPx:"horizontal"===d?void 0:i.meta.minor.size/4,maxGlyphCount:c,tiltThreshold:c>zl.LOWER&&c<zl.UPPER?1:void 0,fontFamily:l.fontFamily,fontSize:l.fontSize,fill:l.fill},line:{show:!1},paddingEnd:4},brush:{consume:[{context:"selection",style:{inactive:{opacity:ql.INACTIVE}}}]}}}function jl({models:e,flags:t}){const{dockService:n,styleModel:r}=e,{orientation:i}=n.meta.major,o=r.query.axis.label.getStyle();return{type:"axis",key:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,renderer:ls(t),scale:cs.SCALE.MAJOR,layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[i.toUpperCase()]},settings:{labels:{align:0,offset:4,fontFamily:o.fontFamily,fontSize:o.fontSize,fill:o.fill},line:{show:!1}}}}function Fl({models:e,environment:t,flags:n}){const{layoutService:r}=e,i=r.getLayoutValue("dimensionAxis");if(!i)return[];const{show:o}=i;return"none"===o||"title"===o?[]:r.meta.isTime?function({models:e,environment:t}){const{dockService:n,themeService:r,styleModel:i}=e,o="rtl"===t.options.direction,{orientation:a}=n.meta.major,s="bottom"===n.meta.major.dock?0:1,l=r.getStyles(),c=i.query.axis.label.getStyle(),u=o?1:0,d={type:"time-axis",renderer:"svg",layout:{dock:n.meta.major.dock,minimumLayoutMode:Ll.AXIS.MAJOR[a]},preferredSize:()=>({size:2*parseFloat(c.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:o?"end":"start",label:{align:s,justify:u},guideLine:{major:{justify:u},minor:{align:s}},line:{show:!1}},style:{label:{fontFamily:c.fontFamily,fontSize:c.fontSize,fill:c.fill},majorGuideLine:{stroke:l.axis.line.major.color},minorGuideLine:{stroke:l.axis.line.minor.color}}};return[le(!0,{},d,{key:cs.COMPONENT.AXIS.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}}},style:{majorGuideLine:{stroke:l.axis.line.minor.color},minorGuideLine:{stroke:l.axis.line.major.color}}}),le(!0,{},d,{key:cs.COMPONENT.AXIS.TIME_OUTER,scale:cs.SCALE.MAJOR,settings:{guideLine:{minor:{show:!1}}}})]}({models:e,environment:t}):r.meta.isContinuous?[jl({models:e,flags:n})]:[_l({models:e,environment:t,flags:n})]}const Bl=({layoutService:e,axis:t})=>e.meta.isBarSeriesGrouped?({scale:e,datum:t})=>e([t.value,t.typeIndex.value])+e.bandwidth()/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:n})=>e([n.value,t])+e.bandwidth()/2:null,Hl=({layoutService:e,seriesModel:t,rtl:n,orientation:r})=>e.meta.isContinuous?null:e.meta.isBarSeriesGrouped?({scale:e,datum:i})=>e([i.value,n&&"horizontal"===r?t.meta.barSeriesCount-1:0])+e.bandwidth()*t.meta.barSeriesCount/2:e.meta.isBarSeriesStackedInBothAxis?({scale:e,datum:t})=>e([t.value,n&&"horizontal"===r?1:0])+e.bandwidth():null;function Vl({layoutService:e,active:t={},inactive:n={}}){return{consume:[{context:"selection",data:["selectionDimension","end","color","major"],style:{active:{strokeWidth:e.meta.isContinuous?0:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1},...t},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:ql.INACTIVE},...n}}}]}}var Ul={MAX:"max",MIN:"min"};function Wl(e,t){return function(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r}(e,t)||function(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r}(e,t)}const Yl=(e,t)=>`${e}-${t.id}`,Gl=4,Xl=12,Kl=4;function Jl({chart:e,layoutService:t,dockService:n,markerKey:r,markerType:i}){if(t.meta.isContinuous)return()=>`${Kl}px`;const o={size:void 0},a="horizontal"===n.meta.major.orientation?"width":"height";return t=>{if(!o.size){const n=e.component(r),s=t.resources.scale(cs.SCALE.MAJOR),l=n.rect[a]*s.bandwidth()*.25,c=Math.max(Gl,Math.min(Xl,l));o.size=`${"bar"===i?2*c:c}px`}return o.size}}const{isDark:Zl}=Rt;const Ql=({chart:e,models:t,series:n,environment:r})=>{const{layoutService:i,seriesModel:o,colorService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c}=t,u=a.getColor(),{fill:d,marker:m}=n.options,{isContinuous:p}=i.meta,f="rtl"===r.options.direction,{orientation:h}=s.meta.major,g="horizontal"===h,y=(n.isPrimary?l:c).query.getExtrema(),v=({end:e})=>{const{value:t}=e;return Wl(t,y)},b=Yl(cs.COMPONENT.MARKER,n);return{type:"point",key:b,data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{[g?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:i,seriesModel:o,rtl:f,orientation:h}),ref:p?"major":void 0},[g?"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:d||"bar"===m?u:"none",opacity:e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)||v(e.datum)?0:1},stroke:e=>{const t=u(e);return d?Zl(t)?function(e){return Ze(e).brighter(.5).toString()}(t):function(e){return Ze(e).darker().toString()}(t):t},size:Jl({chart:e,layoutService:i,dockService:s,markerKey:b,markerType:m}),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:m,horizontal:g,rtl:f})},brush:Vl({layoutService:i,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||v(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||v(e.data)?0:ql.INACTIVE}}})}};function ec({property:e="end",isHorizontal:t,isColor:n,fallback:r,rtl:i}){return function(o){const{datum:a,resources:{scale:s}}=o,l=s(cs.SCALE.MAJOR),c=s(cs.SCALE.COLOR),u=t&&i?[...a.points].reverse():a.points,d=u.reduce(((t,n,r)=>{const i="NaN"===n[e].value||Number.isNaN(n[e].value),o=u[r+1],a=o&&"NaN"!==o[e].value&&!Number.isNaN(o[e].value);return i?t.length&&a&&t.push(n):t.push(n),t}),[]),m="group-by-measure"===l.type?e=>l([e.major.value,e.typeIndex.value]):e=>l(e.major.value),p=d.map(m),f=Math.min(...p),h=Math.max(...p)-f,g=0===h?1:h,y=p.map(((e,t)=>0===t?0:t===p.length-1?1:(e-f)/g)),v=[];for(let t=0;t<d.length;t++){const i=d[t],o=i.color&&i.color.value,a=n?o||r:c(o)||r,s=0===t,l=t===d.length-1,u=y[t];if("NaN"===i[e].value||Number.isNaN(i[e].value))v[t-1].virtual||v.push({virtual:!0});else{const n=d[t-1];n&&"NaN"!==n[e].value&&!Number.isNaN(n[e].value)?v.push({color:a,offset:s?0:Math.max(0,parseFloat((u-(u-y[t-1])/2).toFixed(5)))}):v.push({color:a,offset:u});const r=d[t+1];r&&"NaN"!==r[e].value&&!Number.isNaN(r[e].value)?v.push({color:a,offset:l?1:Math.max(0,parseFloat((u+(y[t+1]-u)/2).toFixed(5)))}):v.push({color:a,offset:u})}}const b=v.reduce(((e,t,n)=>{if(t.virtual){const t=v[n-1],r=v[n+1],i=t.offset+(r.offset-t.offset)/2;e.push({color:t.color,offset:i},{color:r.color,offset:i})}else e.push(t);return e}),[]);return{type:"gradient",x1:0,x2:t?1:0,y1:0,y2:t?0:1,stops:b}}}function tc({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?ec({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?ec({isHorizontal:d,isColor:"color"===c,fallback:u,rtl:a}):"continuous"===c?function({isHorizontal:e,rtl:t}){return function(n){const{datum:{points:r},resources:{scale:i}}=n,o=i(cs.SCALE.COLOR),a=r.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e))),offset:Math.min(1,Math.max(0,(e-s)/u))})));return{type:"gradient",x1:!e&&t?1:0,x2:e||t?0:1,y1:e?1:0,y2:0,stops:d}}}({isHorizontal:d,rtl:a}):function({isHorizontal:e,isArea:t,fallback:n,rtl:r}){return function(i){const{datum:{points:o},resources:{scale:a}}=i,s=a(cs.SCALE.COLOR),l=o.map((e=>e.end.value)).filter((e=>"NaN"!==e&&!Number.isNaN(e))),c=Math.min(...l),u=Math.max(...l),d=t?Math.min(0,c):c,m=(t?Math.max(0,u):u)-d,p=0===m?1:m,f=s.domain(),h=[];for(let e=0;e<f.length-1;e++){const t=f[e],r=s(t)||n;h.push({color:r,offset:Math.min(1,Math.max(0,(t-d)/p))});const i=f[e+1];h.push({color:r,offset:Math.min(1,Math.max(0,(i-d)/p))})}return{type:"gradient",x1:!e&&r?1:0,x2:e||r?0:1,y1:e?1:0,y2:0,stops:h}}}({isHorizontal:d,fallback:u,rtl:a})}const nc=({models:e,environment:t,series:n})=>{const{layoutService:r,seriesModel:i,dockService:o,styleModel:a}=e,s="rtl"===t.options.direction,{orientation:l}=o.meta.major,c=Hl({layoutService:r,seriesModel:i,rtl:s,orientation:l});return{key:Yl(cs.COMPONENT.LINE,n),type:"line",data:{filter:e=>n.ref===e.end.source.field,collection:n.collection},settings:{coordinates:{major:{scale:cs.SCALE.MAJOR,fn:c},minor:{scale:n.scale,ref:"end"}},layers:{curve:a.query.line.getCurveFn(),line:{stroke:tc({models:e,environment:t,measureIndex:n.refIndex}),strokeWidth:a.query.line.getStrokeWidthFn(),strokeDasharray:a.query.line.getStrokeDasharrayFn(),strokeLinejoin:"round"}},connect:n.options.showAsConnections,orientation:o.meta.major.orientation},brush:Vl({layoutService:r,active:{stroke:void 0,strokeWidth:void 0,opacity:ql.INACTIVE},inactive:{opacity:ql.INACTIVE}})}};var rc={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 ic({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 oc=3,ac=20;function sc({models:e,series:t,environment:n}){const{layoutService:r,colorService:i,seriesModel:o,dockService:a,styleModel:s,primaryExtremumModel:l,secondaryExtremumModel:c,selectionService:u}=e,d=r.getLayoutValue("dataPoint.show",!1),{orientation:m}=a.meta.major,p="horizontal"===m,f="SPARK"===a.meta.chart.mode,h=i.getColor(),{POINT:g}=rc,y=function({layoutService:e,series:t}){const n={key:void 0,map:void 0},r=ic({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}),v="rtl"===n.options.direction,b=(t.isPrimary?l:c).query.getExtrema(),{isContinuous:x}=r.meta,S=({end:e})=>{const{value:t}=e;return Wl(t,b)};return{type:"point",key:Yl(cs.COMPONENT.POINT,t),data:{filter:e=>t.ref===e.end.source.field,collection:t.collection},preferredSize:()=>({edgeBleed:{top:p?g.SIZE.DEFAULT/2:0}}),settings:{[p?"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))}},[p?"x":"y"]:{scale:cs.SCALE.MAJOR,fn:Hl({layoutService:r,seriesModel:o,rtl:v,orientation:m}),ref:"major"},sizeLimits:{minPx:oc,maxPx:ac},size:e=>{const{value:t}=e.datum.line;return`${s.query.point.getSize(t)}px`},fill:h,opacity:({datum:e,data:t})=>{var n;return null!==(n=e.null)&&void 0!==n&&n.value||S(e)?0:f?y({item:e,items:t.items})?1:0:d||y({item:e,items:t.items})?1:0}},brush:Vl({layoutService:r,active:{r:e=>e.r+rc.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)||S(e.data))return 0;if(!x||d)return 1;const{event:n,components:r=[]}=(null==u?void 0:u.getSelectionInfo())||{};if("continuousRange"===n)return 0;if("tap"!==n)return 1;const i=[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER].some((e=>r.indexOf(e)>=0));return i?0:1}},inactive:{opacity:e=>1===e.opacity?.5:0}})}}const lc=(e,{dataset:t})=>{const{value:n,label:r,source:i}=e.end,o=t(i.key).field(i.field);return ge.shouldUseFormat(o.raw())?o.formatter()(n):r};function cc({chart:e,models:t,environment:n,flags:r,series:i,lineSeries:o}){const{layoutService:a,dockService:s,styleModel:l,primaryExtremumModel:c,secondaryExtremumModel:u}=t,{id:d}=i,m="rtl"===n.options.direction,p=a.getLayoutValue("dataPoint");if(!p)return!1;if(!p.show||!p.showLineLabels)return!1;const f=(i.isPrimary?c:u).query.getExtrema(),h=l.query.point.label.getStyle();return{type:"point-label",key:`${cs.COMPONENT.POINT_LABEL}-${d}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{orientation:s.meta.major.orientation,rtl:m,connect:i.options.showAsConnections,label:t=>lc(t,e),pointValue:e=>e.end.value,majorValue:e=>e.value,target:{point:`${cs.COMPONENT.POINT}-${d}`,allPoints:o.map((e=>`${cs.COMPONENT.POINT}-${e.id}`))},lineIndex:"typeIndex",showLabel:e=>!(({end:e})=>Wl(e.value,f))(e.data),labelSpace:{use:()=>{const t=e.component(cs.COMPONENT.LABEL_SPACE);return!(null==t||!t.preferredSize())},size:10}},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,fill:h.fill}}}const uc=({chart:e,dock:t})=>{let n=t;const r=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`),i=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`),o=e.component(`${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`);return r?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`:i?n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`:o&&(n=`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`),n},dc=({dockPosition:e,orientation:t,rtl:n})=>{let r=1;return e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MAX}-${us.AXIS.SECONDARY}`||!("horizontal"===t||"vertical"===t&&n)||(r=4),e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.PRIMARY}`&&e!==`@${cs.COMPONENT.SLICED_HAT}-${Ul.MIN}-${us.AXIS.SECONDARY}`||"vertical"!==t||n||(r=4),r};function mc({chart:e,models:t,environment:n,lineSeries:r}){const{layoutService:i,dockService:o,primaryExtremumModel:a,secondaryExtremumModel:s}=t,l=i.getLayoutValue("dataPoint",{}),c="rtl"===n.options.direction;if(!r.length)return!1;if(!l.show||!l.showLineLabels)return!1;const u="horizontal"===o.meta.major.orientation,{show:d}=i.getLayoutValue("dimensionAxis",{});if("none"!==d){const{dock:e}=o.meta.major;if(u&&"top"===e)return!1;if(!u&&e===(c?"left":"right"))return!1}const m=c?"left":"right";return{type:"label-space",key:cs.COMPONENT.LABEL_SPACE,layout:{minimumLayoutMode:Ll.LABEL_SPACE,dock:uc({chart:e,dock:u?"top":m})},settings:{size:10},preferredSize:()=>{const t=e.component(`${cs.COMPONENT.LINE}-${r[0].id}`);if(null==t||!t.rect)return 0;const n=(u?17:34)/t.rect[u?"height":"width"],i=a.query.getExtrema(),o=e.scale(cs.SCALE.MINOR.PRIMARY)(i.implicit.line.max),l=u||c?o:1-o,d=r.filter((e=>e.isPrimary)).length>0,m=s.query.getExtrema(),p=e.scale(cs.SCALE.MINOR.SECONDARY)(m.implicit.line.max),f=u||c?p:1-p,h=r.filter((e=>!e.isPrimary)).length>0;return d&&l<n||h&&f<n?10:0}}}const pc={min:"Min",max:"Max"};function fc(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 hc(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 gc(e,t,n){return fc(e,t,n)||hc(e,t,n)}function yc(e,t){const{hasExplicitMax:n}=t.meta,{max:r}=t.explicit;return!!n&&e>r&&r<=0}function vc(e,t){const{hasExplicitMin:n}=t.meta,{min:r}=t.explicit;return!!n&&e<r&&r>=0}function bc(e,t){return yc(e,t)||vc(e,t)}function xc({extrema:e,type:t}){return!(function({extrema:e,type:t}){return!e.meta[`hasExplicit${pc[t]}`]}({extrema:e,type:t})||function({extrema:e,type:t}){const n=t===Ul.MAX?e.implicit.bar.max:e.implicit.bar.min,r=Number(n.toFixed(13));return t===Ul.MAX?!yc(r,e):!vc(r,e)}({extrema:e,type:t}))}var Sc=Object.freeze({__proto__:null,isMaxOutOfBounds:yc,isMinOutOfBounds:vc,isOutOfBounds:bc,isSegmentMaxOutOfBounds:fc,isSegmentMinOutOfBounds:hc,isSegmentOutOfBounds:gc,shouldShowOob:xc});const Ec={min:"Min",max:"Max"},Mc=({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}=t,g="rtl"===o.options.direction,{dock:y,opposite:v,orientation:b}=s.meta.major,x=l.query.getExtrema(),S=c.query.getExtrema(),E=a===Ul.MAX,{isBarSeriesGrouped:M}=m.meta,C=(({chart:e,type:t,opposite:n,dock:r})=>{let i=t===Ul.MAX?n:r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),l=e.component(cs.COMPONENT.LABEL_SPACE),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),d=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return o?i=`@${cs.COMPONENT.SLICED_HAT}-${t}`:a?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:s?i=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c||u||d?l&&t===Ul.MAX?i=`@${cs.COMPONENT.LABEL_SPACE}`:c?i=`@${cs.COMPONENT.BAR_OOB}-${t}`:u?i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:d&&(i=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`):l&&t===Ul.MAX&&(i=`@${cs.COMPONENT.LABEL_SPACE}`),i})({chart:e,type:a,opposite:v,dock:y}),O=Hl({layoutService:m,seriesModel:p,rtl:g,orientation:b}),w=r.concat(n);if(!w.length)return!1;const T=E?x.implicit.bar.max:x.implicit.bar.min,A=Number(T.toFixed(13));if(!M&&i.length&&Sc[`is${Ec[a]}OutOfBounds`](A,x))return!1;if(!x.meta.hasExplicit&&!S.meta.hasExplicit)return!1;const R=E?"max":"min",k=Math[R](Number(x.implicit.line[R].toFixed(13)),Number(x.implicit.marker[R].toFixed(13))),N=Math[R](Number(S.implicit.line[R].toFixed(13)),Number(S.implicit.marker[R].toFixed(13))),I=w.filter((e=>e.isPrimary)),L=w.filter((e=>!e.isPrimary)),P=I.length>0,D=L.length>0,{major:q,majorNumeric:z}=h.main,$=e=>"NaN"!==e.qNum?e.qNum:0,_=m.meta.isContinuous?z:q;return{type:"data-out-of-bounds-marker",key:`${cs.COMPONENT.DATA_OOB_MARKER}-${a}`,layout:{dock:C,minimumLayoutMode:Ll.OUT_OF_BOUNDS_MARKER},data:{extract:w.map((({ref:e,typeIndex:t,options:n})=>({field:q,value:m.meta.isContinuous?e=>e.qNum:void 0,props:{major:{field:_},end:{field:e,value:n.showAsZeros?$:void 0},typeIndex:t,null:{field:e,value:e=>"NaN"===e.qNum}}})))},settings:{type:a,primaryExtremum:E?()=>u.query.getMax():()=>u.query.getMin(),secondaryExtremum:E?()=>d.query.getMax():()=>d.query.getMin(),primarySeries:I,secondarySeries:L,orientation:b,rtl:g,major:{scale:cs.SCALE.MAJOR,fn:O},markerOffset:dc({dockPosition:C,orientation:b,rtl:g})},brush:Vl({layoutService:m}),show:()=>{if(E){if(P&&k>u.query.getMax())return!0;if(D&&N>d.query.getMax())return!0}if(!E){if(P&&k<u.query.getMin())return!0;if(D&&N<d.query.getMin())return!0}return!1},style:{fill:f.getStyles().outOfRange.color}}},Cc={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Oc({chart:e,models:t,viewState:n,viewCache:r,axis:i}){const o=C(),{dockService:a}=t;return({data:t})=>(({items:t})=>{const{rect:n}=e.component(`${cs.COMPONENT.BAR}-${i}`)||{};return(!t.length||!n)&&2})(t)||(()=>{const{min:e,max:t}=n.get("zoom");return o.get([e,t])||o.empty()&&!1})()||(()=>{const e=Cc[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=Cc[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 wc=({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 Ac=({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}=t,{isContinuous:p,isBarSeriesStacked:f,isBarSeriesGrouped:h,isBarSeriesStackedInBothAxis:g}=o.meta,y=e=>e.datum.start?e.datum.start.value:e.scale.min(),v=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,b=i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY;if(!(i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount))return!1;const x=f?{scale:b,start:{ref:"start",fn:e=>{const t=y(e);return Tc(e.scale(t))}},end:{ref:"end",fn:e=>{const t=(e=>e.datum.end?e.datum.end.value:y(e))(e);return Tc(e.scale(t))}}}:{scale:b,start:{ref:"start",fn:e=>{const t=y(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)?y(e):e.datum.end.value;return Tc(e.scale(n))}}},S=(i?d:m).query.getExtrema(),E=f?({start:e,end:t})=>gc(e.value,t.value,S):({end:e})=>bc(e.value,S);return{type:"box",key:`${cs.COMPONENT.BAR}-${v}`,data:{filter:(()=>{if(f)return;const e=l.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===i)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:f?i?cs.COLLECTION.STACKED_PRIMARY:cs.COLLECTION.STACKED_SECONDARY:i?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},preferredSize:p?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,settings:{orientation:a.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:o,axis:v}),ref:p?{start:"major",end:"major"}:void 0},minor:x,box:{width:wc({isContinuous:p,isBarSeriesGrouped:h,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:g}),minWidthPx:p?Oc({chart:e,models:t,viewState:n,viewCache:r,axis:v}):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)||E(e.datum)?0:1}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:Vl({layoutService:o,active:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data.null)||void 0===t?void 0:t.value)||E(e.data)?0:ql.INACTIVE}}})}},Rc=({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i})=>{const{layoutService:o,dockService:a,colorService:s,seriesModel:l,styleModel:c,discreteModel:u}=t,{isBarSeriesStacked:d,isContinuous:m,isBarSeriesGrouped:p,isBarSeriesStackedInBothAxis:f}=o.meta,h=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY,g=i?l.meta.primaryBarSeriesCount:l.meta.secondaryBarSeriesCount;if(!d||0===g)return!1;return{key:`${cs.COMPONENT.STACK_BAR}-${h}`,type:"box",data:{collection:i?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY},settings:{major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:o,axis:h}),ref:m?{start:"timeStart",end:"timeEnd"}:void 0},minor:{scale:i?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:a.meta.minor.orientation,box:{width:wc({isContinuous:m,isBarSeriesGrouped:p,styleModel:c,discreteModel:u,isBarSeriesStackedInBothAxis:f}),minWidthPx:m?Oc({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 kc(e,t){const n="horizontal"===e.dockService.meta.major.orientation,{style:r}=t,i=e.styleModel.query.bar.label.getStyle();return{placements:t.simplifiedPlacements.map((e=>{const t=i.useContrastColor&&!e.onBackground?function({style:e,simplifiedPlacement:t}){return n=>Rt.isDark(t.background?t.background.fill:n.node.attrs.fill)?e.lightColor:e.darkColor}({style:r,simplifiedPlacement:e}):i.fill;return function({simplifiedPlacement:e,fill:t,isHorizontal:n}){const r=e.padding||{left:n?0:4,right:n?0:4,top:n?4:0,bottom:n?4:0};return{position:e.position,justify:e.justify,fill:t,overflow:e.overflow,background:e.background,padding:r}}({simplifiedPlacement:e,fill:t,isHorizontal:n})})),label:t.label}}const Nc="vertical",Ic="horizontal";function Lc(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===Nc&&i<0?o="down":t===Ic&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}const Pc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!n||!r},Dc=(e,t)=>{if(!e)return!1;const{isBarSeriesStacked:n,isContinuous:r}=t;return!!n&&(!!r||!1!==e)};function qc(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 zc=({models:e,environment:t,flags:n,isPrimary:r})=>{const{layoutService:i,seriesModel:o,styleModel:a,themeService:s}=e,{meta:l}=i,c="rtl"===t.options.direction,u=s.getStyles(),d=a.query.bar.label.getStyle(),m=e.layoutService.getLayoutValue("dataPoint.showBarLabels",!1),p=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!(r?o.meta.primaryBarSeriesCount:o.meta.secondaryBarSeriesCount)||!Pc(m,l))return!1;let f;!l.isBarSeriesStacked&&(f=l.isBarSeriesStacked?1:0);const h={label:e=>lc(e.data,e),simplifiedPlacements:qc(f,0===f?1:0,l.isBarSeriesStacked?.5:1,l.isContinuous),style:u.label.value},g=[kc(e,h)],y={component:`${cs.COMPONENT.BAR}-${p}`,selector:"rect",strategy:{type:"bar",settings:{direction:t=>Lc(t.data.end.value,e.dockService.meta.minor.orientation,c,0),labels:g,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily}}},v=[y];return{type:"labels",key:`${cs.COMPONENT.BAR_LABEL}-${p}`,renderer:ls(n),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:v}}};function $c(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.showBarLabels",!1),u=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(0===(i?t.seriesModel.meta.primaryBarSeriesCount:t.seriesModel.meta.secondaryBarSeriesCount)||!Dc(c,o))return!1;const d=l.useContrastColor,m=e.formatter(i?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY)||(e=>e),p=e=>m(e),f={label:e=>0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":p(e.data.sumOfPositives.value),simplifiedPlacements:$c("outside",true,d,o.isContinuous),style:s.label.value},h={label:e=>0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":p(e.data.sumOfNegatives.value),simplifiedPlacements:$c("opposite",true,d,o.isContinuous),style:s.label.value},g=[kc(t,f),kc(t,h)];return{type:"labels",key:`${cs.COMPONENT.STACK_BAR_LABEL}-${u}`,renderer:ls(r),layout:{displayOrder:2,minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:[{component:`${cs.COMPONENT.STACK_BAR}-${u}`,selector:"rect",strategy:{type:"bar",settings:{direction:e=>Lc(e.data.sumOfPositives.value,t.dockService.meta.minor.orientation,a),labels:g,fontSize:parseInt(l.fontSize,10),fontFamily:l.fontFamily}}}]}}}var jc=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 Fc={min:"Min",max:"Max"},Bc=1e-12;function Hc({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?Rc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Ac({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),y=o?l.query.getExtrema():c.query.getExtrema(),v=n===Ul.MAX,b=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!g)return!1;if(function(e,t){return!e.meta[`hasExplicit${Fc[t]}`]}(y,n)||function(e,t,n){const r=n?e.implicit.bar.max:e.implicit.bar.min,i=Number(r.toFixed(13));return!jc[`has${Fc[t]}Hat`](i,e)}(y,n,v)||function(e,t,n){const r=n?e=>e<0:e=>e>0;return e.meta[`hasExplicit${Fc[t]}`]&&r(e.explicit[t])}(y,n,v))return!1;let x="end";m&&(x=v?"sumOfPositives":"sumOfNegatives");const S=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.scale(o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY)[n]()));const E=(({chart:e,type:t,isPrimary:n,dock:r})=>{let i=r;const o=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),a=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`);return o&&a&&(i=n?r:`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),i})({chart:e,type:n,isPrimary:o,dock:v?s.meta.minor.end:s.meta.minor.start}),M={type:"box-sliced-hat",key:`${cs.COMPONENT.SLICED_HAT}-${n}-${b}`,layout:{dock:E},data:g.data,settings:{orientation:g.settings.orientation,major:g.settings.major,minor:g.settings.minor,hat:le({},g.settings.box,{fill:m?"#999":g.settings.box.fill,alignment:1,opacity:1,show:function(e){const t=S(),n=function(e){if("number"!=typeof e)return e;const t=Math.round(e);return Math.abs(e-t)<Bc?t:e}(e.datum[x].value);return v?n>t:n<t},width:wc({isContinuous:p,isBarSeriesGrouped:f,styleModel:u,discreteModel:d,isBarSeriesStackedInBothAxis:h}),strokeWidth:u.query.bar.getStrokeWidth(),stroke:u.query.bar.getStrokeColor()})},brush:Vl({layoutService:a})};return M}const Vc={min:"Min",max:"Max"},Uc={sumOfPositives:"sumOfNegatives",sumOfNegatives:"sumOfPositives"};function Wc({chart:e,models:t,type:n,viewCache:r,viewState:i,isPrimary:o}){const{layoutService:a,dockService:s,primaryExtremumModel:l,secondaryExtremumModel:c,themeService:u}=t,{end:d,start:m}=s.meta.minor,{isBarSeriesStacked:p}=a.meta,f=p?Rc({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}):Ac({chart:e,models:t,viewCache:r,viewState:i,isPrimary:o}),h=o?l.query.getExtrema():c.query.getExtrema(),g=n===Ul.MAX?h.implicit.bar.max:h.implicit.bar.min,y=Number(g.toFixed(13)),v=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY;if(!f)return!1;if(!Sc[`is${Vc[n]}OutOfBounds`](y,h))return!1;const b=(({chart:e,type:t,end:n,start:r,isPrimary:i})=>{let o=t===Ul.MAX?n:r;const a=e.component(cs.COMPONENT.LABEL_SPACE),s=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`),l=e.component(`${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`),c=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`),u=e.component(`${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.SECONDARY}`);return s?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.PRIMARY}`:l?o=`@${cs.COMPONENT.SLICED_HAT}-${t}-${us.AXIS.SECONDARY}`:c&&u&&!i?o=`@${cs.COMPONENT.BAR_OOB}-${t}-${us.AXIS.PRIMARY}`:a&&t===Ul.MAX&&(o=`@${cs.COMPONENT.LABEL_SPACE}`),o})({chart:e,type:n,end:d,start:m,isPrimary:o});let x="end";p&&(x=n===Ul.MAX?"sumOfPositives":"sumOfNegatives");const S={type:"box-out-of-bounds",key:`${cs.COMPONENT.BAR_OOB}-${n}-${v}`,layout:{dock:b},data:f.data,settings:{orientation:f.settings.orientation,major:f.settings.major,minor:f.settings.minor,dockValue:Me.getDockValue(n===Ul.MAX?d:m),oob:le({},f.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=p&&0===e.datum[x].value,i=Sc[`is${Vc[n]}OutOfBounds`](e.datum[x].value,h,n),o=(!r||function({type:e,item:t,prop:n,extrema:r}){const i=t.datum[Uc[n]].value;return 0!==i&&Sc[`is${Vc[e]}OutOfBounds`](i,r,e)}({type:n,item:e,prop:x,extrema:h}))&&i;return o}})},brush:Vl({layoutService:a})};return S}function Yc(e){return Math.min(Math.max(0,e),1)}const Gc=({chart:e,models:t,type:n,isPrimary:r})=>{const{discreteModel:i,styleModel:o,seriesModel:a,layoutService:s}=t;if(!(r?a.meta.primaryBarSeriesCount:a.meta.secondaryBarSeriesCount))return!1;const{isBarSeriesStacked:l,isContinuous:c,isBarSeriesGrouped:u,isBarSeriesStackedInBothAxis:d}=s.meta,m=e.scale(r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY),p=r?us.AXIS.PRIMARY:us.AXIS.SECONDARY,f=r?t.primaryExtremumModel.query.getExtrema():t.secondaryExtremumModel.query.getExtrema(),h=n===Ul.MAX;if(!xc({extrema:f,type:n}))return!1;const g=e=>e.datum.start?e.datum.start.value:e.scale.min(),y=(e,t="end")=>e.datum[t]?e.datum[t].value:g(e),v={type:"box",key:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${p}`,data:{filter:(()=>{if(l)return;const e=a.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===r)).map((e=>e.ref));return t=>e.some((e=>e===t.end.source.field))})(),collection:l?r?cs.COLLECTION.STACKED_TOTAL_PRIMARY:cs.COLLECTION.STACKED_TOTAL_SECONDARY:r?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY},settings:{orientation:t.dockService.meta.minor.orientation,major:{scale:cs.SCALE.MAJOR,fn:Bl({layoutService:s,axis:p}),ref:c?{start:"major",end:"major"}:void 0},minor:{scale:r?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,start:{ref:"start",fn:e=>{const t=g(e);return Yc(e.scale(t))}},end:l?"max"===n?{ref:"sumOfPositives",fn:e=>{const t=y(e,"sumOfPositives");return Yc(e.scale(t))}}:{ref:"sumOfNegatives",fn:e=>{const t=y(e,"sumOfNegatives");return Yc(e.scale(t))}}:{ref:"end",fn:e=>{const t=y(e);return Yc(e.scale(t))}}},box:{width:wc({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 Xc(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 Kc=({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}=t,p=m.getStyles(),f=u.query.bar.label.getStyle(),{meta:h}=a,{isBarSeriesStacked:g}=h,y=e.formatter(o?cs.FORMATTER.PRIMARY:cs.FORMATTER.SECONDARY),v=a.getLayoutValue("dataPoint.showBarLabels",!1),b="horizontal"===s.meta.major.orientation,x="rtl"===r.options.direction;if(!(o?d.meta.primaryBarSeriesCount:d.meta.secondaryBarSeriesCount)||!g&&!Pc(v,h)||g&&!Dc(v,h))return!1;const S=o?l.query.getExtrema():c.query.getExtrema();if(!S.meta.hasExplicit)return!1;const E=n===Ul.MAX?S.implicit.bar.max:S.implicit.bar.min;if(!(n===Ul.MAX?yc(E,S):vc(E,S)))return!1;let M=e=>lc(e.data,e);h.isBarSeriesStacked&&(M=n===Ul.MAX?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,S)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value;return y?y(t):t}return""}:function(e){var t;if(!0===(null===(t=e.data.null)||void 0===t?void 0:t.value))return"";if(vc(e.data.sumOfNegatives.value,S)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value;return y?y(t):t}return""});const C={label:M,simplifiedPlacements:Xc("outside",true,h.isContinuous,b,x),style:p.label.value},O={label:M,simplifiedPlacements:Xc("opposite",true,h.isContinuous,b,x),style:p.label.value},w=[kc(t,C),kc(t,O)],T=o?us.AXIS.PRIMARY:us.AXIS.SECONDARY,A="horizontal"===s.meta.major.orientation?"down":"right",R=[{component:`${cs.COMPONENT.GHOST_BAR_OOB}-${n}-${T}`,selector:"rect",strategy:{type:"bar",settings:{direction:A,labels:w,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily}}}];return{key:`${cs.COMPONENT.BAR_OOB_LABEL}-${n}-${T}`,type:"labels",renderer:ls(i),layout:{minimumLayoutMode:Ll.VALUE_LABEL},settings:{sources:R}}},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,viewState:n,viewCache:r})=>[Rc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),Rc({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1})],Qc=({chart:e,models:t,environment:n,flags:r})=>{const{isBarSeriesStacked:i}=t.layoutService.meta;if(i){return[_c({chart:e,models:t,environment:n,flags:r,isPrimary:!0}),_c({chart:e,models:t,environment:n,flags:r,isPrimary:!1})]}return[zc({models:t,environment:n,flags:r,isPrimary:!0}),zc({models:t,environment:n,flags:r,isPrimary:!1})]},eu=({chart:e,models:t,viewCache:n,viewState:r})=>[Hc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Hc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Hc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Hc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],tu=({chart:e,models:t,viewCache:n,viewState:r})=>[Wc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!0}),Wc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!0}),Wc({chart:e,models:t,type:"max",viewCache:n,viewState:r,isPrimary:!1}),Wc({chart:e,models:t,type:"min",viewCache:n,viewState:r,isPrimary:!1})],nu=({chart:e,models:t})=>[Gc({chart:e,models:t,type:"max",isPrimary:!0}),Gc({chart:e,models:t,type:"min",isPrimary:!0}),Gc({chart:e,models:t,type:"max",isPrimary:!1}),Gc({chart:e,models:t,type:"min",isPrimary:!1})],ru=({chart:e,models:t,environment:n,flags:r})=>[Kc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!0}),Kc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!0}),Kc({chart:e,models:t,type:"max",environment:n,flags:r,isPrimary:!1}),Kc({chart:e,models:t,type:"min",environment:n,flags:r,isPrimary:!1})],iu=({chart:e,environment:t,flags:n,models:r,viewState:i,viewCache:o})=>{const{seriesModel:a}=r,s=a.query.series(us.TYPE.BAR).slice(-1),l=a.query.series(us.TYPE.LINE),c=a.query.series(us.TYPE.MARKER);return[...Jc({chart:e,models:r,viewState:i,viewCache:o}),...Zc({chart:e,models:r,viewState:i,viewCache:o}),...l.map((e=>nc({models:r,environment:t,series:e}))),...l.map((e=>sc({models:r,series:e,environment:t}))),...c.map((n=>Ql({chart:e,models:r,series:n,environment:t}))),...l.map((i=>cc({chart:e,models:r,environment:t,flags:n,series:i,lineSeries:l}))),...Qc({chart:e,models:r,environment:t,flags:n}),...eu({chart:e,models:r,viewCache:o,viewState:i}),...tu({chart:e,models:r,viewCache:o,viewState:i}),...nu({chart:e,models:r}),...ru({chart:e,models:r,environment:t,flags:n}),Mc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"max"}),Mc({chart:e,models:r,markerSeries:c,lineSeries:l,barSeries:s,environment:t,type:"min"}),mc({chart:e,models:r,environment:t,lineSeries:l})]},ou={NONE:0,WIDE:1,MEDIUM:2,NARROW:3};function au({models:e}){const{dockService:t,seriesModel:n,layoutService:r,themeService:i}=e,{auto:o,spacing:a}=r.getLayoutValue("gridLine",{});if(!o&&a===ou.NONE)return!1;const s=i.getStyles(),l=n.meta.primarySeries.length>0;return{key:cs.COMPONENT.GRID_LINE,type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!(!o&&a===ou.WIDE)||((e,t)=>t%2==0),stroke:s.grid.line.major.color},minorTicks:{show:!o&&a===ou.NARROW,stroke:s.grid.line.minor.color},["horizontal"===t.meta.major.orientation?"y":"x"]:l?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY}}function su({models:e}){const{primaryExtremumModel:t,primaryTickModel:n,themeService:r,dockService:i,seriesModel:o}=e,a=t.query.getExtrema();return!!(o.meta.primarySeries.length>0&&a.meta.includesZero)&&{key:cs.COMPONENT.ZERO_LINE,type:"ref-line",layout:{minimumLayoutMode:Ll.GRID_LINE},show:()=>n.query.getMin()<=0&&n.query.getMax()>=0,lines:{["horizontal"===i.meta.minor.orientation?"x":"y"]:[{value:0,scale:cs.SCALE.MINOR.PRIMARY,line:{stroke:r.getStyles().grid.line.highContrast.color}}]}}}function lu({models:e}){const{layoutService:t,themeService:n}=e,{isContinuous:r,isTime:i}=t.meta;if(!r)return[];const o=n.getStyles(),a={type:"grid-line",layout:{minimumLayoutMode:Ll.GRID_LINE},ticks:{stroke:o.grid.line.major.color},minorTicks:{show:!1,stroke:o.grid.line.minor.color}};return i?[le(!0,{},a,{key:"time-inner-grid",x:{scale:cs.SCALE.MAJOR_INNER},ticks:{stroke:o.grid.line.minor.color}}),le(!0,{},a,{key:"time-outer-grid",x:{scale:cs.SCALE.MAJOR}})]:[le(!0,{},a,{key:"continuous-grid",x:{scale:cs.SCALE.MAJOR},minorTicks:{show:!0}})]}function cu({models:e}){return[au({models:e}),su({models:e}),...lu({models:e})]}function uu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,propertiesModel:a,appModel:s,genericObjectModel:l,selectionService:c,styleModel:u}=e,d=a.query.getProperties(),m=i.getLayoutValue("dimensionAxis");if(!m)return!1;const{show:p}=m;if("all"!==p&&"title"!==p)return!1;const{orientation:f}=o.meta.major,h=u.query.axis.title.getStyle();return{type:"data-title",key:cs.COMPONENT.AXIS_TITLE.MAJOR,layout:{dock:o.meta.major.dock,minimumLayoutMode:Ll.AXIS_TITLE.MAJOR[f.toUpperCase()]},settings:{hyperCube:i.getHyperCube(),hyperCubeDef:d&&d.qHyperCubeDef,isDimension:!0,disabled:()=>!n.interact.enabled(),model:l,app:s,translator:t.translator,rtl:"rtl"===t.options.direction,selections:c.getSelectionsObject(),isEnabled:r.isEnabled},style:{fontFamily:h.fontFamily,fontSize:h.fontSize,color:h.color}}}const du=(e,t,n)=>e.query.seriesByAxis(n).map((e=>({...t[e.refIndex],explicitColumn:e.refIndex})));function mu({models:e,environment:t,actions:n,flags:r}){const{layoutService:i,dockService:o,seriesModel:a,propertiesModel:s,appModel:l,genericObjectModel:c,selectionService:u,styleModel:d}=e,m=s.query.getProperties(),p=i.getLayoutValue("measureAxes");if(!p||!p.length)return[];const f=d.query.axis.title.getStyle(),{measureAxes:h}=a.meta;return h.filter((e=>e.isPrimary?"all"===p[0].show||"title"===p[0].show:"all"===p[1].show||"title"===p[1].show)).map((e=>{const s=i.getHyperCube(),{isPrimary:d}=e,p=a.query.seriesByAxis(d).length>1,h={type:"data-title",key:d?cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,layout:{dock:d?o.meta.minor.dock:o.meta.minorSecondary.dock,minimumLayoutMode:Ll.AXIS_TITLE.MINOR},settings:{hyperCube:s,hyperCubeDef:m&&m.qHyperCubeDef,isDimension:!1,explicitItemInfos:du(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 pu({models:e,environment:t,actions:n,flags:r}){return[uu({models:e,environment:t,actions:n,flags:r}),...mu({models:e,environment:t,actions:n,flags:r})]}function fu({models:e,environment:t,viewState:n,viewCache:r}){const{discreteModel:i,layoutService:o,dockService:a,continuousModel:s,themeService:l}=e,{isSnapshot:c,isDiscrete:u,isContinuous:d}=o.meta,m="rtl"===t.options.direction;return!(c&&!d)&&function({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=js({layoutService:e,override:l});if(d.none)return!1;const{orientation:m}=t.meta.major,p={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===m?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:m,rtl:s,isContinuous:e.meta.isContinuous,range:()=>zs({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(p.settings.style="slim",p.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(p.settings.size.thumb={min:4}));const f=a.getStyles();return f.color&&(p.style={standard:{thumb:{"border-color":f.color,opacity:.4},before:{background:f.color,opacity:.1},after:{background:f.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(p.settings.injections=()=>[qs({layoutService:e,discrete:n})]),p}({viewState:n,viewCache:r,discrete:i,continuousDataModel:s,layoutService:o,dockService:a,themeService:l,rtl:m,scrollbarOverride:{predicate:()=>u,value:Ds.OPTIONS.BAR.value},deviceType:t.deviceType})}function hu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i}){const{layoutService:o}=t,a=Ac({chart:e,models:t,viewState:n,viewCache:r,isPrimary:i});if(!a)return!1;const s=i?us.AXIS.PRIMARY:us.AXIS.SECONDARY;return a.key=`${cs.COMPONENT.MINI_CHART.BAR}-${s}`,a.data.collection=o.meta.isBarSeriesStacked?i?cs.COLLECTION.REDUCED_STACKED_PRIMARY:cs.COLLECTION.REDUCED_STACKED_SECONDARY:i?cs.COLLECTION.REDUCED_PRIMARY:cs.COLLECTION.REDUCED_SECONDARY,a.settings.box.minWidthPx=void 0,a.settings.minor.scale=i?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,a.settings.major.scale=cs.SCALE.REDUCED,a.layout={dock:"@scrollbar"},a}function gu({environment:e,models:t}){const n=t.styleModel.query.line.getStrokeDasharrayFn();return t.seriesModel.query.series(us.TYPE.LINE).map((r=>{const i=nc({models:t,environment:e,series:r});return i.key=Yl(cs.COMPONENT.MINI_CHART.LINE,r),i.data.collection=cs.COLLECTION.REDUCED,i.settings.coordinates.minor.scale=r.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,i.settings.coordinates.major.scale=cs.SCALE.REDUCED,i.settings.layers.line.strokeWidth=1,i.settings.layers.line.strokeDasharray=(...e)=>void 0===n(...e)?void 0:"1, 1",i.layout={dock:"@scrollbar"},i}))}function yu({models:e,environment:t}){return e.seriesModel.query.series(us.TYPE.MARKER).map((n=>{const r=Ql({models:e,environment:t,series:n});return r.key=Yl(cs.COMPONENT.MINI_CHART.MARKER,n),r.data.collection=cs.COLLECTION.REDUCED,r.settings.y.scale=n.isPrimary?cs.SCALE.MINOR.REDUCED_PRIMARY:cs.SCALE.MINOR.REDUCED_SECONDARY,r.settings.x.scale=cs.SCALE.REDUCED,r.layout={dock:"@scrollbar"},r}))}function vu({chart:e,models:t,viewState:n,viewCache:r,environment:i}){return bl(t)?[hu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!0}),hu({chart:e,models:t,viewState:n,viewCache:r,isPrimary:!1}),...gu({environment:i,models:t}),...yu({models:t,environment:i})]:[]}function bu({models:e}){const{layoutService:t,dockService:n}=e,{isContinuous:r,isTime:i}=t.meta,o=t.getLayoutValue("dimensionAxis");if(!o||"none"===o.show||"title"===o.show)return[!1];if(!r)return[!1];const a=Ll.AXIS.MAJOR[n.meta.major.orientation.toUpperCase()];return i?[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,scale:cs.SCALE.MAJOR_INNER,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_INNER}`,minimumLayoutMode:a}},{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.TIME_OUTER}`,minimumLayoutMode:a}}]:[{type:"axis-overlay",key:cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,scale:cs.SCALE.MAJOR,layout:{dock:`@${cs.COMPONENT.AXIS.MAJOR_CONTINUOUS}`,minimumLayoutMode:a}}]}function xu({chart:e,models:t,environment:n}){const{refLineModel:r,layoutService:i,colorService:o,dockService:a,themeService:s,appLayoutModel:l,seriesModel:c}=t,u=l.qLocaleInfo,{options:d,theme:m}=n,p="rtl"===d.direction,f=c.query.series(us.TYPE.BAR).filter((e=>e.isPrimary)),h=c.query.series(us.TYPE.BAR).filter((e=>!e.isPrimary)),g=c.query.series(us.TYPE.LINE),y=c.query.series(us.TYPE.MARKER),v=c.query.all(),b=v.some((e=>e.isPrimary)),x=v.some((e=>!e.isPrimary)),S=b&&x,E={resolveUIColor:o.getPaletteColor},M=b?as({refLineModel:r,layoutService:i,colorModel:E,dock:S?a.meta.minor.dock:a.meta.minor.opposite,scale:cs.SCALE.MINOR.PRIMARY,style:s.getStyles(),formatter:cs.FORMATTER.PRIMARY,theme:m,localeInfo:u,rtl:p,key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE_LABEL}):[],C=x?as({refLineModel:r,layoutService:i,colorModel:E,dock:S?a.meta.minor.opposite:a.meta.minor.dock,scale:cs.SCALE.MINOR.SECONDARY,style:s.getStyles(),formatter:cs.FORMATTER.SECONDARY,theme:m,localeInfo:u,rtl:p,key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE_LABEL,path:"refLine.refLines2"}):[];return[!!b&&ns({refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:cs.SCALE.MINOR.PRIMARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.PRIMARY_MEASURE_AXIS_REF_LINE,minimumLayoutMode:Ll.REFERENCE_LINE}),!!x&&ns({refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:cs.SCALE.MINOR.SECONDARY,axis:"horizontal"===a.meta.major.orientation?"y":"x",key:cs.COMPONENT.SECONDARY_MEASURE_AXIS_REF_LINE,path:"refLine.refLines2",minimumLayoutMode:Ll.REFERENCE_LINE}),ns({isDimension:!0,refLineModel:r,layoutService:i,colorModel:E,dockService:a,chart:e,scale:cs.SCALE.MAJOR,axis:"horizontal"===a.meta.major.orientation?"x":"y",rtl:p,key:cs.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:f.length?`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`:h.length?`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`:g.length?`${cs.COMPONENT.LINE}-${g[0].id}`:y.length?`${cs.COMPONENT.MARKER}-${y[0].id}`:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,minimumLayoutMode:Ll.REFERENCE_LINE}),...M,...C,...as({isDimension:!0,refLineModel:r,layoutService:i,colorModel:E,dock:a.meta.major.opposite,scale:cs.SCALE.MAJOR,style:s.getStyles(),theme:m,localeInfo:u,rtl:p,key:cs.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function Su({layoutService:e}){return!!bl({layoutService:e})&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:cs.SCALE.REDUCED,brush:"selection",fill:"#6CB33F",opacity:.2}}}function Eu(e){return(null==e?void 0:e.type)||us.TYPE.BAR}function Mu({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=>Eu(e)===us.TYPE.LINE)).map((e=>({key:Yl(cs.COMPONENT.LINE,e),typeIndex:e.typeIndex}))),f=!m.auto&&"byMeasure"===m.mode&&m.byMeasureDef&&void 0!==m.byMeasureDef.activeMeasureIndex,h=n.getHyperCubeValue("qMeasureInfo").map((e=>{var t;return null===(t=e.color)||void 0===t?void 0:t.on}));return{type:"brush-highlighter",key:"brush-highlighter",data:{collection:cs.COLLECTION.LINE},settings:{getSelectionInfo:()=>{var e;return(null==a||null===(e=a.getSelectionInfo)||void 0===e?void 0:e.call(a))||{}},seriesInfo:{primary:p(o.meta.primarySeries),secondary:p(o.meta.secondarySeries)},selectionValues:{"qHyperCube/qDimensionInfo/0":l?e=>e.value:e=>e.major.value,"qHyperCube/qDimensionInfo/0:numeric":e=>e.major.value,"qHyperCube/qDimensionInfo/0/qAttrExprInfo/0":e=>e.end.value,"qHyperCube/qMeasureInfo/X":e=>e.end.value},colorSettings:e=>r.getSettingsForMeasure(e),colorByData:e=>!h[e]&&f,hasMultipleMeasures:c,groupedByMeasure:u,itemsPerGroup:o.meta.barSeriesCount,orientation:i.meta.major.orientation,rtl:"rtl"===d.direction}}}function Cu({models:{fieldModel:e}}){return{[cs.FORMATTER.PRIMARY]:{data:{fields:e.main.minorsPrimary}},[cs.FORMATTER.SECONDARY]:{data:{fields:e.main.minorsSecondary}}}}var Ou={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:wu}=Ou;function Tu({layoutService:e,largeDataService:t}){const{maxNumPoints:n=wu}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:Au}=Ou,Ru=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=Au}=(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:ku}=Ou,{MAX_NUM_POINTS:Nu,DEFAULT_NUM_POINTS:Iu,DEFAULT_NUM_LINES:Lu}=Ou,{DEFAULT_NUM_POINTS:Pu}=Ou,Du=({layoutService:e,largeDataService:t})=>{if(!Tu({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Pu}=(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=Lu,maxNumPoints:o=Iu,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Ru({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>Lu||o>Iu)?Math.min(c,Math.ceil(Nu/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=ku}=(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})},qu=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:Du({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:Ru({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function zu({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>Tu({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Du({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Ru({layoutService:t,largeDataService:n}),fetch:(i,o)=>qu({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function $u(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 ju(){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 Fu(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=ju(),o=ju();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 Bu(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Hu(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Fu(e,t,n.qMatrix),i=Bu(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 Vu=2**.5,Uu=1/Vu,Wu=1e-6,Yu=Uu**44;function Gu(e){return e.qIsOtherCell}function Xu({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Gu)){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(Gu)||t++})),t}(n)}const Ku={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Ju={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 Zu="…";function Qu(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function ed(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]}${Zu}`).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=Qu(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:Qu(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 td(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=Qu(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:Qu(i,n.minorGuideLine.strokeWidth),x2:o,y2:Qu(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function nd(e){return e.filter((e=>e.show)).map((e=>le({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var rd={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=Qu(1,t.line.strokeWidth);return{show:n.line.show,x1:Qu(0,t.line.strokeWidth),y1:r,x2:Qu(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=ed(n,this),this.state.minor=td(r,this)},render(){return[...nd([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>le({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...nd(this.state.major.map((e=>e.guideLine))),...nd(this.state.minor.map((e=>e.guideLine)))];var e}};function id(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 od(e){return e.qTags.indexOf("$qualified")>-1}function ad({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];id(o,a)?(od(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function sd({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 ld=16;function cd({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+ld}))),r.clamp(n),i.rangeAndWidth}}}const ud=6;function dd({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>=ud,canFitHalfDayTicks:n=>n>=t*e.count()}}function md({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=cd,queryFactory:s=dd}={attributesFactory:cd,queryFactory:dd}){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 pd({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=md,mapper:a=ad,resolver:s=sd}={metaFactory:md,mapper:ad,resolver:sd}){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 fd=86400,hd=864e5;function gd(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(hd*(e-Math.floor(e)))))}const yd=gd(0).getTime();function vd(e){return(e.getTime()-yd)/fd/1e3}const bd=new Date,xd=new Date;function Sd(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=>Sd((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)=>(bd.setTime(+t),xd.setTime(+r),e(bd),e(xd),Math.floor(n(bd,xd))),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 Ed=1e3,Md=6e4,Cd=36e5,Od=864e5,wd=6048e5,Td=Sd((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*Ed)}),((e,t)=>(t-e)/Ed),(e=>e.getUTCSeconds()));Td.range;const Ad=Sd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ed)}),((e,t)=>{e.setTime(+e+t*Md)}),((e,t)=>(t-e)/Md),(e=>e.getMinutes()));Ad.range;const Rd=Sd((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*Md)}),((e,t)=>(t-e)/Md),(e=>e.getUTCMinutes()));Rd.range;const kd=Sd((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ed-e.getMinutes()*Md)}),((e,t)=>{e.setTime(+e+t*Cd)}),((e,t)=>(t-e)/Cd),(e=>e.getHours()));kd.range;const Nd=Sd((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*Cd)}),((e,t)=>(t-e)/Cd),(e=>e.getUTCHours()));Nd.range;const Id=Sd((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Md)/Od),(e=>e.getDate()-1));Id.range;const Ld=Sd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Od),(e=>e.getUTCDate()-1));Ld.range;const Pd=Sd((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/Od),(e=>Math.floor(e/Od)));function Dd(e){return Sd((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())*Md)/wd))}Pd.range;const qd=Dd(0),zd=Dd(1),$d=Dd(2),_d=Dd(3),jd=Dd(4),Fd=Dd(5),Bd=Dd(6);function Hd(e){return Sd((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)/wd))}qd.range,zd.range,$d.range,_d.range,jd.range,Fd.range,Bd.range;const Vd=Hd(0),Ud=Hd(1),Wd=Hd(2),Yd=Hd(3),Gd=Hd(4),Xd=Hd(5),Kd=Hd(6);Vd.range,Ud.range,Wd.range,Yd.range,Gd.range,Xd.range,Kd.range;const Jd=Sd((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()));Jd.range;const Zd=Sd((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()));Zd.range;const Qd=Sd((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()));Qd.every=e=>isFinite(e=Math.floor(e))&&e>0?Sd((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,Qd.range;const em=Sd((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()));em.every=e=>isFinite(e=Math.floor(e))&&e>0?Sd((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,em.range;const tm={second:1,minute:2,hour:3,day:4,month:5,year:6};function nm({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 em.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=Td.count(e,t),l=Rd.count(e,t),c=Nd.count(e,t),u=Ld.count(e,t),d=Vd.count(e,t),m=Zd.count(e,t),p=em.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:em.every(1),formatter:r.year.formatter,offset:e=>em.offset(e,-1),floor:em.floor};if(s<=f)v.type=tm.second,v.desc="second",v.count=s,v.interval=Td.every(1),v.formatter=r.second.formatter,v.offset=e=>Td.offset(e,-1),v.floor=Td.floor;else if(s/2<=f)v.type=tm.second,v.desc="every other second",v.count=s/2,v.interval=Td.every(2),v.formatter=r.second.formatter,v.offset=e=>Td.offset(e,-2),v.floor=Td.floor;else if(s/5<=f)v.type=tm.second,v.desc="every 5 second",v.count=s/5,v.interval=Td.every(5),v.formatter=r.second.formatter,v.offset=e=>Td.offset(e,-5),v.floor=Td.floor;else if(s/15<=f)v.type=tm.second,v.desc="every 15 second",v.count=s/15,v.interval=Td.every(15),v.formatter=r.second.formatter,v.offset=e=>Td.offset(e,-15),v.floor=Td.floor;else if(s/30<=f)v.type=tm.second,v.desc="every 30 second",v.count=s/30,v.interval=Td.every(30),v.formatter=r.second.formatter,v.offset=e=>Td.offset(e,-30),v.floor=Td.floor;else if(l<=h)v.type=tm.minute,v.desc="minute",v.count=l,v.interval=Rd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-1),v.floor=Rd.floor;else if(l/2<=h)v.type=tm.minute,v.desc="every 2 minute",v.count=l/2,v.interval=Rd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-2),v.floor=Rd.floor;else if(l/5<=h)v.type=tm.minute,v.desc="every 5 minute",v.count=l/5,v.interval=Rd.every(5),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-5),v.floor=Rd.floor;else if(l/10<=h)v.type=tm.minute,v.desc="every 10 minute",v.count=l/10,v.interval=Rd.every(10),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-10),v.floor=Rd.floor;else if(l/15<=h)v.type=tm.minute,v.desc="every 15 minute",v.count=l/15,v.interval=Rd.every(15),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-15),v.floor=Rd.floor;else if(l/30<=h)v.type=tm.minute,v.desc="every 30 minute",v.count=l/30,v.interval=Rd.every(30),v.formatter=r.minute.formatter,v.offset=e=>Rd.offset(e,-30),v.floor=Rd.floor;else if(c<=h)v.type=tm.hour,v.desc="hour",v.count=c,v.interval=Nd.every(1),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-1),v.floor=Nd.floor;else if(c/2<=h)v.type=tm.hour,v.desc="every 2 hour",v.count=c/2,v.interval=Nd.every(2),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-2),v.floor=Nd.floor;else if(c/3<=h)v.type=tm.hour,v.desc="every 3 hour",v.count=c/3,v.interval=Nd.every(3),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-3),v.floor=Nd.floor;else if(c/6<=h)v.type=tm.hour,v.desc="every 6 hour",v.count=c/6,v.interval=Nd.every(6),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-6),v.floor=Nd.floor;else if(c/12<=h||i)v.type=tm.hour,v.desc="every 12 hour",v.count=c/12,v.interval=Nd.every(12),v.formatter=r.minute.formatter,v.offset=e=>Nd.offset(e,-12),v.floor=Nd.floor;else if(u<=g)v.type=tm.day,v.desc="day",v.count=u,v.interval=Ld.every(1),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-1),v.floor=Ld.floor;else if(u/2<=g)v.type=tm.day,v.desc="every 2 day",v.count=u/2,v.interval=Ld.every(2),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-2),v.floor=Ld.floor;else if(u/3<=g)v.type=tm.day,v.desc="every 3 day",v.count=u/3,v.interval=Ld.every(3),v.formatter=r.date.formatter,v.offset=e=>Ld.offset(e,-3),v.floor=Ld.floor;else if(d<=g)v.type=tm.day,v.desc="week",v.count=d,v.interval=Vd.every(1),v.formatter=r.date.formatter,v.offset=e=>Vd.offset(e,-1),v.floor=Ld.floor;else if(d/2<=g)v.type=tm.day,v.desc="every 2 week",v.count=d/2,v.interval=Vd.every(2),v.formatter=r.date.formatter,v.offset=e=>Vd.offset(e,-2),v.floor=Ld.floor;else if(m<=g)v.type=tm.month,v.desc="month",v.count=m,v.interval=Zd.every(1),v.formatter=r.date.formatter,v.offset=e=>Zd.offset(e,-1),v.floor=Ld.floor;else if(m/3<=g)v.type=tm.month,v.desc="quarter",v.count=m/3,v.interval=Zd.every(3),v.formatter=r.date.formatter,v.offset=e=>Zd.offset(e,-3),v.floor=Ld.floor;else if(m/6<=g)v.type=tm.month,v.desc="half year",v.count=m/6,v.interval=Zd.every(6),v.formatter=r.date.formatter,v.offset=e=>Zd.offset(e,-6),v.floor=Ld.floor;else if(p<=y)v.type=tm.year,v.desc="year",v.count=p,v.interval=em.every(1),v.formatter=r.year.formatter,v.offset=e=>em.offset(e,-1),v.floor=em.floor;else if(p/2<=y)v.type=tm.year,v.desc="every 2 year",v.count=p/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>em.offset(e,-2),v.floor=em.floor;else if(p/5<=y)v.type=tm.year,v.desc="every 5 year",v.count=p/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>em.offset(e,-5),v.floor=em.floor;else if(p/10<=y)v.type=tm.year,v.desc="every 10 year",v.count=p/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>em.offset(e,-10),v.floor=em.floor;else{const e=Math.floor(p/y);v.type=tm.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>em.offset(t,-e),v.floor=em.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<=tm.hour){const n=t.getFormat("date"),r=e.ticks(Ld.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(Ld.offset(r[0],-1)),p=(r.length?r:[Ld.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 rm=86400,im=1440,om={};function am(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function sm(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,c]=e.domain(),u=Uo().domain([gd(l),gd(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)=>nm({timeScale:u,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:gd(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(om[[t,n,r,r,o]])return om[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=gd(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,m=t/(i-r),p=m/1440,f=m/rm,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,w=null,T=null,A=null,R=null,k=null,N=null;const I={outer:[],inner:[]};for(y<1?(w=1,O=1/rm):y<2?(w=2,O=1/rm*2):y<5?(w=5,O=1/rm*5):y<10?(w=10,O=1/rm*10):y<30?(w=30,O=1/rm*30):v<1?(T=1,O=1/im):v<2?(T=2,O=1/im*2):v<5?(T=5,O=1/im*5):v<10?(T=10,O=1/im*10):v<30?(T=30,O=1/im*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?am("year",[l+E*N,0,1],[l+M*N,0,1],a.year.formatter):k?am("month",[l,c+E*k,1],[l,c+M*k,1],a.date.formatter):R?am("day",[l,c,u+E*R],[l,c,u+M*R],a.date.formatter):A?am("hour",[l,c,u,0+E*A],[l,c,u,0+M*A],a.minute.formatter):T?am("minute",[l,c,u,0,0+E*T],[l,c,u,0,0+M*T],a.minute.formatter):am("second",[l,c,u,0,0,0+E*w],[l,c,u,0,0,0+M*w],a.second.formatter),C=vd(S.start),I.inner.push(S);const e=Math.floor(C);if(!(o||N||k||R)){const t={type:"day",start:gd(e),end:gd(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,om[[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?vd(t.start):"end"===i?vd(t.end):(vd(t.start)+vd(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:vd(t.start),end:vd(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return p}const lm=41000.2343433,cm=/t+/i,um=16,dm=60;const mm={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 pm(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 fm="continuousPan";var hm={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Ku,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=zu,snapshotFetcherFactory:c=_u,cacheFetcherFactory:u=$u,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(Wu,(r-n)*Yu))),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=Bu(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=>Hu(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=Bu(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=>Hu(e,t,n))).catch(h),fetchFromCache:(e,t)=>f.fetch(e,t).then((n=>Hu(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return le({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return le({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Xu(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 w(((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?Uu:Vu)*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:fm,pointers:1,threshold:10,enable(r,i){return this.started===fm||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${fm}start`](n){n.preventDefault(),this.started=fm;const{min:i,max:o}=r.get("zoom");this[fm]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${fm}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[fm],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)})},[`${fm}end`](e){e.preventDefault(),this.started=!1},[`${fm}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Ju,timeAxis:rd},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=le(!0,{},t[i],o)})),r}(t,mm,n),{qAxis:i}=r,o=Pr(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let c,u,d=[];const m=function(e){return Number.isNaN(+e)?NaN:o(e)};m.ticks=({distance:e,resolve:t=c.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=u.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=u.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=u.generate(e,n.isDayOrShorter)),d},m.invert=e=>o.invert(e),m.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),m.range=e=>Array.isArray(e)?o.range(e):o.range(),m.norm=e=>(pm(a,m),a.instance(e)),m.normInvert=e=>(pm(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:dm,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:dm,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:dm,formatter:void 0},year:{type:"year",pattern:"YYYY",width:dm,formatter:void 0}};return i&&cm.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(lm)).width+um)})),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=gd(t[0].data.start),i=gd(t[n-1].data.start);return Ld.count(r,i)/n>=1?o.date:Nd.count(r,i)/n>0?o.minute:Rd.count(r,i)/n>0?o.second:o.date},t}(r);return u=sm(o.copy(),r,p),c=pd({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 gm=e=>e.meta.seriesComponentKeys[0],ym=(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 vm({chart:e,models:t,actions:n,viewState:r,viewCache:i,environment:o}){const{event:{onZoom:a}}=hm,{layoutService:s,seriesModel:l}=t,c=gm(l),u=s.meta.isContinuous?a({chart:e,viewState:r,viewCache:i},{rtl:"rtl"===o.options.direction,threshold:50,targetKey:c}):()=>{};return{type:"native",events:{wheel(t){const r={x:t.clientX,y:t.clientY},i=e.componentsFromPoint(r);if(n.interact.enabled()){const[e]=i.filter((e=>e.key===cs.COMPONENT.LEGEND_CATEGORICAL));ym(t,e)}if(n.scroll.enabled()){const[e]=i.filter((e=>e.key===c));e&&(u(r,Math.sign(-t.deltaY)),t.preventDefault())}}}}}const bm="continuousPinchZoom";function xm({chart:e,models:t,environment:n,viewState:r,viewCache:i,actions:o,selectables:a}){const s=hm.interactions.areaPan,{layoutService:l,dockService:c,discreteModel:u,colorService:d,tooltipService:m}=t,p="rtl"===n.options.direction,f=m.getInteractions(),h=function({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...Js({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:Zs({componentKey:e,chart:t,actions:n,layoutService:o})}}({componentKey:"scrollbar",chart:e,actions:o,viewState:r,viewCache:i,discrete:u,layoutService:l,dockService:c,rtl:p}),g={type:"hammer",enable:!0,gestures:[...d.custom.legendInteractions(),...a.gestures.sort(((e,t)=>(t.prio||0)-(e.prio||0))),...h.gestures,...f.gestures]},y=[vm({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:gm(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=hm.event.onZoom({viewCache:i,viewState:r,chart:t},{threshold:100,rtl:o,targetKey:e});return{type:"Pinch",key:"continuous:pinch-zoom",options:{event:bm,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:{[`${bm}start`](e){a.last=e.scale,e.preventDefault()},[`${bm}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:gm(t.seriesModel),chart:e,actions:o,viewState:r,viewCache:i,rtl:p})),[g,...y]}const Sm=({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}}}),Em="lasso",Mm=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:Em,enable(e,n){if(this.started===Em||!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!==Em&&(i.actions.select.emit("start",Em),this.chart.component(e).emit("lassoStart",t),this.started=Em)},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",Em),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const Cm=({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 Om=({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 wm=({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 Tm(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=wm(e,t,"range");return{interactions:[e.onEdited?Om(e,t):null,r].filter(Boolean),components:[n]}}const Am=/axis|legend/,Rm=e=>e.some((e=>Am.test(e.type)));function km({actions:e,models:t}){const{seriesModel:n,layoutService:r,colorService:i,flags:o}=t,a=r.getHyperCubeValue("qDimensionInfo.0.qIsOneAndOnlyOne",!1),s={targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...n.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...n.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL],components:(e,t)=>{const[n]=t,{key:r}=n,i={key:r,action:e.srcEvent.ctrlKey||a?"set":"toggle",contexts:["selection"]};return-1===[cs.COMPONENT.AXIS.MAJOR,cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER,cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS,cs.COMPONENT.LEGEND_CATEGORICAL].indexOf(r)&&(i.data=["selectionDimension"]),[i]}},l={actions:e,isLocked:e=>e.some((e=>"legend-cat"===e.type))?i.isSelectionLocked({isMeasureSelectionLocked:r.meta.isDimensionLocked}):r.meta.isDimensionLocked,hitRadius:e=>Rm(e)?0:3,debouncer:O,flags:o};return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[Cm(e,t)],components:[]}}(s,l)}function Nm({actions:e,models:t}){const{layoutService:n,dockService:r,seriesModel:i}=t,{isDiscrete:o,isDimensionLocked:a}=n.meta;if(!o||a)return!1;const s=[...i.meta.seriesComponentKeys,cs.COMPONENT.AXIS.MAJOR];return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[wm(e,t,"area")],components:[n]}}({eventName:"discreteRange",key:"discrete-range-brush",components:[{key:s[0],contexts:["selection"],action:"set",data:["selectionDimension"]}],targets:s,fillTargets:[cs.COMPONENT.AXIS.MAJOR],dock:r.meta.major.dock},{actions:e})}const Im={components:[],interactions:[]};function Lm({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"))&&Tm({eventName:"minorRange",key:"minor-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.PRIMARY,`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.PRIMARY],dock:r.meta.minor.dock,scale:cs.SCALE.MINOR.PRIMARY,onEdited(){e.select.emit("end","minorRange")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Im,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"))&&Tm({eventName:"minorRange-secondary",key:"minor-secondary-range-brush",targets:[cs.COMPONENT.AXIS.MINOR.SECONDARY,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...i.query.series(us.TYPE.MARKER).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.MARKER,e))),...i.query.series(us.TYPE.LINE).filter((e=>!e.isPrimary)).map((e=>Yl(cs.COMPONENT.POINT,e)))],fillTargets:[cs.COMPONENT.AXIS.MINOR.SECONDARY],dock:r.meta.minorSecondary.dock,scale:cs.SCALE.MINOR.SECONDARY,onEdited(){e.select.emit("end","minorRange-secondary")}},{actions:e})}({actions:e,models:n,isUnsupportedFeature:r})||Im,a=Nm({actions:e,models:n})||Im,s=function({actions:e,chart:t,models:n}){const{layoutService:r,dockService:i,seriesModel:o}=n,{isContinuous:a,isTime:s}=r.meta;if(!a)return!1;const l=s?[cs.COMPONENT.AXIS_OVERLAY.TIME_INNER,cs.COMPONENT.AXIS_OVERLAY.TIME_OUTER]:[cs.COMPONENT.AXIS_OVERLAY.CONTINUOUS];return Tm({eventName:"continuousRange",key:"continuous-range-brush",targets:[`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,...o.query.series(us.TYPE.MARKER).map((e=>Yl(cs.COMPONENT.MARKER,e))),...o.query.series(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),...l],fillTargets:l,dock:i.meta.major.dock,scale:s?cs.SCALE.MAJOR_INNER:cs.SCALE.MAJOR,observeBrush:!0,multiple:!0,toLabel({datum:e,data:n,scale:r}){const i=s?r.formatter():t.formatter(cs.FORMATTER.PRIMARY),o=t.scale(cs.SCALE.MAJOR).max(),a=t.brushSelectionIncludeMax&&e===o;return`${e!==Math.max(...n)||a?"":"<"}${i(e)}`}},{actions:e})}({actions:e,chart:t,models:n})||Im,l=function({actions:e,models:t}){const{colorService:n,layoutService:r}=t,[i]=n.custom.legendComponents(),o=n.custom.wrappedScales(),{isDimensionLocked:a}=r.meta;if(a||!i)return!1;const s=`${cs.SCALE.COLOR}Range`,{type:l,key:c}=i,u=o[s];return!("legend-seq"!==l||!u||u.min>=u.max)&&Tm({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})||Im;return{components:[...i.components,...o.components,...a.components,...s.components,...l.components],interactions:[...i.interactions,...o.interactions,...a.interactions,...s.interactions,...l.interactions]}}function Pm({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=Sm(n);return{interactions:[Mm(n,t)],components:[r]}}(o,{actions:e})}function Dm({picasso:e,chart:t,models:n,environment:r,flags:i,viewState:o,viewCache:a,actions:s,isUnsupportedFeature:l}){const{colorService:c,pluginService:u}=n,d=n.layoutService.getLayout(),{options:m}=r,p=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:d,options:m}),f=(h={logicalSize:p,minCenterRatio:0},{layoutModes:de.getLayoutModes(),center:void 0!==h.minCenterRatio?{minWidthRatio:h.minCenterRatio,minHeightRatio:h.minCenterRatio}:void 0,logicalSize:h.logicalSize?{align:.5,preserveAspectRatio:!0,...h.logicalSize}:void 0});var h;const g=function({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o,actions:a}){const{colorService:s,layoutService:l,dockService:c,tooltipService:u,disclaimerService:d}=t,m=function({environment:e,models:t}){const{translator:n,options:r}=e,{themeService:i,disclaimerService:o}=t,a=o.getDisclaimer();if(!a)return!1;const{fontFamily:s}=i.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:a.alignment},settings:{isRTL:"rtl"===r.direction,label:n.get(`Object.Disclaimer.${a.key}`)},style:{fontFamily:s}}}({environment:n,models:t});return d.getHasSuppressingDisclaimer()?[m]:[...cu({models:t}),...Dl({models:t,flags:r}),...iu({chart:e,models:t,environment:n,flags:r,viewState:i,viewCache:o}),Mu({models:t,environment:n}),...Fl({models:t,environment:n,flags:r}),...pu({models:t,environment:n,actions:a,flags:r}),Xo({viewState:i,viewCache:o,layoutService:l,dockService:c}),...bu({models:t}),...xu({chart:e,models:t,environment:n}),fu({models:t,environment:n,viewState:i,viewCache:o}),...s.custom.legendComponents(),Su(t),...vu({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=km({actions:e,models:n});if(o)return{components:[...a.components],gestures:[...a.interactions]};const s=Lm({actions:e,chart:t,models:n,isUnsupportedFeature:r}),l=Pm({actions:e,models:n});return{components:[...a.components,...s.components,...l.components],gestures:[...a.interactions,...s.interactions,...l.interactions]}}({actions:s,chart:t,models:n,isUnsupportedFeature:l}),v=u.extendComponents([...g,...y.components]);return{collections:xl({models:n}),scales:Il({picasso:e,models:n,viewState:o,viewCache:a,environment:r}),components:v,formatters:Cu({models:n}),interactions:xm({chart:t,models:n,environment:r,viewState:o,viewCache:a,actions:s,selectables:y}),strategy:f,palettes:c.getPalettes()}}const qm=({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}=n;function g(){t.update({settings:Dm({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 y=f.getDataPages();f.setDataPages([]),g(),f.setDataPages(y),f.meta.isContinuous||await o.command.initialize(),g()}),[d,m]);if(p)throw p},zm=[cs.COMPONENT.AXIS_TITLE.MAJOR,cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY,cs.COMPONENT.GRID_LINE,cs.COMPONENT.ZERO_LINE],$m=({models:{layoutService:e,fieldModel:t,appLayoutModel:n}})=>({type:"q",key:cs.DATA.MAIN,data:e.getHyperCube(),config:{virtualFields:t.virtuals,localeInfo:n.qLocaleInfo}}),_m=({models:{layoutService:e,fieldModel:t,continuousModel:n,appLayoutModel:r}})=>e.meta.isContinuous?[{type:"q",key:cs.DATA.REDUCED,data:n.getInitialCube(),config:{virtualFields:t.virtuals,localeInfo:r.qLocaleInfo}}]:[];const jm={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Fm(e){return jm[e]||e}function Bm(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=Fm(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=Fm(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 Hm={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"},Vm={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"},Um={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"},Wm={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"},Ym={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"},Gm={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"},Xm={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"},Km={single:"N",drillDown:"H",cyclic:"C"},Jm={N:void 0,H:Hm,C:Um},Zm=(e,t)=>{switch(e.qGrouping){case Km.single:return;case Km.drillDown:return{path:Hm,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case Km.cyclic:return{path:t?Vm:Um,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 Qm(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=ta.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ep(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=le(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),Qm(e,a,c)}))}function tp(e){return e.qGrouping===Km.single?e.qFallbackTitle||"":e.title||""}const np=async(e,t,n,r,i,o="/qHyperCubeDef")=>{const a=!i;switch(e.qGrouping){case Km.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1),i=a?[]:n.map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:a?void 0:Hm,groupItem:!a,title:e.title,selected:a,children:i}}case Km.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=a||!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:a?void 0:Um,groupItem:!a,title:e.title,selected:a,children:r}}default:return{selected:!0,id:e.cId,title:tp(e)}}},rp=(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))},ip=async(e,t,n,r,i,o)=>{const a=await rp(e,n),s=!o,l=n.filter((e=>!a.includes(e.qDef.cId))),c=await Promise.all(l.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===Km.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),l=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,c=s?void 0:Jm[l],u=!s&&l!==Km.single;return{id:n.qDef.cId,icon:c,groupItem:u,selected:!1,title:a,onSelect(e){ep(t,e,n.qDef.cId,"qDimensions",i)}}})));return c};function op({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c,isCyclicFFEnabled:u}){const d=l.qGrouping===Km.single;return 0!==r.length||u&&!d?{dir:t,dock:n,getPopoverOptions:async()=>{const t=await np(l,i,a,e,u),n=c?await ip(a,i,r,o,s,u):[];return(d||0===t.children.length)&&0===n.length?[]:[t,...n]}}:null}function ap(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===Km.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:Zm(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===Km.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:tp(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function sp({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 rp(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){ep(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function lp(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}var up={exports:{}};function dp(){}function mp(){}mp.resetWarningCache=dp;up.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:mp,resetWarningCache:dp};return n.PropTypes=n,n}();var pp=J(up.exports),fp={black:"#000",white:"#fff"},hp={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"},gp={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"},yp={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"},vp={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"},bp={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"},xp={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"},Sp={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 Ep(){return Ep=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},Ep.apply(this,arguments)}function Mp(e){return Mp="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},Mp(e)}function Cp(e){return e&&"object"===Mp(e)&&e.constructor===Object}function Op(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ep({},e):e;return Cp(e)&&Cp(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Cp(t[i])&&i in e?r[i]=Op(e[i],t[i],n):r[i]=t[i])})),r}function wp(e){var t=function(e,t){if("object"!==Mp(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Mp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Mp(t)?t:String(t)}function Tp(e,t,n){return(t=wp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ap(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 Rp(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 kp(e){if(e.type)return e;if("#"===e.charAt(0))return kp(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(Ap(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 Np(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 Ip(e){var t="hsl"===(e=kp(e)).type?kp(function(e){var t=(e=kp(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])),Np({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 Lp(e,t){return e=kp(e),t=Rp(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Np(e)}function Pp(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 Dp(e,t){if(null==e)return{};var n,r,i=Pp(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 qp=["xs","sm","md","lg","xl"];function zp(e,t,n){var r;return Ep({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")),Ep({paddingLeft:t(2),paddingRight:t(2)},n,Tp({},e.up("sm"),Ep({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Tp(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Tp(r,e.up("sm"),{minHeight:64}),r)},n)}var $p={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:fp.white,default:Sp[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}},_p={text:{primary:fp.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:Sp[800],default:"#303030"},action:{active:fp.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 jp(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=kp(e),t=Rp(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 Np(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=kp(e),t=Rp(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 Np(e)}(e.main,o)))}function Fp(e){var t=e.primary,n=void 0===t?{light:yp[300],main:yp[500],dark:yp[700]}:t,r=e.secondary,i=void 0===r?{light:gp.A200,main:gp.A400,dark:gp.A700}:r,o=e.error,a=void 0===o?{light:hp[300],main:hp[500],dark:hp[700]}:o,s=e.warning,l=void 0===s?{light:xp[300],main:xp[500],dark:xp[700]}:s,c=e.info,u=void 0===c?{light:vp[300],main:vp[500],dark:vp[700]}:c,d=e.success,m=void 0===d?{light:bp[300],main:bp[500],dark:bp[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=Dp(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Ip(e),r=Ip(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,_p.text.primary)>=g?_p.text.primary:$p.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=Ep({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ap(4,t));if("string"!=typeof e.main)throw new Error(Ap(5,JSON.stringify(e.main)));return jp(e,"light",n,v),jp(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},E={dark:_p,light:$p};return Op(Ep({common:fp,type:f,primary:S(n),secondary:S(i,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(m),grey:Sp,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},E[f]),b)}function Bp(e){return Math.round(1e5*e)/1e5}function Hp(e){return Bp(e)}var Vp={textTransform:"uppercase"},Up='"Roboto", "Helvetica", "Arial", sans-serif';function Wp(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?Up: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=Dp(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 Ep({fontFamily:i,fontWeight:e,fontSize:S(t),lineHeight:n},i===Up?{letterSpacing:"".concat(Bp(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,Vp),caption:E(u,12,1.66,.4),overline:E(u,12,2.66,1,Vp)};return Op(Ep({htmlFontSize:g,pxToRem:S,round:Hp,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:m,fontWeightBold:f},M),b,{clone:!1})}function Yp(){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 Gp=["none",Yp(0,2,1,-1,0,1,1,0,0,1,3,0),Yp(0,3,1,-2,0,2,2,0,0,1,5,0),Yp(0,3,3,-2,0,3,4,0,0,1,8,0),Yp(0,2,4,-1,0,4,5,0,0,1,10,0),Yp(0,3,5,-1,0,5,8,0,0,1,14,0),Yp(0,3,5,-1,0,6,10,0,0,1,18,0),Yp(0,4,5,-2,0,7,10,1,0,2,16,1),Yp(0,5,5,-3,0,8,10,1,0,3,14,2),Yp(0,5,6,-3,0,9,12,1,0,3,16,2),Yp(0,6,6,-3,0,10,14,1,0,4,18,3),Yp(0,6,7,-4,0,11,15,1,0,4,20,3),Yp(0,7,8,-4,0,12,17,2,0,5,22,4),Yp(0,7,8,-4,0,13,19,2,0,5,24,4),Yp(0,7,9,-4,0,14,21,2,0,5,26,4),Yp(0,8,9,-5,0,15,22,2,0,6,28,5),Yp(0,8,10,-5,0,16,24,2,0,6,30,5),Yp(0,8,11,-5,0,17,26,2,0,6,32,5),Yp(0,9,11,-5,0,18,28,2,0,7,34,6),Yp(0,9,12,-6,0,19,29,2,0,7,36,6),Yp(0,10,13,-6,0,20,31,3,0,8,38,7),Yp(0,10,13,-6,0,21,33,3,0,8,40,7),Yp(0,10,14,-6,0,22,35,3,0,8,42,7),Yp(0,11,14,-7,0,23,36,3,0,9,44,8),Yp(0,11,15,-7,0,24,38,3,0,9,46,8)],Xp={borderRadius:4};function Kp(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 Jp(e,t){if(e){if("string"==typeof e)return Kp(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)?Kp(e,t):void 0}}function Zp(e){return function(e){if(Array.isArray(e))return Kp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jp(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 Qp(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)||Jp(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 ef(){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 tf={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)"},nf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function rf(e){return"".concat(Math.round(e),"ms")}var of={easing:tf,duration:nf,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?nf.standard:n,i=t.easing,o=void 0===i?tf.easeInOut:i,a=t.delay,s=void 0===a?0:a;return Dp(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:rf(r)," ").concat(o," ").concat("string"==typeof s?s:rf(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))}},af={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function sf(){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=Dp(e,["breakpoints","mixins","palette","spacing","typography"]),d=Fp(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=Dp(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=qp.indexOf(t);return r===qp.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[qp[r+1]]?n[qp[r+1]]:t)-a/100).concat(i,")")}return Ep({keys:qp,values:n,up:l,down:function(e){var t=qp.indexOf(e)+1,r=n[qp[t]];return t===qp.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=ef(s),f=Op({breakpoints:m,direction:"ltr",mixins:zp(m,p,i),overrides:{},palette:d,props:{},shadows:Gp,typography:Wp(d,c),spacing:p,shape:Xp,transitions:of,zIndex:af},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 Op(e,t)}),f)}var lf="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",cf=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function uf(){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!==cf.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[lf]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function df(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 mf="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},pf="object"===("undefined"==typeof window?"undefined":mf(window))&&"object"===("undefined"==typeof document?"undefined":mf(document))&&9===document.nodeType;function ff(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,wp(r.key),r)}}function hf(e,t,n){return t&&ff(e.prototype,t),n&&ff(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gf(e,t)}function yf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gf(e,t)}function vf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var bf={}.constructor;function xf(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(xf);if(e.constructor!==bf)return e;var t={};for(var n in e)t[n]=xf(e[n]);return t}function Sf(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=xf(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Ef=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Mf=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+=Ef(e[n]," ");else t=Ef(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Cf(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Of(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function wf(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=Cf(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+=Of(m+":"+c+Mf(p)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+=l),r+=Of(f+":"+c+Mf(h)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Of(g+":"+c+Mf(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Of(""+e+c+"{"+r,--o)+Of("}",o)):r}var Tf=/([[\].#*$><+~=|^:(),"'`\s])/g,Af="undefined"!=typeof CSS&&CSS.escape,Rf=function(e){return Af?Af(e):e.replace(Tf,"\\$1")},kf=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}(),Nf=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(vf(vf(i)),s),i.selectorText="."+Rf(i.id)),i}yf(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]=Mf(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ep({},e,{allowEmpty:!0}):e;return wf(this.selectorText,this.style,n)},hf(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}(kf),If={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Nf(e,t,n)}},Lf={indent:1,children:!0},Pf=/@([\w-]+)/,Df=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Pf);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new oh(Ep({},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=Lf);var t=Cf(e).linebreak;if(null==e.indent&&(e.indent=Lf.indent),null==e.children&&(e.children=Lf.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),qf=/@container|@media|@supports\s+/,zf={onCreateRule:function(e,t,n){return qf.test(e)?new Df(e,t,n):null}},$f={indent:1,children:!0},_f=/@keyframes\s+([\w-]+)/,jf=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(_f);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:Rf(a(this,o)),this.rules=new oh(Ep({},n,{parent:this})),t)this.rules.add(s,t[s],Ep({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=$f);var t=Cf(e).linebreak;if(null==e.indent&&(e.indent=$f.indent),null==e.children&&(e.children=$f.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}(),Ff=/@keyframes\s+/,Bf=/\$([\w-]+)/g,Hf=function(e,t){return"string"==typeof e?e.replace(Bf,(function(e,n){return n in t?t[n]:e})):e},Vf=function(e,t,n){var r=e[t],i=Hf(r,n);i!==r&&(e[t]=i)},Uf={onCreateRule:function(e,t,n){return"string"==typeof e&&Ff.test(e)?new jf(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Vf(e,"animation-name",n.keyframes),"animation"in e&&Vf(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 Hf(e,r.keyframes);default:return e}}},Wf=function(e){function t(){return e.apply(this,arguments)||this}return yf(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ep({},e,{allowEmpty:!0}):e;return wf(this.key,this.style,n)},t}(kf),Yf={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Wf(e,t,n):null}},Gf=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=Cf(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=wf(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return wf(this.at,this.style,e)},e}(),Xf=/@font-face/,Kf={onCreateRule:function(e,t,n){return Xf.test(e)?new Gf(e,t,n):null}},Jf=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 wf(this.key,this.style,e)},e}(),Zf={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Jf(e,t,n):null}},Qf=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}(),eh={"@charset":!0,"@import":!0,"@namespace":!0},th={onCreateRule:function(e,t,n){return e in eh?new Qf(e,t,n):null}},nh=[If,zf,Uf,Yf,Kf,Zf,th],rh={process:!0},ih={force:!0,process:!0},oh=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=Ep({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="."+Rf(this.classes[d]));var m=Sf(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=Ep({},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 Nf?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof jf&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Nf?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof jf&&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=rh);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,ih)}for(var u in s){var d=t.style[u],m=s[u];null==d&&d!==m&&t.prop(u,null,ih)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Cf(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}(),ah=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ep({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new oh(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}(),sh=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}(),lh=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=Pp(t,["attached"]),i=Cf(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},hf(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ch=new lh,uh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),dh="2f1acc6c3a606b082e5eef5e54414ffb";null==uh[dh]&&(uh[dh]=0);var mh=uh[dh]++,ph=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")+mh+i+t:o+n.key+"-"+mh+(i?"-"+i:"")+"-"+t}},fh=function(e){var t;return function(){return t||(t=e()),t}},hh=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},gh=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Mf(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},yh=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},vh=function(e,t){return e.selectorText=t,e.selectorText===t},bh=fh((function(){return document.querySelector("head")}));function xh(e){var t=ch.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=bh(),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 Sh=fh((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Eh=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]},Mh=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ch=function(){function e(e){this.getPropertyValue=hh,this.setProperty=gh,this.removeProperty=yh,this.setSelector=vh,this.hasInsertedRules=!1,this.cssRules=[],e&&ch.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=Sh();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=xh(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 bh().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=Mh(n,t);if(!1===(i=Eh(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=Mh(n,t),l=Eh(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 ah&&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}(),Oh=0,wh=function(){function e(e){this.id=Oh++,this.version="10.10.0",this.plugins=new sh,this.options={id:{minify:!1},createGenerateId:ph,Renderer:pf?Ch:null,plugins:[]},this.generateId=ph({minify:!1});for(var t=0;t<nh.length;t++)this.plugins.use(nh[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=Ep({},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===ch.index?0:ch.index+1);var r=new ah(e,Ep({},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(),ch.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=Ep({},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=Sf(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}(),Th=function(e){return new wh(e)},Ah="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Rh(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=Rh(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
|
-
*/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(wp({},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,wp({},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],wp({},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],wp({},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 wp({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=wp({},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],wp({},a,{selector:p})):c.addRule(f,r[u],wp({},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)}},wg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:gg.css+e)}},Tg={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,wg,Tg,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,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"===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,Tf(e))||e}}}function ny(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function ry(){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(),ny()]}}function iy(){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=wp({},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 oy={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)}},ay=oy,sy=_.createContext(null);function ly(){return _.useContext(sy)}var cy,uy=Nh(ry()),dy={disableGeneration:!1,generateClassName:ff(),jss:uy,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},my=_.createContext(dy);function py(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=wp({},_.useContext(my),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!cy){var l=document.head;cy=document.createComment("mui-inject-first"),l.insertBefore(cy,l.firstChild)}s.jss=Nh({plugins:ry().plugins,insertionPoint:cy})}return _.createElement(my.Provider,{value:s},t)}var fy=-1e9;var hy={};function gy(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=ay.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ay.set(i.sheetsManager,o,r,s));var l=wp({},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=ay.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,wp({link:!1},l))).attach(),i.sheetsCache&&ay.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,wp({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=iy({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function yy(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?hy: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=wp({},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:fy+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ly()||a,r=wp({},_.useContext(my),s),o=_.useRef(),c=_.useRef();!function(e,t){var n,r=_.useRef([]),i=_.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),_.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return gy(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=ay.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(ay.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]),_.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=iy({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function vy(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=vy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function by(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=vy(e))&&(r&&(r+=" "),r+=t);return r}var xy={exports:{}},Sy={},Ey="function"==typeof Symbol&&Symbol.for,My=Ey?Symbol.for("react.element"):60103,Cy=Ey?Symbol.for("react.portal"):60106,Oy=Ey?Symbol.for("react.fragment"):60107,wy=Ey?Symbol.for("react.strict_mode"):60108,Ty=Ey?Symbol.for("react.profiler"):60114,Ay=Ey?Symbol.for("react.provider"):60109,Ry=Ey?Symbol.for("react.context"):60110,ky=Ey?Symbol.for("react.async_mode"):60111,Ny=Ey?Symbol.for("react.concurrent_mode"):60111,Iy=Ey?Symbol.for("react.forward_ref"):60112,Ly=Ey?Symbol.for("react.suspense"):60113,Py=Ey?Symbol.for("react.suspense_list"):60120,Dy=Ey?Symbol.for("react.memo"):60115,qy=Ey?Symbol.for("react.lazy"):60116,zy=Ey?Symbol.for("react.block"):60121,$y=Ey?Symbol.for("react.fundamental"):60117,_y=Ey?Symbol.for("react.responder"):60118,jy=Ey?Symbol.for("react.scope"):60119;function Fy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case My:switch(e=e.type){case ky:case Ny:case Oy:case Ty:case wy:case Ly:return e;default:switch(e=e&&e.$$typeof){case Ry:case Iy:case qy:case Dy:case Ay:return e;default:return t}}case Cy:return t}}}function By(e){return Fy(e)===Ny}Sy.AsyncMode=ky,Sy.ConcurrentMode=Ny,Sy.ContextConsumer=Ry,Sy.ContextProvider=Ay,Sy.Element=My,Sy.ForwardRef=Iy,Sy.Fragment=Oy,Sy.Lazy=qy,Sy.Memo=Dy,Sy.Portal=Cy,Sy.Profiler=Ty,Sy.StrictMode=wy,Sy.Suspense=Ly,Sy.isAsyncMode=function(e){return By(e)||Fy(e)===ky},Sy.isConcurrentMode=By,Sy.isContextConsumer=function(e){return Fy(e)===Ry},Sy.isContextProvider=function(e){return Fy(e)===Ay},Sy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===My},Sy.isForwardRef=function(e){return Fy(e)===Iy},Sy.isFragment=function(e){return Fy(e)===Oy},Sy.isLazy=function(e){return Fy(e)===qy},Sy.isMemo=function(e){return Fy(e)===Dy},Sy.isPortal=function(e){return Fy(e)===Cy},Sy.isProfiler=function(e){return Fy(e)===Ty},Sy.isStrictMode=function(e){return Fy(e)===wy},Sy.isSuspense=function(e){return Fy(e)===Ly},Sy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Oy||e===Ny||e===Ty||e===wy||e===Ly||e===Py||"object"==typeof e&&null!==e&&(e.$$typeof===qy||e.$$typeof===Dy||e.$$typeof===Ay||e.$$typeof===Ry||e.$$typeof===Iy||e.$$typeof===$y||e.$$typeof===_y||e.$$typeof===jy||e.$$typeof===zy)},Sy.typeOf=Fy,xy.exports=Sy;var Hy=xy.exports,Vy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Uy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yy={};function Gy(e){return Hy.isMemo(e)?Wy:Yy[e.$$typeof]||Vy}Yy[Hy.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yy[Hy.Memo]=Wy;var Xy=Object.defineProperty,Ky=Object.getOwnPropertyNames,Jy=Object.getOwnPropertySymbols,Zy=Object.getOwnPropertyDescriptor,Qy=Object.getPrototypeOf,ev=Object.prototype;var tv=function e(t,n,r){if("string"!=typeof n){if(ev){var i=Qy(n);i&&i!==ev&&e(t,i,r)}var o=Ky(n);Jy&&(o=o.concat(Jy(n)));for(var a=Gy(t),s=Gy(n),l=0;l<o.length;++l){var c=o[l];if(!(Uy[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Zy(n,c);try{Xy(t,c,u)}catch(e){}}}}return t},nv=K(tv);function rv(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(wp({theme:e},n))}}}:{root:t},l=yy(s,wp({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=_.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=by(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 _.cloneElement(s,wp({className:by(s.props.className,p)},f));if("function"==typeof s)return s(wp({className:p},f));var h=d||e;return _.createElement(h,wp({ref:r,className:p},f),s)}));return nv(c,e),c}}function iv(e){var t=e.children,n=e.theme,r=ly(),i=_.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):wp({},e,t)}(r,n);return null!=e&&(e[mf]=null!==r),e}),[n,r]);return _.createElement(sy.Provider,{value:i},t)}var ov=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=yy(e,wp({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=_.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=_p(e,["classes","innerRef"]),u=c(wp({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=ly()||r,a&&(d=hf({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),_.createElement(n,wp({ref:s||t,classes:u},d))}));return nv(u,n),u}},av=df(),sv=function(e){var t=rv(e);return function(e,n){return t(e,wp({defaultTheme:av},n))}};function lv(e,t){return ov(e,wp({defaultTheme:av},t))}function cv(e){if("string"!=typeof e)throw new Error(Ip(7));return e.charAt(0).toUpperCase()+e.slice(1)}function uv(){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 dv(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=dv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dv(e))&&(r&&(r+=" "),r+=t);return r}function pv(e){return e&&e.ownerDocument||document}function fv(e){return pv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var gv="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;function yv(e){var t=j.useRef(e);return gv((function(){t.current=e})),j.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function vv(e,t){return j.useMemo((function(){return null==e&&null==t?null:function(n){hv(e,n),hv(t,n)}}),[e,t])}var bv=!0,xv=!1,Sv=null,Ev={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 Mv(e){e.metaKey||e.altKey||e.ctrlKey||(bv=!0)}function Cv(){bv=!1}function Ov(){"hidden"===this.visibilityState&&xv&&(bv=!0)}function wv(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return bv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Ev[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Tv(){xv=!0,window.clearTimeout(Sv),Sv=window.setTimeout((function(){xv=!1}),100)}function Av(){var e=j.useCallback((function(e){var t,n=W.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Mv,!0),t.addEventListener("mousedown",Cv,!0),t.addEventListener("pointerdown",Cv,!0),t.addEventListener("touchstart",Cv,!0),t.addEventListener("visibilitychange",Ov,!0))}),[]);return{isFocusVisible:wv,onBlurVisible:Tv,ref:e}}var Rv=!1,kv=_.createContext(null),Nv="unmounted",Iv="exited",Lv="entering",Pv="entered",Dv="exiting",qv=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=Iv,r.appearStatus=Lv):i=Pv:i=t.unmountOnExit||t.mountOnEnter?Nv:Iv,r.state={status:i},r.nextCallback=null,r}Sf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nv?{status:Iv}: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!==Lv&&n!==Pv&&(t=Lv):n!==Lv&&n!==Pv||(t=Dv)}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===Lv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Y.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Iv&&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]:[Y.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Rv?this.safeSetState({status:Pv},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Lv},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Pv},(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:Y.findDOMNode(this);t&&!Rv?(this.props.onExit(r),this.safeSetState({status:Dv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Iv},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Iv},(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:Y.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 _.createElement(kv.Provider,{value:null},"function"==typeof n?n(e,r):_.cloneElement(_.Children.only(n),r))},t}(_.Component);function zv(){}qv.contextType=kv,qv.propTypes={},qv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zv,onEntering:zv,onEntered:zv,onExit:zv,onExiting:zv,onExited:zv},qv.UNMOUNTED=Nv,qv.EXITED=Iv,qv.ENTERING=Lv,qv.ENTERED=Pv,qv.EXITING=Dv;var $v=qv;function _v(e,t){var n=Object.create(null);return e&&F.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&B(e)?t(e):e}(e)})),n}function jv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Fv(e,t,n){var r=_v(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(B(a)){var s=o in t,l=o in r,c=t[o],u=B(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&B(c)&&(i[o]=H(a,{onExited:n.bind(null,a),in:c.props.in,exit:jv(a,"exit",e),enter:jv(a,"enter",e)})):i[o]=H(a,{in:!1}):i[o]=H(a,{onExited:n.bind(null,a),in:!0,exit:jv(a,"exit",e),enter:jv(a,"enter",e)})}})),i}var Bv=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Hv=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,_v(n.children,(function(e){return H(e,{onExited:r.bind(null,e),in:!0,appear:jv(e,"appear",n),enter:jv(e,"enter",n),exit:jv(e,"exit",n)})}))):Fv(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=_v(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=wp({},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=Bv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?_.createElement(kv.Provider,{value:i},o):_.createElement(kv.Provider,{value:i},_.createElement(t,r,o))},t}(_.Component);Hv.propTypes={},Hv.defaultProps={component:"div",childFactory:function(e){return e}};var Vv=Hv;function Uv(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 Wv=j.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 j.createElement(o,wp({className:mv(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),Yv=lv((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),wp({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"})(Wv),Gv="undefined"==typeof window?j.useEffect:j.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=j.useState(!1),m=d[0],p=d[1],f=mv(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=mv(t.child,m&&t.childLeaving,r&&t.childPulsate),y=yv(c);return Gv((function(){if(!s){p(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),j.createElement("span",{className:f,style:h},j.createElement("span",{className:g}))}var Kv=j.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=j.useState([]),l=s[0],c=s[1],u=j.useRef(0),d=j.useRef(null);j.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var m=j.useRef(!1),p=j.useRef(null),f=j.useRef(null),h=j.useRef(null);j.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=j.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),[j.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=j.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=j.useCallback((function(){y({},{pulsate:!0})}),[y]),b=j.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 j.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),j.createElement("span",wp({className:mv(i.root,o),ref:h},a),j.createElement(Vv,{component:null,exit:!0},l))})),Jv=lv((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"})(j.memo(Kv)),Zv=j.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,w=e.onMouseDown,T=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"]),_=j.useRef(null);var F=j.useRef(null),B=j.useState(!1),H=B[0],V=B[1];m&&H&&V(!1);var U=Av(),Y=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 yv((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}j.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),_.current.focus()}}}),[]),j.useEffect((function(){H&&v&&!f&&F.current.pulsate()}),[f,v,H]);var J=K("start",w),Z=K("stop",I),Q=K("stop",A),ee=K("stop",(function(e){H&&e.preventDefault(),T&&T(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=yv((function(e){_.current||(_.current=e.currentTarget),Y(e)&&(V(!0),M&&M(e)),E&&E(e)})),ae=function(){var e=W.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=j.useRef(!1),le=yv((function(e){v&&!se.current&&H&&F.current&&" "===e.key&&(se.current=!0,e.persist(),F.current.stop(e,(function(){F.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=yv((function(e){v&&" "===e.key&&F.current&&H&&!e.defaultPrevented&&(se.current=!1,e.persist(),F.current.stop(e,(function(){F.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=vv(r,t),pe=vv(X,_),fe=vv(me,pe),he=j.useState(!1),ge=he[0],ye=he[1];j.useEffect((function(){ye(!0)}),[]);var ve=ge&&!f&&!m;return j.createElement(ue,wp({className:mv(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?j.createElement(Jv,wp({ref:F,center:o},D)):null)})),Qv=lv({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"})(Zv),eb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},tb=j.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?eb:b,S=_p(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||eb[v])||"span";return j.createElement(E,wp({className:mv(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(cv(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(cv(r))],"initial"!==u&&i["display".concat(cv(u))]),ref:t},S))})),nb=lv((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"})(tb),rb=j.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,w=_p(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=S&&j.createElement("span",{className:mv(r.startIcon,r["iconSize".concat(cv(x))])},S),A=h&&j.createElement("span",{className:mv(r.endIcon,r["iconSize".concat(cv(x))])},h);return j.createElement(Qv,wp({className:mv(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(cv(a))],"medium"!==x&&[r["".concat(O,"Size").concat(cv(x))],r["size".concat(cv(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:mv(r.focusVisible,g),ref:t,type:M},w),j.createElement("span",{className:r.label},T,n,A))})),ib=lv((function(e){return{root:wp({},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"})(rb);var ob="undefined"!=typeof window?j.useLayoutEffect:j.useEffect,ab=j.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=j.useState(null),l=s[0],c=s[1],u=vv(j.isValidElement(n)?n.ref:null,t);return ob((function(){o||c(function(e){return e="function"==typeof e?e():e,W.findDOMNode(e)}(r)||document.body)}),[r,o]),ob((function(){if(l&&!o)return hv(t,l),function(){hv(t,null)}}),[t,l,o]),ob((function(){a&&(l||o)&&a()}),[a,l,o]),o?j.isValidElement(n)?j.cloneElement(n,{ref:u}):n:l?W.createPortal(n,l):l})),sb=ab;function lb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cb(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ub(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)&&lb(e,r)}))}function db(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function mb(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=pv(e);return t.body===e?fv(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(cb(o)+a,"px"),n=pv(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(cb(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 pb=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&&lb(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);ub(t,e.mountNode,e.modalRef,r,!0);var i=db(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=db(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=mb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=db(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&&lb(e.modalRef,!0),ub(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&&lb(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function fb(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=j.useRef(),m=j.useRef(null),p=j.useRef(null),f=j.useRef(),h=j.useRef(null),g=j.useCallback((function(e){h.current=W.findDOMNode(e)}),[]),y=vv(t.ref,g),v=j.useRef();return j.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(f.current=l().activeElement),j.useEffect((function(){if(u){var e=pv(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]),j.createElement(j.Fragment,null,j.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),j.cloneElement(t,{ref:y}),j.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelEnd"}))}var hb={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"}},gb=j.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=_p(e,["invisible","open"]);return i?j.createElement("div",wp({"aria-hidden":!0,ref:t},o,{style:wp({},hb.root,r?hb.invisible:{},o.style)})):null}));var yb=new pb,vb=j.forwardRef((function(e,t){var n=ly(),r=hf({name:"MuiModal",props:wp({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?gb: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,w=void 0!==O&&O,T=r.keepMounted,A=void 0!==T&&T,R=r.manager,k=void 0===R?yb: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=j.useState(!0),$=z[0],_=z[1],F=j.useRef({}),B=j.useRef(null),H=j.useRef(null),V=vv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),Y=function(){return pv(B.current)},G=function(){return F.current.modalRef=H.current,F.current.mountNode=B.current,F.current},X=function(){k.mount(G(),{disableScrollLock:C}),H.current.scrollTop=0},K=yv((function(){var e=function(e){return e="function"==typeof e?e():e,W.findDOMNode(e)}(u)||Y().body;k.add(G(),e),H.current&&X()})),J=j.useCallback((function(){return k.isTopModal(G())}),[k]),Z=yv((function(e){B.current=e,e&&(P&&P(),D&&J()?X():lb(H.current,!0))})),Q=j.useCallback((function(){k.remove(G())}),[k]);if(j.useEffect((function(){return function(){Q()}}),[Q]),j.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=uv((function(){_(!1)}),s.props.onEnter),te.onExited=uv((function(){_(!0),c&&Q()}),s.props.onExited)),j.createElement(sb,{ref:Z,container:u,disablePortal:x},j.createElement("div",wp({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:wp({},ee.root,!D&&$?ee.hidden:{},q.style)}),w?null:j.createElement(o,wp({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),j.createElement(fb,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:Y,isEnabled:J,open:D},j.cloneElement(s,te))))})),bb=vb,xb=j.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 j.createElement(s,wp({className:mv(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))})),Sb=lv((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"})(xb);function Eb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Mb={entering:{opacity:1,transform:Eb(1)},entered:{opacity:1,transform:"none"}},Cb=j.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?$v:h,y=_p(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=j.useRef(),b=j.useRef(),x=ly()||av,S=x.unstable_strictMode&&!i,E=j.useRef(null),M=vv(n.ref,t),C=vv(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)}}},w=O(l),T=O((function(e,t){!function(e){e.scrollTop}(e);var n,r=Uv({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=Uv({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=Eb(.75),c&&c(e)})),N=O(u);return j.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),j.createElement(g,wp({appear:!0,in:o,nodeRef:S?E:void 0,onEnter:T,onEntered:A,onEntering:w,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 j.cloneElement(n,wp({style:wp({opacity:0,transform:Eb(.75),visibility:"exited"!==e||o?void 0:"hidden"},Mb[e],m,n.props.style),ref:C},t))}))}));Cb.muiSupportAuto=!0;var Ob=Cb,wb=j.createContext({}),Tb=j.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=j.useMemo((function(){return{dense:l}}),[l]);return j.createElement(wb.Provider,{value:p},j.createElement(a,wp({className:mv(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Ab=lv({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Tb),Rb="undefined"==typeof window?j.useEffect:j.useLayoutEffect,kb=j.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,w=e.selected,T=void 0!==w&&w,A=_p(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=j.useContext(wb),k={dense:v||R.dense||!1,alignItems:r},N=j.useRef(null);Rb((function(){o&&N.current&&N.current.focus()}),[o]);var I,L,P=j.Children.toArray(l),D=P.length&&(I=P[P.length-1],L=["ListItemSecondaryAction"],j.isValidElement(I)&&-1!==L.indexOf(I.type.muiName)),q=vv(j.useCallback((function(e){N.current=W.findDOMNode(e)}),[]),t),z=wp({className:mv(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,T&&c.selected),disabled:x},A),$=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=mv(c.focusVisible,O),$=Qv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),j.createElement(wb.Provider,{value:k},j.createElement(p,wp({className:mv(c.container,h),ref:q},g),j.createElement($,z,P),P.pop()))):j.createElement(wb.Provider,{value:k},j.createElement($,wp({ref:q},z),P))})),Nb=lv((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"})(kb),Ib=j.forwardRef((function(e,t){var n=e.classes,r=e.className,i=_p(e,["classes","className"]),o=j.useContext(wb);return j.createElement("div",wp({className:mv(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Lb=lv((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ib),Pb=j.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=j.useContext(wb).dense,h=null!=c?c:n;null==h||h.type===nb||a||(h=j.createElement(nb,wp({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===nb||a||(g=j.createElement(nb,wp({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),j.createElement("div",wp({className:mv(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Db=lv({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Pb);function qb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zb(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function $b(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function _b(e){return"function"==typeof e?e():e}var jb=j.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,w=void 0===O?{}:O,T=e.transformOrigin,A=void 0===T?{vertical:"top",horizontal:"left"}:T,R=e.TransitionComponent,k=void 0===R?Ob: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=j.useRef(),z=j.useCallback((function(e){if("anchorPosition"===l)return a;var t=_b(r),n=(t&&1===t.nodeType?t:pv(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+qb(n,i),left:n.left+zb(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),$=j.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]),_=j.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:qb(e,A.vertical)+t,horizontal:zb(e,A.horizontal)}}),[A.horizontal,A.vertical]),F=j.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:$b(i)};var o=z(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=fv(_b(r)),m=d.innerHeight-y,p=d.innerWidth-y;if(a<y){var f=a-y;a-=f,i.vertical+=f}else if(c>m){var h=c-m;a-=h,i.vertical+=h}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>p){var v=u-p;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:$b(i)}}),[r,l,z,$,_,y]),B=j.useCallback((function(){var e=q.current;if(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[F]),H=j.useCallback((function(e){q.current=W.findDOMNode(e)}),[]);j.useEffect((function(){C&&B()})),j.useImperativeHandle(n,(function(){return C?{updatePosition:function(){B()}}:null}),[C,B]),j.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?pv(_b(r)).body:void 0);return j.createElement(bb,wp({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:mv(u.root,d)},D),j.createElement(k,wp({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:uv((function(e,t){x&&x(e,t),B()}),P.onEntering)}),j.createElement(Yv,wp({elevation:f,ref:H},w,{className:mv(u.paper,w.className)}),c)))})),Fb=lv({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(jb);function Bb(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Hb({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:Bb(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return _.createElement("i",{style:i},_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},_.createElement("path",{d:e})))}const Vb=sv(Nb)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Ub={menuItem:"alternative-menu-item"},Wb=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>yy((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 _.createElement(Nb,pp({className:`${i.root} ${n}`},r))},Yb=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Ub.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 Gb({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=ke.detectTextDirection(e);return!s?_.createElement(Vb,{role:"menuitem",button:!0,onClick:n,className:Ub.menuItem,onKeyDown:Yb,autoFocus:t},_.createElement(Lb,{style:{minWidth:32}},_.createElement(Hb,{d:t?Jm.d:""})),_.createElement(Db,{primaryTypographyProps:{dir:l}},e)):_.createElement(Wb,{nested:r,role:"menuitem",button:!0,onClick:n,className:Ub.menuItem,onKeyDown:Yb,dir:a,autoFocus:t},_.createElement(Db,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),_.createElement(Lb,{style:{minWidth:16}},_.createElement(Hb,{d:t?Jm.d:""})),i&&_.createElement(Lb,{style:{minWidth:16}},_.createElement(Hb,{d:i.d})))}Gb.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,isCyclicFFEnabled:yp.bool.isRequired},Gb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Wb.propTypes={nested:yp.bool,className:yp.string},Wb.defaultProps={nested:!1,className:Ub.menuItem};const Xb={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 Kb({alignTo:e,currentId:t,dir:n,dock:r,list:i,onClose:o,show:a,instruction:s,isCyclicFFEnabled:l}){const c=l,u=i.map(((e,r)=>{var a;return _.createElement(_.Fragment,{key:e.id},_.createElement(Gb,{icon:e.icon,title:e.title,bold:e.groupItem,selected:e.selected,onClick:()=>{e.onSelect&&e.onSelect(t),o(e.id)},dir:n,isCyclicFFEnabled:l}),(null===(a=e.children)||void 0===a?void 0:a.length)>0&&_.createElement(Ab,{dense:!0,dir:n,component:"div",disablePadding:!0},e.children.map((t=>_.createElement(Gb,{key:t.id,nested:!0,title:t.title,selected:t.selected,onClick:()=>{t.onSelect(),o(e.id)},dir:n,isCyclicFFEnabled:l})))),r<i.length-1&&c&&_.createElement(Sb,{key:`divider-${e.id}`}))}));return _.createElement(Fb,pp({anchorEl:e,open:a,onClose:o},Xb[r],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),_.createElement(Ab,{dense:!0,disablePadding:!0,dir:n,"aria-label":s,component:"nav"},u))}Kb.propTypes={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,isCyclicFFEnabled:yp.bool.isRequired},Kb.defaultProps={list:[],alignTo:null};const Jb="title-button",Zb="active-title-button",Qb=sv((({children:e,...t})=>_.createElement(ib,pp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),ex=sv(ib)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class tx extends _.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=_.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(`.${Jb}`);t&&t.classList.add(Zb)}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(`.${Jb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Zb}`);e&&(e.classList.remove(Zb),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l,showGroupDimOptions:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,m=r||Boolean(!e.drillUp)||this.state.inSelection,p=e.breadcrumbs.map(((t,n)=>_.createElement(Qb,{style:{display:"flex",alignItems:"center",color:m&&"rgba(89, 89, 89, 0.8)",pointerEvents:m?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>m?void 0:e.drillUp(d-n),title:t},_.createElement("span",{style:u},t),_.createElement(Hb,pp({},Qm,{size:"small",style:{margin:"0 8px"}}))))),f=l||c?this.state.hasPopoverOptions:s,h=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||r||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&g&&"none",...o?{padding:o}:{paddingTop:0,paddingBottom:0},...a&&{minWidth:a}};this.state.open&&(y.background="rgba(0,0,0,0.08)");const v=()=>{this.setState({disableCyclicButton:!0})},b=ke.detectTextDirection(e.text),x=_.createElement(Qb,{"aria-label":n.get(`Accessibility.${t&&f?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:h,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Jb} ${e.id}`,"data-id":e.id},e.locked&&_.createElement(Hb,pp({},Km,{size:"small",title:n.get("Tooltip.selections.locked")})),_.createElement("span",{style:u,dir:b},e.text),t&&f&&_.createElement(Hb,pp({},Zm,{size:"small",style:{margin:"0 8px"}})));return _.createElement(_.Fragment,null,e.icon&&e.icon.onClick&&_.createElement(ex,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:r?void 0:()=>e.icon.onClick({onError:v})},_.createElement(Hb,pp({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&_.createElement(Hb,pp({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:f?"auto":"none",height:"100%"}},x),t&&f&&_.createElement(Kb,{dock:t.dock,dir:t.dir,currentId:e.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function nx(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function rx(e){function t(e){return!e.isDimension&&ve.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],E=r||i[a?"qDimensionInfo":"qMeasureInfo"],M=a?cp:dp,C=a?up:mp,O=Boolean(l&&l.colorSupport&&l.modifiers),w=O&&((T=this.settings.settings).isDimension&&ve.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const A=g("PS_21223_CYCLIC_GROUPS"),R=E.map(((t,r)=>{const i="number"==typeof t.explicitColumn?t.explicitColumn:r,o=C(t,i,l,e),g=r===E.length-1,v=A&&Boolean(e)&&a&&"N"!==t.qGrouping,b=O||v?M({column:i,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:nx(y),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:O,isCyclicFFEnabled:A}):void 0;return _.createElement(_.Fragment,{key:t.cId},_.createElement(tx,{showGroupDimOptions:v,popover:b,titleData:o,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:w,supportConditional:h,isCyclicFFEnabled:A}),!g&&_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return _.createElement("div",{style:b,dir:v},R)}}}tx.propTypes={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,isCyclicFFEnabled:yp.bool.isRequired,showGroupDimOptions:yp.bool.isRequired},tx.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const ix=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 ox=ff({productionPrefix:"q5ebd",disableGlobal:!0,seed:""});function ax(){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",Y.render(function(e,t){return _.createElement(py,{generateClassName:t},_.createElement(iv,{theme:ix},e))}(e,ox),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&Y.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(Y.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}function sx(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:sx(i,t,n)},i}function lx(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),sx(i,a,l,e.invert)}))}const cx={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(se({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function ux({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=se({},{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 dx({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=se(!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:se(!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:se(!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:se(!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 mx=["oob"];const px={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=dx({keys:mx,data:i,defaultSettings:{oob:cx.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=ux}){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(cx.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:mx,symbol:s,dockValue:n});return d}},fx={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},hx=["hat"];function gx(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 yx({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=se({},e.hat,{type:"path",d:gx(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,se({},e.hat,{type:"path",d:gx(m)})]}const vx={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=dx({keys:hx,data:r,defaultSettings:fx,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=ux}){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(...yx({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:hx});return c}};var bx={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"};function xx(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function Sx(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 Ex({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?bx.EQUAL_EQUAL:i<o?bx.EQUAL_HIGHER:bx.EQUAL_LOWER:i===o?r>i?bx.HIGHER_EQUAL:bx.LOWER_EQUAL:r>i?i<o?Sx(e,t,n)>90?bx.HIGHER_HIGHER_OBTUSE:bx.HIGHER_HIGHER_ACUTE:xx(e,t)>xx(e,n)?bx.HIGHER_LOWER_POSITIVE:bx.HIGHER_LOWER_NEGATIVE:i>o?Sx(e,t,n)>90?bx.LOWER_LOWER_OBTUSE:bx.LOWER_LOWER_ACUTE:xx(e,t)>xx(e,n)?bx.LOWER_HIGHER_POSITIVE:bx.LOWER_HIGHER_NEGATIVE:r===i?bx.EQUAL_VOID:r>i?bx.HIGHER_VOID:bx.LOWER_VOID:i===o?bx.VOID_EQUAL:i<o?bx.VOID_HIGHER:bx.VOID_LOWER:bx.VOID_VOID}function Mx({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 Cx={X:1,Y:0};function Ox({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*Cx.X,height:m.height+2*Cx.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:Mx({bounds:p,size:a}),border:f?f/2:0,classification:bx.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 wx({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:Ox({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 Tx={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Ax={[bx.EQUAL_EQUAL]:[Tx.TOP,Tx.BOTTOM],[bx.EQUAL_HIGHER]:[Tx.BOTTOM,Tx.BOTTOM_RIGHT],[bx.EQUAL_LOWER]:[Tx.TOP,Tx.TOP_RIGHT],[bx.EQUAL_VOID]:[Tx.TOP,Tx.BOTTOM],[bx.HIGHER_EQUAL]:[Tx.LEFT,Tx.BOTTOM_LEFT,Tx.TOP,Tx.TOP_RIGHT],[bx.HIGHER_HIGHER_ACUTE]:[Tx.BOTTOM,Tx.BOTTOM_LEFT,Tx.LEFT,Tx.TOP_RIGHT],[bx.HIGHER_HIGHER_OBTUSE]:[Tx.BOTTOM,Tx.TOP],[bx.HIGHER_LOWER_NEGATIVE]:[Tx.TOP,Tx.TOP_RIGHT,Tx.RIGHT],[bx.HIGHER_LOWER_POSITIVE]:[Tx.BOTTOM,Tx.BOTTOM_LEFT,Tx.LEFT],[bx.HIGHER_VOID]:[Tx.TOP],[bx.LOWER_EQUAL]:[Tx.TOP],[bx.LOWER_HIGHER_NEGATIVE]:[Tx.TOP,Tx.TOP_LEFT],[bx.LOWER_HIGHER_POSITIVE]:[Tx.BOTTOM_RIGHT],[bx.LOWER_LOWER_ACUTE]:[Tx.TOP,Tx.TOP_LEFT,Tx.LEFT,Tx.TOP_RIGHT,Tx.RIGHT],[bx.LOWER_LOWER_OBTUSE]:[Tx.TOP,Tx.BOTTOM],[bx.LOWER_VOID]:[Tx.TOP],[bx.VOID_EQUAL]:[Tx.TOP],[bx.VOID_HIGHER]:[Tx.TOP,Tx.BOTTOM],[bx.VOID_LOWER]:[Tx.TOP,Tx.BOTTOM,Tx.LEFT],[bx.VOID_VOID]:[Tx.TOP]};function Rx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=wx({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,d=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:l,threshold:u.node.localBounds.height}),m={getItems:()=>c,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=Ex({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),m.getItems().forEach((e=>e.setPreferences(Ax[e.classification]))),m}function kx({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 Nx({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 Ix({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 Nx({line1:e,line2:{x1:n.x,y1:n.y,x2:r.x,y2:r.y}})||Nx({line1:e,line2:a})||Nx({line1:e,line2:s})||Nx({line1:e,line2:l})}({line:t,rect:e})))}const Lx={x:0,width:0,y:0,height:0};const Px=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Dx=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),qx=({item:e})=>({x:e.bounds.x+e.node.localBounds.width/2+e.border,y:e.bounds.y-e.bounds.height/2}),zx=({item:e})=>({x:e.bounds.x,y:e.bounds.y+e.node.localBounds.height/2+e.border}),$x=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),_x=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),jx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),Fx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var Bx={X:2.5,Y:4};const Hx=[Tx.TOP,Tx.TOP_LEFT,Tx.TOP_RIGHT],Vx=[Tx.BOTTOM,Tx.BOTTOM_LEFT,Tx.BOTTOM_RIGHT];function Ux({position:e}){const t={x:Bx.X,width:-2*Bx.X,y:0,height:0},n=Hx.indexOf(e)>-1,r=Vx.indexOf(e)>-1;return n&&(t.y=Bx.Y,t.height=-Bx.Y),r&&(t.height=-Bx.Y),t}function Wx({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 Gx=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+=Gx){const a=Yx({coordinates:Wx({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-=Gx){const a=Yx({coordinates:Wx({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 Kx=void 0;function Jx({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(Tx).map((e=>Tx[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[Tx.TOP]:Px,[Tx.TOP_RIGHT]:Dx,[Tx.RIGHT]:qx,[Tx.BOTTOM_RIGHT]:zx,[Tx.BOTTOM]:$x,[Tx.BOTTOM_LEFT]:_x,[Tx.LEFT]:jx,[Tx.TOP_LEFT]:Fx},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),c=Ux({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>Xx({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||Kx)}return(e.extreme||e.elite)&&a()||Kx}function Zx({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.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})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=Lx,ignoreLines:a=!1}){const s={inside:kx({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=Ix({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:s,placements:o}),u=Jx({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=Jx({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var Qx={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}},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}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:r}=t,i=r.length?e=>r.includes(e.key):e=>e.key===t.point,o=this.chart.findShapes("circle").filter(i);if(!o.length)return[];const a="horizontal"===e.orientation,s=a?"x":"y";o.sort(((e,t)=>e.localBounds[s]-t.localBounds[s]));const l={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:c,width:u,edgeBleed:d}=this.rect,m={height:c,width:u,edgeBleed:d,insideStrategy:e.insideStrategy},{style:p}=this,f=Rx({nodes:o,extract:l,style:p,measureText:this.renderer.measureText,size:m,horizontal:a,rtl:e.rtl,showLabel:e.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:f}),Zx({model:f,size:m,all:e.all}),f.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:p.fontSize,fontFamily:p.fontFamily,fill:p.fill,text:l.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},eS={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var tS={black:"#000",white:"#fff"};var nS={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 rS={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 iS={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 oS={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 aS={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 sS={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 lS={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 cS(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 uS=Object.freeze({__proto__:null,default:cS}),dS="$$material";function mS(){return mS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mS.apply(this,arguments)}function pS(e,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 fS(){return fS=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},fS.apply(this,arguments)}function hS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var gS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yS=hS((function(e){return gS.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var vS=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),bS="-ms-",xS="-moz-",SS="-webkit-",ES="comm",MS="rule",CS="decl",OS="@keyframes",wS=Math.abs,TS=String.fromCharCode,AS=Object.assign;function RS(e){return e.trim()}function kS(e,t,n){return e.replace(t,n)}function NS(e,t){return e.indexOf(t)}function IS(e,t){return 0|e.charCodeAt(t)}function LS(e,t,n){return e.slice(t,n)}function PS(e){return e.length}function DS(e){return e.length}function qS(e,t){return t.push(e),e}var zS=1,$S=1,_S=0,jS=0,FS=0,BS="";function HS(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:zS,column:$S,length:a,return:""}}function VS(e,t){return AS(HS("",null,null,"",null,null,0),e,{length:-e.length},t)}function US(){return FS=jS>0?IS(BS,--jS):0,$S--,10===FS&&($S=1,zS--),FS}function WS(){return FS=jS<_S?IS(BS,jS++):0,$S++,10===FS&&($S=1,zS++),FS}function YS(){return IS(BS,jS)}function GS(){return jS}function XS(e,t){return LS(BS,e,t)}function KS(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 JS(e){return zS=$S=1,_S=PS(BS=e),jS=0,[]}function ZS(e){return BS="",e}function QS(e){return RS(XS(jS-1,nE(91===e?e+2:40===e?e+1:e)))}function eE(e){for(;(FS=YS())&&FS<33;)WS();return KS(e)>2||KS(FS)>3?"":" "}function tE(e,t){for(;--t&&WS()&&!(FS<48||FS>102||FS>57&&FS<65||FS>70&&FS<97););return XS(e,GS()+(t<6&&32==YS()&&32==WS()))}function nE(e){for(;WS();)switch(FS){case e:return jS;case 34:case 39:34!==e&&39!==e&&nE(FS);break;case 40:41===e&&nE(e);break;case 92:WS()}return jS}function rE(e,t){for(;WS()&&e+FS!==57&&(e+FS!==84||47!==YS()););return"/*"+XS(t,jS-1)+"*"+TS(47===e?e:WS())}function iE(e){for(;!KS(YS());)WS();return XS(e,jS)}function oE(e){return ZS(aE("",null,null,null,[""],e=JS(e),0,[0],e))}function aE(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=WS()){case 40:if(108!=f&&58==IS(M,d-1)){-1!=NS(M+=kS(QS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=QS(v);break;case 9:case 10:case 13:case 32:M+=eE(f);break;case 92:M+=tE(GS()-1,7);continue;case 47:switch(YS()){case 42:case 47:qS(lE(rE(WS(),GS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=PS(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=kS(M,/\f/g,"")),p>0&&PS(M)-d&&qS(p>32?cE(M+";",r,n,d-1):cE(kS(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(qS(E=sE(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)aE(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===IS(M,3)?100:m){case 100:case 108:case 109:case 115:aE(e,E,E,r&&qS(sE(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:aE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+PS(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==US())continue;switch(M+=TS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(PS(M)-1)*y,y=1;break;case 64:45===YS()&&(M+=QS(WS())),m=YS(),u=d=PS(b=M+=iE(GS())),v++;break;case 45:45===f&&2==PS(M)&&(h=0)}}return o}function sE(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=DS(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=LS(e,d+1,d=wS(h=a[f])),b=e;y<p;++y)(b=RS(h>0?m[y]+" "+v:kS(v,/&\f/g,m[y])))&&(l[g++]=b);return HS(e,t,n,0===i?MS:s,l,c,u)}function lE(e,t,n){return HS(e,t,n,ES,TS(FS),LS(e,2,-2),0)}function cE(e,t,n,r){return HS(e,t,n,CS,LS(e,0,r),LS(e,r+1,-1),r)}function uE(e,t){for(var n="",r=DS(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function dE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case CS:return e.return=e.return||e.value;case ES:return"";case OS:return e.return=e.value+"{"+uE(e.children,r)+"}";case MS:e.value=e.props.join(",")}return PS(n=uE(e.children,r))?e.return=e.value+"{"+n+"}":""}function mE(e){var t=DS(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var pE=function(e,t,n){for(var r=0,i=0;r=i,i=YS(),38===r&&12===i&&(t[n]=1),!KS(i);)WS();return XS(e,jS)},fE=function(e,t){return ZS(function(e,t){var n=-1,r=44;do{switch(KS(r)){case 0:38===r&&12===YS()&&(t[n]=1),e[n]+=pE(jS-1,t,n);break;case 2:e[n]+=QS(r);break;case 4:if(44===r){e[++n]=58===YS()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=TS(r)}}while(r=WS());return e}(JS(e),t))},hE=new WeakMap,gE=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)||hE.get(n))&&!r){hE.set(e,!0);for(var i=[],o=fE(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]}}},yE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vE(e,t){switch(function(e,t){return 45^IS(e,0)?(((t<<2^IS(e,0))<<2^IS(e,1))<<2^IS(e,2))<<2^IS(e,3):0}(e,t)){case 5103:return SS+"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 SS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return SS+e+xS+e+bS+e+e;case 6828:case 4268:return SS+e+bS+e+e;case 6165:return SS+e+bS+"flex-"+e+e;case 5187:return SS+e+kS(e,/(\w+).+(:[^]+)/,SS+"box-$1$2"+bS+"flex-$1$2")+e;case 5443:return SS+e+bS+"flex-item-"+kS(e,/flex-|-self/,"")+e;case 4675:return SS+e+bS+"flex-line-pack"+kS(e,/align-content|flex-|-self/,"")+e;case 5548:return SS+e+bS+kS(e,"shrink","negative")+e;case 5292:return SS+e+bS+kS(e,"basis","preferred-size")+e;case 6060:return SS+"box-"+kS(e,"-grow","")+SS+e+bS+kS(e,"grow","positive")+e;case 4554:return SS+kS(e,/([^-])(transform)/g,"$1"+SS+"$2")+e;case 6187:return kS(kS(kS(e,/(zoom-|grab)/,SS+"$1"),/(image-set)/,SS+"$1"),e,"")+e;case 5495:case 3959:return kS(e,/(image-set\([^]*)/,SS+"$1$`$1");case 4968:return kS(kS(e,/(.+:)(flex-)?(.*)/,SS+"box-pack:$3"+bS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+SS+e+e;case 4095:case 3583:case 4068:case 2532:return kS(e,/(.+)-inline(.+)/,SS+"$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(PS(e)-1-t>6)switch(IS(e,t+1)){case 109:if(45!==IS(e,t+4))break;case 102:return kS(e,/(.+:)(.+)-([^]+)/,"$1"+SS+"$2-$3$1"+xS+(108==IS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~NS(e,"stretch")?vE(kS(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==IS(e,t+1))break;case 6444:switch(IS(e,PS(e)-3-(~NS(e,"!important")&&10))){case 107:return kS(e,":",":"+SS)+e;case 101:return kS(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+SS+(45===IS(e,14)?"inline-":"")+"box$3$1"+SS+"$2$3$1"+bS+"$2box$3")+e}break;case 5936:switch(IS(e,t+11)){case 114:return SS+e+bS+kS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return SS+e+bS+kS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return SS+e+bS+kS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return SS+e+bS+e+e}return e}var bE="undefined"!=typeof document,xE=bE?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return hS((function(){var e={};return function(t){return e[t]}}))})),SE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case CS:e.return=vE(e.value,e.length);break;case OS:return uE([VS(e,{value:kS(e.value,"@","@"+SS)})],r);case MS: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 uE([VS(e,{props:[kS(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return uE([VS(e,{props:[kS(t,/:(plac\w+)/,":"+SS+"input-$1")]}),VS(e,{props:[kS(t,/:(plac\w+)/,":-moz-$1")]}),VS(e,{props:[kS(t,/:(plac\w+)/,bS+"input-$1")]})],r)}return""}))}}],EE=function(e){var t=e.key;if(bE&&"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||SE,a={},s=[];bE&&(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=[gE,yE];if(bE){var u,d=[dE,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],m=mE(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){uE(oE(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[dE],f=mE(c.concat(o,p)),h=xE(o)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return uE(oE(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new vS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},ME="undefined"!=typeof document;var CE=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===ME&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},OE=function(e,t,n){CE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);ME||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!ME&&0!==i.length)return i}};var wE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TE=/[A-Z]|^ms/g,AE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RE=function(e){return 45===e.charCodeAt(1)},kE=function(e){return null!=e&&"boolean"!=typeof e},NE=hS((function(e){return RE(e)?e:e.replace(TE,"-$&").toLowerCase()})),IE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(AE,(function(e,t,n){return PE={name:t,styles:n,next:PE},t}))}return 1===wE[e]||RE(e)||"number"!=typeof t||0===t?t:t+"px"};function LE(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return PE={name:n.name,styles:n.styles,next:PE},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)PE={name:r.name,styles:r.styles,next:PE},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=LE(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":kE(a)&&(r+=NE(o)+":"+IE(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=LE(e,t,a);switch(o){case"animation":case"animationName":r+=NE(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)kE(a[l])&&(r+=NE(o)+":"+IE(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=PE,o=n(e);return PE=i,LE(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var PE,DE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,qE=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";PE=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=LE(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=LE(n,t,e[a]),r&&(i+=o[a]);DE.lastIndex=0;for(var s,l="";null!==(s=DE.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:PE}},zE="undefined"!=typeof document,$E=function(e){return e()},_E=!!j.useInsertionEffect&&j.useInsertionEffect,jE=zE&&_E||$E,FE=_E||j.useLayoutEffect,BE="undefined"!=typeof document,HE=j.createContext("undefined"!=typeof HTMLElement?EE({key:"css"}):null),VE=HE.Provider,UE=function(e){return V((function(t,n){var r=U(HE);return e(t,r,n)}))};BE||(UE=function(e){return function(t){var n=U(HE);return null===n?(n=EE({key:"css"}),j.createElement(HE.Provider,{value:n},e(t,n))):e(t,n)}});var WE=j.createContext({}),YE=UE((function(e,t){var n=e.styles,r=qE([n],void 0,j.useContext(WE));if(!BE){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:j.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=j.useRef();return FE((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),FE((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&OE(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function GE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qE(t)}var XE=function(){var e=GE.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_"}}},KE=yS,JE=function(e){return"theme"!==e},ZE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?KE:JE},QE=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},eM="undefined"!=typeof document,tM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;CE(t,n,r);var i=jE((function(){return OE(t,n,r)}));if(!eM&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return j.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},nM=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=QE(t,n,o),l=s||ZE(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p])}var f=UE((function(e,t,n){var r,o,u,m,p=c&&e.as||a,f="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=j.useContext(WE)}"string"==typeof e.className?(r=t.registered,o=h,u=e.className,m="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):m+=e+" "})),f=m):null!=e.className&&(f=e.className+" ");var v=qE(d.concat(h),t.registered,g);f+=t.key+"-"+v.name,void 0!==i&&(f+=" "+i);var b=c&&void 0===s?ZE(p):l,x={};for(var S in e)c&&"as"===S||b(S)&&(x[S]=e[S]);return x.className=f,x.ref=n,j.createElement(j.Fragment,null,j.createElement(tM,{cache:t,serialized:v,isStringTag:"string"==typeof p}),j.createElement(p,x))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,fS({},n,r,{shouldForwardProp:QE(f,r,!0)})).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){nM[e]=nM(e)}));var rM={exports:{}},iM={},oM=_,aM=Symbol.for("react.element"),sM=Symbol.for("react.fragment"),lM=Object.prototype.hasOwnProperty,cM=oM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uM={key:!0,ref:!0,__self:!0,__source:!0};function dM(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)lM.call(t,r)&&!uM.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:aM,type:e,key:o,ref:a,props:i,_owner:cM.current}}iM.Fragment=sM,iM.jsx=dM,iM.jsxs=dM,rM.exports=iM;var mM=rM.exports;let pM;"object"==typeof document&&(pM=EE({key:"css",prepend:!0}));var fM=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 mM.jsx(YE,{styles:r})}
|
|
14
|
+
*/Th();var kh=Date.now(),Nh="fnValues"+kh,Ih="fnStyle"+ ++kh,Lh=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Sf(e,{},n);return r[Ih]=t,r},onProcessStyle:function(e,t){if(Nh in t||Ih 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[Nh]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ih];o&&(i.style=o(e)||{});var a=i[Nh];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Ph="@global",Dh="@global ",qh=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ph,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new oh(Ep({},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}(),zh=function(){function e(e,t,n){this.type="global",this.at=Ph,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Dh.length);this.rule=n.jss.createRule(r,t,Ep({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),$h=/\s*,\s*/g;function _h(e,t){for(var n=e.split($h),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function jh(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ph)return new qh(e,t,n);if("@"===e[0]&&e.substr(0,Dh.length)===Dh)return new zh(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[Ph]:null;if(i){for(var o in i)t.addRule(o,i[o],Ep({},n,{selector:_h(o,e.selector)}));delete r[Ph]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Ph.length)===Ph){var o=_h(i.substr(Ph.length),e.selector);t.addRule(o,r[i],Ep({},n,{selector:o})),delete r[i]}}(e,t))}}}var Fh=/\s*,\s*/g,Bh=/&/g,Hh=/\$([\w-]+)/g;function Vh(){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(Fh),r=e.split(Fh),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(Bh,a):a+" "+l}return i}function n(e,t,n){if(n)return Ep({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Ep({},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(Hh,s);var f=l.key+"-"+u;"replaceRule"in c?c.replaceRule(f,r[u],Ep({},a,{selector:p})):c.addRule(f,r[u],Ep({},a,{selector:p}))}else m&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var Uh=/[A-Z]/g,Wh=/^ms-/,Yh={};function Gh(e){return"-"+e.toLowerCase()}function Xh(e){if(Yh.hasOwnProperty(e))return Yh[e];var t=e.replace(Uh,Gh);return Yh[e]=Wh.test(t)?"-"+t:t}function Kh(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Xh(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Kh):t.fallbacks=Kh(e.fallbacks)),t}var Jh=Ah&&CSS?CSS.px:"px",Zh=Ah&&CSS?CSS.ms:"ms",Qh=Ah&&CSS?CSS.percent:"%";function eg(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 tg=eg({"animation-delay":Zh,"animation-duration":Zh,"background-position":Jh,"background-position-x":Jh,"background-position-y":Jh,"background-size":Jh,border:Jh,"border-bottom":Jh,"border-bottom-left-radius":Jh,"border-bottom-right-radius":Jh,"border-bottom-width":Jh,"border-left":Jh,"border-left-width":Jh,"border-radius":Jh,"border-right":Jh,"border-right-width":Jh,"border-top":Jh,"border-top-left-radius":Jh,"border-top-right-radius":Jh,"border-top-width":Jh,"border-width":Jh,"border-block":Jh,"border-block-end":Jh,"border-block-end-width":Jh,"border-block-start":Jh,"border-block-start-width":Jh,"border-block-width":Jh,"border-inline":Jh,"border-inline-end":Jh,"border-inline-end-width":Jh,"border-inline-start":Jh,"border-inline-start-width":Jh,"border-inline-width":Jh,"border-start-start-radius":Jh,"border-start-end-radius":Jh,"border-end-start-radius":Jh,"border-end-end-radius":Jh,margin:Jh,"margin-bottom":Jh,"margin-left":Jh,"margin-right":Jh,"margin-top":Jh,"margin-block":Jh,"margin-block-end":Jh,"margin-block-start":Jh,"margin-inline":Jh,"margin-inline-end":Jh,"margin-inline-start":Jh,padding:Jh,"padding-bottom":Jh,"padding-left":Jh,"padding-right":Jh,"padding-top":Jh,"padding-block":Jh,"padding-block-end":Jh,"padding-block-start":Jh,"padding-inline":Jh,"padding-inline-end":Jh,"padding-inline-start":Jh,"mask-position-x":Jh,"mask-position-y":Jh,"mask-size":Jh,height:Jh,width:Jh,"min-height":Jh,"max-height":Jh,"min-width":Jh,"max-width":Jh,bottom:Jh,left:Jh,top:Jh,right:Jh,inset:Jh,"inset-block":Jh,"inset-block-end":Jh,"inset-block-start":Jh,"inset-inline":Jh,"inset-inline-end":Jh,"inset-inline-start":Jh,"box-shadow":Jh,"text-shadow":Jh,"column-gap":Jh,"column-rule":Jh,"column-rule-width":Jh,"column-width":Jh,"font-size":Jh,"font-size-delta":Jh,"letter-spacing":Jh,"text-decoration-thickness":Jh,"text-indent":Jh,"text-stroke":Jh,"text-stroke-width":Jh,"word-spacing":Jh,motion:Jh,"motion-offset":Jh,outline:Jh,"outline-offset":Jh,"outline-width":Jh,perspective:Jh,"perspective-origin-x":Qh,"perspective-origin-y":Qh,"transform-origin":Qh,"transform-origin-x":Qh,"transform-origin-y":Qh,"transform-origin-z":Qh,"transition-delay":Zh,"transition-duration":Zh,"vertical-align":Jh,"flex-basis":Jh,"shape-margin":Jh,size:Jh,gap:Jh,grid:Jh,"grid-gap":Jh,"row-gap":Jh,"grid-row-gap":Jh,"grid-column-gap":Jh,"grid-template-rows":Jh,"grid-template-columns":Jh,"grid-auto-rows":Jh,"grid-auto-columns":Jh,"box-shadow-x":Jh,"box-shadow-y":Jh,"box-shadow-blur":Jh,"box-shadow-spread":Jh,"font-line-height":Jh,"text-shadow-x":Jh,"text-shadow-y":Jh,"text-shadow-blur":Jh});function ng(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ng(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=ng(i,t[i],n);else for(var o in t)t[o]=ng(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||tg[e];return!a||0===t&&a===Jh?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function rg(e){void 0===e&&(e={});var t=eg(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ng(r,e[r],t);return e},onChangeValue:function(e,n){return ng(n,e,t)}}}var ig="",og="",ag="",sg="",lg=pf&&"ontouchstart"in document.documentElement;if(pf){var cg={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ug=document.createElement("p").style;for(var dg in cg)if(dg+"Transform"in ug){ig=dg,og=cg[dg];break}"Webkit"===ig&&"msHyphens"in ug&&(ig="ms",og=cg.ms,sg="edge"),"Webkit"===ig&&"-apple-trailing-word"in ug&&(ag="apple")}var mg={js:ig,css:og,vendor:ag,browser:sg,isTouch:lg};var pg={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===mg.js?"-webkit-"+e:mg.css+e)}},fg={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===mg.js?mg.css+"print-"+e:e)}},hg=/[-\s]+(.)?/g;function gg(e,t){return t?t.toUpperCase():""}function yg(e){return e.replace(hg,gg)}function vg(e){return yg("-"+e)}var bg,xg={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===mg.js){var n="mask-image";if(yg(n)in t)return e;if(mg.js+vg(n)in t)return mg.css+e}return e}},Sg={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==mg.vendor||mg.isTouch?e:mg.css+e)}},Eg={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:mg.css+e)}},Mg={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:mg.css+e)}},Cg={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===mg.js||"ms"===mg.js&&"edge"!==mg.browser?mg.css+e:e)}},Og={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===mg.js||"ms"===mg.js||"apple"===mg.vendor?mg.css+e:e)}},wg={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===mg.js?"WebkitColumn"+vg(e)in t&&mg.css+"column-"+e:"Moz"===mg.js&&("page"+vg(e)in t&&"page-"+e))}},Tg={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===mg.js)return e;var n=e.replace("-inline","");return mg.js+vg(n)in t&&mg.css+n}},Ag={supportedProperty:function(e,t){return yg(e)in t&&e}},Rg={supportedProperty:function(e,t){var n=vg(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:mg.js+n in t?mg.css+e:"Webkit"!==mg.js&&"Webkit"+n in t&&"-webkit-"+e}},kg={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===mg.js?""+mg.css+e:e)}},Ng={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===mg.js?mg.css+"scroll-chaining":e)}},Ig={"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"},Lg={supportedProperty:function(e,t){var n=Ig[e];return!!n&&(mg.js+vg(n)in t&&mg.css+n)}},Pg={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"},Dg=Object.keys(Pg),qg=function(e){return mg.css+e},zg={supportedProperty:function(e,t,n){var r=n.multiple;if(Dg.indexOf(e)>-1){var i=Pg[e];if(!Array.isArray(i))return mg.js+vg(i)in t&&mg.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(mg.js+vg(i[0])in t))return!1;return i.map(qg)}return!1}},$g=[pg,fg,xg,Sg,Eg,Mg,Cg,Og,wg,Tg,Ag,Rg,kg,Ng,Lg,zg],_g=$g.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),jg=$g.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Zp(t.noPrefill)),e}),[]),Fg={};if(pf){bg=document.createElement("p");var Bg=window.getComputedStyle(document.documentElement,"");for(var Hg in Bg)isNaN(Hg)||(Fg[Bg[Hg]]=Bg[Hg]);jg.forEach((function(e){return delete Fg[e]}))}function Vg(e,t){if(void 0===t&&(t={}),!bg)return e;if(null!=Fg[e])return Fg[e];"transition"!==e&&"transform"!==e||(t[e]=e in bg.style);for(var n=0;n<_g.length&&(Fg[e]=_g[n](e,bg.style,t),!Fg[e]);n++);try{bg.style[e]=""}catch(e){return!1}return Fg[e]}var Ug,Wg={},Yg={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Gg=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Xg(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Vg(t):", "+Vg(n);return r||(t||n)}function Kg(e,t){var n=t;if(!Ug||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Wg[r])return Wg[r];try{Ug.style[e]=n}catch(e){return Wg[r]=!1,!1}if(Yg[e])n=n.replace(Gg,Xg);else if(""===Ug.style[e]&&("-ms-flex"===(n=mg.css+n)&&(Ug.style[e]="-ms-flexbox"),Ug.style[e]=n,""===Ug.style[e]))return Wg[r]=!1,!1;return Ug.style[e]="",Wg[r]=n,Wg[r]}function Jg(){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=Vg(n);o&&o!==n&&(i=!0);var a=!1,s=Kg(o,Mf(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"===mg.js?e:"@"+mg.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Kg(t,Mf(e))||e}}}function Zg(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function Qg(){return{plugins:[Lh(),jh(),Vh(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Kh(e[t]);return e}return Kh(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Xh(t);return t===r?e:(n.prop(r,e),null)}},rg(),"undefined"==typeof window?null:Jg(),Zg()]}}function ey(){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=Ep({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}pf&&(Ug=document.createElement("p"));var ty={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)}},ny=ty,ry=j.createContext(null);function iy(){return j.useContext(ry)}var oy,ay=Th(Qg()),sy={disableGeneration:!1,generateClassName:uf(),jss:ay,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},ly=j.createContext(sy);function cy(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=Dp(e,["children","injectFirst","disableGeneration"]),s=Ep({},j.useContext(ly),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!oy){var l=document.head;oy=document.createComment("mui-inject-first"),l.insertBefore(oy,l.firstChild)}s.jss=Th({plugins:Qg().plugins,insertionPoint:oy})}return j.createElement(ly.Provider,{value:s},t)}var uy=-1e9;var dy={};function my(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=ny.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ny.set(i.sheetsManager,o,r,s));var l=Ep({},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=ny.get(i.sheetsCache,o,r));var d=o.create(r,a);u||((u=i.jss.createStyleSheet(d,Ep({link:!1},l))).attach(),i.sheetsCache&&ny.set(i.sheetsCache,o,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Rh(d)}if(s.dynamicStyles){var m=i.jss.createStyleSheet(s.dynamicStyles,Ep({link:!0},l));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=ey({baseClasses:s.staticSheet.classes,newClasses:m.classes}),c&&c.add(m)}else n.classes=s.staticSheet.classes;s.refs+=1}}function py(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?dy:o,s=Dp(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=Ep({},i);return Object.keys(o).forEach((function(e){a[e]=Op(a[e],o[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:uy+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=iy()||a,r=Ep({},j.useContext(ly),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 my(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=ny.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(ny.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=ey({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return u}}function fy(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=fy(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function hy(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=fy(e))&&(r&&(r+=" "),r+=t);return r}var gy={exports:{}},yy={},vy="function"==typeof Symbol&&Symbol.for,by=vy?Symbol.for("react.element"):60103,xy=vy?Symbol.for("react.portal"):60106,Sy=vy?Symbol.for("react.fragment"):60107,Ey=vy?Symbol.for("react.strict_mode"):60108,My=vy?Symbol.for("react.profiler"):60114,Cy=vy?Symbol.for("react.provider"):60109,Oy=vy?Symbol.for("react.context"):60110,wy=vy?Symbol.for("react.async_mode"):60111,Ty=vy?Symbol.for("react.concurrent_mode"):60111,Ay=vy?Symbol.for("react.forward_ref"):60112,Ry=vy?Symbol.for("react.suspense"):60113,ky=vy?Symbol.for("react.suspense_list"):60120,Ny=vy?Symbol.for("react.memo"):60115,Iy=vy?Symbol.for("react.lazy"):60116,Ly=vy?Symbol.for("react.block"):60121,Py=vy?Symbol.for("react.fundamental"):60117,Dy=vy?Symbol.for("react.responder"):60118,qy=vy?Symbol.for("react.scope"):60119;function zy(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case by:switch(e=e.type){case wy:case Ty:case Sy:case My:case Ey:case Ry:return e;default:switch(e=e&&e.$$typeof){case Oy:case Ay:case Iy:case Ny:case Cy:return e;default:return t}}case xy:return t}}}function $y(e){return zy(e)===Ty}yy.AsyncMode=wy,yy.ConcurrentMode=Ty,yy.ContextConsumer=Oy,yy.ContextProvider=Cy,yy.Element=by,yy.ForwardRef=Ay,yy.Fragment=Sy,yy.Lazy=Iy,yy.Memo=Ny,yy.Portal=xy,yy.Profiler=My,yy.StrictMode=Ey,yy.Suspense=Ry,yy.isAsyncMode=function(e){return $y(e)||zy(e)===wy},yy.isConcurrentMode=$y,yy.isContextConsumer=function(e){return zy(e)===Oy},yy.isContextProvider=function(e){return zy(e)===Cy},yy.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===by},yy.isForwardRef=function(e){return zy(e)===Ay},yy.isFragment=function(e){return zy(e)===Sy},yy.isLazy=function(e){return zy(e)===Iy},yy.isMemo=function(e){return zy(e)===Ny},yy.isPortal=function(e){return zy(e)===xy},yy.isProfiler=function(e){return zy(e)===My},yy.isStrictMode=function(e){return zy(e)===Ey},yy.isSuspense=function(e){return zy(e)===Ry},yy.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Sy||e===Ty||e===My||e===Ey||e===Ry||e===ky||"object"==typeof e&&null!==e&&(e.$$typeof===Iy||e.$$typeof===Ny||e.$$typeof===Cy||e.$$typeof===Oy||e.$$typeof===Ay||e.$$typeof===Py||e.$$typeof===Dy||e.$$typeof===qy||e.$$typeof===Ly)},yy.typeOf=zy,gy.exports=yy;var _y=gy.exports,jy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},By={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hy={};function Vy(e){return _y.isMemo(e)?By:Hy[e.$$typeof]||jy}Hy[_y.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hy[_y.Memo]=By;var Uy=Object.defineProperty,Wy=Object.getOwnPropertyNames,Yy=Object.getOwnPropertySymbols,Gy=Object.getOwnPropertyDescriptor,Xy=Object.getPrototypeOf,Ky=Object.prototype;var Jy=function e(t,n,r){if("string"!=typeof n){if(Ky){var i=Xy(n);i&&i!==Ky&&e(t,i,r)}var o=Wy(n);Yy&&(o=o.concat(Yy(n)));for(var a=Vy(t),s=Vy(n),l=0;l<o.length;++l){var c=o[l];if(!(Fy[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=Gy(n,c);try{Uy(t,c,u)}catch(e){}}}}return t},Zy=J(Jy);function Qy(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=Dp(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(Ep({theme:e},n))}}}:{root:t},l=py(s,Ep({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=Dp(t,["children","className","clone","component"]),p=hy(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,Ep({className:hy(s.props.className,p)},f));if("function"==typeof s)return s(Ep({className:p},f));var h=d||e;return j.createElement(h,Ep({ref:r,className:p},f),s)}));return Zy(c,e),c}}function ev(e){var t=e.children,n=e.theme,r=iy(),i=j.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ep({},e,t)}(r,n);return null!=e&&(e[lf]=null!==r),e}),[n,r]);return j.createElement(ry.Provider,{value:i},t)}var tv=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=Dp(t,["defaultTheme","withTheme","name"]),l=a,c=py(e,Ep({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=Dp(e,["classes","innerRef"]),u=c(Ep({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=iy()||r,a&&(d=df({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),j.createElement(n,Ep({ref:s||t,classes:u},d))}));return Zy(u,n),u}},nv=sf(),rv=function(e){var t=Qy(e);return function(e,n){return t(e,Ep({defaultTheme:nv},n))}};function iv(e,t){return tv(e,Ep({defaultTheme:nv},t))}function ov(e){if("string"!=typeof e)throw new Error(Ap(7));return e.charAt(0).toUpperCase()+e.slice(1)}function av(){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 sv(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=sv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sv(e))&&(r&&(r+=" "),r+=t);return r}function cv(e){return e&&e.ownerDocument||document}function uv(e){return cv(e).defaultView||window}function dv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var mv="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;function pv(e){var t=F.useRef(e);return mv((function(){t.current=e})),F.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function fv(e,t){return F.useMemo((function(){return null==e&&null==t?null:function(n){dv(e,n),dv(t,n)}}),[e,t])}var hv=!0,gv=!1,yv=null,vv={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 bv(e){e.metaKey||e.altKey||e.ctrlKey||(hv=!0)}function xv(){hv=!1}function Sv(){"hidden"===this.visibilityState&&gv&&(hv=!0)}function Ev(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return hv||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!vv[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Mv(){gv=!0,window.clearTimeout(yv),yv=window.setTimeout((function(){gv=!1}),100)}function Cv(){var e=F.useCallback((function(e){var t,n=Y.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",bv,!0),t.addEventListener("mousedown",xv,!0),t.addEventListener("pointerdown",xv,!0),t.addEventListener("touchstart",xv,!0),t.addEventListener("visibilitychange",Sv,!0))}),[]);return{isFocusVisible:Ev,onBlurVisible:Mv,ref:e}}var Ov=!1,wv=j.createContext(null),Tv="unmounted",Av="exited",Rv="entering",kv="entered",Nv="exiting",Iv=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=Av,r.appearStatus=Rv):i=kv:i=t.unmountOnExit||t.mountOnEnter?Tv:Av,r.state={status:i},r.nextCallback=null,r}yf(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tv?{status:Av}: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!==kv&&(t=Rv):n!==Rv&&n!==kv||(t=Nv)}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===Av&&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||Ov?this.safeSetState({status:kv},(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:kv},(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&&!Ov?(this.props.onExit(r),this.safeSetState({status:Nv},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Av},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Av},(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=Pp(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(wv.Provider,{value:null},"function"==typeof n?n(e,r):j.cloneElement(j.Children.only(n),r))},t}(j.Component);function Lv(){}Iv.contextType=wv,Iv.propTypes={},Iv.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},Iv.UNMOUNTED=Tv,Iv.EXITED=Av,Iv.ENTERING=Rv,Iv.ENTERED=kv,Iv.EXITING=Nv;var Pv=Iv;function Dv(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 qv(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zv(e,t,n){var r=Dv(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:qv(a,"exit",e),enter:qv(a,"enter",e)})):i[o]=V(a,{in:!1}):i[o]=V(a,{onExited:n.bind(null,a),in:!0,exit:qv(a,"exit",e),enter:qv(a,"enter",e)})}})),i}var $v=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},_v=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(vf(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}yf(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,Dv(n.children,(function(e){return V(e,{onExited:r.bind(null,e),in:!0,appear:qv(e,"appear",n),enter:qv(e,"enter",n),exit:qv(e,"exit",n)})}))):zv(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=Dv(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ep({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Pp(e,["component","childFactory"]),i=this.state.contextValue,o=$v(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?j.createElement(wv.Provider,{value:i},o):j.createElement(wv.Provider,{value:i},j.createElement(t,r,o))},t}(j.Component);_v.propTypes={},_v.defaultProps={component:"div",childFactory:function(e){return e}};var jv=_v;function Fv(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 Bv=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=Dp(e,["classes","className","component","square","elevation","variant"]);return F.createElement(o,Ep({className:lv(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},m))})),Hv=iv((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ep({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"})(Bv),Vv="undefined"==typeof window?F.useEffect:F.useLayoutEffect;function Uv(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=lv(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},g=lv(t.child,m&&t.childLeaving,r&&t.childPulsate),y=pv(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 Wv=F.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=Dp(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(Zp(e),[F.createElement(Uv,{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",Ep({className:lv(i.root,o),ref:h},a),F.createElement(jv,{component:null,exit:!0},l))})),Yv=iv((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(Wv)),Gv=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,w=e.onMouseDown,T=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,$=Dp(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=Cv(),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 pv((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",w),Z=K("stop",I),Q=K("stop",A),ee=K("stop",(function(e){H&&e.preventDefault(),T&&T(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=pv((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=pv((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=pv((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=fv(r,t),pe=fv(X,_),fe=fv(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,Ep({className:lv(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(Yv,Ep({ref:j,center:o},D)):null)})),Xv=iv({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"})(Gv),Kv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Jv=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?Kv:b,S=Dp(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=l||(g?"p":x[v]||Kv[v])||"span";return F.createElement(E,Ep({className:lv(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(ov(s))],f&&i.noWrap,m&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(ov(r))],"initial"!==u&&i["display".concat(ov(u))]),ref:t},S))})),Zv=iv((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"})(Jv),Qv=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,w=Dp(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),T=S&&F.createElement("span",{className:lv(r.startIcon,r["iconSize".concat(ov(x))])},S),A=h&&F.createElement("span",{className:lv(r.endIcon,r["iconSize".concat(ov(x))])},h);return F.createElement(Xv,Ep({className:lv(r.root,r[O],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(O).concat(ov(a))],"medium"!==x&&[r["".concat(O,"Size").concat(ov(x))],r["size".concat(ov(x))]],m&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!f,focusVisibleClassName:lv(r.focusVisible,g),ref:t,type:M},w),F.createElement("span",{className:r.label},T,n,A))})),eb=iv((function(e){return{root:Ep({},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:Lp(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:Lp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Lp(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(Lp(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Lp(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Lp(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Lp(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"})(Qv);var tb="undefined"!=typeof window?F.useLayoutEffect:F.useEffect,nb=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=fv(F.isValidElement(n)?n.ref:null,t);return tb((function(){o||c(function(e){return e="function"==typeof e?e():e,Y.findDOMNode(e)}(r)||document.body)}),[r,o]),tb((function(){if(l&&!o)return dv(t,l),function(){dv(t,null)}}),[t,l,o]),tb((function(){a&&(l||o)&&a()}),[a,l,o]),o?F.isValidElement(n)?F.cloneElement(n,{ref:u}):n:l?Y.createPortal(n,l):l})),rb=nb;function ib(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ob(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ab(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Zp(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)&&ib(e,r)}))}function sb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function lb(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=cv(e);return t.body===e?uv(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(ob(o)+a,"px"),n=cv(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(ob(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 cb=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 hf(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&&ib(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);ab(t,e.mountNode,e.modalRef,r,!0);var i=sb(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=sb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=lb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=sb(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&&ib(e.modalRef,!0),ab(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&&ib(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function ub(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=fv(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=cv(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 db={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"}},mb=F.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=Dp(e,["invisible","open"]);return i?F.createElement("div",Ep({"aria-hidden":!0,ref:t},o,{style:Ep({},db.root,r?db.invisible:{},o.style)})):null}));var pb=new cb,fb=F.forwardRef((function(e,t){var n=iy(),r=df({name:"MuiModal",props:Ep({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?mb: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,w=void 0!==O&&O,T=r.keepMounted,A=void 0!==T&&T,R=r.manager,k=void 0===R?pb:R,N=r.onBackdropClick,I=r.onClose,L=r.onEscapeKeyDown,P=r.onRendered,D=r.open,q=Dp(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=fv(H,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),W=function(){return cv(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=pv((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=pv((function(e){B.current=e,e&&(P&&P(),D&&J()?X():ib(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:af}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=av((function(){_(!1)}),s.props.onEnter),te.onExited=av((function(){_(!0),c&&Q()}),s.props.onExited)),F.createElement(rb,{ref:Z,container:u,disablePortal:x},F.createElement("div",Ep({ref:V,onKeyDown:function(e){"Escape"===e.key&&J()&&(L&&L(e),v||(e.stopPropagation(),I&&I(e,"escapeKeyDown")))},role:"presentation"},q,{style:Ep({},ee.root,!D&&$?ee.hidden:{},q.style)}),w?null:F.createElement(o,Ep({open:D,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!f&&I&&I(e,"backdropClick"))}},a)),F.createElement(ub,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:E,getDoc:W,isEnabled:J,open:D},F.cloneElement(s,te))))})),hb=fb,gb=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=Dp(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return F.createElement(s,Ep({className:lv(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))})),yb=iv((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:Lp(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"})(gb);function vb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var bb={entering:{opacity:1,transform:vb(1)},entered:{opacity:1,transform:"none"}},xb=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?Pv:h,y=Dp(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=F.useRef(),b=F.useRef(),x=iy()||nv,S=x.unstable_strictMode&&!i,E=F.useRef(null),M=fv(n.ref,t),C=fv(S?E:void 0,M),O=function(e){return function(t,n){if(e){var r=Qp(S?[E.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},w=O(l),T=O((function(e,t){!function(e){e.scrollTop}(e);var n,r=Fv({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=Fv({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=vb(.75),c&&c(e)})),N=O(u);return F.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),F.createElement(g,Ep({appear:!0,in:o,nodeRef:S?E:void 0,onEnter:T,onEntered:A,onEntering:w,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,Ep({style:Ep({opacity:0,transform:vb(.75),visibility:"exited"!==e||o?void 0:"hidden"},bb[e],m,n.props.style),ref:C},t))}))}));xb.muiSupportAuto=!0;var Sb=xb,Eb=F.createContext({}),Mb=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=Dp(e,["children","classes","className","component","dense","disablePadding","subheader"]),p=F.useMemo((function(){return{dense:l}}),[l]);return F.createElement(Eb.Provider,{value:p},F.createElement(a,Ep({className:lv(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},m),d,n))})),Cb=iv({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Mb),Ob="undefined"==typeof window?F.useEffect:F.useLayoutEffect,wb=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=Dp(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,w=e.selected,T=void 0!==w&&w,A=Dp(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=F.useContext(Eb),k={dense:v||R.dense||!1,alignItems:r},N=F.useRef(null);Ob((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=fv(F.useCallback((function(e){N.current=Y.findDOMNode(e)}),[]),t),z=Ep({className:lv(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,T&&c.selected),disabled:x},A),$=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=lv(c.focusVisible,O),$=Xv),D?($=z.component||d?$:"div","li"===p&&("li"===$?$="div":"li"===z.component&&(z.component="div")),F.createElement(Eb.Provider,{value:k},F.createElement(p,Ep({className:lv(c.container,h),ref:q},g),F.createElement($,z,P),P.pop()))):F.createElement(Eb.Provider,{value:k},F.createElement($,Ep({ref:q},z),P))})),Tb=iv((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"})(wb),Ab=F.forwardRef((function(e,t){var n=e.classes,r=e.className,i=Dp(e,["classes","className"]),o=F.useContext(Eb);return F.createElement("div",Ep({className:lv(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),Rb=iv((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ab),kb=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=Dp(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),f=F.useContext(Eb).dense,h=null!=c?c:n;null==h||h.type===Zv||a||(h=F.createElement(Zv,Ep({variant:f?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===Zv||a||(g=F.createElement(Zv,Ep({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},m),g)),F.createElement("div",Ep({className:lv(r.root,i,f&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},p),h,g)})),Nb=iv({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(kb);function Ib(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 Pb(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Db(e){return"function"==typeof e?e():e}var qb=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,w=void 0===O?{}:O,T=e.transformOrigin,A=void 0===T?{vertical:"top",horizontal:"left"}:T,R=e.TransitionComponent,k=void 0===R?Sb:R,N=e.transitionDuration,I=void 0===N?"auto":N,L=e.TransitionProps,P=void 0===L?{}:L,D=Dp(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=Db(r),n=(t&&1===t.nodeType?t:cv(q.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+Ib(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:Ib(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:Pb(i)};var o=z(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=uv(Db(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:Pb(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?cv(Db(r)).body:void 0);return F.createElement(hb,Ep({container:U,open:C,ref:t,BackdropProps:{invisible:!0},className:lv(u.root,d)},D),F.createElement(k,Ep({appear:!0,in:C,onEnter:v,onEntered:b,onExit:S,onExited:E,onExiting:M,timeout:V},P,{onEntering:av((function(e,t){x&&x(e,t),B()}),P.onEntering)}),F.createElement(Hv,Ep({elevation:f,ref:H},w,{className:lv(u.paper,w.className)}),c)))})),zb=iv({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(qb);function $b(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function _b({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:$b(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 jb=rv(Tb)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Fb={menuItem:"alternative-menu-item"},Bb=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>py((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,cp({className:`${i.root} ${n}`},r))},Hb=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 Vb({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=Ae.detectTextDirection(e);return!s?j.createElement(jb,{role:"menuitem",button:!0,onClick:n,className:Fb.menuItem,onKeyDown:Hb,autoFocus:t},j.createElement(Rb,{style:{minWidth:32}},j.createElement(_b,{d:t?Ym.d:""})),j.createElement(Nb,{primaryTypographyProps:{dir:l}},e)):j.createElement(Bb,{nested:r,role:"menuitem",button:!0,onClick:n,className:Fb.menuItem,onKeyDown:Hb,dir:a,autoFocus:t},j.createElement(Nb,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),j.createElement(Rb,{style:{minWidth:16}},j.createElement(_b,{d:t?Ym.d:""})),i&&j.createElement(Rb,{style:{minWidth:16}},j.createElement(_b,{d:i.d})))}Vb.propTypes={title:pp.string.isRequired,selected:pp.bool,onClick:pp.func.isRequired,nested:pp.bool,icon:pp.shape({d:pp.string.isRequired}),bold:pp.bool,dir:pp.string.isRequired,isCyclicFFEnabled:pp.bool.isRequired},Vb.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Bb.propTypes={nested:pp.bool,className:pp.string},Bb.defaultProps={nested:!1,className:Fb.menuItem};const Ub={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 Wb({alignTo:e,currentId:t,dir:n,dock:r,list:i,onClose:o,show:a,instruction:s,isCyclicFFEnabled:l}){const c=l,u=i.map(((e,r)=>{var a;return j.createElement(j.Fragment,{key:e.id},j.createElement(Vb,{icon:e.icon,title:e.title,bold:e.groupItem,selected:e.selected,onClick:()=>{e.onSelect&&e.onSelect(t),o(e.id)},dir:n,isCyclicFFEnabled:l}),(null===(a=e.children)||void 0===a?void 0:a.length)>0&&j.createElement(Cb,{dense:!0,dir:n,component:"div",disablePadding:!0},e.children.map((t=>j.createElement(Vb,{key:t.id,nested:!0,title:t.title,selected:t.selected,onClick:()=>{t.onSelect(),o(e.id)},dir:n,isCyclicFFEnabled:l})))),r<i.length-1&&c&&j.createElement(yb,{key:`divider-${e.id}`}))}));return j.createElement(zb,cp({anchorEl:e,open:a,onClose:o},Ub[r],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),j.createElement(Cb,{dense:!0,disablePadding:!0,dir:n,"aria-label":s,component:"nav"},u))}Wb.propTypes={alignTo:pp.any,currentId:pp.string.isRequired,dir:pp.string.isRequired,dock:pp.string.isRequired,list:pp.array,onClose:pp.func.isRequired,show:pp.bool.isRequired,instruction:pp.string.isRequired,isCyclicFFEnabled:pp.bool.isRequired},Wb.defaultProps={list:[],alignTo:null};const Yb="title-button",Gb="active-title-button",Xb=rv((({children:e,...t})=>j.createElement(eb,cp({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),Kb=rv(eb)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class Jb 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(`.${Yb}`);t&&t.classList.add(Gb)}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(`.${Yb}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${Gb}`);e&&(e.classList.remove(Gb),setTimeout((()=>{e.focus()}),50))}}render(){const{titleData:e,popover:t,translator:n,disabled:r,isDimension:i,padding:o,minWidth:a,hasAlternative:s,supportConditional:l,showGroupDimOptions:c}=this.props,u={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},d=e.breadcrumbs.length,m=r||Boolean(!e.drillUp)||this.state.inSelection,p=e.breadcrumbs.map(((t,n)=>j.createElement(Xb,{style:{display:"flex",alignItems:"center",color:m&&"rgba(89, 89, 89, 0.8)",pointerEvents:m?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>m?void 0:e.drillUp(d-n),title:t},j.createElement("span",{style:u},t),j.createElement(_b,cp({},Xm,{size:"small",style:{margin:"0 8px"}}))))),f=l||c?this.state.hasPopoverOptions:s,h=t&&!this.state.open?this.openPopover:this.closePopover,g=!t||r||this.state.inSelection,y={display:"flex",alignItems:"center",width:"100%",color:g&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&g&&"none",...o?{padding:o}:{paddingTop:0,paddingBottom:0},...a&&{minWidth:a}};this.state.open&&(y.background="rgba(0,0,0,0.08)");const v=()=>{this.setState({disableCyclicButton:!0})},b=Ae.detectTextDirection(e.text),x=j.createElement(Xb,{"aria-label":n.get(`Accessibility.${t&&f?"Alternative":"Normal"}.Instructions`,[e.text]),style:y,onClick:g?void 0:h,title:e.text,tabIndex:g?-1:0,onFocus:g?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:g?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${Yb} ${e.id}`,"data-id":e.id},e.locked&&j.createElement(_b,cp({},Wm,{size:"small",title:n.get("Tooltip.selections.locked")})),j.createElement("span",{style:u,dir:b},e.text),t&&f&&j.createElement(_b,cp({},Gm,{size:"small",style:{margin:"0 8px"}})));return j.createElement(j.Fragment,null,e.icon&&e.icon.onClick&&j.createElement(Kb,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:r?void 0:()=>e.icon.onClick({onError:v})},j.createElement(_b,cp({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip)}))),e.icon&&!e.icon.onClick&&j.createElement(_b,cp({},e.icon.path,{size:"small",title:n.get(e.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,j.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:f?"auto":"none",height:"100%"}},x),t&&f&&j.createElement(Wb,{dock:t.dock,dir:t.dir,currentId:e.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:n.get("Accessibility.Popover.Instructions"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function Zb(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function Qb(e){function t(e){return!e.isDimension&&ge.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:m,skipAttributeExpressions:p,translator:f,supportConditional:h=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,S=x&&x[a?"qDimensions":"qMeasures"]||[],E=r||i[a?"qDimensionInfo":"qMeasureInfo"],M=a?op:sp,C=a?ap:lp,O=Boolean(l&&l.colorSupport&&l.modifiers),w=O&&((T=this.settings.settings).isDimension&&ge.getValue(T,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var T;const A=g("PS_21223_CYCLIC_GROUPS"),R=E.map(((t,r)=>{const i="number"==typeof t.explicitColumn?t.explicitColumn:r,o=C(t,i,l,e),g=r===E.length-1,v=A&&Boolean(e)&&a&&"N"!==t.qGrouping,b=O||v?M({column:i,activeInfo:t,altList:S,app:e,dir:d?"rtl":"ltr",dock:Zb(y),model:l,onChange:c,skipAttributeExpressions:p,translator:f,allowChangeOfAlternatives:O,isCyclicFFEnabled:A}):void 0;return j.createElement(j.Fragment,{key:t.cId},j.createElement(Jb,{showGroupDimOptions:v,popover:b,titleData:o,model:l,translator:f,selections:m,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:w,supportConditional:h,isCyclicFFEnabled:A}),!g&&j.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return j.createElement("div",{style:b,dir:v},R)}}}Jb.propTypes={disabled:pp.bool.isRequired,padding:pp.string,minWidth:pp.string,titleData:pp.shape({breadcrumbs:pp.arrayOf(pp.string).isRequired,icon:pp.shape({path:pp.shape({d:pp.string.isRequired}),tooltip:pp.string.isRequired,onClick:pp.func}),index:pp.number.isRequired,locked:pp.bool.isRequired,text:pp.string.isRequired,popoverText:pp.string.isRequired,drillUp:pp.func,id:pp.string.isRequired}).isRequired,popover:pp.shape({dir:pp.string.isRequired,dock:pp.string.isRequired,getPopoverOptions:pp.func.isRequired}),translator:pp.shape({get:pp.func.isRequired}).isRequired,selections:pp.shape({isActive:pp.func,addListener:pp.func,removeListener:pp.func}),style:pp.shape({fontSize:pp.string,color:pp.string,fontFamily:pp.string}).isRequired,isDimension:pp.bool.isRequired,hasAlternative:pp.bool.isRequired,supportConditional:pp.bool.isRequired,isCyclicFFEnabled:pp.bool.isRequired,showGroupDimOptions:pp.bool.isRequired},Jb.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const ex=sf({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 tx=uf({productionPrefix:"q89f6",disableGlobal:!0,seed:""});function nx(){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(cy,{generateClassName:t},j.createElement(ev,{theme:ex},e))}(e,tx),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 rx(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:rx(i,t,n)},i}function ix(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),rx(i,a,l,e.invert)}))}const ox={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",c=r,u=i,d=t<.5?90:-90;return o&&(s="y",l="x",c=i,u=r,d=t<.5?180:0),a(le({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function ax({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=le({},{major:l,majorEnd:c},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const m=o?n:t,p=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:m}),f=(u-p)/2,h=f+d.major+p/2;return{item:d,boxCenter:h,boxWidth:p,boxPadding:f,rendWidth:t,rendHeight:n}}function sx({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=le(!0,{},n||{},r||{}),c={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},u=i.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:i.major}});const m=i.minor||{};let p;const f={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:le(!0,{},{start:{scale:m.scale,ref:"start"},end:{scale:m.scale,ref:"end"},min:{scale:m.scale,ref:"min"},max:{scale:m.scale,ref:"max"},med:{scale:m.scale,ref:"med"}},m)})};for(let n=0,r=e.length;n<r;n++)p=e[n],f[p]=s.resolve({data:t,defaults:l[p],settings:i[p],scaled:c});return f}const lx=["oob"];const cx={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=sx({keys:lx,data:i,defaultSettings:{oob:ox.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=ax}){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(ox.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:lx,symbol:s,dockValue:n});return d}},ux={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},dx=["hat"];function mx(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 px({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,c=i,u=e.hat.alignment||0;o&&(a="y",s="x",l=i,c=r,u=1-u);const d=(n+e.major)*l;let m=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const p=le({},e.hat,{type:"path",d:mx(m)});m=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[p,le({},e.hat,{type:"path",d:mx(m)})]}const fx={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=sx({keys:dx,data:r,defaultSettings:ux,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=ax}){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(...px({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:dx});return c}};var hx={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"};function gx(e,t){return Math.atan2(t.y-e.y,t.x-e.x)*(180/Math.PI)}function yx(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 vx({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?hx.EQUAL_EQUAL:i<o?hx.EQUAL_HIGHER:hx.EQUAL_LOWER:i===o?r>i?hx.HIGHER_EQUAL:hx.LOWER_EQUAL:r>i?i<o?yx(e,t,n)>90?hx.HIGHER_HIGHER_OBTUSE:hx.HIGHER_HIGHER_ACUTE:gx(e,t)>gx(e,n)?hx.HIGHER_LOWER_POSITIVE:hx.HIGHER_LOWER_NEGATIVE:i>o?yx(e,t,n)>90?hx.LOWER_LOWER_OBTUSE:hx.LOWER_LOWER_ACUTE:gx(e,t)>gx(e,n)?hx.LOWER_HIGHER_POSITIVE:hx.LOWER_HIGHER_NEGATIVE:r===i?hx.EQUAL_VOID:r>i?hx.HIGHER_VOID:hx.LOWER_VOID:i===o?hx.VOID_EQUAL:i<o?hx.VOID_HIGHER:hx.VOID_LOWER:hx.VOID_VOID}function bx({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 xx={X:1,Y:0};function Sx({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*xx.X,height:m.height+2*xx.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:bx({bounds:p,size:a}),border:f?f/2:0,classification:hx.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 Ex({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:Sx({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 Mx={TOP:"top",TOP_RIGHT:"top-right",RIGHT:"right",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",LEFT:"left",TOP_LEFT:"top-left"},Cx={[hx.EQUAL_EQUAL]:[Mx.TOP,Mx.BOTTOM],[hx.EQUAL_HIGHER]:[Mx.BOTTOM,Mx.BOTTOM_RIGHT],[hx.EQUAL_LOWER]:[Mx.TOP,Mx.TOP_RIGHT],[hx.EQUAL_VOID]:[Mx.TOP,Mx.BOTTOM],[hx.HIGHER_EQUAL]:[Mx.LEFT,Mx.BOTTOM_LEFT,Mx.TOP,Mx.TOP_RIGHT],[hx.HIGHER_HIGHER_ACUTE]:[Mx.BOTTOM,Mx.BOTTOM_LEFT,Mx.LEFT,Mx.TOP_RIGHT],[hx.HIGHER_HIGHER_OBTUSE]:[Mx.BOTTOM,Mx.TOP],[hx.HIGHER_LOWER_NEGATIVE]:[Mx.TOP,Mx.TOP_RIGHT,Mx.RIGHT],[hx.HIGHER_LOWER_POSITIVE]:[Mx.BOTTOM,Mx.BOTTOM_LEFT,Mx.LEFT],[hx.HIGHER_VOID]:[Mx.TOP],[hx.LOWER_EQUAL]:[Mx.TOP],[hx.LOWER_HIGHER_NEGATIVE]:[Mx.TOP,Mx.TOP_LEFT],[hx.LOWER_HIGHER_POSITIVE]:[Mx.BOTTOM_RIGHT],[hx.LOWER_LOWER_ACUTE]:[Mx.TOP,Mx.TOP_LEFT,Mx.LEFT,Mx.TOP_RIGHT,Mx.RIGHT],[hx.LOWER_LOWER_OBTUSE]:[Mx.TOP,Mx.BOTTOM],[hx.LOWER_VOID]:[Mx.TOP],[hx.VOID_EQUAL]:[Mx.TOP],[hx.VOID_HIGHER]:[Mx.TOP,Mx.BOTTOM],[hx.VOID_LOWER]:[Mx.TOP,Mx.BOTTOM,Mx.LEFT],[hx.VOID_VOID]:[Mx.TOP]};function Ox({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}){const l=Ex({nodes:e,extract:t,style:n,measureText:r,size:i,horizontal:o,rtl:a,showLabel:s}),c=[...l.reduce(((e,t)=>(e.push(...Object.keys(t).map((e=>t[e]))),e)),[])],[u]=c,d=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:l,threshold:u.node.localBounds.height}),m={getItems:()=>c,getLines:()=>d};return function({groups:e}){for(let t=0;t<e.length;t++){const n=Object.keys(e[t]).map((n=>e[t][n]));for(let r=0;r<n.length;r++){const i=n[r],o=vx({previous:e[t-1]&&e[t-1][i.line],current:i,next:e[t+1]&&e[t+1][i.line]});i.setClassification(o)}}}({groups:l}),m.getItems().forEach((e=>e.setPreferences(Cx[e.classification]))),m}function wx({item:e,placement:t,size:n}){return t.x>=0-n.edgeBleed.left&&t.x<=n.width-e.bounds.width+n.edgeBleed.right&&t.y>=0-n.edgeBleed.top&&t.y<=n.height-e.bounds.height}function 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 Ax({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};const kx=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Nx=({item:e})=>({x:e.bounds.x,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border}),Ix=({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}),Px=({item:e})=>({x:e.bounds.x-e.bounds.width/2,y:e.bounds.y+e.node.localBounds.height/2+e.border}),Dx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y+e.node.localBounds.height/2+e.border}),qx=({item:e})=>({x:e.bounds.x-e.bounds.width-e.node.localBounds.width/2-e.border,y:e.bounds.y-e.bounds.height/2}),zx=({item:e})=>({x:e.bounds.x-e.bounds.width,y:e.bounds.y-e.bounds.height-e.node.localBounds.height/2-e.border});var $x={X:2.5,Y:4};const _x=[Mx.TOP,Mx.TOP_LEFT,Mx.TOP_RIGHT],jx=[Mx.BOTTOM,Mx.BOTTOM_LEFT,Mx.BOTTOM_RIGHT];function Fx({position:e}){const t={x:$x.X,width:-2*$x.X,y:0,height:0},n=_x.indexOf(e)>-1,r=jx.indexOf(e)>-1;return n&&(t.y=$x.Y,t.height=-$x.Y),r&&(t.height=-$x.Y),t}function Bx({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 Hx({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 Ux({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=Hx({coordinates:Bx({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=Hx({coordinates:Bx({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 Wx=void 0;function Yx({item:e,validator:t,force:n=!1}){const r=[...e.preferences,...Object.keys(Mx).map((e=>Mx[e])).filter((t=>-1===e.preferences.indexOf(t)))],i={[Mx.TOP]:kx,[Mx.TOP_RIGHT]:Nx,[Mx.RIGHT]:Ix,[Mx.BOTTOM_RIGHT]:Lx,[Mx.BOTTOM]:Px,[Mx.BOTTOM_LEFT]:Dx,[Mx.LEFT]:qx,[Mx.TOP_LEFT]:zx},o=[];for(let a=0;a<r.length;a++){const s=r[a],l=i[s]({item:e}),c=Fx({position:s}),u=t({item:e,placement:l,adjustment:c,ignoreLines:n});if(n&&u.inside&&o.push(l),u.valid)return l}const a=()=>Ux({item:e,validator:t,force:n});if(n){const e=a();return e||(o[0]||Wx)}return(e.extreme||e.elite)&&a()||Wx}function Gx({model:e,size:t,all:n}){const r={},i=e.getItems(),o=[...i.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})))],a=[],s=e.getLines();i.forEach((e=>{const{data:i}=e.node;if(!e.show||!e.inside||i.null&&i.null.value||i.interpolated&&i.interpolated.value)return;const{key:l}=e;if(r[l])return void e.setDuplicate();r[l]=!0;const c=function({size:e,lines:t,placements:n}){return function({item:r,placement:i,adjustment:o=Rx,ignoreLines:a=!1}){const s={inside:wx({item:r,placement:i,size:e}),collides:!0,valid:!1};return s.inside?(s.collides=Ax({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:s,placements:o}),u=Yx({item:e,validator:c});u?(u.height=e.bounds.height,u.width=e.bounds.width,o.push(u),e.setPlacement(u)):n&&a.push({item:e,validator:c})})),a.forEach((e=>{const{item:t,validator:n}=e,r=Yx({item:t,validator:n,force:!0});r&&(r.height=t.bounds.height,r.width=t.bounds.width,o.push(r),t.setPlacement(r))}))}var Xx={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}},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}=e;if(!this.chart.component(t.point))return[];if("function"==typeof n&&!n())return[];const{allPoints:r}=t,i=r.length?e=>r.includes(e.key):e=>e.key===t.point,o=this.chart.findShapes("circle").filter(i);if(!o.length)return[];const a="horizontal"===e.orientation,s=a?"x":"y";o.sort(((e,t)=>e.localBounds[s]-t.localBounds[s]));const l={label:e.label,pointValue:e.pointValue,majorValue:e.majorValue,lineIndex:e.lineIndex},{height:c,width:u,edgeBleed:d}=this.rect,m={height:c,width:u,edgeBleed:d,insideStrategy:e.insideStrategy},{style:p}=this,f=Ox({nodes:o,extract:l,style:p,measureText:this.renderer.measureText,size:m,horizontal:a,rtl:e.rtl,showLabel:e.showLabel});return function({model:e}){e.getItems().sort(((e,t)=>e.extreme===t.extreme?0:e.extreme&&!t.extreme?-1:1))}({model:f}),Gx({model:f,size:m,all:e.all}),f.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:p.fontSize,fontFamily:p.fontFamily,fill:p.fill,text:l.label(e.node.data),data:e.node.data.value,baseline:"central",anchor:"middle"})))}},Kx={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};var Jx={black:"#000",white:"#fff"};var Zx={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 Qx={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 eS={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 tS={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 nS={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 rS={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 iS={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 oS(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 aS=Object.freeze({__proto__:null,default:oS}),sS="$$material";function lS(){return lS=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},lS.apply(this,arguments)}function cS(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 uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}function dS(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var mS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pS=dS((function(e){return mS.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var fS=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),hS="-ms-",gS="-moz-",yS="-webkit-",vS="comm",bS="rule",xS="decl",SS="@keyframes",ES=Math.abs,MS=String.fromCharCode,CS=Object.assign;function OS(e){return e.trim()}function wS(e,t,n){return e.replace(t,n)}function TS(e,t){return e.indexOf(t)}function AS(e,t){return 0|e.charCodeAt(t)}function RS(e,t,n){return e.slice(t,n)}function kS(e){return e.length}function NS(e){return e.length}function IS(e,t){return t.push(e),e}var LS=1,PS=1,DS=0,qS=0,zS=0,$S="";function _S(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:LS,column:PS,length:a,return:""}}function jS(e,t){return CS(_S("",null,null,"",null,null,0),e,{length:-e.length},t)}function FS(){return zS=qS>0?AS($S,--qS):0,PS--,10===zS&&(PS=1,LS--),zS}function BS(){return zS=qS<DS?AS($S,qS++):0,PS++,10===zS&&(PS=1,LS++),zS}function HS(){return AS($S,qS)}function VS(){return qS}function US(e,t){return RS($S,e,t)}function WS(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 YS(e){return LS=PS=1,DS=kS($S=e),qS=0,[]}function GS(e){return $S="",e}function XS(e){return OS(US(qS-1,ZS(91===e?e+2:40===e?e+1:e)))}function KS(e){for(;(zS=HS())&&zS<33;)BS();return WS(e)>2||WS(zS)>3?"":" "}function JS(e,t){for(;--t&&BS()&&!(zS<48||zS>102||zS>57&&zS<65||zS>70&&zS<97););return US(e,VS()+(t<6&&32==HS()&&32==BS()))}function ZS(e){for(;BS();)switch(zS){case e:return qS;case 34:case 39:34!==e&&39!==e&&ZS(zS);break;case 40:41===e&&ZS(e);break;case 92:BS()}return qS}function QS(e,t){for(;BS()&&e+zS!==57&&(e+zS!==84||47!==HS()););return"/*"+US(t,qS-1)+"*"+MS(47===e?e:BS())}function eE(e){for(;!WS(HS());)BS();return US(e,qS)}function tE(e){return GS(nE("",null,null,null,[""],e=YS(e),0,[0],e))}function nE(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=BS()){case 40:if(108!=f&&58==AS(M,d-1)){-1!=TS(M+=wS(XS(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=XS(v);break;case 9:case 10:case 13:case 32:M+=KS(f);break;case 92:M+=JS(VS()-1,7);continue;case 47:switch(HS()){case 42:case 47:IS(iE(QS(BS(),VS()),t,n),l);break;default:M+="/"}break;case 123*h:s[c++]=kS(M)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(M=wS(M,/\f/g,"")),p>0&&kS(M)-d&&IS(p>32?oE(M+";",r,n,d-1):oE(wS(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(IS(E=rE(M,t,n,c,u,i,s,b,x=[],S=[],d),o),123===v)if(0===u)nE(M,t,E,E,x,o,d,s,S);else switch(99===m&&110===AS(M,3)?100:m){case 100:case 108:case 109:case 115:nE(e,E,E,r&&IS(rE(e,E,E,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:nE(M,E,E,E,[""],S,0,s,S)}}c=u=p=0,h=y=1,b=M="",d=a;break;case 58:d=1+kS(M),p=f;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==FS())continue;switch(M+=MS(v),v*h){case 38:y=u>0?1:(M+="\f",-1);break;case 44:s[c++]=(kS(M)-1)*y,y=1;break;case 64:45===HS()&&(M+=XS(BS())),m=HS(),u=d=kS(b=M+=eE(VS())),v++;break;case 45:45===f&&2==kS(M)&&(h=0)}}return o}function rE(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,m=0===i?o:[""],p=NS(m),f=0,h=0,g=0;f<r;++f)for(var y=0,v=RS(e,d+1,d=ES(h=a[f])),b=e;y<p;++y)(b=OS(h>0?m[y]+" "+v:wS(v,/&\f/g,m[y])))&&(l[g++]=b);return _S(e,t,n,0===i?bS:s,l,c,u)}function iE(e,t,n){return _S(e,t,n,vS,MS(zS),RS(e,2,-2),0)}function oE(e,t,n,r){return _S(e,t,n,xS,RS(e,0,r),RS(e,r+1,-1),r)}function aE(e,t){for(var n="",r=NS(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function sE(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xS:return e.return=e.return||e.value;case vS:return"";case SS:return e.return=e.value+"{"+aE(e.children,r)+"}";case bS:e.value=e.props.join(",")}return kS(n=aE(e.children,r))?e.return=e.value+"{"+n+"}":""}function lE(e){var t=NS(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var cE=function(e,t,n){for(var r=0,i=0;r=i,i=HS(),38===r&&12===i&&(t[n]=1),!WS(i);)BS();return US(e,qS)},uE=function(e,t){return GS(function(e,t){var n=-1,r=44;do{switch(WS(r)){case 0:38===r&&12===HS()&&(t[n]=1),e[n]+=cE(qS-1,t,n);break;case 2:e[n]+=XS(r);break;case 4:if(44===r){e[++n]=58===HS()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=MS(r)}}while(r=BS());return e}(YS(e),t))},dE=new WeakMap,mE=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)||dE.get(n))&&!r){dE.set(e,!0);for(var i=[],o=uE(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]}}},pE=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function fE(e,t){switch(function(e,t){return 45^AS(e,0)?(((t<<2^AS(e,0))<<2^AS(e,1))<<2^AS(e,2))<<2^AS(e,3):0}(e,t)){case 5103:return yS+"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 yS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yS+e+gS+e+hS+e+e;case 6828:case 4268:return yS+e+hS+e+e;case 6165:return yS+e+hS+"flex-"+e+e;case 5187:return yS+e+wS(e,/(\w+).+(:[^]+)/,yS+"box-$1$2"+hS+"flex-$1$2")+e;case 5443:return yS+e+hS+"flex-item-"+wS(e,/flex-|-self/,"")+e;case 4675:return yS+e+hS+"flex-line-pack"+wS(e,/align-content|flex-|-self/,"")+e;case 5548:return yS+e+hS+wS(e,"shrink","negative")+e;case 5292:return yS+e+hS+wS(e,"basis","preferred-size")+e;case 6060:return yS+"box-"+wS(e,"-grow","")+yS+e+hS+wS(e,"grow","positive")+e;case 4554:return yS+wS(e,/([^-])(transform)/g,"$1"+yS+"$2")+e;case 6187:return wS(wS(wS(e,/(zoom-|grab)/,yS+"$1"),/(image-set)/,yS+"$1"),e,"")+e;case 5495:case 3959:return wS(e,/(image-set\([^]*)/,yS+"$1$`$1");case 4968:return wS(wS(e,/(.+:)(flex-)?(.*)/,yS+"box-pack:$3"+hS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yS+e+e;case 4095:case 3583:case 4068:case 2532:return wS(e,/(.+)-inline(.+)/,yS+"$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(kS(e)-1-t>6)switch(AS(e,t+1)){case 109:if(45!==AS(e,t+4))break;case 102:return wS(e,/(.+:)(.+)-([^]+)/,"$1"+yS+"$2-$3$1"+gS+(108==AS(e,t+3)?"$3":"$2-$3"))+e;case 115:return~TS(e,"stretch")?fE(wS(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==AS(e,t+1))break;case 6444:switch(AS(e,kS(e)-3-(~TS(e,"!important")&&10))){case 107:return wS(e,":",":"+yS)+e;case 101:return wS(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yS+(45===AS(e,14)?"inline-":"")+"box$3$1"+yS+"$2$3$1"+hS+"$2box$3")+e}break;case 5936:switch(AS(e,t+11)){case 114:return yS+e+hS+wS(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yS+e+hS+wS(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yS+e+hS+wS(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yS+e+hS+e+e}return e}var hE="undefined"!=typeof document,gE=hE?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return dS((function(){var e={};return function(t){return e[t]}}))})),yE=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xS:e.return=fE(e.value,e.length);break;case SS:return aE([jS(e,{value:wS(e.value,"@","@"+yS)})],r);case bS: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 aE([jS(e,{props:[wS(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return aE([jS(e,{props:[wS(t,/:(plac\w+)/,":"+yS+"input-$1")]}),jS(e,{props:[wS(t,/:(plac\w+)/,":-moz-$1")]}),jS(e,{props:[wS(t,/:(plac\w+)/,hS+"input-$1")]})],r)}return""}))}}],vE=function(e){var t=e.key;if(hE&&"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||yE,a={},s=[];hE&&(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=[mE,pE];if(hE){var u,d=[sE,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],m=lE(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){aE(tE(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var p=[sE],f=lE(c.concat(o,p)),h=gE(o)(t),g=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return aE(tE(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new fS({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},bE="undefined"!=typeof document;var xE=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===bE&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},SE=function(e,t,n){xE(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);bE||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!bE&&0!==i.length)return i}};var EE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ME=/[A-Z]|^ms/g,CE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,OE=function(e){return 45===e.charCodeAt(1)},wE=function(e){return null!=e&&"boolean"!=typeof e},TE=dS((function(e){return OE(e)?e:e.replace(ME,"-$&").toLowerCase()})),AE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(CE,(function(e,t,n){return kE={name:t,styles:n,next:kE},t}))}return 1===EE[e]||OE(e)||"number"!=typeof t||0===t?t:t+"px"};function RE(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return kE={name:n.name,styles:n.styles,next:kE},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)kE={name:r.name,styles:r.styles,next:kE},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=RE(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":wE(a)&&(r+=TE(o)+":"+AE(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=RE(e,t,a);switch(o){case"animation":case"animationName":r+=TE(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)wE(a[l])&&(r+=TE(o)+":"+AE(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=kE,o=n(e);return kE=i,RE(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var kE,NE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,IE=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";kE=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=RE(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=RE(n,t,e[a]),r&&(i+=o[a]);NE.lastIndex=0;for(var s,l="";null!==(s=NE.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:kE}},LE="undefined"!=typeof document,PE=function(e){return e()},DE=!!F.useInsertionEffect&&F.useInsertionEffect,qE=LE&&DE||PE,zE=DE||F.useLayoutEffect,$E="undefined"!=typeof document,_E=F.createContext("undefined"!=typeof HTMLElement?vE({key:"css"}):null),jE=_E.Provider,FE=function(e){return U((function(t,n){var r=W(_E);return e(t,r,n)}))};$E||(FE=function(e){return function(t){var n=W(_E);return null===n?(n=vE({key:"css"}),F.createElement(_E.Provider,{value:n},e(t,n))):e(t,n)}});var BE=F.createContext({}),HE=FE((function(e,t){var n=e.styles,r=IE([n],void 0,F.useContext(BE));if(!$E){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:F.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=F.useRef();return zE((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),zE((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&SE(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function VE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return IE(t)}var UE=function(){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_"}}},WE=pS,YE=function(e){return"theme"!==e},GE=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?WE:YE},XE=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},KE="undefined"!=typeof document,JE=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;xE(t,n,r);var i=qE((function(){return SE(t,n,r)}));if(!KE&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return F.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},ZE=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=XE(t,n,o),l=s||GE(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var m=u.length,p=1;p<m;p++)d.push(u[p],u[0][p])}var f=FE((function(e,t,n){var r,o,u,m,p=c&&e.as||a,f="",h=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=F.useContext(BE)}"string"==typeof e.className?(r=t.registered,o=h,u=e.className,m="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):m+=e+" "})),f=m):null!=e.className&&(f=e.className+" ");var v=IE(d.concat(h),t.registered,g);f+=t.key+"-"+v.name,void 0!==i&&(f+=" "+i);var b=c&&void 0===s?GE(p):l,x={};for(var S in e)c&&"as"===S||b(S)&&(x[S]=e[S]);return x.className=f,x.ref=n,F.createElement(F.Fragment,null,F.createElement(JE,{cache:t,serialized:v,isStringTag:"string"==typeof p}),F.createElement(p,x))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=a,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,r){return e(t,uS({},n,r,{shouldForwardProp:XE(f,r,!0)})).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){ZE[e]=ZE(e)}));var QE={exports:{}},eM={},tM=j,nM=Symbol.for("react.element"),rM=Symbol.for("react.fragment"),iM=Object.prototype.hasOwnProperty,oM=tM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aM={key:!0,ref:!0,__self:!0,__source:!0};function sM(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)iM.call(t,r)&&!aM.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:nM,type:e,key:o,ref:a,props:i,_owner:oM.current}}eM.Fragment=rM,eM.jsx=sM,eM.jsxs=sM,QE.exports=eM;var lM=QE.exports;let cM;"object"==typeof document&&(cM=vE({key:"css",prepend:!0}));var uM=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 lM.jsx(HE,{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&&pM?mM.jsx(VE,{value:pM,children:n}):n},ThemeContext:WE,css:GE,default:function(e,t){return nM(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:XE});function hM(){return hM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hM.apply(this,arguments)}function gM(e,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 yM(){return yM=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},yM.apply(this,arguments)}function vM(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 bM(e){if(!vM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=bM(e[n])})),t}function xM(e,t,n={clone:!0}){const r=n.clone?yM({},e):e;return vM(e)&&vM(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(vM(t[i])&&i in e&&vM(e[i])?r[i]=xM(e[i],t[i],n):n.clone?r[i]=vM(t[i])?bM(t[i]):t[i]:r[i]=t[i])})),r}var SM=Object.freeze({__proto__:null,default:xM,isPlainObject:vM});const EM=["values","unit","step"],MM=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)=>hM({},e,{[t.key]:t.val})),{})};function CM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=gM(e,EM),o=MM(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 hM({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 OM={borderRadius:4};function wM(e,t){return t?xM(e,t,{clone:!1}):e}const TM={xs:0,sm:600,md:900,lg:1200,xl:1536},AM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${TM[e]}px)`};function RM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||AM;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||AM;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||TM).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function kM(e){if("string"!=typeof e)throw new Error(cS(7));return e.charAt(0).toUpperCase()+e.slice(1)}var NM=Object.freeze({__proto__:null,default:kM});function IM(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 LM(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:IM(e,n)||r,t&&(i=t(i,r,e)),i}function PM(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=IM(e.theme,r)||{};return RM(e,o,(e=>{let r=LM(a,i,e);return e===r&&"string"==typeof e&&(r=LM(a,i,`${t}${"default"===e?"":kM(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const DM={m:"margin",p:"padding"},qM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$M=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!zM[e])return[e];e=zM[e]}const[t,n]=e.split(""),r=DM[t],i=qM[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),_M=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function FM(e,t,n,r){var i;const o=null!=(i=IM(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 BM(e){return FM(e,"spacing",8)}function HM(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 VM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=HM(t,n),e)),{})}($M(n),r);return RM(e,e[n],i)}function UM(e,t){const n=BM(e.theme);return Object.keys(e).map((r=>VM(e,t,r,n))).reduce(wM,{})}function WM(e){return UM(e,_M)}function YM(e){return UM(e,jM)}function GM(...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]?wM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function XM(e){return"number"!=typeof e?e:`${e}px solid`}function KM(e,t){return PM({prop:e,themeKey:"borders",transform:t})}WM.propTypes={},WM.filterProps=_M,YM.propTypes={},YM.filterProps=jM;const JM=KM("border",XM),ZM=KM("borderTop",XM),QM=KM("borderRight",XM),eC=KM("borderBottom",XM),tC=KM("borderLeft",XM),nC=KM("borderColor"),rC=KM("borderTopColor"),iC=KM("borderRightColor"),oC=KM("borderBottomColor"),aC=KM("borderLeftColor"),sC=KM("outline",XM),lC=KM("outlineColor"),cC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=FM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:HM(t,e)});return RM(e,e.borderRadius,n)}return null};cC.propTypes={},cC.filterProps=["borderRadius"],GM(JM,ZM,QM,eC,tC,nC,rC,iC,oC,aC,cC,sC,lC);const uC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=FM(e.theme,"spacing",8),n=e=>({gap:HM(t,e)});return RM(e,e.gap,n)}return null};uC.propTypes={},uC.filterProps=["gap"];const dC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=FM(e.theme,"spacing",8),n=e=>({columnGap:HM(t,e)});return RM(e,e.columnGap,n)}return null};dC.propTypes={},dC.filterProps=["columnGap"];const mC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=FM(e.theme,"spacing",8),n=e=>({rowGap:HM(t,e)});return RM(e,e.rowGap,n)}return null};mC.propTypes={},mC.filterProps=["rowGap"];function pC(e,t){return"grey"===t?t:e}GM(uC,dC,mC,PM({prop:"gridColumn"}),PM({prop:"gridRow"}),PM({prop:"gridAutoFlow"}),PM({prop:"gridAutoColumns"}),PM({prop:"gridAutoRows"}),PM({prop:"gridTemplateColumns"}),PM({prop:"gridTemplateRows"}),PM({prop:"gridTemplateAreas"}),PM({prop:"gridArea"}));function fC(e){return e<=1&&0!==e?100*e+"%":e}GM(PM({prop:"color",themeKey:"palette",transform:pC}),PM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pC}),PM({prop:"backgroundColor",themeKey:"palette",transform:pC}));const hC=PM({prop:"width",transform:fC}),gC=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||TM[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:fC(t)}};return RM(e,e.maxWidth,t)}return null};gC.filterProps=["maxWidth"];const yC=PM({prop:"minWidth",transform:fC}),vC=PM({prop:"height",transform:fC}),bC=PM({prop:"maxHeight",transform:fC}),xC=PM({prop:"minHeight",transform:fC});PM({prop:"size",cssProperty:"width",transform:fC}),PM({prop:"size",cssProperty:"height",transform:fC});GM(hC,gC,yC,vC,bC,xC,PM({prop:"boxSizing"}));var SC={border:{themeKey:"borders",transform:XM},borderTop:{themeKey:"borders",transform:XM},borderRight:{themeKey:"borders",transform:XM},borderBottom:{themeKey:"borders",transform:XM},borderLeft:{themeKey:"borders",transform:XM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:XM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cC},color:{themeKey:"palette",transform:pC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pC},backgroundColor:{themeKey:"palette",transform:pC},p:{style:YM},pt:{style:YM},pr:{style:YM},pb:{style:YM},pl:{style:YM},px:{style:YM},py:{style:YM},padding:{style:YM},paddingTop:{style:YM},paddingRight:{style:YM},paddingBottom:{style:YM},paddingLeft:{style:YM},paddingX:{style:YM},paddingY:{style:YM},paddingInline:{style:YM},paddingInlineStart:{style:YM},paddingInlineEnd:{style:YM},paddingBlock:{style:YM},paddingBlockStart:{style:YM},paddingBlockEnd:{style:YM},m:{style:WM},mt:{style:WM},mr:{style:WM},mb:{style:WM},ml:{style:WM},mx:{style:WM},my:{style:WM},margin:{style:WM},marginTop:{style:WM},marginRight:{style:WM},marginBottom:{style:WM},marginLeft:{style:WM},marginX:{style:WM},marginY:{style:WM},marginInline:{style:WM},marginInlineStart:{style:WM},marginInlineEnd:{style:WM},marginBlock:{style:WM},marginBlockStart:{style:WM},marginBlockEnd:{style:WM},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:uC},rowGap:{style:mC},columnGap:{style:dC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fC},maxWidth:{style:gC},minWidth:{transform:fC},height:{transform:fC},maxHeight:{transform:fC},minHeight:{transform:fC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function EC(){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=IM(n,s)||{};if(c)return c(i);return RM(i,t,(t=>{let n=LM(u,l,t);return t===n&&"string"==typeof t&&(n=LM(u,l,`${e}${"default"===t?"":kM(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:SC;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=wM(l,e(n,i,o,a));else{const e=RM({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=wM(l,e):l[n]=t({sx:i,theme:o})}else l=wM(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 MC=EC();MC.filterProps=["sx"];var CC=MC;function OC(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 wC=["breakpoints","palette","spacing","shape"];function TC(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=gM(e,wC),s=CM(n),l=function(e=8){if(e.mui)return e;const t=BM({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=xM({breakpoints:s,direction:"ltr",components:{},palette:hM({mode:"light"},r),spacing:l,shape:hM({},OM,o)},a);return c.applyStyles=OC,c=t.reduce(((e,t)=>xM(e,t)),c),c.unstable_sxConfig=hM({},SC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return CC({sx:e,theme:this})},c}var AC=Object.freeze({__proto__:null,default:TC,private_createBreakpoints:CM,unstable_applyStyles:OC});function RC(e=null){const t=j.useContext(WE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const kC=TC();const NC=["sx"];var IC=Object.freeze({__proto__:null,default:CC,extendSxProp:function(e){const{sx:t}=e,n=gM(e,NC),{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:SC;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 vM(n)?hM({},r,n):r}:hM({},r,t),hM({},i,{sx:o})},unstable_createStyleFunctionSx:EC,unstable_defaultSxConfig:SC});const LC=e=>e;var PC=(()=>{let e=LC;return{configure(t){e=t},generate:t=>e(t),reset(){e=LC}}})();function DC(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=DC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=DC(e))&&(r&&(r+=" "),r+=t);return r}const zC={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 $C(e,t,n="Mui"){const r=zC[t];return r?`${n}-${r}`:`${PC.generate(e)}-${t}`}function _C(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$C(e,t,n)})),r}var jC,FC={exports:{}},BC={},HC=Symbol.for("react.element"),VC=Symbol.for("react.portal"),UC=Symbol.for("react.fragment"),WC=Symbol.for("react.strict_mode"),YC=Symbol.for("react.profiler"),GC=Symbol.for("react.provider"),XC=Symbol.for("react.context"),KC=Symbol.for("react.server_context"),JC=Symbol.for("react.forward_ref"),ZC=Symbol.for("react.suspense"),QC=Symbol.for("react.suspense_list"),eO=Symbol.for("react.memo"),tO=Symbol.for("react.lazy"),nO=Symbol.for("react.offscreen");function rO(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case HC:switch(e=e.type){case UC:case YC:case WC:case ZC:case QC:return e;default:switch(e=e&&e.$$typeof){case KC:case XC:case JC:case tO:case eO:case GC:return e;default:return t}}case VC:return t}}}jC=Symbol.for("react.module.reference"),BC.ContextConsumer=XC,BC.ContextProvider=GC,BC.Element=HC,BC.ForwardRef=JC,BC.Fragment=UC,BC.Lazy=tO,BC.Memo=eO,BC.Portal=VC,BC.Profiler=YC,BC.StrictMode=WC,BC.Suspense=ZC,BC.SuspenseList=QC,BC.isAsyncMode=function(){return!1},BC.isConcurrentMode=function(){return!1},BC.isContextConsumer=function(e){return rO(e)===XC},BC.isContextProvider=function(e){return rO(e)===GC},BC.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===HC},BC.isForwardRef=function(e){return rO(e)===JC},BC.isFragment=function(e){return rO(e)===UC},BC.isLazy=function(e){return rO(e)===tO},BC.isMemo=function(e){return rO(e)===eO},BC.isPortal=function(e){return rO(e)===VC},BC.isProfiler=function(e){return rO(e)===YC},BC.isStrictMode=function(e){return rO(e)===WC},BC.isSuspense=function(e){return rO(e)===ZC},BC.isSuspenseList=function(e){return rO(e)===QC},BC.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===UC||e===YC||e===WC||e===ZC||e===QC||e===nO||"object"==typeof e&&null!==e&&(e.$$typeof===tO||e.$$typeof===eO||e.$$typeof===GC||e.$$typeof===XC||e.$$typeof===JC||e.$$typeof===jC||void 0!==e.getModuleId)},BC.typeOf=rO,FC.exports=BC;var iO=FC.exports;const oO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function aO(e){const t=`${e}`.match(oO);return t&&t[1]||""}function sO(e,t=""){return e.displayName||e.name||aO(e)||t}function lO(e,t,n){const r=sO(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var cO=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return sO(e,"Component");if("object"==typeof e)switch(e.$$typeof){case iO.ForwardRef:return lO(e,e.render,"ForwardRef");case iO.Memo:return lO(e,e.type,"memo");default:return}}},getFunctionName:aO});function uO(e,t){const n=yM({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=yM({},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]=yM({},o),Object.keys(i).forEach((e=>{n[r][e]=uO(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function dO({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=kC){return RC(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?uO(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var mO="undefined"!=typeof window?j.useLayoutEffect:j.useEffect;var pO=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 fO(){return fO=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},fO.apply(this,arguments)}function hO(e){const t=j.useRef(e);return mO((()=>{t.current=e})),j.useRef(((...e)=>(0,t.current)(...e))).current}function gO(...e){return j.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 yO={};const vO=[];class bO{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bO}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function xO(){const e=function(e,t){const n=j.useRef(yO);return n.current===yO&&(n.current=e(t)),n}(bO.create).current;var t;return t=e.disposeEffect,j.useEffect(t,vO),e}let SO=!0,EO=!1;const MO=new bO,CO={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 OO(e){e.metaKey||e.altKey||e.ctrlKey||(SO=!0)}function wO(){SO=!1}function TO(){"hidden"===this.visibilityState&&EO&&(SO=!0)}function AO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return SO||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!CO[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function RO(){const e=j.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",OO,!0),t.addEventListener("mousedown",wO,!0),t.addEventListener("pointerdown",wO,!0),t.addEventListener("touchstart",wO,!0),t.addEventListener("visibilitychange",TO,!0))}),[]),t=j.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!AO(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(EO=!0,MO.start(100,(()=>{EO=!1})),t.current=!1,!0)},ref:e}}function kO(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 NO=j.createContext(null);function IO(){return j.useContext(NO)}var LO="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function PO(e){const{children:t,theme:n}=e,r=IO(),i=j.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return fO({},e,t)}(r,n);return null!=e&&(e[LO]=null!==r),e}),[n,r]);return mM.jsx(NO.Provider,{value:i,children:t})}const DO=["value"],qO=j.createContext();function zO(e){let{value:t}=e,n=gM(e,DO);return mM.jsx(qO.Provider,hM({value:null==t||t},n))}const $O={};function _O(e,t,n,r=!1){return j.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?hM({},t,{[e]:o}):o;return r?()=>a:a}return hM({},t,e?{[e]:n}:n)}),[e,t,n,r])}function jO(e){const{children:t,theme:n,themeId:r}=e,i=RC($O),o=IO()||$O,a=_O(r,i,n),s=_O(r,o,n,!0),l="rtl"===a.direction;return mM.jsx(PO,{theme:s,children:mM.jsx(WE.Provider,{value:a,children:mM.jsx(zO,{value:l,children:t})})})}var FO,BO={},HO={exports:{}};(FO=HO).exports=function(e){return e&&e.__esModule?e:{default:e}},FO.exports.__esModule=!0,FO.exports.default=FO.exports;var VO=HO.exports,UO=J(uS),WO=J(pO),YO=VO;Object.defineProperty(BO,"__esModule",{value:!0});var GO=BO.alpha=sw;BO.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=nw(e),a=nw(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return iw({type:"rgb",values:s})},BO.colorChannel=void 0;var XO=BO.darken=lw;BO.decomposeColor=nw,BO.emphasize=function(e,t=.15){return aw(e)>.5?lw(e,t):cw(e,t)};var KO=BO.getContrastRatio=function(e,t){const n=aw(e),r=aw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};BO.getLuminance=aw,BO.hexToRgb=tw,BO.hslToRgb=ow;var JO=BO.lighten=cw;BO.private_safeAlpha=function(e,t,n){try{return sw(e,t)}catch(t){return e}},BO.private_safeColorChannel=void 0,BO.private_safeDarken=function(e,t,n){try{return lw(e,t)}catch(t){return e}},BO.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},BO.private_safeLighten=function(e,t,n){try{return cw(e,t)}catch(t){return e}},BO.recomposeColor=iw,BO.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=nw(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 ZO=YO(UO),QO=YO(WO);function ew(e,t=0,n=1){return(0,QO.default)(e,t,n)}function tw(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 nw(e){if(e.type)return e;if("#"===e.charAt(0))return nw(tw(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,ZO.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,ZO.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const rw=e=>{const t=nw(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};BO.colorChannel=rw;function iw(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 ow(e){e=nw(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),iw({type:s,values:l})}function aw(e){let t="hsl"===(e=nw(e)).type||"hsla"===e.type?nw(ow(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 sw(e,t){return e=nw(e),t=ew(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,iw(e)}function lw(e,t){if(e=nw(e),t=ew(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 iw(e)}function cw(e,t){if(e=nw(e),t=ew(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 iw(e)}BO.private_safeColorChannel=(e,t)=>{try{return rw(e)}catch(t){return e}};const uw=["mode","contrastThreshold","tonalOffset"],dw={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:tS.white,default:tS.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}},mw={text:{primary:tS.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:tS.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 pw(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=JO(e.main,i):"dark"===t&&(e.dark=XO(e.main,o)))}function fw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=pS(e,uw),o=e.primary||function(e="light"){return"dark"===e?{main:iS[200],light:iS[50],dark:iS[400]}:{main:iS[700],light:iS[400],dark:iS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rS[200],light:rS[50],dark:rS[400]}:{main:rS[500],light:rS[300],dark:rS[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:nS[500],light:nS[300],dark:nS[700]}:{main:nS[700],light:nS[400],dark:nS[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:oS[400],light:oS[300],dark:oS[700]}:{main:oS[700],light:oS[500],dark:oS[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:aS[400],light:aS[300],dark:aS[700]}:{main:aS[800],light:aS[500],dark:aS[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:sS[400],light:sS[300],dark:sS[700]}:{main:"#ed6c02",light:sS[500],dark:sS[900]}}(t);function d(e){return KO(e,mw.text.primary)>=n?mw.text.primary:dw.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=mS({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(cS(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(cS(12,t?` (${t})`:"",JSON.stringify(e.main)));return pw(e,"light",i,r),pw(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:mw,light:dw};return xM(mS({common:mS({},tS),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:lS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const hw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gw={textTransform:"uppercase"},yw='"Roboto", "Helvetica", "Arial", sans-serif';function vw(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=yw,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=pS(n,hw),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return mS({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===yw?{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,gw),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,gw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return xM(mS({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function bw(...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 xw=["none",bw(0,2,1,-1,0,1,1,0,0,1,3,0),bw(0,3,1,-2,0,2,2,0,0,1,5,0),bw(0,3,3,-2,0,3,4,0,0,1,8,0),bw(0,2,4,-1,0,4,5,0,0,1,10,0),bw(0,3,5,-1,0,5,8,0,0,1,14,0),bw(0,3,5,-1,0,6,10,0,0,1,18,0),bw(0,4,5,-2,0,7,10,1,0,2,16,1),bw(0,5,5,-3,0,8,10,1,0,3,14,2),bw(0,5,6,-3,0,9,12,1,0,3,16,2),bw(0,6,6,-3,0,10,14,1,0,4,18,3),bw(0,6,7,-4,0,11,15,1,0,4,20,3),bw(0,7,8,-4,0,12,17,2,0,5,22,4),bw(0,7,8,-4,0,13,19,2,0,5,24,4),bw(0,7,9,-4,0,14,21,2,0,5,26,4),bw(0,8,9,-5,0,15,22,2,0,6,28,5),bw(0,8,10,-5,0,16,24,2,0,6,30,5),bw(0,8,11,-5,0,17,26,2,0,6,32,5),bw(0,9,11,-5,0,18,28,2,0,7,34,6),bw(0,9,12,-6,0,19,29,2,0,7,36,6),bw(0,10,13,-6,0,20,31,3,0,8,38,7),bw(0,10,13,-6,0,21,33,3,0,8,40,7),bw(0,10,14,-6,0,22,35,3,0,8,42,7),bw(0,11,14,-7,0,23,36,3,0,9,44,8),bw(0,11,15,-7,0,24,38,3,0,9,46,8)];const Sw=["duration","easing","delay"],Ew={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)"},Mw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cw(e){return`${Math.round(e)}ms`}function Ow(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ww(e){const t=mS({},Ew,e.easing),n=mS({},Mw,e.duration);return mS({getAutoHeightDuration:Ow,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return pS(r,Sw),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:Cw(i)} ${o} ${"string"==typeof a?a:Cw(a)}`)).join(",")}},e,{easing:t,duration:n})}var Tw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Aw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rw(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=pS(e,Aw);if(e.vars)throw new Error(cS(18));const s=fw(r),l=TC(e);let c=xM(l,{mixins:(u=l.breakpoints,d=n,mS({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:xw.slice(),typography:vw(s,o),transitions:ww(i),zIndex:mS({},Tw)});var u,d;return c=xM(c,a),c=t.reduce(((e,t)=>xM(e,t)),c),c.unstable_sxConfig=mS({},SC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return CC({sx:e,theme:this})},c}var kw=Rw();function Nw({props:e,name:t}){return dO({props:e,name:t,defaultTheme:kw,themeId:dS})}var Iw,Lw={},Pw={exports:{}};var Dw,qw={exports:{}};var zw=J(fM),$w=J(SM),_w=J(NM),jw=J(cO),Fw=J(AC),Bw=J(IC),Hw=VO;Object.defineProperty(Lw,"__esModule",{value:!0});var Vw=Lw.default=function(e={}){const{themeId:t,defaultTheme:n=nT,rootShouldForwardProp:r=tT,slotShouldForwardProp:i=tT}=e,o=e=>(0,Kw.default)((0,Uw.default)({},e,{theme:iT((0,Uw.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Yw.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=oT(rT(l))}=a,m=(0,Ww.default)(a,Qw),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=tT;"Root"===l||"root"===l?h=r:l?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Yw.default)(e,(0,Uw.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Gw.isPlainObject)(e)?r=>aT(e,(0,Uw.default)({},r,{theme:iT({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=iT((0,Uw.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=aT(n,(0,Uw.default)({},e,{theme:r}))})),d(e,o)})),s&&!p&&l.push((e=>{var r;const i=iT((0,Uw.default)({},e,{defaultTheme:n,themeId:t}));return aT({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,Uw.default)({},e,{theme:i}))})),f||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};Lw.shouldForwardProp=tT,Lw.systemDefaultTheme=void 0;var Uw=Hw((Iw||(Iw=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}(Pw)),Pw.exports)),Ww=Hw((Dw||(Dw=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(qw)),qw.exports)),Yw=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=eT(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}(zw),Gw=$w;Hw(_w),Hw(jw);var Xw=Hw(Fw),Kw=Hw(Bw);const Jw=["ownerState"],Zw=["variants"],Qw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function eT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(eT=function(e){return e?n:t})(e)}function tT(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nT=Lw.systemDefaultTheme=(0,Xw.default)(),rT=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function iT({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function oT(e){return e?(t,n)=>n[e]:null}function aT(e,t){let{ownerState:n}=t,r=(0,Ww.default)(t,Jw);const i="function"==typeof e?e((0,Uw.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>aT(e,(0,Uw.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ww.default)(i,Zw);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,Uw.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Uw.default)({ownerState:n},r,n)):e.style))})),t}return i}var sT=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var lT=Vw({themeId:dS,defaultTheme:kw,rootShouldForwardProp:sT});const cT=["theme"];function uT(e){let{theme:t}=e,n=pS(e,cT);const r=t[dS];return mM.jsx(jO,mS({},n,{themeId:r?dS:void 0,theme:r||t}))}function dT(e){return $C("MuiSvgIcon",e)}_C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pT=lT("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${kM(n.color)}`],t[`fontSize${kM(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]}})),fT=j.forwardRef((function(e,t){const n=Nw({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=pS(n,mT),p=j.isValidElement(r)&&"svg"===r.type,f=mS({},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 kO({root:["root","inherit"!==t&&`color${kM(t)}`,`fontSize${kM(n)}`]},dT,r)})(f);return mM.jsxs(pT,mS({as:a,className:qC(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?mM.jsx("title",{children:u}):null]}))}));fT.muiName="SvgIcon";var hT=fT;var gT=_C("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const yT=["center","classes","className"];let vT,bT,xT,ST,ET=e=>e;const MT=XE(vT||(vT=ET`
|
|
21
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&cM?lM.jsx(jE,{value:cM,children:n}):n},ThemeContext:BE,css:VE,default:function(e,t){return ZE(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:UE});function dM(){return dM=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},dM.apply(this,arguments)}function mM(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 pM(){return pM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pM.apply(this,arguments)}function fM(e){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 hM(e){if(!fM(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=hM(e[n])})),t}function gM(e,t,n={clone:!0}){const r=n.clone?pM({},e):e;return fM(e)&&fM(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(fM(t[i])&&i in e&&fM(e[i])?r[i]=gM(e[i],t[i],n):n.clone?r[i]=fM(t[i])?hM(t[i]):t[i]:r[i]=t[i])})),r}var yM=Object.freeze({__proto__:null,default:gM,isPlainObject:fM});const vM=["values","unit","step"],bM=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)=>dM({},e,{[t.key]:t.val})),{})};function xM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=mM(e,vM),o=bM(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 dM({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 SM={borderRadius:4};function EM(e,t){return t?gM(e,t,{clone:!1}):e}const MM={xs:0,sm:600,md:900,lg:1200,xl:1536},CM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${MM[e]}px)`};function OM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||CM;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||CM;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||MM).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function wM(e){if("string"!=typeof e)throw new Error(oS(7));return e.charAt(0).toUpperCase()+e.slice(1)}var TM=Object.freeze({__proto__:null,default:wM});function AM(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 RM(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:AM(e,n)||r,t&&(i=t(i,r,e)),i}function kM(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=AM(e.theme,r)||{};return OM(e,o,(e=>{let r=RM(a,i,e);return e===r&&"string"==typeof e&&(r=RM(a,i,`${t}${"default"===e?"":wM(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const NM={m:"margin",p:"padding"},IM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},LM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},PM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!LM[e])return[e];e=LM[e]}const[t,n]=e.split(""),r=NM[t],i=IM[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),DM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function zM(e,t,n,r){var i;const o=null!=(i=AM(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 $M(e){return zM(e,"spacing",8)}function _M(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 jM(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=_M(t,n),e)),{})}(PM(n),r);return OM(e,e[n],i)}function FM(e,t){const n=$M(e.theme);return Object.keys(e).map((r=>jM(e,t,r,n))).reduce(EM,{})}function BM(e){return FM(e,DM)}function HM(e){return FM(e,qM)}function VM(...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]?EM(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 WM(e,t){return kM({prop:e,themeKey:"borders",transform:t})}BM.propTypes={},BM.filterProps=DM,HM.propTypes={},HM.filterProps=qM;const YM=WM("border",UM),GM=WM("borderTop",UM),XM=WM("borderRight",UM),KM=WM("borderBottom",UM),JM=WM("borderLeft",UM),ZM=WM("borderColor"),QM=WM("borderTopColor"),eC=WM("borderRightColor"),tC=WM("borderBottomColor"),nC=WM("borderLeftColor"),rC=WM("outline",UM),iC=WM("outlineColor"),oC=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=zM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:_M(t,e)});return OM(e,e.borderRadius,n)}return null};oC.propTypes={},oC.filterProps=["borderRadius"],VM(YM,GM,XM,KM,JM,ZM,QM,eC,tC,nC,oC,rC,iC);const aC=e=>{if(void 0!==e.gap&&null!==e.gap){const t=zM(e.theme,"spacing",8),n=e=>({gap:_M(t,e)});return OM(e,e.gap,n)}return null};aC.propTypes={},aC.filterProps=["gap"];const sC=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=zM(e.theme,"spacing",8),n=e=>({columnGap:_M(t,e)});return OM(e,e.columnGap,n)}return null};sC.propTypes={},sC.filterProps=["columnGap"];const lC=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=zM(e.theme,"spacing",8),n=e=>({rowGap:_M(t,e)});return OM(e,e.rowGap,n)}return null};lC.propTypes={},lC.filterProps=["rowGap"];function cC(e,t){return"grey"===t?t:e}VM(aC,sC,lC,kM({prop:"gridColumn"}),kM({prop:"gridRow"}),kM({prop:"gridAutoFlow"}),kM({prop:"gridAutoColumns"}),kM({prop:"gridAutoRows"}),kM({prop:"gridTemplateColumns"}),kM({prop:"gridTemplateRows"}),kM({prop:"gridTemplateAreas"}),kM({prop:"gridArea"}));function uC(e){return e<=1&&0!==e?100*e+"%":e}VM(kM({prop:"color",themeKey:"palette",transform:cC}),kM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cC}),kM({prop:"backgroundColor",themeKey:"palette",transform:cC}));const dC=kM({prop:"width",transform:uC}),mC=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])||MM[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:uC(t)}};return OM(e,e.maxWidth,t)}return null};mC.filterProps=["maxWidth"];const pC=kM({prop:"minWidth",transform:uC}),fC=kM({prop:"height",transform:uC}),hC=kM({prop:"maxHeight",transform:uC}),gC=kM({prop:"minHeight",transform:uC});kM({prop:"size",cssProperty:"width",transform:uC}),kM({prop:"size",cssProperty:"height",transform:uC});VM(dC,mC,pC,fC,hC,gC,kM({prop:"boxSizing"}));var yC={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:oC},color:{themeKey:"palette",transform:cC},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cC},backgroundColor:{themeKey:"palette",transform:cC},p:{style:HM},pt:{style:HM},pr:{style:HM},pb:{style:HM},pl:{style:HM},px:{style:HM},py:{style:HM},padding:{style:HM},paddingTop:{style:HM},paddingRight:{style:HM},paddingBottom:{style:HM},paddingLeft:{style:HM},paddingX:{style:HM},paddingY:{style:HM},paddingInline:{style:HM},paddingInlineStart:{style:HM},paddingInlineEnd:{style:HM},paddingBlock:{style:HM},paddingBlockStart:{style:HM},paddingBlockEnd:{style:HM},m:{style:BM},mt:{style:BM},mr:{style:BM},mb:{style:BM},ml:{style:BM},mx:{style:BM},my:{style:BM},margin:{style:BM},marginTop:{style:BM},marginRight:{style:BM},marginBottom:{style:BM},marginLeft:{style:BM},marginX:{style:BM},marginY:{style:BM},marginInline:{style:BM},marginInlineStart:{style:BM},marginInlineEnd:{style:BM},marginBlock:{style:BM},marginBlockStart:{style:BM},marginBlockEnd:{style:BM},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:aC},rowGap:{style:lC},columnGap:{style:sC},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:uC},maxWidth:{style:mC},minWidth:{transform:uC},height:{transform:uC},maxHeight:{transform:uC},minHeight:{transform:uC},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vC(){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=AM(n,s)||{};if(c)return c(i);return OM(i,t,(t=>{let n=RM(u,l,t);return t===n&&"string"==typeof t&&(n=RM(u,l,`${e}${"default"===t?"":wM(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:yC;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=EM(l,e(n,i,o,a));else{const e=OM({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=EM(l,e):l[n]=t({sx:i,theme:o})}else l=EM(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 bC=vC();bC.filterProps=["sx"];var xC=bC;function SC(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 EC=["breakpoints","palette","spacing","shape"];function MC(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=mM(e,EC),s=xM(n),l=function(e=8){if(e.mui)return e;const t=$M({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=gM({breakpoints:s,direction:"ltr",components:{},palette:dM({mode:"light"},r),spacing:l,shape:dM({},SM,o)},a);return c.applyStyles=SC,c=t.reduce(((e,t)=>gM(e,t)),c),c.unstable_sxConfig=dM({},yC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return xC({sx:e,theme:this})},c}var CC=Object.freeze({__proto__:null,default:MC,private_createBreakpoints:xM,unstable_applyStyles:SC});function OC(e=null){const t=F.useContext(BE);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const wC=MC();const TC=["sx"];var AC=Object.freeze({__proto__:null,default:xC,extendSxProp:function(e){const{sx:t}=e,n=mM(e,TC),{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:yC;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 fM(n)?dM({},r,n):r}:dM({},r,t),dM({},i,{sx:o})},unstable_createStyleFunctionSx:vC,unstable_defaultSxConfig:yC});const RC=e=>e;var kC=(()=>{let e=RC;return{configure(t){e=t},generate:t=>e(t),reset(){e=RC}}})();function NC(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=NC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function IC(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=NC(e))&&(r&&(r+=" "),r+=t);return r}const LC={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 PC(e,t,n="Mui"){const r=LC[t];return r?`${n}-${r}`:`${kC.generate(e)}-${t}`}function DC(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=PC(e,t,n)})),r}var qC,zC={exports:{}},$C={},_C=Symbol.for("react.element"),jC=Symbol.for("react.portal"),FC=Symbol.for("react.fragment"),BC=Symbol.for("react.strict_mode"),HC=Symbol.for("react.profiler"),VC=Symbol.for("react.provider"),UC=Symbol.for("react.context"),WC=Symbol.for("react.server_context"),YC=Symbol.for("react.forward_ref"),GC=Symbol.for("react.suspense"),XC=Symbol.for("react.suspense_list"),KC=Symbol.for("react.memo"),JC=Symbol.for("react.lazy"),ZC=Symbol.for("react.offscreen");function QC(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _C:switch(e=e.type){case FC:case HC:case BC:case GC:case XC:return e;default:switch(e=e&&e.$$typeof){case WC:case UC:case YC:case JC:case KC:case VC:return e;default:return t}}case jC:return t}}}qC=Symbol.for("react.module.reference"),$C.ContextConsumer=UC,$C.ContextProvider=VC,$C.Element=_C,$C.ForwardRef=YC,$C.Fragment=FC,$C.Lazy=JC,$C.Memo=KC,$C.Portal=jC,$C.Profiler=HC,$C.StrictMode=BC,$C.Suspense=GC,$C.SuspenseList=XC,$C.isAsyncMode=function(){return!1},$C.isConcurrentMode=function(){return!1},$C.isContextConsumer=function(e){return QC(e)===UC},$C.isContextProvider=function(e){return QC(e)===VC},$C.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_C},$C.isForwardRef=function(e){return QC(e)===YC},$C.isFragment=function(e){return QC(e)===FC},$C.isLazy=function(e){return QC(e)===JC},$C.isMemo=function(e){return QC(e)===KC},$C.isPortal=function(e){return QC(e)===jC},$C.isProfiler=function(e){return QC(e)===HC},$C.isStrictMode=function(e){return QC(e)===BC},$C.isSuspense=function(e){return QC(e)===GC},$C.isSuspenseList=function(e){return QC(e)===XC},$C.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===FC||e===HC||e===BC||e===GC||e===XC||e===ZC||"object"==typeof e&&null!==e&&(e.$$typeof===JC||e.$$typeof===KC||e.$$typeof===VC||e.$$typeof===UC||e.$$typeof===YC||e.$$typeof===qC||void 0!==e.getModuleId)},$C.typeOf=QC,zC.exports=$C;var eO=zC.exports;const tO=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nO(e){const t=`${e}`.match(tO);return t&&t[1]||""}function rO(e,t=""){return e.displayName||e.name||nO(e)||t}function iO(e,t,n){const r=rO(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var oO=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return rO(e,"Component");if("object"==typeof e)switch(e.$$typeof){case eO.ForwardRef:return iO(e,e.render,"ForwardRef");case eO.Memo:return iO(e,e.type,"memo");default:return}}},getFunctionName:nO});function aO(e,t){const n=pM({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=pM({},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]=pM({},o),Object.keys(i).forEach((e=>{n[r][e]=aO(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function sO({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=wC){return OC(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?aO(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var lO="undefined"!=typeof window?F.useLayoutEffect:F.useEffect;var cO=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 uO(){return uO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uO.apply(this,arguments)}function dO(e){const t=F.useRef(e);return lO((()=>{t.current=e})),F.useRef(((...e)=>(0,t.current)(...e))).current}function mO(...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 pO={};const fO=[];class hO{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hO}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function gO(){const e=function(e,t){const n=F.useRef(pO);return n.current===pO&&(n.current=e(t)),n}(hO.create).current;var t;return t=e.disposeEffect,F.useEffect(t,fO),e}let yO=!0,vO=!1;const bO=new hO,xO={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 SO(e){e.metaKey||e.altKey||e.ctrlKey||(yO=!0)}function EO(){yO=!1}function MO(){"hidden"===this.visibilityState&&vO&&(yO=!0)}function CO(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return yO||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!xO[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function OO(){const e=F.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",SO,!0),t.addEventListener("mousedown",EO,!0),t.addEventListener("pointerdown",EO,!0),t.addEventListener("touchstart",EO,!0),t.addEventListener("visibilitychange",MO,!0))}),[]),t=F.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!CO(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vO=!0,bO.start(100,(()=>{vO=!1})),t.current=!1,!0)},ref:e}}function wO(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 TO=F.createContext(null);function AO(){return F.useContext(TO)}var RO="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function kO(e){const{children:t,theme:n}=e,r=AO(),i=F.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return uO({},e,t)}(r,n);return null!=e&&(e[RO]=null!==r),e}),[n,r]);return lM.jsx(TO.Provider,{value:i,children:t})}const NO=["value"],IO=F.createContext();function LO(e){let{value:t}=e,n=mM(e,NO);return lM.jsx(IO.Provider,dM({value:null==t||t},n))}const PO={};function DO(e,t,n,r=!1){return F.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?dM({},t,{[e]:o}):o;return r?()=>a:a}return dM({},t,e?{[e]:n}:n)}),[e,t,n,r])}function qO(e){const{children:t,theme:n,themeId:r}=e,i=OC(PO),o=AO()||PO,a=DO(r,i,n),s=DO(r,o,n,!0),l="rtl"===a.direction;return lM.jsx(kO,{theme:s,children:lM.jsx(BE.Provider,{value:a,children:lM.jsx(LO,{value:l,children:t})})})}var zO,$O={},_O={exports:{}};(zO=_O).exports=function(e){return e&&e.__esModule?e:{default:e}},zO.exports.__esModule=!0,zO.exports.default=zO.exports;var jO=_O.exports,FO=Z(aS),BO=Z(cO),HO=jO;Object.defineProperty($O,"__esModule",{value:!0});var VO=$O.alpha=rw;$O.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=ZO(e),a=ZO(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return ew({type:"rgb",values:s})},$O.colorChannel=void 0;var UO=$O.darken=iw;$O.decomposeColor=ZO,$O.emphasize=function(e,t=.15){return nw(e)>.5?iw(e,t):ow(e,t)};var WO=$O.getContrastRatio=function(e,t){const n=nw(e),r=nw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};$O.getLuminance=nw,$O.hexToRgb=JO,$O.hslToRgb=tw;var YO=$O.lighten=ow;$O.private_safeAlpha=function(e,t,n){try{return rw(e,t)}catch(t){return e}},$O.private_safeColorChannel=void 0,$O.private_safeDarken=function(e,t,n){try{return iw(e,t)}catch(t){return e}},$O.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},$O.private_safeLighten=function(e,t,n){try{return ow(e,t)}catch(t){return e}},$O.recomposeColor=ew,$O.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=ZO(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 GO=HO(FO),XO=HO(BO);function KO(e,t=0,n=1){return(0,XO.default)(e,t,n)}function JO(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 ZO(e){if(e.type)return e;if("#"===e.charAt(0))return ZO(JO(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,GO.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,GO.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const QO=e=>{const t=ZO(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};$O.colorChannel=QO;function ew(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 tw(e){e=ZO(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ew({type:s,values:l})}function nw(e){let t="hsl"===(e=ZO(e)).type||"hsla"===e.type?ZO(tw(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 rw(e,t){return e=ZO(e),t=KO(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ew(e)}function iw(e,t){if(e=ZO(e),t=KO(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 ew(e)}function ow(e,t){if(e=ZO(e),t=KO(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 ew(e)}$O.private_safeColorChannel=(e,t)=>{try{return QO(e)}catch(t){return e}};const aw=["mode","contrastThreshold","tonalOffset"],sw={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:Jx.white,default:Jx.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}},lw={text:{primary:Jx.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:Jx.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 cw(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=YO(e.main,i):"dark"===t&&(e.dark=UO(e.main,o)))}function uw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=cS(e,aw),o=e.primary||function(e="light"){return"dark"===e?{main:eS[200],light:eS[50],dark:eS[400]}:{main:eS[700],light:eS[400],dark:eS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Qx[200],light:Qx[50],dark:Qx[400]}:{main:Qx[500],light:Qx[300],dark:Qx[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Zx[500],light:Zx[300],dark:Zx[700]}:{main:Zx[700],light:Zx[400],dark:Zx[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:tS[400],light:tS[300],dark:tS[700]}:{main:tS[700],light:tS[500],dark:tS[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:nS[400],light:nS[300],dark:nS[700]}:{main:nS[800],light:nS[500],dark:nS[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:rS[400],light:rS[300],dark:rS[700]}:{main:"#ed6c02",light:rS[500],dark:rS[900]}}(t);function d(e){return WO(e,lw.text.primary)>=n?lw.text.primary:sw.text.primary}const m=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=lS({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(oS(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(oS(12,t?` (${t})`:"",JSON.stringify(e.main)));return cw(e,"light",i,r),cw(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},p={dark:lw,light:sw};return gM(lS({common:lS({},Jx),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:iS,contrastThreshold:n,getContrastText:d,augmentColor:m,tonalOffset:r},p[t]),i)}const dw=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const mw={textTransform:"uppercase"},pw='"Roboto", "Helvetica", "Arial", sans-serif';function fw(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=pw,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,m=cS(n,dw),p=i/14,f=d||(e=>e/c*p+"rem"),h=(e,t,n,i,o)=>{return lS({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===pw?{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,mw),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,mw),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gM(lS({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),m,{clone:!1})}function hw(...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 gw=["none",hw(0,2,1,-1,0,1,1,0,0,1,3,0),hw(0,3,1,-2,0,2,2,0,0,1,5,0),hw(0,3,3,-2,0,3,4,0,0,1,8,0),hw(0,2,4,-1,0,4,5,0,0,1,10,0),hw(0,3,5,-1,0,5,8,0,0,1,14,0),hw(0,3,5,-1,0,6,10,0,0,1,18,0),hw(0,4,5,-2,0,7,10,1,0,2,16,1),hw(0,5,5,-3,0,8,10,1,0,3,14,2),hw(0,5,6,-3,0,9,12,1,0,3,16,2),hw(0,6,6,-3,0,10,14,1,0,4,18,3),hw(0,6,7,-4,0,11,15,1,0,4,20,3),hw(0,7,8,-4,0,12,17,2,0,5,22,4),hw(0,7,8,-4,0,13,19,2,0,5,24,4),hw(0,7,9,-4,0,14,21,2,0,5,26,4),hw(0,8,9,-5,0,15,22,2,0,6,28,5),hw(0,8,10,-5,0,16,24,2,0,6,30,5),hw(0,8,11,-5,0,17,26,2,0,6,32,5),hw(0,9,11,-5,0,18,28,2,0,7,34,6),hw(0,9,12,-6,0,19,29,2,0,7,36,6),hw(0,10,13,-6,0,20,31,3,0,8,38,7),hw(0,10,13,-6,0,21,33,3,0,8,40,7),hw(0,10,14,-6,0,22,35,3,0,8,42,7),hw(0,11,14,-7,0,23,36,3,0,9,44,8),hw(0,11,15,-7,0,24,38,3,0,9,46,8)];const yw=["duration","easing","delay"],vw={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)"},bw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xw(e){return`${Math.round(e)}ms`}function Sw(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ew(e){const t=lS({},vw,e.easing),n=lS({},bw,e.duration);return lS({getAutoHeightDuration:Sw,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return cS(r,yw),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:xw(i)} ${o} ${"string"==typeof a?a:xw(a)}`)).join(",")}},e,{easing:t,duration:n})}var Mw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Cw=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ow(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=cS(e,Cw);if(e.vars)throw new Error(oS(18));const s=uw(r),l=MC(e);let c=gM(l,{mixins:(u=l.breakpoints,d=n,lS({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:gw.slice(),typography:fw(s,o),transitions:Ew(i),zIndex:lS({},Mw)});var u,d;return c=gM(c,a),c=t.reduce(((e,t)=>gM(e,t)),c),c.unstable_sxConfig=lS({},yC,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return xC({sx:e,theme:this})},c}var ww=Ow();function Tw({props:e,name:t}){return sO({props:e,name:t,defaultTheme:ww,themeId:sS})}var Aw,Rw={},kw={exports:{}};var Nw,Iw={exports:{}};var Lw=Z(uM),Pw=Z(yM),Dw=Z(TM),qw=Z(oO),zw=Z(CC),$w=Z(AC),_w=jO;Object.defineProperty(Rw,"__esModule",{value:!0});var jw=Rw.default=function(e={}){const{themeId:t,defaultTheme:n=Zw,rootShouldForwardProp:r=Jw,slotShouldForwardProp:i=Jw}=e,o=e=>(0,Ww.default)((0,Fw.default)({},e,{theme:eT((0,Fw.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,Hw.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=tT(Qw(l))}=a,m=(0,Bw.default)(a,Xw),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let h=Jw;"Root"===l||"root"===l?h=r:l?h=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,Hw.default)(e,(0,Fw.default)({shouldForwardProp:h,label:undefined},m)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Vw.isPlainObject)(e)?r=>nT(e,(0,Fw.default)({},r,{theme:eT({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=eT((0,Fw.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=nT(n,(0,Fw.default)({},e,{theme:r}))})),d(e,o)})),s&&!p&&l.push((e=>{var r;const i=eT((0,Fw.default)({},e,{defaultTheme:n,themeId:t}));return nT({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,Fw.default)({},e,{theme:i}))})),f||l.push(o);const c=l.length-i.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};Rw.shouldForwardProp=Jw,Rw.systemDefaultTheme=void 0;var Fw=_w((Aw||(Aw=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}(kw)),kw.exports)),Bw=_w((Nw||(Nw=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Iw)),Iw.exports)),Hw=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Kw(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}(Lw),Vw=Pw;_w(Dw),_w(qw);var Uw=_w(zw),Ww=_w($w);const Yw=["ownerState"],Gw=["variants"],Xw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Kw(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Kw=function(e){return e?n:t})(e)}function Jw(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zw=Rw.systemDefaultTheme=(0,Uw.default)(),Qw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eT({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tT(e){return e?(t,n)=>n[e]:null}function nT(e,t){let{ownerState:n}=t,r=(0,Bw.default)(t,Yw);const i="function"==typeof e?e((0,Fw.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>nT(e,(0,Fw.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Bw.default)(i,Gw);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,Fw.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,Fw.default)({ownerState:n},r,n)):e.style))})),t}return i}var rT=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var iT=jw({themeId:sS,defaultTheme:ww,rootShouldForwardProp:rT});const oT=["theme"];function aT(e){let{theme:t}=e,n=cS(e,oT);const r=t[sS];return lM.jsx(qO,lS({},n,{themeId:r?sS:void 0,theme:r||t}))}function sT(e){return PC("MuiSvgIcon",e)}DC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lT=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cT=iT("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${wM(n.color)}`],t[`fontSize${wM(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]}})),uT=F.forwardRef((function(e,t){const n=Tw({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=cS(n,lT),p=F.isValidElement(r)&&"svg"===r.type,f=lS({},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 wO({root:["root","inherit"!==t&&`color${wM(t)}`,`fontSize${wM(n)}`]},sT,r)})(f);return lM.jsxs(cT,lS({as:a,className:IC(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?lM.jsx("title",{children:u}):null]}))}));uT.muiName="SvgIcon";var dT=uT;var mT=DC("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const pT=["center","classes","className"];let fT,hT,gT,yT,vT=e=>e;const bT=UE(fT||(fT=vT`
|
|
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
|
-
`)),
|
|
31
|
+
`)),xT=UE(hT||(hT=vT`
|
|
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
|
-
`)),
|
|
39
|
+
`)),ST=UE(gT||(gT=vT`
|
|
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
|
-
`)),
|
|
51
|
+
`)),ET=iT("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),MT=iT((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=IC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:a,height:a,top:-a/2+o,left:-a/2+i},f=IC(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]),lM.jsx("span",{className:m,style:p,children:lM.jsx("span",{className:f})})}),{name:"MuiTouchRipple",slot:"Ripple"})(yT||(yT=vT`
|
|
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
|
-
`),gT.rippleVisible,MT,550,(({theme:e})=>e.transitions.easing.easeInOut),gT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),gT.child,gT.childLeaving,CT,550,(({theme:e})=>e.transitions.easing.easeInOut),gT.childPulsate,OT,(({theme:e})=>e.transitions.easing.easeInOut)),AT=j.forwardRef((function(e,t){const n=Nw({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=pS(n,yT),[s,l]=j.useState([]),c=j.useRef(0),u=j.useRef(null);j.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=j.useRef(!1),m=xO(),p=j.useRef(null),f=j.useRef(null),h=j.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,mM.jsx(TT,{classes:{ripple:qC(i.ripple,gT.ripple),rippleVisible:qC(i.rippleVisible,gT.rippleVisible),ripplePulsate:qC(i.ripplePulsate,gT.ripplePulsate),child:qC(i.child,gT.child),childLeaving:qC(i.childLeaving,gT.childLeaving),childPulsate:qC(i.childPulsate,gT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=j.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=j.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=j.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 j.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),mM.jsx(wT,mS({className:qC(gT.root,i.root,o),ref:f},a,{children:mM.jsx(Vv,{component:null,exit:!0,children:s})}))}));var RT=AT;function kT(e){return $C("MuiButtonBase",e)}var NT=_C("MuiButtonBase",["root","disabled","focusVisible"]);const IT=["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"],LT=lT("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"}}),PT=j.forwardRef((function(e,t){const n=Nw({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:w,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:R,type:k}=n,N=pS(n,IT),I=j.useRef(null),L=j.useRef(null),P=gO(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=RO(),[_,F]=j.useState(!1);l&&_&&F(!1),j.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),I.current.focus()}})),[]);const[B,H]=j.useState(!1);j.useEffect((()=>{H(!0)}),[]);const V=B&&!c&&!l;function U(e,t,n=u){return hO((r=>{t&&t(r);return!n&&L.current&&L.current[e](r),!0}))}j.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",w),Z=U("stop",C),Q=U("stop",O),ee=U("stop",(e=>{z(e),!1===D.current&&F(!1),p&&p(e)}),!1),te=hO((e=>{I.current||(I.current=e.currentTarget),q(e),!0===D.current&&(F(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=I.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=j.useRef(!1),ie=hO((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=hO((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=gO(t,$,I),ce=mS({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:T,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=kO({root:["root",t&&"disabled",n&&"focusVisible"]},kT,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return mM.jsxs(LT,mS({as:ae,className:qC(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:T,type:k},se,N,{children:[o,V?mM.jsx(RT,mS({ref:P,center:i},A)):null]}))}));var DT=PT;function qT(e){return $C("MuiButton",e)}var zT=_C("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var $T=j.createContext({});var _T=j.createContext(void 0);const jT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],FT=e=>mS({},"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}}),BT=lT(DT,{shouldForwardProp:e=>sT(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${kM(n.color)}`],t[`size${kM(n.size)}`],t[`${n.variant}Size${kM(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 mS({},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":mS({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:GO(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})`:GO(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})`:GO(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":mS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zT.focusVisible}`]:mS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zT.disabled}`]:mS({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 ${GO(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"},[`&.${zT.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zT.disabled}`]:{boxShadow:"none"}})),HT=lT("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${kM(n.size)}`]]}})((({ownerState:e})=>mS({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},FT(e)))),VT=lT("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${kM(n.size)}`]]}})((({ownerState:e})=>mS({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},FT(e)))),UT=j.forwardRef((function(e,t){const n=j.useContext($T),r=j.useContext(_T),i=Nw({props:uO(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=pS(i,jT),x=mS({},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 mS({},a,kO({root:["root",o,`${o}${kM(t)}`,`size${kM(i)}`,`${o}Size${kM(i)}`,`color${kM(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${kM(i)}`],endIcon:["icon","endIcon",`iconSize${kM(i)}`]},qT,a))})(x),E=g&&mM.jsx(HT,{className:S.startIcon,ownerState:x,children:g}),M=m&&mM.jsx(VT,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return mM.jsxs(BT,mS({ownerState:x,className:qC(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:qC(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var WT=UT;var YT=j.createContext({});function GT(e){return $C("MuiListItemButton",e)}var XT=_C("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const KT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],JT=lT(DT,{shouldForwardProp:e=>sT(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})=>mS({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})`:GO(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}))`:GO(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}))`:GO(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})`:GO(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}))),ZT=j.forwardRef((function(e,t){const n=Nw({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=pS(n,KT),f=j.useContext(YT),h=j.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=j.useRef(null);mO((()=>{i&&g.current&&g.current.focus()}),[i]);const y=mS({},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 mS({},n,kO({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},GT,n))})(y),b=gO(g,t);return mM.jsx(YT.Provider,{value:h,children:mM.jsx(JT,mS({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:qC(v.focusVisible,u),ownerState:y,className:qC(v.root,m)},p,{classes:v,children:a}))})}));var QT=ZT;function eA(e){return $C("MuiListItemIcon",e)}_C("MuiListItemIcon",["root","alignItemsFlexStart"]);const tA=["className"],nA=lT("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})=>mS({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),rA=j.forwardRef((function(e,t){const n=Nw({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=pS(n,tA),o=mS({},n,{alignItems:j.useContext(YT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return kO({root:["root","flex-start"===t&&"alignItemsFlexStart"]},eA,n)})(o);return mM.jsx(nA,mS({className:qC(a.root,r),ownerState:o,ref:t},i))}));var iA=rA;function oA(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 aA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oA(Object(n),!0).forEach((function(t){sA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lA=function(e){var t=e.className,n=e.path,r=e.fillRule;return _.createElement(hT,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},_.createElement("path",{d:n}),r?_.createElement("use",{fillRule:r}):void 0)},cA={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)"}}};lT(WT,{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}}})),lT((function(e){var t=e.className;return _.createElement(lA,{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:cA.ICONS.COLOR.SECONDARY}})),lT((function(e){var t=e.className;return _.createElement(lA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:cA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:cA.ICONS.COLOR.DISABLED}}})),lT(WT,{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 uA={color:cA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:cA.ICONS.COLOR.DISABLED}};lT((function(e){var t=e.className;return _.createElement(lA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return uA})),lT((function(e){var t=e.className;return _.createElement(lA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return uA})),lT((function(e){var t=e.className;return _.createElement(lA,{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:cA.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),lT(QT)((function(){return{padding:"4px 12px","&:focus":aA({},cA.FOCUS)}})),lT(iA)((function(){return{marginRight:0,justifyContent:"center"}})),lT((function(e){var t=e.className;return _.createElement(lA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:cA.ICONS.COLOR.SECONDARY}}));var dA=Object.prototype.hasOwnProperty,mA=Object.prototype.toString,pA=Object.defineProperty,fA=Object.getOwnPropertyDescriptor,hA=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===mA.call(e)},gA=function(e){if(!e||"[object Object]"!==mA.call(e))return!1;var t,n=dA.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&dA.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||dA.call(e,t)},yA=function(e,t){pA&&"__proto__"===t.name?pA(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},vA=function(e,t){if("__proto__"===t){if(!dA.call(e,t))return;if(fA)return fA(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=vA(s,n),s!==(i=vA(t,n))&&(u&&i&&(gA(i)||(o=hA(i)))?(o?(o=!1,a=r&&hA(r)?r:[]):a=r&&gA(r)?r:{},yA(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&yA(s,{name:n,newValue:i}));return s}));var bA,xA=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return _.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},SA={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 _.createElement("div",{dir:o,style:a},_.createElement(xA,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},EA=Y;bA=EA.createRoot,EA.hydrateRoot;var MA=Rw({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 CA(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 OA(){var e={rendererBox:CA(),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=CA(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=bA(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 _.createElement(_.StrictMode,null,_.createElement(uT,{theme:MA},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var wA={require:["resolver","symbol"],defaultSettings:{settings:{type:"max",primaryExtremum:()=>{},secondaryExtremum:()=>{},primarySeries:[],secondarySeries:[],orientation:"horizontal",rtl:!1,major:{scale:"major-scale"},markerOffset:1,size:10},style:{fill:"#999"}},preferredSize(){return this.settings.settings.size},render(){const{items:e=[]}=this.data;if(!e.length)return[];const{type:t,orientation:n,rtl:r,markerOffset:i,size:o,major:a,primarySeries:s,secondarySeries:l}=this.settings.settings,c=this.settings.settings.primaryExtremum(),u=this.settings.settings.secondaryExtremum(),d=s.length&&void 0!==c,m=l.length&&void 0!==u;if(!d&&!m)return[];const p=s.map((e=>e.ref)),f=l.map((e=>e.ref)),h=e.filter((e=>p.includes(e.end.source.field))),g=e.filter((e=>f.includes(e.end.source.field))),y=function({type:e,primaryExtremum:t,secondaryExtremum:n,primaryItems:r=[],secondaryItems:i=[],primarySeries:o=[],secondarySeries:a=[]}){const s=[];[...o,...a].forEach((o=>{const a=o.isPrimary?t:n,l=o.isPrimary?r:i;s.push((({type:e,extremum:t,separateStacking:n,items:r})=>{const i="max"===e?e=>e>t:e=>e<t,o=n?e=>i(e.point.value<0?e.start.value:e.end.value):e=>i(e.end.value);return r.filter(o)})({type:e,extremum:a,items:l}))}));const l=(({items:e})=>{const t=[],n=[];return e.forEach((e=>{const{value:r}=e.major;t[r]||(t[r]=!0,n.push(e))})),n})({items:s.reduce(((e,t)=>e.concat(t)),[])});return l}({type:t,primaryExtremum:c,secondaryExtremum:u,primaryItems:h,secondaryItems:g,primarySeries:s,secondarySeries:l});if(!y.length)return[];const v="horizontal"===n,b=this.rect[v?"width":"height"],x=this.resolver.resolve({data:{items:y},settings:{major:a},scaled:{major:b}}),S=("max"===t?90:-90)-(v?0:90)-(!v&&r?180:0),E=o/2*i,{fill:M}=this.settings.style,C=x.items.map((e=>function({symbol:e,size:t,fill:n,startAngle:r,x:i,y:o,data:a}){return e({type:"n-polygon",show:!0,size:t,fill:n,stroke:"#205891",strokeWidth:0,sides:3,startAngle:r,width:.7,x:i,y:o,data:a})}({symbol:this.symbol,size:o,fill:M,startAngle:S,x:v?b*e.major:E,y:v?E:b*e.major,data:e.data})));return C}};function TA({x:e,y:t,size:n,stroke:r,strokeWidth:i,fill:o}){return{type:"container",children:[{type:"line",stroke:r||o,strokeWidth:i,x1:e-n/2,y1:t,x2:e+n/2,y2:t},{type:"circle",strokeWidth:0,fill:o,cx:e,cy:t,r:.25*n}]}}function AA({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function RA({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function kA({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(us.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 NA({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?RA:kA)({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 IA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(us.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 LA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(us.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 PA({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(us.SCALE.MAJOR),d=e.scale(us.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?IA:LA)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function DA({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:PA({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 qA({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=NA({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(...DA({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 zA={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:AA({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=qA({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=AA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return qA({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 $A=()=>{const e=z();return e.use($),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Wm(e))};e.interaction("hammer",Wm(Hammer))}(q)),e.use(lx),e.use((function(e){e.renderer("react",ax()),e.component("data-title",rx(e.renderer("svg")()))})),e.renderer("react-qcm",OA),e.component("disclaimer",SA),e.component("scrollbar",bl),e.component("point-label",Qx),e.component("label-space",eS),e.component("time-axis",bm.picassoComponents.timeAxis),e.component("axis-overlay",bm.picassoComponents.axisOverlay),e.component("reference-line-labels",Ga),e.component("box-sliced-hat",vx),e.component("box-out-of-bounds",px),e.component("data-out-of-bounds-marker",wA),e.component("scroll-hint",Ko),e.component("brush-highlighter",zA),e.scale("time",bm.picassoScales.time),e.symbol("line-point",TA),e};const _A={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},jA=e=>void 0===e.marker?_A.circle:_A[e.marker],FA=e=>void 0===e.markerFill||e.markerFill;function BA({series:e,layoutService:t}){switch(wu(e)){case ds.TYPE.MARKER:return(e=>({marker:jA(e),fill:FA(e)}))(e);case ds.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case ds.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function HA(e=ds.NOPE_SERIES,t){return t?e.axis===ds.AXIS.PRIMARY:e.axis===ds.AXIS.PRIMARY||wu(e)===ds.TYPE.BAR}var VA={exports:{}};var UA={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const WA="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var YA=WA;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=UA,o=YA,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*$")}(VA,VA.exports);var GA=VA.exports;const XA=Object.freeze({loose:!0}),KA=Object.freeze({});var JA=e=>e?"object"!=typeof e?XA:e:KA;const ZA=/^[0-9]+$/,QA=(e,t)=>{const n=ZA.test(e),r=ZA.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var eR={compareIdentifiers:QA,rcompareIdentifiers:(e,t)=>QA(t,e)};const tR=YA,{MAX_LENGTH:nR,MAX_SAFE_INTEGER:rR}=UA,{safeRe:iR,t:oR}=GA,aR=JA,{compareIdentifiers:sR}=eR;var lR=class e{constructor(t,n){if(n=aR(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>nR)throw new TypeError(`version is longer than ${nR} characters`);tR("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?iR[oR.LOOSE]:iR[oR.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>rR||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rR||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rR||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<rR)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(tR("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),sR(this.major,t.major)||sR(this.minor,t.minor)||sR(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(tR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return sR(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(tR("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return sR(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===sR(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const cR=lR;var uR=(e,t,n=!1)=>{if(e instanceof cR)return e;try{return new cR(e,t)}catch(e){if(!n)return null;throw e}};const dR=uR;var mR=(e,t)=>{const n=dR(e,t);return n?n.version:null};const pR=uR;var fR=(e,t)=>{const n=pR(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const hR=lR;var gR=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new hR(e instanceof hR?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const yR=uR;var vR=(e,t)=>{const n=yR(e,null,!0),r=yR(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const bR=lR;var xR=(e,t)=>new bR(e,t).major;const SR=lR;var ER=(e,t)=>new SR(e,t).minor;const MR=lR;var CR=(e,t)=>new MR(e,t).patch;const OR=uR;var wR=(e,t)=>{const n=OR(e,t);return n&&n.prerelease.length?n.prerelease:null};const TR=lR;var AR=(e,t,n)=>new TR(e,n).compare(new TR(t,n));const RR=AR;var kR=(e,t,n)=>RR(t,e,n);const NR=AR;var IR=(e,t)=>NR(e,t,!0);const LR=lR;var PR=(e,t,n)=>{const r=new LR(e,n),i=new LR(t,n);return r.compare(i)||r.compareBuild(i)};const DR=PR;var qR=(e,t)=>e.sort(((e,n)=>DR(e,n,t)));const zR=PR;var $R=(e,t)=>e.sort(((e,n)=>zR(n,e,t)));const _R=AR;var jR=(e,t,n)=>_R(e,t,n)>0;const FR=AR;var BR=(e,t,n)=>FR(e,t,n)<0;const HR=AR;var VR=(e,t,n)=>0===HR(e,t,n);const UR=AR;var WR=(e,t,n)=>0!==UR(e,t,n);const YR=AR;var GR=(e,t,n)=>YR(e,t,n)>=0;const XR=AR;var KR=(e,t,n)=>XR(e,t,n)<=0;const JR=VR,ZR=WR,QR=jR,ek=GR,tk=BR,nk=KR;var rk=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return JR(e,n,r);case"!=":return ZR(e,n,r);case">":return QR(e,n,r);case">=":return ek(e,n,r);case"<":return tk(e,n,r);case"<=":return nk(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const ik=lR,ok=uR,{safeRe:ak,t:sk}=GA;var lk,ck,uk,dk,mk,pk,fk,hk,gk,yk,vk=(e,t)=>{if(e instanceof ik)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?ak[sk.COERCERTLFULL]:ak[sk.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?ak[sk.COERCEFULL]:ak[sk.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return ok(`${r}.${i}.${o}${a}${s}`,t)};function bk(){if(dk)return uk;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}dk=1,uk=e,e.Node=i,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(ck?lk:(ck=1,lk=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return uk}function xk(){if(hk)return fk;hk=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>w(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(f(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}fk=e;const t=function(){if(pk)return mk;pk=1;const e=bk(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,m=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(p(e,t)){if(h(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;p(e,o)&&(h(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return mk=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,f(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,m=this[r](i,e);if(this[c].has(e)){if(m>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=m-r.length,r.length=m,this.get(e),f(this),!0}const p=new g(e,i,m,d,u);return p.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=p.length,this[l].unshift(p),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!p(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>m(this,t,!1)))}},mk}(),n=new t({max:1e3}),r=JA,i=Sk(),o=YA,a=lR,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=GA,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=UA,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=O(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},O=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),w=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,i,o,a,s,l,c,u,d,m,p)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return fk}function Sk(){if(yk)return gk;yk=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(">")))))))}}gk=t;const n=JA,{safeRe:r,t:i}=GA,o=rk,a=YA,s=lR,l=xk();return gk}const Ek=xk();var Mk=(e,t,n)=>{try{t=new Ek(t,n)}catch(e){return!1}return t.test(e)};const Ck=xk();var Ok=(e,t)=>new Ck(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const wk=lR,Tk=xk();var Ak=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Tk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new wk(r,n)))})),r};const Rk=lR,kk=xk();var Nk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new kk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new Rk(r,n)))})),r};const Ik=lR,Lk=xk(),Pk=jR;var Dk=(e,t)=>{e=new Lk(e,t);let n=new Ik("0.0.0");if(e.test(n))return n;if(n=new Ik("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new Ik(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!Pk(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!Pk(n,i)||(n=i)}return n&&e.test(n)?n:null};const qk=xk();var zk=(e,t)=>{try{return new qk(e,t).range||"*"}catch(e){return null}};const $k=lR,_k=Sk(),{ANY:jk}=_k,Fk=xk(),Bk=Mk,Hk=jR,Vk=BR,Uk=KR,Wk=GR;var Yk=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new $k(e,r),t=new Fk(t,r),n){case">":i=Hk,o=Uk,a=Vk,s=">",l=">=";break;case"<":i=Vk,o=Wk,a=Hk,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Bk(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===jk&&(e=new _k(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const Gk=Yk;var Xk=(e,t,n)=>Gk(e,t,">",n);const Kk=Yk;var Jk=(e,t,n)=>Kk(e,t,"<",n);const Zk=xk();var Qk=(e,t,n)=>(e=new Zk(e,n),t=new Zk(t,n),e.intersects(t,n));const eN=Mk,tN=AR;const nN=xk(),rN=Sk(),{ANY:iN}=rN,oN=Mk,aN=AR,sN=[new rN(">=0.0.0-0")],lN=[new rN(">=0.0.0")],cN=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===iN){if(1===t.length&&t[0].semver===iN)return!0;e=n.includePrerelease?sN:lN}if(1===t.length&&t[0].semver===iN){if(n.includePrerelease)return!0;t=lN}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=uN(i,t,n):"<"===t.operator||"<="===t.operator?o=dN(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=aN(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!oN(e,String(i),n))return null;if(o&&!oN(e,String(o),n))return null;for(const r of t)if(!oN(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,m=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=uN(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!oN(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=dN(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!oN(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!m&&!d))},uN=(e,t,n)=>{if(!e)return t;const r=aN(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},dN=(e,t,n)=>{if(!e)return t;const r=aN(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var mN=(e,t,n={})=>{if(e===t)return!0;e=new nN(e,n),t=new nN(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=cN(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const pN=GA,fN=UA,hN=lR,gN=eR,yN=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>tN(e,t,n)));for(const e of a){eN(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var vN=K({parse:uR,valid:mR,clean:fR,inc:gR,diff:vR,major:xR,minor:ER,patch:CR,prerelease:wR,compare:AR,rcompare:kR,compareLoose:IR,compareBuild:PR,sort:qR,rsort:$R,gt:jR,lt:BR,eq:VR,neq:WR,gte:GR,lte:KR,cmp:rk,coerce:vk,Comparator:Sk(),Range:xk(),satisfies:Mk,toComparators:Ok,maxSatisfying:Ak,minSatisfying:Nk,minVersion:Dk,validRange:zk,outside:Yk,gtr:Xk,ltr:Jk,intersects:Qk,simplifyRange:yN,subset:mN,SemVer:hN,re:pN.re,src:pN.src,tokens:pN.t,SEMVER_SPEC_VERSION:fN.SEMVER_SPEC_VERSION,RELEASE_TYPES:fN.RELEASE_TYPES,compareIdentifiers:gN.compareIdentifiers,rcompareIdentifiers:gN.rcompareIdentifiers}),bN={BAR_IN_SECONDARY_AXIS:"0.23.1"};const xN=e=>!e||vN.lt(vN.coerce(e),vN.coerce(bN.BAR_IN_SECONDARY_AXIS)),SN=({layoutService:e})=>{const t=!xN(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[ds.TYPE.BAR]:0,[ds.TYPE.LINE]:0,[ds.TYPE.MARKER]:0};return({series:r=ds.NOPE_SERIES},i)=>{const o=HA(r,t),a=wu(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?us.SCALE.MINOR.PRIMARY:us.SCALE.MINOR.SECONDARY,collection:o?us.COLLECTION.PRIMARY:us.COLLECTION.SECONDARY,options:BA({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>wu(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,ds.TYPE.BAR),l=r(i,ds.TYPE.BAR),c=r(o,ds.TYPE.BAR),u=e=>n.filter((t=>wu(t)===e)),d=u(ds.TYPE.LINE).map((e=>Gl(us.COMPONENT.POINT,e))),m=u(ds.TYPE.MARKER).map((e=>({key:Gl(us.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`),c>0&&f.push(`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=us.COMPONENT,y=u(ds.TYPE.LINE).map((e=>Gl(g.LINE,e))),v=u(ds.TYPE.MARKER).map((e=>Gl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${ds.AXIS.PRIMARY}`,`${g.BAR}-${ds.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:HA}}};function EN({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 MN({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Ce).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:EN({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function CN({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}):MN({genericObjectModel:e,layoutService:t})}const ON=e=>"number"==typeof e&&!Number.isNaN(e);function wN({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=>wu(e.series)===ds.TYPE.BAR)),a=i.filter((e=>wu(e.series)===ds.TYPE.LINE)),s=i.filter((e=>wu(e.series)===ds.TYPE.MARKER));return{min:Math.min(...i.filter((e=>ON(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>ON(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>ON(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>ON(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>ON(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>ON(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>ON(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>ON(e.qMax))).map((e=>e.qMax)))}}}}function TN({isPrimary:e,layoutService:t,seriesModel:n}){const r=wN({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(ds.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 AN({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(ds.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?wN({isPrimary:e,layoutService:t,seriesModel:n}):TN({isPrimary:e,layoutService:t,seriesModel:n})}({isPrimary:e,layoutService:n,seriesModel:i});return{query:{getExtrema:()=>o},command:{initialize:()=>{const{min:s,max:l}=function({isPrimary:e,layoutService:t}){const n={min:NaN,max:NaN},{getLayoutValue:r}=t,i=r("measureAxes."+(e?0:1),{});if(i.autoMinMax)return n;const{minMax:o,min:a,max:s}=i;return"min"!==o&&"minMax"!==o||(n.min=a),"max"!==o&&"minMax"!==o||(n.max=s),Number.isNaN(n.min)||Number.isNaN(n.max)||(n.min=Math.min(a,s),n.max=Math.max(a,s)),n}({isPrimary:e,layoutService:n});return o.explicit.min=s,o.explicit.max=l,o.meta.hasExplicitMin=!Number.isNaN(s),o.meta.hasExplicitMax=!Number.isNaN(l),o.meta.hasExplicit=o.meta.hasExplicitMin||o.meta.hasExplicitMax,function({continuousModel:e,layoutService:t,reducedModel:n}){const{isDiscrete:r}=t.meta;if(r){const e=n.query.getCube();return Promise.resolve({dataPage:e.qDataPages[0]})}return e.fetchMinMaxData().then((e=>({dataPage:e[0]})))}({continuousModel:t,layoutService:n,reducedModel:r}).then((({dataPage:t})=>{const{min:n,max:r,bar:s,line:l,marker:c}=a({dataPage:t}),u=i.query.seriesByAxis(e).some((e=>wu(e)===ds.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 RN=.2;function kN({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 NN({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=qr().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 IN=50,LN=100,PN=200,DN=125,qN=e=>{switch(e){case.5:return IN;case 1:return LN;case 2:return PN;default:return e*DN}};function zN({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=qN(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=NN({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 $N=.3;function _N({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function jN({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const FN=10;function BN({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=NN({min:r,max:i,count:FN,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(FN),l=function({ticks:e}){const t=Math.round(e.length*$N),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?_N:jN;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 HN({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 VN({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=zN({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return kN({extrema:i,ticks:c.ticks})?c:BN({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=[...HN({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 UN({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*RN*Math.sign(t),max:n+n*RN*Math.sign(n)}}({extrema:o});return VN({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function WN({config:e,chart:t,layoutService:n,extremumModel:r,dockService:i,seriesModel:o,themeService:a}){const s={locked:!1,resolved:void 0},{getExtrema:l}=r.query,c=function({chart:e,config:t,dockService:n,extremumModel:r,layoutService:i,seriesModel:o,themeService:a}){const{measureText:s}=z.renderer("svg")();return()=>{const l=a.getStyles(),c=function({dockService:e,seriesModel:t,chart:n}){var r;const i=n.component(t.meta.seriesComponentKeys[0]),o=null!==(r=null==i?void 0:i.rect)&&void 0!==r?r:e.meta.chart.size;return"horizontal"===e.meta.major.orientation?o.height:o.width}({chart:e,dockService:n,seriesModel:o}),u=r.query.getExtrema();return UN({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 YN({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return Ee.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 GN({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:ds.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===ds.TYPE.LINE?2:t!==ds.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==ds.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function XN({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function KN({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=T({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:us.SCALE.COLOR}},config:{auto:XN,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:us.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:GN({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[`${us.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 JN="REJECTED",ZN=()=>{},QN=1e4,eI={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},tI=50,nI=10,rI=100;var iI={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-nI<=t.qTop,i=n.qLeft+n.qWidth+nI>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+nI>=t.qTop+t.qHeight,a=n.qLeft-nI<=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 oI={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-nI<=t.qTop,i=n.qTop+n.qHeight+nI>=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 aI={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 sI="pages";const lI="discretePan",cI=10;function uI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:lI,pointers:1,threshold:cI,enable(r,i){return this.started===lI||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${lI}start`](e){e.preventDefault(),this.started=lI;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-cI:cI},[`${lI}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)},[`${lI}end`](e){e.preventDefault(),this.started=!1},[`${lI}cancel`](e){e.preventDefault(),this.started=!1}}}}function dI({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)*rI;r.scroll(s)}}function mI({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(QN/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(eI.MAXIMUM,n));return{width:e,height:Math.max(eI.MINIMUM,Math.min(n*eI.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 pI(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(JN),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(JN),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(JN),n=null)},i}const fI={command:{update:()=>{}}};function hI({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=fI,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:mI({layoutService:r}),request:c({definitionPath:o}),process:pI(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=w(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==JN)throw e}))}),tI);return function(e,{onProcessing:t=ZN,onDataPage:n=ZN}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var gI={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 yI={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 vI(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function bI(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 xI(e){return bI(e.qMatrix,(e=>e[0].qElemNumber))-1}var SI={inTotal:function({layoutService:e}){const t=vI(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=vI(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=vI(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=xI(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 EI=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),MI=(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 CI(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return EI(e,n);const r=MI(t.qMatrix,n);return r.successful?r.count:EI(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return EI(e,n);return bI(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var OI={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=CI(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=CI(t).area(e(),l,a.qArea),d=xI(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 wI({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:m,LABELLESS:p}=r[n.meta.chart.mode],f="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=f?t.width:t.height,b=v/l>=m;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/p:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:m}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return m>o;const p=(90-d)*(Math.PI/180);return m>Math.cos(p)*o}({chart:e,isHorizontal:f,axisKey:i,renderer:o,isGrouped:a,itemSize:m,label:y})?v/d:l:v/d}}function TI({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:m}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?gI:n?r?SI:OI:yI}({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:wI({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(QN/(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 AI({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:m,rtl:p}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const f=TI({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:p}),h=()=>{const e=f.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=f.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=h(),a=g({pixelOffset:e,items:r}),s=f.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((f.validate.offset({pixelOffset:e,items:r})||m.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item})));m.preventSet("viewRange",f.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",f.getScaleRange({offsets:a.start,items:r})),m.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=h();n.set("itemSize",f.getItemSize({items:a}));const c=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=m.get("scrollOffset");if(void 0===n)return 1===t?f.getUpperBound({items:e}):0;if("number"==typeof n)return f.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return f.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),u=g({pixelOffset:c,items:a});m.preventSet("viewRange",f.getViewRange({pixelOffset:u.start.pixel,items:a}));const d=f.getArea({itemOffset:u.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",f.getScaleRange({offsets:u.start,items:a})),m.preventSet("scrollOffset",{start:u.start.item,end:u.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=f.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function RI({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 iI;case"K":return oI;case"T":return aI}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(sI,[]),{add:t=>{const n=e.get(sI);n.length=0,n.push(t)},getCurrent:()=>e.get(sI)[0],getAll:()=>e.get(sI),contains:n=>t(e.get(sI)[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=hI({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=AI({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:[uI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:dI({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 kI={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 NI({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 II({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=ic,s=n.getStyles(),l=NI({layoutService:e,key:"bar"}),c=NI({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},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 LI({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return ve.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function PI({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=us.COMPONENT,{PRIMARY:f,SECONDARY:h}=ds.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=us.COMPONENT,{PRIMARY:a,SECONDARY:s}=ds.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return A({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:us.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:[us.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}`,`${us.COMPONENT.BAR_OOB}-max-${f}`,`${us.COMPONENT.BAR_OOB}-max-${h}`,`${us.COMPONENT.BAR_OOB}-min-${f}`,`${us.COMPONENT.BAR_OOB}-min-${h}`,`${us.COMPONENT.DATA_OOB_MARKER}-max`,`${us.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:us.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:LI({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:m}=o.data;return c.isEnabled()&&m&&u.push(...m.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:us.COMPONENT.LEGEND_TOOLTIP,component:us.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:DI}=bm,qI=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{const v=a(),{width:b,height:x}=i(),[S,M]=n(),[C,O]=n(),w=s(),T=l(),A=c(),L=u(),P=d();r((()=>{if(!(v&&null!=t&&t.update&&m&&f&&y))return;const n=R({source:v,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=ds.NOPE_SERIES})=>wu(e)===ds.TYPE.LINE)),i=Ee.continuous(e,(()=>r&&ge.isTime(!0,e))),o=!xN(E(e,"version","")),a=n.filter((({series:e=ds.NOPE_SERIES})=>wu(e)===ds.TYPE.BAR)),s=a.length,l=a.filter((({series:e=ds.NOPE_SERIES})=>e.axis!==ds.AXIS.SECONDARY)).length,c=a.filter((({series:e=ds.NOPE_SERIES})=>e.axis===ds.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:ge.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:ge.isTime(i,e),isSnapshot:Ee.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=CN({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=k({chart:t,layoutService:n,config:{logicalSize:{width:b,height:x},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),c=SN({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 RI({chart:e,actions:s,componentKey:xm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:kI,options:{axisKey:us.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?DI({model:w,layoutService:n,viewState:f,viewCache:h}):void 0,S=N({theme:m.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),C=II({layoutService:n,dockService:l,themeService:S,flags:p}),O=KN({actions:g,appLayoutModel:A,appModel:T,chart:t,environment:m,flags:p,genericObjectModel:w,layoutService:n,picasso:e,seriesModel:c,viewState:f,styleModel:C}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:n,seriesModel:c}),q=AN({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=AN({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=WN({config:{measureAxesRef:"measureAxes.0",formatter:us.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:S}),_=WN({config:{measureAxesRef:"measureAxes.1",formatter:us.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:z,dockService:l,seriesModel:c,themeService:S}),j=YN({genericObjectModel:w,layoutService:n}),F=Ns({flags:p,layout:v,app:T,model:w,picasso:e,chart:t,translator:i,localeInfo:A.qLocaleInfo,embed:P,options:r}),B=PI({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:S,propertiesModel:j,custom:F}),H=ls({layoutService:n,discreteModel:u}),V=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:us.SCALE.MAJOR,MAJOR_INNER:us.SCALE.MAJOR_INNER,MINOR:{PRIMARY:us.SCALE.MINOR.PRIMARY,SECONDARY:us.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${us.COMPONENT.BAR}-${ds.AXIS.PRIMARY}`,BAR_SECONDARY:`${us.COMPONENT.BAR}-${ds.AXIS.SECONDARY}`,AXIS:{MAJOR:us.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:us.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:us.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:us.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:us.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:us.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:us.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:us.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:us.COLLECTION.MAIN}}}}(n),U=I({picassoInstance:e,plugins:L,pluginArgs:V});M({selectionService:y,genericObjectModel:w,appModel:T,dockService:l,styleModel:C,layoutService:n,fieldModel:D,seriesModel:c,reducedModel:s,primaryExtremumModel:q,secondaryExtremumModel:z,primaryTickModel:$,secondaryTickModel:_,propertiesModel:j,colorService:O,themeService:S,appLayoutModel:A,tooltipService:B,flags:p,...u&&{discreteModel:u},...d&&{continuousModel:d},refLineModel:H,pluginService:U})}),[v,w,T,A,m,null==t?void 0:t.update,f,y]);const[,D]=o((()=>{if(!S)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:r,secondaryExtremumModel:i,propertiesModel:o,continuousModel:a,discreteModel:s,pluginService:l}=S,c=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(),u=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(),u,c(),g.scroll.attachDiscreteModel(s)]).then((()=>Promise.all([r.command.initialize(),i.command.initialize()]).then((()=>O(S)))))}),[S]);if(D)throw D;return C};const zI={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const $I={query:{getCanScroll:()=>!0}};function _I({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function jI({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===us.COMPONENT.LEGEND_CATEGORICAL}),r()}function FI({chart:e,actions:t}){const i=b(),o=a(),[s,l]=n();return r((()=>{if(null==e||!e.update||!e.scale||!i)return null;const n=e.scale(us.SCALE.MAJOR),r=P({chart:e,actions:t,selections:i,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:_I},selectionEvents:{start:jI}}});r.setLayout(o);const{destroy:a}=r;return l(r),()=>{a()}}),[i,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=s&&s.setLayout&&o&&s.setLayout(o)}),[o]),s}const BI={version:"1.27.2",qHyperCubeDef:{qAlwaysFullyExpanded:!0,qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},showTitles:!0,subtitle:"",title:"",footnote:"",barGrouping:{grouping:"grouped"},orientation:"vertical",scrollStartPos:0,nullMode:"gap",dataPoint:{show:!1,showLineLabels:!1,showBarLabels:!1},color:{auto:!0,mode:"primary",useBaseColors:"off",paletteColor:{index:6},useDimColVal:!0,useMeasureGradient:!0,persistent:!1,expressionIsColor:!0,expressionLabel:"",measureScheme:"sg",reverseScheme:!1,dimensionScheme:"12",autoMinMax:!0,measureMin:0,measureMax:10},legend:{dock:"auto",show:!0,showTitle:!0},components:[],dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},measureAxes:[{show:"all",dock:"near",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10},{show:"all",dock:"far",spacing:1,autoMinMax:!0,minMax:"min",min:0,max:10}],refLine:{refLines:[],refLines2:[],dimRefLines:[]},preferContinuousAxis:!0,showMiniChartForContinuousAxis:!0,tooltip:{auto:!0,hideBasic:!1,title:"",description:"",chart:void 0,imageComponents:void 0}};var HI=e=>t=>{const n=t.qHyperCubeDef.qMeasures,r=[0,0,0];let i;if(!n.length)return e.get("Visualizations.Descriptions.Bars");for(let e=0;e<n.length;++e)i=wu(n[e].qDef.series),i===ds.TYPE.BAR?r[0]=1:i===ds.TYPE.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},VI=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===ds.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===ds.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function UI(e){var t,n;const r=e.qHyperCubeDef.qMeasures,i=null===(t=e.color)||void 0===t?void 0:t.mode;"byDimension"===i&&1===r.length&&wu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===ds.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function WI(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:HI(t),added(e,t){Os.addCallbackCustomTooltip(t)},moved(e,t){Os.moveCallbackCustomTooltip(t,e)},removed(e,t){Os.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Os.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:VI(t),added({qDef:e},t){var n;UI(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:ds.TYPE.LINE,axis:ds.AXIS.SECONDARY}:e.series={type:ds.TYPE.BAR,axis:ds.AXIS.PRIMARY})},moved(e,t){UI(t)}}}}function YI(e){const t=WI(e);return{properties:BI,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=G.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&&se(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>G.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const GI=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=o.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Me(t,us.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:Me(t,us.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const XI=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function KI(e,t,n){const r=D({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...XI("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:XI("line.label.value","label.value",r,t)}}}:void 0}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:XI("axis.title","axis.title",r,t)}}}:void 0,axisLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:XI("axis.label.name","axis.label.name",r,t)}}}:void 0,legendTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:XI("legend.title","legend.title",r,t)}}}:void 0,legendLabelSection:null!=e&&e.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:XI("legend.label","legend.label",r,t)}}}:void 0}};const i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>wu(e.qDef.series)===ds.TYPE.LINE));return!Ee.continuous(n.layout,r&&ge.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},u={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>wu(e.qDef.series)===ds.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const JI={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function ZI(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=ds.NOPE_SERIES})=>wu(e)===ds.TYPE.LINE));return Ee.continuous(e,(()=>t&&ge.isTime(!0,e)))}function QI(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function eL(e){var t,n;return QI(e)&&"primary"===(null!==(t=null===(n=e.qDef)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.mode)&&void 0!==t?t:"primary")}function tL(e){var t;return QI(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function nL(e){var t,n,r,i,o;if(null!=e&&null!==(t=e.color)&&void 0!==t&&t.auto||"byExpression"!==(null==e||null===(n=e.color)||void 0===n?void 0:n.mode))return[];const a=null==e||null===(r=e.color)||void 0===r?void 0:r.colorExpression,s=null!==(i=null==e||null===(o=e.color)||void 0===o?void 0:o.expressionLabel)&&void 0!==i?i:"";return a?[{qExpression:a,label:s,id:"colorByExpression"}]:[]}function rL(e){return tL(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function iL(e){var t,n;(null!==(t=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qMeasures)&&void 0!==t?t:[]).forEach(((t,n)=>function(e,t,n){e.qAttributeExpressions=0===t?[...nL(n),...rL(e)]:rL(e)}(t,n,e)))}function oL(e){var t;const n={ref:"qDef.series.type",type:"string",component:"item-selection-list",defaultValue:"bar",schemaIgnore:!0,horizontal:!0,items:[{icon:e=>"stacked"===e.barGrouping.grouping||ZI(e)?"stacked":"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.bar",value:"bar"},{icon:"line_chart_line",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.line",value:"line"},{icon:"shapes",component:"icon-item",labelPlacement:"bottom",translation:"properties.style.marker",value:"marker"}]},r={ref:"qDef.series.marker",type:"string",component:"dropdown",defaultValue:"circle",options:[{translation:"properties.marker.circle",value:"circle"},{translation:"properties.marker.rect",value:"rect"},{translation:"properties.marker.diamond",value:"diamond"},{translation:"properties.marker.triangle",value:"triangle"},{translation:"properties.marker.line",value:"line"}],show(e){var t;return wu(null===(t=e.qDef)||void 0===t?void 0:t.series)===ds.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return wu(null===(t=e.qDef)||void 0===t?void 0:t.series)===ds.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>QI(...e)},a=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme;return{items:{series:{type:"items",items:{supPanel:{translation:"properties.measure.moreProperties",title:"properties.measure.moreProperties",subTitle:(e,t,n)=>{var r;return null===(r=n.measureTitle)||void 0===r?void 0:r.call(n)},component:"sub-panel",type:"items",items:{groups:{type:"items",component:"expandable-items",items:{presentation:{type:"items",translation:"properties.presentation",items:{seriesType:n,seriesAxis:{ref:"qDef.series.axis",type:"integer",component:"dropdown",defaultValue:0,options:[{translation:"properties.axis.primary",value:0},{translation:"properties.axis.secondary",value:1}]},seriesMarker:r,seriesMarkerFill:i}},color:{type:"items",translation:"properties.color",items:{customColor:{ref:"qDef.color.on",translation:"properties.colors",type:"boolean",component:"switch",defaultValue:!1,trueOption:{value:!1,translation:"Common.Auto"},falseOption:{value:!0,translation:"Common.Custom"}},colorMode:o,paletteColor:{ref:"qDef.color.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:()=>{var e;const{primary:t}=a.getDataColorSpecials(),n=null===(e=a.getDataColorPickerPalettes()[0])||void 0===e?void 0:e.colors,r=n.indexOf(t);return{index:-1===r?Math.min(6,n.length-1):r}},show:eL},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:tL}}}}}}}}}}}}const aL=10,sL=!0;function lL(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?HA(t,sL):!HA(t,sL)}))}function cL(e,t){return t.getMeasures().filter((e=>wu(e.qDef.series)===ds.TYPE.LINE)).length>0}function uL(e,t,n){const r=t.getMeasures().filter((e=>wu(e.qDef.series)===ds.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==ds.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===ds.AXIS.SECONDARY)).length>n}const dL=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||ZI(t.layout)?"y":"x",o=lL(e,t,r).map((e=>e.qFallbackTitle));let a;return a=o.length?n.get(`properties.${i}AxisWithInfo`,[o.join(",")]):n.get(`properties.${i}Axis`),a};function mL(e){var t,n,r;const{translator:i,flags:o,anything:a}=e,s=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.theme,l=null==e||null===(n=e.anything)||void 0===n||null===(n=n.sense)||void 0===n||null===(r=n.isUnsupportedFeature)||void 0===r?void 0:r.call(n,"continuousData"),c={items:{attributeExpression:{ref:"color.colorExpression",change:null,globalChange:e=>iL(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>QI(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),m=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>QI(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},p={items:{disclaimer:{show:(e,t)=>m(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!m(e,t)}}},f={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&uL(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&cL(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(lL(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&lL(e,t,0).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[0].show||"none"===r.measureAxes[0].show,set(e,t,n,r,i){i.measureAxes[0].show=e?"labels":"all"}}},secondaryMeasureTitle:{component:"checkbox",ref:"measureAxes.1.show",type:"string",translation:"Simple.Label.SecondaryMeasure.Hide",defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&lL(e,t,1).length>0,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxes[1].show||"none"===r.measureAxes[1].show,set(e,t,n,r,i){i.measureAxes[1].show=e?"labels":"all"}}}}}}},h={uses:"settings",items:{simpleStyling:null!=o&&o.isEnabled("COMBOCHART_SIMPLE_STYLING")?JI:void 0,simpleLabels:f,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:KI(o,s,i),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show:(e,t,n)=>uL(0,t,1)&&!ZI(n.layout)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>ZI(n.layout),convertFunctions:(g="vertical",{get:(e,t,n)=>ZI(n.layout)?g:e(t.type),set(e,t,n,r){t(n.type,ZI(r.layout)?g:e,g)}})},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!ZI(n.layout)},nullMode:{type:"string",component:"dropdown",ref:"nullMode",translation:"properties.nullMode",options:[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],defaultValue:"gap",show:(e,t)=>cL(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>cL(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>uL(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:p,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||ZI(t.layout)?"x":"y",r=function(e,t){return t?t.getDimensionLayouts():e.qHyperCubeDef.qDimensions.map((e=>e.qDef))}(e,t).map((e=>e.qFallbackTitle||"")).join(", ");let o;return o=r?i.get(`properties.${n}AxisWithInfo`,[r]):i.get(`properties.${n}Axis`),o},items:{othersGroup:{items:{dock:{options(e,t){let n="Common.Bottom",r="Common.Top";return"vertical"===t.layout.orientation||ZI(t.layout)||(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}}}},axisDisplaySettings:{type:"items",components:"items",show:(e,t,n)=>!ZI(n.layout),items:{axisDisplayMode:{type:"string",translation:"properties.axis.displaymode",ref:"dimensionAxis.axisDisplayMode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{type:"integer",translation:"properties.axis.maxvisiblevalues",ref:"dimensionAxis.maxVisibleItems",expression:"optional",defaultValue:aL,show:e=>"custom"===e.dimensionAxis.axisDisplayMode,invalid(e){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;return r<0||r>1e4/(t.length+n.length)},globalChange(e){if("custom"===e.dimensionAxis.axisDisplayMode){const{qDimensions:t,qMeasures:n}=e.qHyperCubeDef,{maxVisibleItems:r}=e.dimensionAxis;r<1?e.dimensionAxis.maxVisibleItems=aL:r>1e4/(t.length+n.length)&&(e.dimensionAxis.maxVisibleItems=Math.min(r,Math.floor(1e4/(t.length+n.length))))}}},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint.combochart",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}}},continuousGroup:{show:!l}},measureAxis:{uses:"axis.measureAxis",label:(e,t)=>dL(e,t,i,0),show:(e,t)=>lL(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>dL(e,t,i,0),show:(e,t)=>lL(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&HA(null==e?void 0:e.series,sL)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&lL(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||ZI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&lL(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>lL(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.0.autoMinMax",!1),M(i,"measureAxes.0.minMax","min"),M(i,"measureAxes.0.min",0)):M(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>dL(e,t,i,1),show:(e,t)=>lL(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>dL(e,t,i,1),show:(e,t)=>lL(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!HA(null==e?void 0:e.series,sL)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&lL(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||ZI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&lL(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>lL(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.1.autoMinMax",!1),M(i,"measureAxes.1.minMax","min"),M(i,"measureAxes.1.min",0)):M(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var g;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(h.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 y={uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,n){var r,i;if(null!=a&&null!==(r=a.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"includeZeroValues"))return!1;return!ZI(n.layout)}}}},measures:oL(e)}},v={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=>HA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,sL)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!HA(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,sL)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:y,sorting:{uses:"sortingWithDisclaimer"},addons:v,settings:h}}}function pL(e){return e.qHyperCubeDef.qMeasures.filter((e=>wu(e.qDef.series)===ds.TYPE.LINE)).length>0}function fL(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer"},presentation:{uses:"presentation",type:"items",translation:"properties.presentation",grouped:!0,show:(e,t)=>pL(e)||!ZI(t),items:{grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){var n;return function(e,t){const n=e.qHyperCubeDef.qMeasures.filter((e=>wu(e.qDef.series)===ds.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===ds.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===ds.AXIS.SECONDARY)).length>1:n.length>1}(e,!xN(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!ZI(t)}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!ZI(t)},nullMode:{type:"string",component:"radio-list",ref:"nullMode",translation:"properties.nullMode",options:()=>[{value:"gap",translation:"properties.nullMode.gap"},{value:"connect",translation:"properties.nullMode.connect"},{value:"zero",translation:"properties.nullMode.zero"}],show:e=>pL(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>pL(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>QI(e)))}}}}}}const hL={bar:{axis:0,icon:"bar-chart",tid:"as-bar",translation:"contextMenu.asBar"},line:{axis:1,icon:"line-chart",tid:"as-line",translation:"contextMenu.asLine"},marker:{axis:1,icon:"shapes",tid:"as-marker",translation:"contextMenu.asMarker"}};function gL(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=hL[i];t.addItem({icon:a,tid:s,translation:l,async select(){let t;t="measure"===e.type?await r.addLibraryMeasure(e.id):await r.addExpressionMeasure(e.name,""),t.qDef.series.type=i,t.qDef.series.axis=o,r.updateGlobalChangeListeners(),n.setProperties(r.properties),window.qvangularGlobal.$rootScope.$broadcast("pp-open-path",`data.${t.qDef.cId}`)}})}function yL(e,t,n,r,i){!function(e,t,n){const{item:r}=e,i=["contextMenu.add",r.name];if(n.canAddMeasure()){const o=e.menu.addItem({translation:i,tid:"add-as"});gL(r,o,t,n,"bar"),gL(r,o,t,n,"line"),gL(r,o,t,n,"marker")}}(e,n,t),t.getMeasures().length>=t.minMeasures()&&e.ReplaceMeasures(n,t,i),e.ColorBy(n,t,i),r()}function vL(e){const t={},{tooltip:n}=e;if(n){var r;t.chart_tooltip_custom=!n.auto;const e=null===(r=n.chart)||void 0===r||null===(r=r.object)||void 0===r?void 0:r.refId;!n.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const bL=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function xL(e){return{definition:mL(e),softDefinition:fL(),support:{snapshot:bL,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:yL,extendMetrics:vL,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=G.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:WI(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&se(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),iL(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return G.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(It),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(It)}(e),function(e){return xN(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=ds.NOPE_SERIES),void 0===t.series.type&&(t.series.type=ds.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===ds.TYPE.BAR?ds.AXIS.PRIMARY:ds.AXIS.SECONDARY),t.series.type===ds.TYPE.BAR&&t.series.axis===ds.AXIS.SECONDARY&&(t.series.axis=ds.AXIS.PRIMARY)})),e.version=bN.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
|
|
94
|
+
`),mT.rippleVisible,bT,550,(({theme:e})=>e.transitions.easing.easeInOut),mT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),mT.child,mT.childLeaving,xT,550,(({theme:e})=>e.transitions.easing.easeInOut),mT.childPulsate,ST,(({theme:e})=>e.transitions.easing.easeInOut)),CT=F.forwardRef((function(e,t){const n=Tw({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=cS(n,pT),[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=gO(),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,lM.jsx(MT,{classes:{ripple:IC(i.ripple,mT.ripple),rippleVisible:IC(i.rippleVisible,mT.rippleVisible),ripplePulsate:IC(i.ripplePulsate,mT.ripplePulsate),child:IC(i.child,mT.child),childLeaving:IC(i.childLeaving,mT.childLeaving),childPulsate:IC(i.childPulsate,mT.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]),lM.jsx(ET,lS({className:IC(mT.root,i.root,o),ref:f},a,{children:lM.jsx(jv,{component:null,exit:!0,children:s})}))}));var OT=CT;function wT(e){return PC("MuiButtonBase",e)}var TT=DC("MuiButtonBase",["root","disabled","focusVisible"]);const AT=["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=iT("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"}}),kT=F.forwardRef((function(e,t){const n=Tw({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:w,tabIndex:T=0,TouchRippleProps:A,touchRippleRef:R,type:k}=n,N=cS(n,AT),I=F.useRef(null),L=F.useRef(null),P=mO(L,R),{isFocusVisibleRef:D,onFocus:q,onBlur:z,ref:$}=OO(),[_,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 dO((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",w),Z=U("stop",C),Q=U("stop",O),ee=U("stop",(e=>{z(e),!1===D.current&&j(!1),p&&p(e)}),!1),te=dO((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=dO((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=dO((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=mO(t,$,I),ce=lS({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:T,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=wO({root:["root",t&&"disabled",n&&"focusVisible"]},wT,i);return n&&r&&(o.root+=` ${r}`),o})(ce);return lM.jsxs(RT,lS({as:ae,className:IC(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:T,type:k},se,N,{children:[o,V?lM.jsx(OT,lS({ref:P,center:i},A)):null]}))}));var NT=kT;function IT(e){return PC("MuiButton",e)}var LT=DC("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 PT=F.createContext({});var DT=F.createContext(void 0);const qT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zT=e=>lS({},"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}}),$T=iT(NT,{shouldForwardProp:e=>rT(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wM(n.color)}`],t[`size${wM(n.size)}`],t[`${n.variant}Size${wM(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 lS({},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":lS({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:VO(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})`:VO(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})`:VO(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":lS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${LT.focusVisible}`]:lS({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${LT.disabled}`]:lS({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 ${VO(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"}})),_T=iT("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wM(n.size)}`]]}})((({ownerState:e})=>lS({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zT(e)))),jT=iT("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wM(n.size)}`]]}})((({ownerState:e})=>lS({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zT(e)))),FT=F.forwardRef((function(e,t){const n=F.useContext(PT),r=F.useContext(DT),i=Tw({props:aO(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=cS(i,qT),x=lS({},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 lS({},a,wO({root:["root",o,`${o}${wM(t)}`,`size${wM(i)}`,`${o}Size${wM(i)}`,`color${wM(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${wM(i)}`],endIcon:["icon","endIcon",`iconSize${wM(i)}`]},IT,a))})(x),E=g&&lM.jsx(_T,{className:S.startIcon,ownerState:x,children:g}),M=m&&lM.jsx(jT,{className:S.endIcon,ownerState:x,children:m}),C=r||"";return lM.jsxs($T,lS({ownerState:x,className:IC(n.className,S.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:IC(S.focusVisible,p),ref:t,type:y},b,{classes:S,children:[E,o,M]}))}));var BT=FT;var HT=F.createContext({});function VT(e){return PC("MuiListItemButton",e)}var UT=DC("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const WT=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],YT=iT(NT,{shouldForwardProp:e=>rT(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})=>lS({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"}},[`&.${UT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:VO(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${UT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:VO(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${UT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:VO(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})`:VO(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${UT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${UT.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}))),GT=F.forwardRef((function(e,t){const n=Tw({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=cS(n,WT),f=F.useContext(HT),h=F.useMemo((()=>({dense:s||f.dense||!1,alignItems:r,disableGutters:l})),[r,f.dense,s,l]),g=F.useRef(null);lO((()=>{i&&g.current&&g.current.focus()}),[i]);const y=lS({},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 lS({},n,wO({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},VT,n))})(y),b=mO(g,t);return lM.jsx(HT.Provider,{value:h,children:lM.jsx(YT,lS({ref:b,href:p.href||p.to,component:(p.href||p.to)&&"div"===o?"button":o,focusVisibleClassName:IC(v.focusVisible,u),ownerState:y,className:IC(v.root,m)},p,{classes:v,children:a}))})}));var XT=GT;function KT(e){return PC("MuiListItemIcon",e)}DC("MuiListItemIcon",["root","alignItemsFlexStart"]);const JT=["className"],ZT=iT("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})=>lS({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),QT=F.forwardRef((function(e,t){const n=Tw({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=cS(n,JT),o=lS({},n,{alignItems:F.useContext(HT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return wO({root:["root","flex-start"===t&&"alignItemsFlexStart"]},KT,n)})(o);return lM.jsx(ZT,lS({className:IC(a.root,r),ownerState:o,ref:t},i))}));var eA=QT;function tA(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 nA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tA(Object(n),!0).forEach((function(t){rA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iA=function(e){var t=e.className,n=e.path,r=e.fillRule;return j.createElement(dT,{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)},oA={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)"}}};iT(BT,{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}}})),iT((function(e){var t=e.className;return j.createElement(iA,{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:oA.ICONS.COLOR.SECONDARY}})),iT((function(e){var t=e.className;return j.createElement(iA,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:oA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:oA.ICONS.COLOR.DISABLED}}})),iT(BT,{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 aA={color:oA.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:oA.ICONS.COLOR.DISABLED}};iT((function(e){var t=e.className;return j.createElement(iA,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return aA})),iT((function(e){var t=e.className;return j.createElement(iA,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return aA})),iT((function(e){var t=e.className;return j.createElement(iA,{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:oA.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),iT(XT)((function(){return{padding:"4px 12px","&:focus":nA({},oA.FOCUS)}})),iT(eA)((function(){return{marginRight:0,justifyContent:"center"}})),iT((function(e){var t=e.className;return j.createElement(iA,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:oA.ICONS.COLOR.SECONDARY}}));var sA=Object.prototype.hasOwnProperty,lA=Object.prototype.toString,cA=Object.defineProperty,uA=Object.getOwnPropertyDescriptor,dA=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===lA.call(e)},mA=function(e){if(!e||"[object Object]"!==lA.call(e))return!1;var t,n=sA.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&sA.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||sA.call(e,t)},pA=function(e,t){cA&&"__proto__"===t.name?cA(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},fA=function(e,t){if("__proto__"===t){if(!sA.call(e,t))return;if(uA)return uA(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=fA(s,n),s!==(i=fA(t,n))&&(u&&i&&(mA(i)||(o=dA(i)))?(o?(o=!1,a=r&&dA(r)?r:[]):a=r&&mA(r)?r:{},pA(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&pA(s,{name:n,newValue:i}));return s}));var hA,gA=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))},yA={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(gA,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},vA=G;hA=vA.createRoot,vA.hydrateRoot;var bA=Ow({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 xA(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 SA(){var e={rendererBox:xA(),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=xA(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=hA(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(aT,{theme:bA},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}var EA={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 MA({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 CA({chart:e,seriesInfo:t}){const n={primary:{paths:[],map:{}},secondary:{paths:[],map:{}}},r=[...t.primary.map((e=>e.key)),...t.secondary.map((e=>e.key))],i=e.findShapes("path").filter((e=>r.some((t=>t===e.key))));return i.reduce(((e,n)=>{const r=t.primary.some((e=>e.key===n.key))?e.primary:e.secondary;return r.paths.push(n),e}),n),{getLine:(e,t)=>{const r=t?n.primary:n.secondary;if(!r.map[e]){const[t]=r.paths.filter((t=>t.data&&t.data.typeIndex.value===e));r.map[e]=t}return r.map[e]}}}function OA({brush:e}){const t=e.brush.values();return function({value:e}){return-1!==t.indexOf(e)}}function wA({brush:e,chart:t}){const n=e.brush.ranges();if(!n.length)return!1;const r=t&&t.scale(cs.SCALE.MAJOR),i=r&&r.max&&r.max(),o="qHyperCube/qDimensionInfo/0:numeric"===e.id?(e,t)=>t===i?e<=t:e<t:(e,t)=>e<=t;return function({value:e}){return n.some((t=>t.min<=e&&o(e,t.max)))}}function TA({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?OA:wA)({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 AA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a),c=l-s,u=0===c?1:c,d=o.domain().map((e=>({color:o(Math.min(l,Math.max(s,e)))||i,offset:Math.min(1,Math.max(0,(e-s)/u))}))),m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function RA({chart:e,selected:t,connection:n,gradient:r,fallback:i}){const o=e.scale(cs.SCALE.COLOR),a=t.filter((e=>-1!==n.indexOf(e.index))).map((e=>e.item.end.value)),s=Math.min(...a),l=Math.max(...a)-s,c=0===l?1:l,u=o.domain(),d=[];for(let e=0;e<u.length-1;e++){const t=u[e],n=o(t)||i;d.push({color:n,offset:Math.min(1,Math.max(0,(t-s)/c))});const r=u[e+1];d.push({color:n,offset:Math.min(1,Math.max(0,(r-s)/c))})}const m=d.map((e=>e.offset)),p=m.lastIndexOf(0),f=m.indexOf(1),h=d.slice(-1===p?0:p,-1===f?d.length:f+1);return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:h}}function kA({property:e,chart:t,connection:n,attrs:r,colorSettings:i,colorByData:o,selected:a,hasMultipleMeasures:s,groupedByMeasure:l,itemsPerGroup:c,orientation:u,rtl:d}){const m=r[e];if("gradient"!==m.type)return m;const{type:p,nil:f}=i;if(s||!o)return function({chart:e,selected:t,connection:n,gradient:r,fallback:i,orientation:o,isColorCode:a,groupedByMeasure:s,itemsPerGroup:l,rtl:c}){const u=e.scale(cs.SCALE.MAJOR),d=e.scale(cs.SCALE.COLOR),m=s?e=>u([e,0])+u.bandwidth()*l/2:e=>u(e),p=t.filter((e=>-1!==n.indexOf(e.index))),f=("vertical"===o&&c?p.reverse():p).map((e=>e.item)),h=f.map((e=>m(e.major.value))),g=Math.min(...h),y=Math.max(...h)-g,v=0===y?1:y,b=h.map(((e,t)=>0===t?0:t===h.length-1?1:(e-g)/v)),x=[];for(let e=0;e<f.length;e++){const t=f[e],n=a?t.color.value:d(t.color.value)||i,r=b[e];x.push({color:n,offset:0===e?0:Math.max(0,x[x.length-1].offset)}),x.push({color:n,offset:e===f.length-1?1:Math.max(0,parseFloat((r+(b[e+1]-r)/2).toFixed(5)))})}return{type:"gradient",x1:r.x1,x2:r.x2,y1:r.y1,y2:r.y2,stops:x}}({chart:t,selected:a,connection:n,gradient:m,fallback:f,orientation:u,isColorCode:"color"===p,groupedByMeasure:l,itemsPerGroup:c,rtl:d});return("continuous"===p?AA:RA)({chart:t,selected:a,connection:n,gradient:m,fallback:f})}function NA({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:kA({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 IA({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=TA({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(...NA({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 LA={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:CA({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=IA({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=CA({chart:this.chart,seriesInfo:this.settings.settings.seriesInfo}),this.state.selectionInfo=this.settings.settings.getSelectionInfo();return IA({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 PA=()=>{const e=$();return e.use(_),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Bm(e))};e.interaction("hammer",Bm(Hammer))}(z)),e.use(ix),e.use((function(e){e.renderer("react",nx()),e.component("data-title",Qb(e.renderer("svg")()))})),e.renderer("react-qcm",SA),e.component("disclaimer",yA),e.component("scrollbar",vl),e.component("point-label",Xx),e.component("label-space",Kx),e.component("time-axis",hm.picassoComponents.timeAxis),e.component("axis-overlay",hm.picassoComponents.axisOverlay),e.component("reference-line-labels",Ya),e.component("box-sliced-hat",fx),e.component("box-out-of-bounds",cx),e.component("data-out-of-bounds-marker",EA),e.component("scroll-hint",Go),e.component("brush-highlighter",LA),e.scale("time",hm.picassoScales.time),e.symbol("line-point",MA),e};const DA={line:"bar",circle:"circle",diamond:"diamond",triangle:"triangle",rect:"square"},qA=e=>void 0===e.marker?DA.circle:DA[e.marker],zA=e=>void 0===e.markerFill||e.markerFill;function $A({series:e,layoutService:t}){switch(Eu(e)){case us.TYPE.MARKER:return(e=>({marker:qA(e),fill:zA(e)}))(e);case us.TYPE.LINE:return(e=>{const t=e.getLayoutValue("nullMode","gap");return{showAsGaps:"gap"===t,showAsConnections:"connect"===t,showAsZeros:"zero"===t}})(t);case us.TYPE.BAR:return{showAsZeros:!0};default:return{}}}function _A(e=us.NOPE_SERIES,t){return t?e.axis===us.AXIS.PRIMARY:e.axis===us.AXIS.PRIMARY||Eu(e)===us.TYPE.BAR}var jA={exports:{}};var FA={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const BA="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var HA=BA;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=FA,o=HA,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);var VA=jA.exports;const UA=Object.freeze({loose:!0}),WA=Object.freeze({});var YA=e=>e?"object"!=typeof e?UA:e:WA;const GA=/^[0-9]+$/,XA=(e,t)=>{const n=GA.test(e),r=GA.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var KA={compareIdentifiers:XA,rcompareIdentifiers:(e,t)=>XA(t,e)};const JA=HA,{MAX_LENGTH:ZA,MAX_SAFE_INTEGER:QA}=FA,{safeRe:eR,t:tR}=VA,nR=YA,{compareIdentifiers:rR}=KA;var iR=class e{constructor(t,n){if(n=nR(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>ZA)throw new TypeError(`version is longer than ${ZA} characters`);JA("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?eR[tR.LOOSE]:eR[tR.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>QA||this.major<0)throw new TypeError("Invalid major version");if(this.minor>QA||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>QA||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<QA)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(JA("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),rR(this.major,t.major)||rR(this.minor,t.minor)||rR(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(JA("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return rR(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(JA("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return rR(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===rR(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const oR=iR;var aR=(e,t,n=!1)=>{if(e instanceof oR)return e;try{return new oR(e,t)}catch(e){if(!n)return null;throw e}};const sR=aR;var lR=(e,t)=>{const n=sR(e,t);return n?n.version:null};const cR=aR;var uR=(e,t)=>{const n=cR(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};const dR=iR;var mR=(e,t,n,r,i)=>{"string"==typeof n&&(i=r,r=n,n=void 0);try{return new dR(e instanceof dR?e.version:e,n).inc(t,r,i).version}catch(e){return null}};const pR=aR;var fR=(e,t)=>{const n=pR(e,null,!0),r=pR(t,null,!0),i=n.compare(r);if(0===i)return null;const o=i>0,a=o?n:r,s=o?r:n,l=!!a.prerelease.length;if(!!s.prerelease.length&&!l)return s.patch||s.minor?a.patch?"patch":a.minor?"minor":"major":"major";const c=l?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};const hR=iR;var gR=(e,t)=>new hR(e,t).major;const yR=iR;var vR=(e,t)=>new yR(e,t).minor;const bR=iR;var xR=(e,t)=>new bR(e,t).patch;const SR=aR;var ER=(e,t)=>{const n=SR(e,t);return n&&n.prerelease.length?n.prerelease:null};const MR=iR;var CR=(e,t,n)=>new MR(e,n).compare(new MR(t,n));const OR=CR;var wR=(e,t,n)=>OR(t,e,n);const TR=CR;var AR=(e,t)=>TR(e,t,!0);const RR=iR;var kR=(e,t,n)=>{const r=new RR(e,n),i=new RR(t,n);return r.compare(i)||r.compareBuild(i)};const NR=kR;var IR=(e,t)=>e.sort(((e,n)=>NR(e,n,t)));const LR=kR;var PR=(e,t)=>e.sort(((e,n)=>LR(n,e,t)));const DR=CR;var qR=(e,t,n)=>DR(e,t,n)>0;const zR=CR;var $R=(e,t,n)=>zR(e,t,n)<0;const _R=CR;var jR=(e,t,n)=>0===_R(e,t,n);const FR=CR;var BR=(e,t,n)=>0!==FR(e,t,n);const HR=CR;var VR=(e,t,n)=>HR(e,t,n)>=0;const UR=CR;var WR=(e,t,n)=>UR(e,t,n)<=0;const YR=jR,GR=BR,XR=qR,KR=VR,JR=$R,ZR=WR;var QR=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return YR(e,n,r);case"!=":return GR(e,n,r);case">":return XR(e,n,r);case">=":return KR(e,n,r);case"<":return JR(e,n,r);case"<=":return ZR(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};const ek=iR,tk=aR,{safeRe:nk,t:rk}=VA;var ik,ok,ak,sk,lk,ck,uk,dk,mk,pk,fk=(e,t)=>{if(e instanceof ek)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?nk[rk.COERCERTLFULL]:nk[rk.COERCERTL];let i;for(;(i=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?nk[rk.COERCEFULL]:nk[rk.COERCE]);if(null===n)return null;const r=n[2],i=n[3]||"0",o=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return tk(`${r}.${i}.${o}${a}${s}`,t)};function hk(){if(sk)return ak;function e(t){var n=this;if(n instanceof e||(n=new e),n.tail=null,n.head=null,n.length=0,t&&"function"==typeof t.forEach)t.forEach((function(e){n.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)n.push(arguments[r]);return n}function t(e,t,n){var r=t===e.head?new i(n,null,t,e):new i(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function n(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function r(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,n,r){if(!(this instanceof i))return new i(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}sk=1,ak=e,e.Node=i,e.create=e,e.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},e.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},e.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)n(this,arguments[e]);return this.length},e.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)r(this,arguments[e]);return this.length},e.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},e.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},e.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},e.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},e.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},e.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},e.prototype.map=function(t,n){n=n||this;for(var r=new e,i=this.head;null!==i;)r.push(t.call(n,i.value,this)),i=i.next;return r},e.prototype.mapReverse=function(t,n){n=n||this;for(var r=new e,i=this.tail;null!==i;)r.push(t.call(n,i.value,this)),i=i.prev;return r},e.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},e.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},e.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},e.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},e.prototype.slice=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<n;i++,o=o.next)r.push(o.value);return r},e.prototype.sliceReverse=function(t,n){(n=n||this.length)<0&&(n+=this.length),(t=t||0)<0&&(t+=this.length);var r=new e;if(n<t||n<0)return r;t<0&&(t=0),n>this.length&&(n=this.length);for(var i=this.length,o=this.tail;null!==o&&i>n;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},e.prototype.splice=function(e,n,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var a=[];for(i=0;o&&i<n;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<r.length;i++)o=t(this,o,r[i]);return a},e.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(ok?ik:(ok=1,ik=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}))(e)}catch(e){}return ak}function gk(){if(dk)return uk;dk=1;class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&p))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,h=a?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(h,T(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(s[l.COMPARATORTRIM],c),o("comparator trim",e),e=e.replace(s[l.TILDETRIM],u),o("tilde trim",e),e=e.replace(s[l.CARETTRIM],d),o("caret trim",e);let g=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>w(e,this.options)));a&&(g=g.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(s[l.COMPARATORLOOSE]))))),o("range list",g);const v=new Map,b=g.map((e=>new i(e,this.options)));for(const e of b){if(f(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>g(e,n)&&t.set.some((t=>g(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}uk=e;const t=function(){if(ck)return lk;ck=1;const e=hk(),t=Symbol("max"),n=Symbol("length"),r=Symbol("lengthCalculator"),i=Symbol("allowStale"),o=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),c=Symbol("cache"),u=Symbol("updateAgeOnGet"),d=()=>1,m=(e,t,n)=>{const r=e[c].get(t);if(r){const t=r.value;if(p(e,t)){if(h(e,r),!e[i])return}else n&&(e[u]&&(r.value.now=Date.now()),e[l].unshiftNode(r));return t.value}},p=(e,t)=>{if(!t||!t.maxAge&&!e[o])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[o]&&n>e[o]},f=e=>{if(e[n]>e[t])for(let r=e[l].tail;e[n]>e[t]&&null!==r;){const t=r.prev;h(e,r),r=t}},h=(e,t)=>{if(t){const r=t.value;e[a]&&e[a](r.key,r.value),e[n]-=r.length,e[c].delete(r.key),e[l].removeNode(t)}};class g{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const y=(e,t,n,r)=>{let o=n.value;p(e,o)&&(h(e,n),e[i]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};return lk=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[t]=e.max||1/0;const n=e.length||d;if(this[r]="function"!=typeof n?d:n,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[o]=e.maxAge||0,this[a]=e.dispose,this[s]=e.noDisposeOnSet||!1,this[u]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[t]=e||1/0,f(this)}get max(){return this[t]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[o]=e,f(this)}get maxAge(){return this[o]}set lengthCalculator(e){"function"!=typeof e&&(e=d),e!==this[r]&&(this[r]=e,this[n]=0,this[l].forEach((e=>{e.length=this[r](e.value,e.key),this[n]+=e.length}))),f(this)}get lengthCalculator(){return this[r]}get length(){return this[n]}get itemCount(){return this[l].length}rforEach(e,t){t=t||this;for(let n=this[l].tail;null!==n;){const r=n.prev;y(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[l].head;null!==n;){const r=n.next;y(this,e,n,t),n=r}}keys(){return this[l].toArray().map((e=>e.key))}values(){return this[l].toArray().map((e=>e.value))}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach((e=>this[a](e.key,e.value))),this[c]=new Map,this[l]=new e,this[n]=0}dump(){return this[l].map((e=>!p(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[l]}set(e,i,u){if((u=u||this[o])&&"number"!=typeof u)throw new TypeError("maxAge must be a number");const d=u?Date.now():0,m=this[r](i,e);if(this[c].has(e)){if(m>this[t])return h(this,this[c].get(e)),!1;const r=this[c].get(e).value;return this[a]&&(this[s]||this[a](e,r.value)),r.now=d,r.maxAge=u,r.value=i,this[n]+=m-r.length,r.length=m,this.get(e),f(this),!0}const p=new g(e,i,m,d,u);return p.length>this[t]?(this[a]&&this[a](e,i),!1):(this[n]+=p.length,this[l].unshift(p),this[c].set(e,this[l].head),f(this),!0)}has(e){if(!this[c].has(e))return!1;const t=this[c].get(e).value;return!p(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[l].tail;return e?(h(this,e),e.value):null}del(e){h(this,this[c].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[c].forEach(((e,t)=>m(this,t,!1)))}},lk}(),n=new t({max:1e3}),r=YA,i=yk(),o=HA,a=iR,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=VA,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:p}=FA,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=M(e,t),o("xrange",e),e=O(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),v(n)?s="":v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o("replaceTilde pr",a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const n=t.loose?s[l.CARETLOOSE]:s[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),v(n)?l="":v(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(a)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o("caret return",l),l}))},M=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=v(i),u=c||v(a),d=u||v(s),m=d;return"="===r&&m&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&m?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+i}.${a}.${s}${l}`):u?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${l} <${i}.${+a+1}.0-0`),o("xRange return",n),n}))},O=(e,t)=>(o("replaceStars",e,t),e.trim().replace(s[l.STAR],"")),w=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),T=e=>(t,n,r,i,o,a,s,l,c,u,d,m,p)=>`${n=v(r)?"":v(i)?`>=${r}.0.0${e?"-0":""}`:v(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=v(c)?"":v(u)?`<${+c+1}.0.0-0`:v(d)?`<${c}.${+u+1}.0-0`:m?`<=${c}.${u}.${d}-${m}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return uk}function yk(){if(pk)return mk;pk=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(">")))))))}}mk=t;const n=YA,{safeRe:r,t:i}=VA,o=QR,a=HA,s=iR,l=gk();return mk}const vk=gk();var bk=(e,t,n)=>{try{t=new vk(t,n)}catch(e){return!1}return t.test(e)};const xk=gk();var Sk=(e,t)=>new xk(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));const Ek=iR,Mk=gk();var Ck=(e,t,n)=>{let r=null,i=null,o=null;try{o=new Mk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&-1!==i.compare(e)||(r=e,i=new Ek(r,n)))})),r};const Ok=iR,wk=gk();var Tk=(e,t,n)=>{let r=null,i=null,o=null;try{o=new wk(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(r&&1!==i.compare(e)||(r=e,i=new Ok(r,n)))})),r};const Ak=iR,Rk=gk(),kk=qR;var Nk=(e,t)=>{e=new Rk(e,t);let n=new Ak("0.0.0");if(e.test(n))return n;if(n=new Ak("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let i=null;r.forEach((e=>{const t=new Ak(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!kk(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!kk(n,i)||(n=i)}return n&&e.test(n)?n:null};const Ik=gk();var Lk=(e,t)=>{try{return new Ik(e,t).range||"*"}catch(e){return null}};const Pk=iR,Dk=yk(),{ANY:qk}=Dk,zk=gk(),$k=bk,_k=qR,jk=$R,Fk=WR,Bk=VR;var Hk=(e,t,n,r)=>{let i,o,a,s,l;switch(e=new Pk(e,r),t=new zk(t,r),n){case">":i=_k,o=Fk,a=jk,s=">",l=">=";break;case"<":i=jk,o=Bk,a=_k,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if($k(e,t,r))return!1;for(let n=0;n<t.set.length;++n){const c=t.set[n];let u=null,d=null;if(c.forEach((e=>{e.semver===qk&&(e=new Dk(">=0.0.0")),u=u||e,d=d||e,i(e.semver,u.semver,r)?u=e:a(e.semver,d.semver,r)&&(d=e)})),u.operator===s||u.operator===l)return!1;if((!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0};const Vk=Hk;var Uk=(e,t,n)=>Vk(e,t,">",n);const Wk=Hk;var Yk=(e,t,n)=>Wk(e,t,"<",n);const Gk=gk();var Xk=(e,t,n)=>(e=new Gk(e,n),t=new Gk(t,n),e.intersects(t,n));const Kk=bk,Jk=CR;const Zk=gk(),Qk=yk(),{ANY:eN}=Qk,tN=bk,nN=CR,rN=[new Qk(">=0.0.0-0")],iN=[new Qk(">=0.0.0")],oN=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===eN){if(1===t.length&&t[0].semver===eN)return!0;e=n.includePrerelease?rN:iN}if(1===t.length&&t[0].semver===eN){if(n.includePrerelease)return!0;t=iN}const r=new Set;let i,o,a,s,l,c,u;for(const t of e)">"===t.operator||">="===t.operator?i=aN(i,t,n):"<"===t.operator||"<="===t.operator?o=sN(o,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&o){if(a=nN(i.semver,o.semver,n),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of r){if(i&&!tN(e,String(i),n))return null;if(o&&!tN(e,String(o),n))return null;for(const r of t)if(!tN(e,String(r),n))return!1;return!0}let d=!(!o||n.includePrerelease||!o.semver.prerelease.length)&&o.semver,m=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;d&&1===d.prerelease.length&&"<"===o.operator&&0===d.prerelease[0]&&(d=!1);for(const e of t){if(u=u||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),">"===e.operator||">="===e.operator){if(s=aN(i,e,n),s===e&&s!==i)return!1}else if(">="===i.operator&&!tN(i.semver,String(e),n))return!1;if(o)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),"<"===e.operator||"<="===e.operator){if(l=sN(o,e,n),l===e&&l!==o)return!1}else if("<="===o.operator&&!tN(o.semver,String(e),n))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&(!(o&&u&&!i&&0!==a)&&(!m&&!d))},aN=(e,t,n)=>{if(!e)return t;const r=nN(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},sN=(e,t,n)=>{if(!e)return t;const r=nN(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};var lN=(e,t,n={})=>{if(e===t)return!0;e=new Zk(e,n),t=new Zk(t,n);let r=!1;e:for(const i of e.set){for(const e of t.set){const t=oN(i,e,n);if(r=r||null!==t,t)continue e}if(r)return!1}return!0};const cN=VA,uN=FA,dN=iR,mN=KA,pN=(e,t,n)=>{const r=[];let i=null,o=null;const a=e.sort(((e,t)=>Jk(e,t,n)));for(const e of a){Kk(e,t,n)?(o=e,i||(i=e)):(o&&r.push([i,o]),o=null,i=null)}i&&r.push([i,null]);const s=[];for(const[e,t]of r)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.length<c.length?l:t};var fN=J({parse:aR,valid:lR,clean:uR,inc:mR,diff:fR,major:gR,minor:vR,patch:xR,prerelease:ER,compare:CR,rcompare:wR,compareLoose:AR,compareBuild:kR,sort:IR,rsort:PR,gt:qR,lt:$R,eq:jR,neq:BR,gte:VR,lte:WR,cmp:QR,coerce:fk,Comparator:yk(),Range:gk(),satisfies:bk,toComparators:Sk,maxSatisfying:Ck,minSatisfying:Tk,minVersion:Nk,validRange:Lk,outside:Hk,gtr:Uk,ltr:Yk,intersects:Xk,simplifyRange:pN,subset:lN,SemVer:dN,re:cN.re,src:cN.src,tokens:cN.t,SEMVER_SPEC_VERSION:uN.SEMVER_SPEC_VERSION,RELEASE_TYPES:uN.RELEASE_TYPES,compareIdentifiers:mN.compareIdentifiers,rcompareIdentifiers:mN.rcompareIdentifiers}),hN={BAR_IN_SECONDARY_AXIS:"0.23.1"};const gN=e=>!e||fN.lt(fN.coerce(e),fN.coerce(hN.BAR_IN_SECONDARY_AXIS)),yN=({layoutService:e})=>{const t=!gN(e.getLayoutValue("version")),n=e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>{const n={[us.TYPE.BAR]:0,[us.TYPE.LINE]:0,[us.TYPE.MARKER]:0};return({series:r=us.NOPE_SERIES},i)=>{const o=_A(r,t),a=Eu(r);return{id:i,type:a,typeIndex:n[a]++,ref:`qMeasureInfo/${i}`,refIndex:i,isPrimary:o,scale:o?cs.SCALE.MINOR.PRIMARY:cs.SCALE.MINOR.SECONDARY,collection:o?cs.COLLECTION.PRIMARY:cs.COLLECTION.SECONDARY,options:$A({series:r,layoutService:e})}}})(e,t)),r=(e,t)=>e.filter((e=>Eu(e)===t)).length,i=n.filter((e=>e.isPrimary)),o=n.filter((e=>!e.isPrimary)),a=[!!i.length&&i[0],!!o.length&&o[0]].filter((e=>!!e)),s=r(n,us.TYPE.BAR),l=r(i,us.TYPE.BAR),c=r(o,us.TYPE.BAR),u=e=>n.filter((t=>Eu(t)===e)),d=u(us.TYPE.LINE).map((e=>Yl(cs.COMPONENT.POINT,e))),m=u(us.TYPE.MARKER).map((e=>({key:Yl(cs.COMPONENT.MARKER,e),type:e.options.marker}))),p=m.map((e=>e.key)),f=[];l>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`),c>0&&f.push(`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`);const h=[...f,...d,...p],{MINI_CHART:g}=cs.COMPONENT,y=u(us.TYPE.LINE).map((e=>Yl(g.LINE,e))),v=u(us.TYPE.MARKER).map((e=>Yl(g.MARKER,e))),b=e.meta.isContinuous?[`${g.BAR}-${us.AXIS.PRIMARY}`,`${g.BAR}-${us.AXIS.SECONDARY}`,...y,...v]:[];return{meta:{allSeries:n,primarySeries:i,secondarySeries:o,barSeriesCount:s,primaryBarSeriesCount:l,secondaryBarSeriesCount:c,measureAxes:a,pointComponentKeys:d,markerComponentKeys:p,barComponentKeys:f,seriesComponentKeys:h,miniComponentKeys:b,markers:m},query:{all:()=>n,seriesByAxis:e=>e?i:o,series:u,isPrimary:_A}}};function vN({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 bN({genericObjectModel:e,layoutService:t}){return function(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Ee).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,{path:"/qHyperCubeDef",rect:vN({layoutService:t}),zoomLevel:-1,filter:"D1"})}}function xN({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}):bN({genericObjectModel:e,layoutService:t})}const SN=e=>"number"==typeof e&&!Number.isNaN(e);function EN({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=>Eu(e.series)===us.TYPE.BAR)),a=i.filter((e=>Eu(e.series)===us.TYPE.LINE)),s=i.filter((e=>Eu(e.series)===us.TYPE.MARKER));return{min:Math.min(...i.filter((e=>SN(e.qMin))).map((e=>e.qMin))),max:Math.max(...i.filter((e=>SN(e.qMax))).map((e=>e.qMax))),bar:{min:Math.min(...o.filter((e=>SN(e.qMin))).map((e=>e.qMin))),max:Math.max(...o.filter((e=>SN(e.qMax))).map((e=>e.qMax)))},line:{min:Math.min(...a.filter((e=>SN(e.qMin))).map((e=>e.qMin))),max:Math.max(...a.filter((e=>SN(e.qMax))).map((e=>e.qMax)))},marker:{min:Math.min(...s.filter((e=>SN(e.qMin))).map((e=>e.qMin))),max:Math.max(...s.filter((e=>SN(e.qMax))).map((e=>e.qMax)))}}}}function MN({isPrimary:e,layoutService:t,seriesModel:n}){const r=EN({isPrimary:e,layoutService:t,seriesModel:n}),i=function({seriesModel:e,isPrimary:t}){return function({dataPage:n}){const r=e.query.series(us.TYPE.BAR).filter((e=>e.isPrimary===t)).map((e=>e.refIndex)),{qMatrix:i}=n,o={min:NaN,max:NaN};return i.forEach((e=>{let t=0,n=0;e.slice(1).filter(((e,t)=>r.some((e=>e===t))&&"NaN"!==e.qNum)).forEach((e=>{e.qNum>=0?n+=e.qNum:t+=e.qNum})),o.min=Number.isNaN(o.min)?t:Math.min(t,o.min),o.max=Number.isNaN(o.max)?n:Math.max(n,o.max)})),o}}({seriesModel:n,isPrimary:e});return function({dataPage:e}){const t=r({dataPage:e});return t.bar=i({dataPage:e}),t.min=Math.min(t.bar.min,t.line.min,t.marker.min),t.max=Math.max(t.bar.max,t.line.max,t.marker.max),t}}function CN({isPrimary:e,continuousModel:t,layoutService:n,reducedModel:r,seriesModel:i}){const o={min:NaN,max:NaN,implicit:{min:NaN,max:NaN,bar:{min:NaN,max:NaN},line:{min:NaN,max:NaN},marker:{min:NaN,max:NaN}},explicit:{min:NaN,max:NaN},meta:{hasExplicit:!1,hasExplicitMin:!1,hasExplicitMax:!1,includesZero:!1}},a=function({isPrimary:e,layoutService:t,seriesModel:n}){const{isBarSeriesStacked:r}=t.meta,i=n.query.series(us.TYPE.BAR).filter((t=>t.isPrimary===e)).length;return!r||i<2?EN({isPrimary:e,layoutService:t,seriesModel:n}):MN({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=>Eu(e)===us.TYPE.BAR)),d=Number((u?Math.min(n,0):n).toFixed(13)),m=Number((u?Math.max(r,0):r).toFixed(13)),p=Number((u?Math.min(s.min,0):s.min).toFixed(13)),f=Number((u?Math.max(s.max,0):s.max).toFixed(13)),h=Number((u?Math.min(l.min,0):l.min).toFixed(13)),g=Number((u?Math.max(l.max,0):l.max).toFixed(13)),y=Number((u?Math.min(c.min,0):c.min).toFixed(13)),v=Number((u?Math.max(c.max,0):c.max).toFixed(13));o.implicit.min=Number.isFinite(d)?d:0,o.implicit.max=Number.isFinite(m)?m:0,o.implicit.bar.min=Number.isFinite(p)?p:0,o.implicit.bar.max=Number.isFinite(f)?f:0,o.implicit.line.min=Number.isFinite(h)?h:0,o.implicit.line.max=Number.isFinite(g)?g:0,o.implicit.marker.min=Number.isFinite(y)?y:0,o.implicit.marker.max=Number.isFinite(v)?v:0,o.min=Number.isNaN(o.explicit.min)?o.implicit.min:o.explicit.min,o.max=Number.isNaN(o.explicit.max)?o.implicit.max:o.explicit.max,o.meta.hasExplicitMin&&!o.meta.hasExplicitMax&&(o.max=Math.max(o.min,o.max)),o.meta.hasExplicitMax&&!o.meta.hasExplicitMin&&(o.min=Math.min(o.min,o.max)),o.meta.includesZero=!!((0-o.min)*(0-o.max)<=0)}))}}}}const ON=.2;function wN({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 TN({min:e,max:t,count:n,threshold:r,disable:i}){const o=function(e,t,n){const r=Pr().domain([e,t]);return r.nice(n),r}(e,t,n),a=function({min:e,max:t,threshold:n,scale:r,disable:i}){const o={start:!0,stop:!0};if(i)return o;const[a,s]=r.domain();return 0!==e&&0!==a&&(o.start=r(e)>n),0!==t&&0!==s&&(o.stop=r(t)<1-n),o}({min:e,max:t,threshold:r,scale:o,disable:i});if(!a.start||!a.stop){const[e,t]=o.domain(),r=o.ticks(n),i=r.length>=4?r[1]-r[0]:.1*e,s=r.length>=4?r[r.length-1]-r[r.length-2]:.1*t;o.domain([a.start?e:e-i,a.stop?t:t+s]),o.nice(n)}return o}const AN=50,RN=100,kN=200,NN=125,IN=e=>{switch(e){case.5:return AN;case 1:return RN;case 2:return kN;default:return e*NN}};function LN({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=IN(r);return Math.max(1,Math.round(n/i))}({config:e,layoutService:n,size:o}),c=TN({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 PN=.3;function DN({tick:e,index:t,ticks:n}){return 0===t||t===n.length-1||0===e}function qN({index:e,ticks:t}){return 0===e||e===t.length-1||e===Math.floor((t.length-1)/2)}const zN=10;function $N({config:e,chart:t,extrema:n,min:r,max:i}){const o={roundedMin:0,roundedMax:0,ticks:[]},a=TN({min:r,max:i,count:zN,threshold:.15,disable:!0});[o.roundedMin,o.roundedMax]=a.domain();const s=a.ticks(zN),l=function({ticks:e}){const t=Math.round(e.length*PN),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}({ticks:s}),c=l?DN:qN;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 _N({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 jN({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=LN({config:e,chart:t,layoutService:n,dockService:r,measureText:o,size:a,min:s,max:l});return wN({extrema:i,ticks:c.ticks})?c:$N({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=[..._N({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 FN({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*ON*Math.sign(t),max:n+n*ON*Math.sign(n)}}({extrema:o});return jN({config:e,chart:t,layoutService:n,dockService:r,extrema:o,measureText:i,size:a,min:s,max:l})}function BN({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 FN({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 HN({genericObjectModel:e,layoutService:t}){const n={properties:void 0};return{query:{getProperties:()=>n.properties},command:{initialize:()=>function({layout:e,model:t}){return xe.snapshot(e)?Promise.resolve(null):t.getEffectiveProperties().then((e=>({properties:e})))}({layout:t.getLayout(),model:e}).then((e=>{const{properties:t}=null!=e?e:{};n.properties=t}))}}}function VN({layoutService:e,seriesModel:t,colorService:n}){const{type:r,mode:i,fieldType:o}=n.getSettings();if("categorical"!==r)return;const a=e.getLayoutValue("dataPoint.show",!1)?"line-point":"line";let s;s="field"===i?"measure"===o?()=>({type:us.TYPE.BAR}):()=>t.query.all()[0]:e=>t.query.all()[e.value];return{item:{shape:{type:({datum:e})=>{const{type:t,options:n}=s(e);switch(t){case"line":return a;case"marker":return n.marker;default:return"square"}},stroke:{},strokeWidth:({datum:e})=>{const{type:t,options:n}=s(e);return t===us.TYPE.LINE?2:t!==us.TYPE.MARKER||n.fill?0:1},size:10,fill:{fn:({datum:e,scale:t})=>{const{type:n,options:r}=s(e);return n!==us.TYPE.MARKER||"bar"===r.marker||r.fill?t(e.value):"none"}}}}}}function UN({layout:e,defaultAuto:t}){const n=t(e),r=e.qHyperCube.qMeasureInfo.length>1;return{...n,useBaseColors:r?"measure":n.useBaseColors}}function WN({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=T({picasso:s,model:o,app:n,translator:p,layoutService:a,createConfig:()=>{const e=a.getHyperCubeValue("qMeasureInfo").map((e=>e.color));return{theme:m,colorProps:{measureOverrides:e},legendProps:a.getLayoutValue("legend"),hc:a.getHyperCube(),key:cs.SCALE.COLOR}},config:{auto:UN,localeInfo:t.qLocaleInfo},custom:{wrappedScales:()=>f.wrappedScales,legendComponents:()=>f.legendComponents,legendInteractions:()=>f.legendInteractions,updateLegend:()=>{const{components:t,interactions:n,scales:o}=function({viewState:e,chart:t,layoutService:n,seriesModel:r,environment:i,colorService:o,actions:a,styleModel:s}){const{options:l}=i,c={eventName:"legend-c",key:cs.COMPONENT.LEGEND,viewState:e,chart:t,styleReference:"object.comboChart",styleOverrides:{title:s.query.legend.title.getStyle(),label:s.query.legend.label.getStyle()},rtl:"rtl"===l.direction,settings:VN({layoutService:n,seriesModel:r,colorService:o})},{components:u,interactions:d}=o.getLegend(c,{actions:a,navigationDisabled:!a.interact.enabled()}),m=o.getScales();return{components:u.filter(Boolean).map((e=>{const{layout:t}=e,{dock:n}=t,r=m[`${cs.SCALE.COLOR}Range`];return!r||"right"!==n&&"left"!==n||(r.invert=!0),"legend-cat"===e.type&&(e.settings.item.shape.fill.scale=e.scale,e.settings.item.shape.stroke.scale=e.scale),e})),interactions:d,scales:m}}({viewState:c,chart:r,environment:i,colorService:d,seriesModel:l,layoutService:a,actions:e,styleModel:u});f.wrappedScales=o,f.legendComponents=t,f.legendInteractions=n}}}),d}const YN="REJECTED",GN=()=>{},XN=1e4,KN={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},JN=50,ZN=10,QN=100;var eI={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-ZN<=t.qTop,i=n.qLeft+n.qWidth+ZN>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+ZN>=t.qTop+t.qHeight,a=n.qLeft-ZN<=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 tI={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-ZN<=t.qTop,i=n.qTop+n.qHeight+ZN>=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 nI={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 rI="pages";const iI="discretePan",oI=10;function aI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:iI,pointers:1,threshold:oI,enable(r,i){return this.started===iI||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${iI}start`](e){e.preventDefault(),this.started=iI;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-oI:oI},[`${iI}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)},[`${iI}end`](e){e.preventDefault(),this.started=!1},[`${iI}cancel`](e){e.preventDefault(),this.started=!1}}}}function sI({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)*QN;r.scroll(s)}}function lI({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(XN/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(KN.MAXIMUM,n));return{width:e,height:Math.max(KN.MINIMUM,Math.min(n*KN.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 cI(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(YN),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(YN),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(YN),n=null)},i}const uI={command:{update:()=>{}}};function dI({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=uI,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:lI({layoutService:r}),request:c({definitionPath:o}),process:cI(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=w(((e,{onProcessing:t,onData:n})=>{u(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==YN)throw e}))}),JN);return function(e,{onProcessing:t=GN,onDataPage:n=GN}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var mI={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 pI={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 fI(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function hI(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 gI(e){return hI(e.qMatrix,(e=>e[0].qElemNumber))-1}var yI={inTotal:function({layoutService:e}){const t=fI(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=fI(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=fI(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=gI(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 vI=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),bI=(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 xI(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return vI(e,n);const r=bI(t.qMatrix,n);return r.successful?r.count:vI(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return vI(e,n);return hI(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var SI={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=xI(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=xI(t).area(e(),l,a.qArea),d=gI(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 EI({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 MI({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?mI:n?r?yI:SI:pI}({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:EI({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(XN/(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 CI({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=MI({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 OI({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 eI;case"K":return tI;case"T":return nI}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(rI,[]),{add:t=>{const n=e.get(rI);n.length=0,n.push(t)},getCurrent:()=>e.get(rI)[0],getAll:()=>e.get(rI),contains:n=>t(e.get(rI)[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=dI({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:u,processDataPage:h}),S=CI({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:[aI({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:sI({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 wI={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 TI({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 AI({layoutService:e,dockService:t,themeService:n,flags:r}){const{BAR:i,LINE:o,POINT:a}=rc,s=n.getStyles(),l=TI({layoutService:e,key:"bar"}),c=TI({layoutService:e,key:"line"}),u=()=>{const e=l({property:"strokeWidth",defaultValue:"none"});return e?i.STROKE.WIDTH[e.toUpperCase()]:0},d=t=>r.isEnabled("CLIENT_IM_3050")?e.getLayoutValue("components",[]).find((e=>e.key===t)):void 0;return{query:{bar:{getHasStyling:()=>!!e.getLayoutValue("components",[]).filter((e=>"bar"===e.key)).length,getWidthFn:()=>()=>l({property:"width",defaultValue:.7}),getHasStrokeWidth:()=>!!u(),getStrokeWidth:()=>u(),getStrokeColor:()=>l({property:"strokeColor",defaultValue:{index:-1,color:i.STROKE.COLOR}}).color,label:{getStyle:()=>{var e,t,n,r,i,o,a,l;return{fill:null!==(e=null===(t=d("bar"))||void 0===t||null===(t=t.bar)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,useContrastColor:null===(n=null===(r=d("bar"))||void 0===r||null===(r=r.bar)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.useContrastColor)||void 0===n||n,fontSize:null!==(i=null===(o=d("bar"))||void 0===o||null===(o=o.bar)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:s.label.value.numFontSize,fontFamily:null!==(a=null===(l=d("bar"))||void 0===l||null===(l=l.bar)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l.fontFamily)&&void 0!==a?a:s.label.value.fontFamily}}}},line:{getCurveFn:()=>()=>c({property:"lineCurve",defaultValue:o.CURVE.LINEAR}),getStrokeWidthFn:()=>()=>c({property:"lineThickness",defaultValue:"FULL"===t.meta.chart.mode?o.WIDTH.FULL.DEFAULT:o.WIDTH.LESS.DEFAULT}),getStrokeDasharrayFn:()=>()=>{const e=c({property:"lineType",defaultValue:o.TYPE.SOLID});return e&&o.TYPE[e.toUpperCase()]}},point:{getSize:()=>c({property:"dataPointSize",defaultValue:a.SIZE.DEFAULT}),label:{getStyle:()=>{var e,t,n,r,i,o;return{fill:null!==(e=null===(t=d("line"))||void 0===t||null===(t=t.line)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:s.label.value.color,fontSize:null!==(n=null===(r=d("line"))||void 0===r||null===(r=r.line)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.value)||void 0===r?void 0:r.fontSize)&&void 0!==n?n:s.label.value.fontSize,fontFamily:null!==(i=null===(o=d("line"))||void 0===o||null===(o=o.line)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontFamily)&&void 0!==i?i:s.label.value.fontFamily}}}},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 RI({layoutService:e}){return A({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0}}})}function kI({dataset:e,data:t,valueData:n}){var r;const{source:i,label:o,value:a}=n,s=e(i.key).field(i.field);return ge.shouldUseFormat(s.raw())?"-"===o||""===a||Number.isNaN(a)||"NaN"===a||null!==(r=t.null)&&void 0!==r&&r.value?"-":s.formatter()(a):o}function NI({chart:e,actions:t,translator:n,rtl:r,dockService:i,seriesModel:o,colorService:a,themeService:s,propertiesModel:l,custom:c}){const u=s.getStyles(),d=({data:e})=>e.major.value,m=({data:e})=>!e.null.value||0===e.end.value,{SLICED_HAT:p}=cs.COMPONENT,{PRIMARY:f,SECONDARY:h}=us.AXIS,g=function({dockService:e,seriesModel:t}){const{AXIS:n,BAR_OOB:r,DATA_OOB_MARKER:i,SLICED_HAT:o}=cs.COMPONENT,{PRIMARY:a,SECONDARY:s}=us.AXIS,{orientation:l}=e.meta.chart,c="vertical"===l,u=[...t.meta.barComponentKeys,...t.meta.markerComponentKeys,...t.meta.pointComponentKeys];return[({chart:e,hovered:t,meta:l})=>{const[d]=t,{triggerer:m}=l,p=m===n.MAJOR?d.data.value:d.data.major.value;if(c){const t=e.findShapes("container").find((e=>(e.key===`${o}-max-${a}`||e.key===`${o}-max-${s}`)&&e.data&&e.data.value===p&&e.children.length));if(t)return{key:t.key,bounds:t.bounds}}const f=e.findShapes("path").find((e=>(e.key===`${r}-max-${a}`||e.key===`${r}-max-${s}`||e.key===`${i}-max`)&&e.data.major.value===p));if(c&&f)return{key:f.key,bounds:f.bounds};const h=e.findShapes("path").find((e=>(e.key===`${r}-min-${a}`||e.key===`${r}-min-${s}`||e.key===`${i}-min`)&&e.data.major.value===p)),g=e.findShapes("*").filter((e=>u.indexOf(e.key)>-1&&e.data&&e.data.major.value===p));if(c&&h&&!g.find((e=>e.data.end.source.field!==h.data.end.source.field)))return{key:h.key,bounds:h.bounds};const y=f||h;return!(c||!y||g.find((e=>e.data.end.source.field!==y.data.end.source.field)))&&{key:y.key,bounds:y.bounds}},"collectible"]}({dockService:i,seriesModel:o});return R({chart:e,translator:n,config:{rtl:r,enable:()=>t.tooltip.enabled(),getColorSettings:()=>a.getSettings(),style:{fontFamily:u.fontFamily},main:{key:cs.COMPONENT.TOOLTIP,getGroupByValue:d,collectibles:[...o.meta.barComponentKeys.map((e=>({key:e,type:"bar",major:d}))),...o.meta.pointComponentKeys.map((e=>({key:e,type:"point",major:d}))),...o.meta.markers.map((e=>({key:e.key,type:e.type,major:d})))],triggers:[{keys:[cs.COMPONENT.AXIS.MAJOR],collect:{from:"dimension",by:({data:e})=>e.value,filter:m},placement:g},{keys:[...o.meta.barComponentKeys,...o.meta.markerComponentKeys,`${p}-max-${f}`,`${p}-max-${h}`,`${p}-min-${f}`,`${p}-min-${h}`,`${cs.COMPONENT.BAR_OOB}-max-${f}`,`${cs.COMPONENT.BAR_OOB}-max-${h}`,`${cs.COMPONENT.BAR_OOB}-min-${f}`,`${cs.COMPONENT.BAR_OOB}-min-${h}`,`${cs.COMPONENT.DATA_OOB_MARKER}-max`,`${cs.COMPONENT.DATA_OOB_MARKER}-min`],collect:{from:"dimension",by:d,filter:m},placement:g},{keys:[...o.meta.pointComponentKeys],distance:3,collect:{from:"dimension",by:d,filter:m},placement:g}],section:({h:e,nodes:t,dataset:n,create:r,util:i})=>{const[o]=t,{title:a,description:s,measures:l}=c.isEnabled()?c.getAttributes({dataset:n,nodes:[o]}):{},u=[];a&&u.push(r.text({value:a,style:{bold:!0}})),s&&u.push(r.text({value:s}));const d=c.hideBasic();d&&!l.length&&(a||s)||u.push(r.text({value:o.data.label,style:{bold:!0}})),d||(u.push(r.color({nodes:t,property:cs.SCALE.COLOR})),u.push(...t.map((e=>{const{segment:t,end:o}=e.data,a=t||o,{key:s,field:l}=a.source;return r.measure({label:i.dataset.title(s,l),value:kI({dataset:n,data:e.data,valueData:a})})})))),l&&u.push(...l.map((e=>r.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),c.chart.isEnabled()&&(c.chart.hasLimitation()?(c.chart.destroy(),u.push(r.raw({value:c.chart.createLimitationRow()}))):u.push(r.raw({value:c.chart.createContainer({h:e})})));const{customTooltipImages:m}=o.data;return c.isEnabled()&&m&&u.push(...m.map((t=>r.raw({value:c.createImageRow({value:t,h:e})})))),u},layout:{grouping:!0,single:()=>!(!c.isEnabled()||!c.hasImages())||c.chart.isEnabled()},events:{tooltip:{beforeShow:({collectNodes:e})=>c.isEnabled()&&c.hasImages()?c.addImages({nodes:e()}):Promise.resolve(),afterShow:({nodes:e})=>{c.chart.isEnabled()&&!c.chart.hasLimitation()&&c.chart.show({nodes:e,properties:l.query.getProperties()})}},interaction:{mouseleave:()=>{c.chart.isEnabled()&&c.chart.hasAlternateState()&&c.chart.hide()}}}},legend:{keys:{tooltip:cs.COMPONENT.LEGEND_TOOLTIP,component:cs.COMPONENT.LEGEND_CATEGORICAL}}}})}const{model:II}=hm,LI=({picasso:e,chart:t,environment:m,flags:p,viewState:f,viewCache:h,actions:g,selectionService:y})=>{const v=a(),{width:b,height:x}=i(),[S,M]=n(),[C,O]=n(),w=s(),T=l(),A=c(),R=u(),P=d();r((()=>{if(!(v&&null!=t&&t.update&&m&&f&&y))return;const n=k({source:v,metaAdditionsFn:function({layout:e}){var t;const n=E(e,"qHyperCube.qMeasureInfo",[]),r=n.some((({series:e=us.NOPE_SERIES})=>Eu(e)===us.TYPE.LINE)),i=xe.continuous(e,(()=>r&&fe.isTime(!0,e))),o=!gN(E(e,"version","")),a=n.filter((({series:e=us.NOPE_SERIES})=>Eu(e)===us.TYPE.BAR)),s=a.length,l=a.filter((({series:e=us.NOPE_SERIES})=>e.axis!==us.AXIS.SECONDARY)).length,c=a.filter((({series:e=us.NOPE_SERIES})=>e.axis===us.AXIS.SECONDARY)).length,u=o?l>1||c>1:s>1,d=("grouped"!==E(e,"barGrouping.grouping")||i)&&u,m=!d&&s>1,p=o&&d&&(l>0&&c>1||l>1&&c>0),f=!(null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qLocked);return{canBeContinuous:fe.canBeContinuous(e),isDiscrete:!i,isContinuous:i,isTime:fe.isTime(i,e),isSnapshot:xe.snapshot(e),isBarSeriesStacked:d,isBarSeriesGrouped:m,isBarSeriesStackedInBothAxis:p,isGrouped:m||p,isGroupedByMeasure:m||p,isDimensionLocked:f,groupSize:p?2:s,hasLineSeries:r}}}),{options:r,translator:i}=m,{direction:o}=r,a="rtl"===o,s=function({genericObjectModel:e,layoutService:t}){const n={cube:void 0,on:!1},r=xN({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:b,height:x},rtl:a},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0,measureAxes:[{ref:"measureAxes.0",name:"minor"},{ref:"measureAxes.1",name:"minorSecondary"}]}}),c=yN({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 OI({chart:e,actions:s,componentKey:gm(i),enigmaModel:t,layoutService:n,dockService:r,viewState:o,rtl:a,itemWidths:wI,options:{axisKey:cs.COMPONENT.AXIS.MAJOR,renderer:l.renderer("svg")()}})}({chart:t,genericObjectModel:w,layoutService:n,dockService:l,seriesModel:c,viewState:f,rtl:"rtl"===m.options.direction,actions:g,picasso:e}):void 0,d=n.meta.isContinuous?II({model:w,layoutService:n,viewState:f,viewCache:h}):void 0,S=I({theme:m.theme,config:{id:"comboChart",resolve:[["object","label.value","numFontSize","12px",e=>parseInt(e,10)]]}}),C=AI({layoutService:n,dockService:l,themeService:S,flags:p}),O=WN({actions:g,appLayoutModel:A,appModel:T,chart:t,environment:m,flags:p,genericObjectModel:w,layoutService:n,picasso:e,seriesModel:c,viewState:f,styleModel:C}),D=function({layoutService:e,seriesModel:t}){const{isContinuous:n}=e.meta,r="qDimensionInfo/0",i=`${r}:numeric`,o=t.meta.primarySeries.map((e=>e.ref)),a=t.meta.secondarySeries.map((e=>e.ref)),s=n?[{key:i,from:r,override:{value:e=>e.qNum}}]:void 0;return{main:{major:r,majorNumeric:i,minorsPrimary:o,minorsSecondary:a},virtuals:s}}({layoutService:n,seriesModel:c}),q=CN({isPrimary:!0,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),z=CN({isPrimary:!1,layoutService:n,reducedModel:s,seriesModel:c,continuousModel:d,flags:p}),$=RI({layoutService:n}),_=BN({config:{measureAxesRef:"measureAxes.0",formatter:cs.FORMATTER.PRIMARY},chart:t,layoutService:n,extremumModel:q,dockService:l,seriesModel:c,themeService:S}),j=BN({config:{measureAxesRef:"measureAxes.1",formatter:cs.FORMATTER.SECONDARY},chart:t,layoutService:n,extremumModel:z,dockService:l,seriesModel:c,themeService:S}),F=HN({genericObjectModel:w,layoutService:n}),B=ks({flags:p,layout:v,app:T,model:w,picasso:e,chart:t,translator:i,localeInfo:A.qLocaleInfo,embed:P,options:r}),H=NI({chart:t,actions:g,translator:i,rtl:a,dockService:l,seriesModel:c,colorService:O,themeService:S,propertiesModel:F,custom:B}),V=ss({layoutService:n,discreteModel:u}),U=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAJOR:cs.SCALE.MAJOR,MAJOR_INNER:cs.SCALE.MAJOR_INNER,MINOR:{PRIMARY:cs.SCALE.MINOR.PRIMARY,SECONDARY:cs.SCALE.MINOR.SECONDARY}},COMPONENT:{BAR_PRIMARY:`${cs.COMPONENT.BAR}-${us.AXIS.PRIMARY}`,BAR_SECONDARY:`${cs.COMPONENT.BAR}-${us.AXIS.SECONDARY}`,AXIS:{MAJOR:cs.COMPONENT.AXIS.MAJOR,MAJOR_CONTINUOUS:cs.COMPONENT.AXIS.MAJOR_CONTINUOUS,TIME_INNER:cs.COMPONENT.AXIS.TIME_INNER,MINOR:{PRIMARY:cs.COMPONENT.AXIS.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS.MINOR.SECONDARY}},AXIS_TITLE:{MAJOR:cs.COMPONENT.AXIS_TITLE.MAJOR,MINOR:{PRIMARY:cs.COMPONENT.AXIS_TITLE.MINOR.PRIMARY,SECONDARY:cs.COMPONENT.AXIS_TITLE.MINOR.SECONDARY}}},COLLECTION:{MAIN:cs.COLLECTION.MAIN}}}}(n),W=L({picassoInstance:e,plugins:R,pluginArgs:U});M({selectionService:y,genericObjectModel:w,appModel:T,dockService:l,styleModel:C,layoutService:n,fieldModel:D,seriesModel:c,reducedModel:s,primaryExtremumModel:q,secondaryExtremumModel:z,primaryTickModel:_,secondaryTickModel:j,propertiesModel:F,colorService:O,themeService:S,appLayoutModel:A,tooltipService:H,disclaimerService:$,flags:p,...u&&{discreteModel:u},...d&&{continuousModel:d},refLineModel:V,pluginService:W})}),[v,w,T,A,m,null==t?void 0:t.update,f,y]);const[,D]=o((()=>{if(!S)return Promise.resolve();const{layoutService:e,colorService:t,reducedModel:n,primaryExtremumModel:r,secondaryExtremumModel:i,propertiesModel:o,continuousModel:a,discreteModel:s,pluginService:l,disclaimerService:c}=S,u=a?()=>{var t;a.update(e.getLayout());const n=a.initialFetch(),r=!e.meta.isSnapshot&&(null==m||null===(t=m.options)||void 0===t||null===(t=t.viewState)||void 0===t?void 0:t.zoom);return r&&f.preventSet("zoom",r),n}:()=>Promise.resolve(),d=t.initialize().then((()=>{const e=t.getSettings().field;y&&y.setBrushAliases({colorField:e}),t.custom.updateLegend()}));return Promise.all([l.initialize(),n.command.initialize(),w?o.command.initialize():Promise.resolve(),d,u(),g.scroll.attachDiscreteModel(s)]).then((()=>Promise.all([r.command.initialize(),i.command.initialize()]).then((()=>{c.initialize(),O(S)}))))}),[S]);if(D)throw D;return C};const PI={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 DI={query:{getCanScroll:()=>!0}};function qI({clearMinor:e,clearDiscrete:t,clearLegend:n}){e(),e({componentName:"minor-secondary-range-brush",eventName:"minorRange-secondary"}),t({brushName:!1}),n()}function zI({setSelectionInfo:e,event:t,components:n,clear:r}){const i=null!=n&&n.length?n.map((e=>e.key)).filter(Boolean):[];e({event:t,components:i,minorRangePrimary:"minorRange"===t,minorRange:["minorRange","minorRange-secondary"].includes(t),legendRange:"legendRange"===t,legendTap:"tap"===t&&i[0]===cs.COMPONENT.LEGEND_CATEGORICAL}),r()}function $I({chart:e,actions:t}){const i=b(),o=a(),[s,l]=n();return r((()=>{if(null==e||!e.update||!e.scale||!i)return null;const n=e.scale(cs.SCALE.MAJOR),r=D({chart:e,actions:t,selections:i,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:n,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:qI},selectionEvents:{start:zI}}});r.setLayout(o);const{destroy:a}=r;return l(r),()=>{a()}}),[i,null==e?void 0:e.update,null==e?void 0:e.scale]),r((()=>{null!=s&&s.setLayout&&o&&s.setLayout(o)}),[o]),s}const _I={version:"1.27.4",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 jI=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=Eu(n[e].qDef.series),i===us.TYPE.BAR?r[0]=1:i===us.TYPE.LINE?r[1]=1:r[2]=1;const o=["Visualizations.Descriptions.Marker","Visualizations.Descriptions.Line","Visualizations.Descriptions.ComboChart.Dimension.LineMarker","Visualizations.Descriptions.Bars","Visualizations.Descriptions.ComboChart.Dimension.BarMarker","Visualizations.Descriptions.ComboChart.Dimension.BarLine","Visualizations.Descriptions.ComboChart.Dimension.BarLineMarker"][parseInt(r.join(""),2)-1];return e.get(o)},FI=e=>(t,n)=>{let r;const i=t.qHyperCubeDef.qMeasures[n];if(i){const{type:e}=i.qDef.series;r=e===us.TYPE.LINE?"Visualizations.Descriptions.HeightLine":e===us.TYPE.BAR?"Visualizations.Descriptions.LengthBars":"Visualizations.Descriptions.ComboChart.Measure.HeightMarker"}else r=n?"Visualizations.Descriptions.HeightLine":"Visualizations.Descriptions.LengthBars";return e.get(r)};function BI(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&&Eu(null===(n=r[0].qDef)||void 0===n?void 0:n.series)===us.TYPE.LINE?e.color.mode="primary":"byDimension"===i&&r.length>1&&(e.color.mode="byMultiple")}function HI(e){const{translator:t}=e;return{dimensions:{min:1,max:1,description:jI(t),added(e,t){Cs.addCallbackCustomTooltip(t)},moved(e,t){Cs.moveCallbackCustomTooltip(t,e)},removed(e,t){Cs.removeCallbackCustomTooltip(t,e)},replaced(e,t,n,r){Cs.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:15,description:FI(t),added({qDef:e},t){var n;BI(t),null!==(n=e.series)&&void 0!==n&&n.type||(t.qHyperCubeDef.qMeasures.length>1?e.series={type:us.TYPE.LINE,axis:us.AXIS.SECONDARY}:e.series={type:us.TYPE.BAR,axis:us.AXIS.PRIMARY})},moved(e,t){BI(t)}}}}function VI(e){const t=HI(e);return{properties:_I,data:{targets:[{path:"/qHyperCubeDef",...t}]},importProperties:({exportFormat:e,initialProperties:n,hypercubePath:r})=>{const i=X.axisChart.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t,hypercubePath:r}),o="linechart"===e.properties.visualization,a=[];i.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:o?"line":"bar",axis:0,marker:"circle",markerFill:!0}),a.indexOf(e.qDef.series.axis)<0&&a.push(e.qDef.series.axis)}));const s=a.sort().shift();return i.qProperty.measureAxes[s]&&e.properties.measureAxis&&void 0!==e.properties.measureAxis.autoMinMax&&le(!0,i.qProperty.measureAxes[s],e.properties.measureAxis,{logarithmic:!1}),i},exportProperties:({propertyTree:e,hyperCubePath:t,viewDataMode:n})=>X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})}}const UI=({models:e,chart:t,viewState:n})=>{x((r=>{if(!e)return;const{layoutService:i,dockService:o,colorService:a,discreteModel:s,continuousModel:l,reducedModel:c}=e,{width:u,height:d}=o.meta.chart.size;return r.snapshotData=r.snapshotData||{},r.snapshotData.content={size:{w:u,h:d}},i.meta.isSnapshot?Promise.resolve():(r.snapshotData.content.chartData={scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)},i.meta.isDiscrete?(s.command.setSnapshotData(r),c.command.setSnapshotData(r)):l.setSnapshotData(r),a.getSnapshotData().then((e=>{r.snapshotData.content.chartData={...r.snapshotData.content.chartData,...e}})).catch((()=>{})))})),S((()=>({getViewState(){if(n&&t)return{scrollOffset:n.get("scrollOffset"),zoom:n.get("zoom"),legendScrollOffset:Se(t,cs.COMPONENT.LEGEND_CATEGORICAL)}}})),[n,t])};const WI=(e,t,n,r)=>{const i=`${t}.fontFamily`,o=`${t}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e}.fontFamily`,options:()=>n.getOptions(i),defaultValue:()=>n.getDefaultValue(i)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e}.fontSize`,options:()=>n.getOptions(o),defaultValue:()=>n.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:r.getStyle("object.comboChart",t,"color")})}}}}};function YI(e,t,n){const r=q({theme:t,translator:n,flags:e,config:{id:"comboChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]}});if(null!=e&&e.isEnabled("SENSECLIENT_IM_311_STYLINGPANEL_COMBOCHART"))return{component:"styling-panel",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2431_COMBOCHART_BG"),items:{barSection:{translation:"Visualizations.Descriptions.Bars",component:"accordion",items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue:.7,schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.barlabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"bar",items:{...WI("bar.label.value","label.value",r,t),contrastColor:{component:"checkbox",type:"boolean",ref:"bar.label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0}},lineSection:{translation:"Visualizations.Descriptions.Lines",component:"accordion",items:{dataPointSection:{translation:"LayerStyleEditor.style.dataPointSize",component:"panel-section",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{translation:"Line options",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"Thickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"Type",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"Curve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}},labelValueSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.linelabelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"line",items:WI("line.label.value","label.value",r,t)}}}:void 0}},axisTitleSection:null!=e&&e.isEnabled("CLIENT_IM_3050")?{translation:"properties.axis.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"axis",items:WI("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:WI("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:WI("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:WI("legend.label","legend.label",r,t)}}}:void 0}};const i={component:"dropdown",type:"string",expression:"optional",baseRef:"style.strokeWidth",translation:"LayerStyleEditor.style.strokeWidth",show:!0,defaultValue:"none",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}]},o={component:"color-picker",type:"object",baseRef:"style.strokeColor",translation:"LayerStyleEditor.style.strokeColor",dualOutput:!0,show:e=>"none"!==E(e,`${((e,t)=>{let n=-1;for(let r=0;r<e.length;r++)if(e[r].key===t){n=r;break}return n})(e,"bar")}.${i.baseRef}`),defaultValue:()=>({index:-1,color:"#205891"})},a={component:"slider",type:"number",expression:"optional",baseRef:"style.width",translation:"LayerStyleEditor.style.barWidth",show:(e,t,n)=>{const r=t.getMeasures().some((e=>Eu(e.qDef.series)===us.TYPE.LINE));return!xe.continuous(n.layout,r&&fe.isTime(!0,n.layout))},defaultValue:.7,min:.01,max:1,step:.01},s={component:"slider",type:"number",expression:"optional",baseRef:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",show:!0,defaultValue:6,min:3,max:20,step:1},l={component:"slider",type:"number",expression:"optional",baseRef:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",show:!0,defaultValue:1,min:1,max:5,step:1},c={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineType",translation:"LayerStyleEditor.style.lineType",show:!0,defaultValue:"solid",options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}]},u={component:"dropdown",type:"string",expression:"optional",baseRef:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",show:!0,defaultValue:"linear",options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}]};return{component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:["bar","line"],ref:"components",defaultValue:[],defaultValues(e){const t="grouped"===e.barGrouping.grouping,n=e.qHyperCubeDef.qMeasures.filter((e=>Eu(e.qDef.series)===us.TYPE.BAR)).length,r=t&&n>1;return[{key:"bar",style:{strokeWidth:i.defaultValue,strokeColor:o.defaultValue(),width:r?.9:.7}},{key:"line",style:{dataPointSize:s.defaultValue,lineThickness:l.defaultValue,lineType:c.defaultValue,lineCurve:u.defaultValue}}]},items:{list:{type:"items",component:"expandable-items",items:{bar:{type:"items",translation:"Visualizations.Descriptions.Bar",expanded:!0,styleKey:"bar",items:{barStrokeWidth:i,barStrokeColor:o,barWidth:a}},line:{type:"items",translation:"Visualizations.Descriptions.Line",expanded:!0,styleKey:"line",items:{dataPointSize:s,lineThickness:l,lineType:c,lineCurve:u}}}}}}}const GI={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"combochart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.ComboChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{barsSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barsHeader:{component:"header",translation:"Visualizations.Descriptions.Bars"},outlineSection:{component:"items",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891"},width:"auto",component:"color-picker"}}}}},widthSection:{component:"items",items:{barWidth:{component:"items",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:.7}}}}}}}}},linesSection:{component:"items",items:{wrapperItem:{component:"items",items:{linesHeader:{component:"header",translation:"Visualizations.Descriptions.Lines"},dataPointSection:{component:"items",items:{dataPointSize:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.dataPointSize",translation:"LayerStyleEditor.style.dataPointSize",component:"slider",min:3,max:20,step:1,defaultValue:6,schemaIgnore:!0}}}}},lineSection:{component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"line",items:{size:{ref:"style.lineThickness",translation:"LayerStyleEditor.style.lineThickness",component:"slider",defaultValue:1,min:1,max:5,step:1,schemaIgnore:!0},type:{ref:"style.lineType",translation:"LayerStyleEditor.style.lineType",component:"dropdown",width:"auto",grouped:!0,options:[{value:"solid",translation:"LayerStyleEditor.style.solid"},{value:"dashed",translation:"LayerStyleEditor.style.dashed"}],defaultValue:"solid",schemaIgnore:!0},curve:{ref:"style.lineCurve",translation:"LayerStyleEditor.style.lineCurve",component:"dropdown",width:"auto",grouped:!0,options:[{value:"linear",translation:"LayerStyleEditor.style.linear"},{value:"monotone",translation:"LayerStyleEditor.style.monotone"}],defaultValue:"linear",schemaIgnore:!0}}}}}}}}},optionsSection:{component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollStartPos:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1}}}}}}};function XI(e){const t=E(e,"qHyperCube.qMeasureInfo",[]).some((({series:e=us.NOPE_SERIES})=>Eu(e)===us.TYPE.LINE));return xe.continuous(e,(()=>t&&fe.isTime(!0,e)))}function KI(e){var t;return!(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t||!t.on)}function JI(e){var t,n;return KI(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 ZI(e){var t;return KI(e)&&"byExpression"===(null===(t=e.qDef)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.mode)}function QI(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 eL(e){return ZI(e)?[{qExpression:e.qDef.color.colorExpression,id:"colorByMeasureExpression"}]:[]}function tL(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?[...QI(n),...eL(e)]:eL(e)}(t,n,e)))}function nL(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||XI(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 Eu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER}},i={ref:"qDef.series.markerFill",translation:"properties.series.fill",type:"boolean",defaultValue:!0,show(e){var t;return Eu(null===(t=e.qDef)||void 0===t?void 0:t.series)===us.TYPE.MARKER&&!["line"].includes(e.qDef.series.marker)}},o={ref:"qDef.color.mode",type:"string",component:"dropdown",options:[{value:"primary",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],defaultValue:"primary",show:(...e)=>KI(...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:JI},attributeExpression:{type:"string",component:"expression",expressionType:"measure",schemaIgnore:!0,ref:"qDef.color.colorExpression",translation:"Common.Expression",show:ZI}}}}}}}}}}}}const rL=10,iL=!0;function oL(e,t,n){let r;const i=n||0;var o,a;t?r=t.getMeasureLayouts():r=null!==(o=null==e||null===(a=e.qHyperCubeDef)||void 0===a?void 0:a.qMeasures)&&void 0!==o?o:[];return r.filter((e=>{const{series:t}=e||{};return 0===i?_A(t,iL):!_A(t,iL)}))}function aL(e,t){return t.getMeasures().filter((e=>Eu(e.qDef.series)===us.TYPE.LINE)).length>0}function sL(e,t,n){const r=t.getMeasures().filter((e=>Eu(e.qDef.series)===us.TYPE.BAR));return r.filter((e=>e.qDef.series.axis!==us.AXIS.SECONDARY)).length>n||r.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>n}const lL=(e,t,n,r)=>{const i="vertical"===t.layout.orientation||XI(t.layout)?"y":"x",o=oL(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 cL(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=>tL(e)},expressionLabel:{change:null},disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>KI(e)))}}},u=e=>!!e&&(e.coloring&&e.coloring.baseColor&&e.coloring.baseColor.color?e.coloring.baseColor:!(!e.baseColor||!e.baseColor.color)&&e.baseColor);const d=(e,t)=>!E(e,"color.auto")&&"primary"===E(e,"color.mode")&&!((e=>E(e,"layout.qHyperCube.qMeasureInfo",[]).filter((e=>!!u(e))).length>0)(t)&&"measure"===E(e,"color.useBaseColors")||function(e){return E(e,"layout.qHyperCube.qDimensionInfo",[]).filter((e=>!!u(e))).length>0}(t)&&"dimension"===E(e,"color.useBaseColors")),m=(e,t)=>{var n,r;return e.qHyperCubeDef.qMeasures.some((e=>KI(e)))||!o.isEnabled("SIMPLE_PROPERTIES_LIBRARY_COLOR")&&!(null!=e&&null!==(n=e.color)&&void 0!==n&&n.auto||"primary"!==(null==e||null===(r=e.color)||void 0===r?void 0:r.mode)||d(e,t))},p={items:{disclaimer:{show:(e,t)=>m(e,t),reset:e=>{e.qHyperCubeDef.qMeasures.forEach((e=>{var t;E(t=e,"qDef.color.on",void 0)&&M(t,"qDef.color.on",!1)}))}},simpleItems:{show:(e,t)=>!m(e,t)}}},f={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},barLabels:{component:"checkbox",ref:"dataPoint.showBarLabels",type:"boolean",translation:"Simple.Label.Bar",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&sL(0,t,0)},lineLabels:{component:"checkbox",ref:"dataPoint.showLineLabels",type:"boolean",translation:"Simple.Label.Line",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&aL(0,t),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.show&&r.dataPoint.showLineLabels,set(e,t,n,r,i){i.dataPoint.showLineLabels=e,i.dataPoint.show=e}},reset(e){M(e,"dataPoint.show",!1),M(e,"dataPoint.showLineLabels",!1)}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},primaryMeasureTitle:{component:"checkbox",ref:"measureAxes.0.show",type:"string",label:(e,t)=>i.get(oL(e,t,1).length>0?"Simple.Label.PrimaryMeasure.Hide":"Simple.Label.Measure.Hide"),defaultValue:"all",show:(e,t)=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length&&oL(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&&oL(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"}}}}}}},h={uses:"settings",items:{simpleStyling:GI,simpleLabels:f,presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{comboStyling:YI(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)=>sL(0,t,1)&&!XI(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)=>XI(n.layout),convertFunctions:(g="vertical",{get:(e,t,n)=>XI(n.layout)?g:e(t.type),set(e,t,n,r){t(n.type,XI(r.layout)?g:e,g)}})},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)=>!XI(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)=>aL(0,t)},dataPointSettings:{type:"items",grouped:!1,snapshot:{tid:"property-dataPoint"},show:(e,t)=>aL(0,t),items:{dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",defaultValue:!1},showLineDataPointLabels:{ref:"dataPoint.showLineLabels",translation:"properties.dataPoints.linelabelmode",type:"boolean",component:"switch",defaultValue:!1,show:e=>e.dataPoint&&e.dataPoint.show,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},showBarLabels:{ref:"dataPoint.showBarLabels",type:"boolean",translation:"properties.dataPoints.barlabelmode",component:"switch",show:(e,t)=>sL(0,t,0),defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:c,simpleColors:p,legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",label(e,t){const n="vertical"===t.layout.orientation||XI(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||XI(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)=>!XI(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:rL,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=rL: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)=>lL(e,t,i,0),show:(e,t)=>oL(e,t,0).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>lL(e,t,i,0),show:(e,t)=>oL(e,t,0).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.0.show",snapshot:{title:"properties.axis.primary",tid:"property-primary-axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&_A(null==e?void 0:e.series,iL)))}}},dock:{ref:"measureAxes.0.dock",show:(e,t)=>"none"!==e.measureAxes[0].show&&oL(e,t,0).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||XI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.0.spacing",show:(e,t)=>e.measureAxes[0]&&"none"!==e.measureAxes[0].show&&oL(e,t,0).length>0}}},minMax:{items:{autoMinMax:{ref:"measureAxes.0.autoMinMax"},minMax:{ref:"measureAxes.0.minMax",defaultValue:"min",show:e=>!e.measureAxes[0].autoMinMax},min:{ref:"measureAxes.0.min",show:e=>["min","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max},max:{ref:"measureAxes.0.max",show:e=>["max","minMax"].includes(e.measureAxes[0].minMax)&&!e.measureAxes[0].autoMinMax,invalid:e=>"minMax"===e.measureAxes[0].minMax&&e.measureAxes[0].min>=e.measureAxes[0].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>oL(e,t,0).length>0,readOnly:e=>!(e.measureAxes[0].autoMinMax||"min"===e.measureAxes[0].minMax&&0===e.measureAxes[0].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[0])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.0.autoMinMax",!1),M(i,"measureAxes.0.minMax","min"),M(i,"measureAxes.0.min",0)):M(i,"measureAxes.0.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},secondaryMeasureAxis:{uses:"axis.measureAxis",label:(e,t)=>lL(e,t,i,1),show:(e,t)=>oL(e,t,1).length>0,items:{axis:{items:{measureAxisTitle:{component:"header",type:"string",label:(e,t)=>lL(e,t,i,1),show:(e,t)=>oL(e,t,1).length>0,classification:{section:"axis",tags:["simple"],exclusive:!0}},show:{ref:"measureAxes.1.show",snapshot:{title:"properties.axis.secondary",tid:"property-secondary-Axis",show(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qMeasureInfo)||[]).some((e=>(null==e?void 0:e.series)&&!_A(null==e?void 0:e.series,iL)))}}},dock:{ref:"measureAxes.1.dock",defaultValue:"far",show:(e,t)=>"none"!==e.measureAxes[1].show&&oL(e,t,1).length>0,options(e,t){let n="Common.Bottom",r="Common.Top";return("vertical"===t.layout.orientation||XI(t.layout))&&(n=e.yMirrorMode?"properties.dock.right":"properties.dock.left",r=e.yMirrorMode?"properties.dock.left":"properties.dock.right"),[{value:"near",translation:n},{value:"far",translation:r}]}},spacing:{ref:"measureAxes.1.spacing",show:(e,t)=>e.measureAxes[1]&&"none"!==e.measureAxes[1].show&&oL(e,t,1).length>0}}},minMax:{type:"items",items:{autoMinMax:{ref:"measureAxes.1.autoMinMax"},minMax:{ref:"measureAxes.1.minMax",defaultValue:"min",show:e=>!e.measureAxes[1].autoMinMax},min:{ref:"measureAxes.1.min",show:e=>["min","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max},max:{ref:"measureAxes.1.max",show:e=>["max","minMax"].includes(e.measureAxes[1].minMax)&&!e.measureAxes[1].autoMinMax,invalid:e=>"minMax"===e.measureAxes[1].minMax&&e.measureAxes[1].min>=e.measureAxes[1].max}}},startAt:{type:"string",component:"dropdown",translation:"properties.axis.startAt",show:(e,t)=>oL(e,t,1).length>0,readOnly:e=>!(e.measureAxes[1].autoMinMax||"min"===e.measureAxes[1].minMax&&0===e.measureAxes[1].min),options:[{value:"zero",translation:"properties.axis.startAt.zero"},{value:"lowest",translation:"properties.axis.startAt.lowest"}],defaultValue:"lowest",convertFunctions:{get(e,t,n,r){const{autoMinMax:i,minMax:o,min:a}=(null==r?void 0:r.measureAxes[1])||{};return!0===i?"lowest":i||"min"!==o||0!==a?e(t.type):"zero"},set(e,t,n,r,i){"zero"===e?(M(i,"measureAxes.1.autoMinMax",!1),M(i,"measureAxes.1.minMax","min"),M(i,"measureAxes.1.min",0)):M(i,"measureAxes.1.autoMinMax",!0)}},classification:{section:"axis",tags:["simple"],exclusive:!0}}}},tooltips:{uses:"tooltip"}}};var g;o.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(h.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 y={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!XI(n.layout)}}}},measures:nL(e)}},v={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=>_A(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,iL)},secondaryMeasureAxisRefLines:{uses:"reflines",ref:"refLine.refLines2",translation:"properties.secondaryMeasureAxisReferenceLines",title:{translation:"properties.secondaryMeasureAxisReferenceLines.tooltip"},show:e=>function(e,t){return e.some((e=>!_A(e.qDef.series,t)))}(e.qHyperCubeDef.qMeasures,iL)},dimRefLines:{uses:"dimReflines"}}};return{type:"items",component:"accordion",items:{data:y,sorting:{uses:"sortingWithDisclaimer"},addons:v,settings:h}}}function uL(e){return e.qHyperCubeDef.qMeasures.filter((e=>Eu(e.qDef.series)===us.TYPE.LINE)).length>0}function dL(){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)=>uL(e)||!XI(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=>Eu(e.qDef.series)===us.TYPE.BAR));return t?n.filter((e=>e.qDef.series.axis===us.AXIS.PRIMARY)).length>1||n.filter((e=>e.qDef.series.axis===us.AXIS.SECONDARY)).length>1:n.length>1}(e,!gN(null!==(n=null==e?void 0:e.version)&&void 0!==n?n:""))&&!XI(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)=>!XI(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=>uL(e)&&e.qHyperCubeDef.qMeasures.length>1},dataPoints:{ref:"dataPoint.show",translation:"properties.dataPoints.showDataPoints",type:"boolean",show:e=>uL(e)}}},color:{uses:"color",items:{disclaimer:{component:"text",translation:"properties.color.colorOnMeasureDisclaimer",style:"hint",show:e=>e.qHyperCubeDef.qMeasures.some((e=>KI(e)))}}}}}}const mL={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 pL(e,t,n,r,i){const{axis:o,icon:a,tid:s,translation:l}=mL[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 fL(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"});pL(r,o,t,n,"bar"),pL(r,o,t,n,"line"),pL(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 hL(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 gL=e=>!!(e&&e.qHyperCube.qSize.qcy>0);function yL(e){return{definition:cL(e),softDefinition:dL(),support:{snapshot:gL,export:!0,exportData:!0,sharing:!1,viewData:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},getDropMeasureOptions:fL,extendMetrics:hL,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:HI(e),defaultPropertyValues:a,hypercubePath:i,extension:r});return function(e,t,n){const r="linechart"===n.properties.visualization,i=[];e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qDef.series||(e.qDef.series={type:r?"line":"bar",axis:0,marker:"circle",markerFill:!0}),i.indexOf(e.qDef.series.axis)<0&&i.push(e.qDef.series.axis)}));const o=i.sort().shift();e.qProperty.measureAxes[o]&&n.properties.measureAxis&&void 0!==n.properties.measureAxis.autoMinMax&&le(!0,e.qProperty.measureAxes[o],n.properties.measureAxis,{logarithmic:!1}),tL(e.qProperty)}(s,0,t),s},exportProperties:(e,t,n)=>{!function(e){e.qProperty.qHyperCubeDef.qMeasures.forEach((e=>{e.qAttributeExpressions=[]}))}(e);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>e.qExtendsId?e:(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(kt),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(kt)}(e),function(e){return gN(e.version)&&(e.qHyperCubeDef.qMeasures.forEach((e=>{const{qDef:t}=e;void 0===t.series&&(t.series=us.NOPE_SERIES),void 0===t.series.type&&(t.series.type=us.NOPE_SERIES.type),void 0===t.series.axis&&(t.series.axis=t.series.type===us.TYPE.BAR?us.AXIS.PRIMARY:us.AXIS.SECONDARY),t.series.type===us.TYPE.BAR&&t.series.axis===us.AXIS.SECONDARY&&(t.series.axis=us.AXIS.PRIMARY)})),e.version=hN.BAR_IN_SECONDARY_AXIS),e}(e))}}}}}}));
|