@nebula.js/sn-funnel-chart 1.9.18 → 1.9.20
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/api.md +1 -1
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +4 -4
- package/dist/sn-funnel-chart.js +5 -5
- package/dist/sn-funnel-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-funnel-chart-ext/dist/sn-funnel-chart.js +5 -5
- package/sn-funnel-chart-ext/sn-funnel-chart.qext +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
|
-
* @nebula.js/sn-funnel-chart v1.9.
|
3
|
-
* Copyright (c)
|
2
|
+
* @nebula.js/sn-funnel-chart v1.9.20
|
3
|
+
* Copyright (c) 2025 QlikTech International AB
|
4
4
|
* Released under the MIT license.
|
5
5
|
*/
|
6
6
|
|
7
|
-
System.register(["picasso.js","picasso-plugin-q","qlik-chart-modules","@nebula.js/stardust"],(function(e){"use strict";var t,n,r,i,a,o,l,s,u,c,h,d,f,g,p,m,y,v,b,w,x,M,S,T,k,D;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.fontResolver,i=e.getValue,a=e.setValue,o=e.colorService,l=e.selectionService,s=e.cache,u=e.pluginService,c=e.themeService},function(e){h=e.useElement,d=e.useSelections,f=e.useModel,g=e.useApp,p=e.useTranslator,m=e.useOptions,y=e.useState,v=e.useEffect,b=e.useStaleLayout,w=e.useTheme,x=e.useConstraints,M=e.useRect,S=e.usePlugins,T=e.useAppLayout,k=e.usePromise,D=e.onTakeSnapshot}],execute:function(){e("default",(function(e){!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(R).forEach((t=>{e.add(R[t])}))}}(e.translator);const r=t();r.use(n),r.component("funnel",q);const{flags:i}=e;return{ext:W(e),qae:{properties:{initial:j},data:{targets:B}},component(){!function({picasso:e,flags:t}){const n=b(),r=w(),i=x(),a=M(),o=S(),l=T().qLocaleInfo,[s,h,d,f]=Pi({picasso:e,layout:n}),g=m(),p=()=>{const e=s.element.clientWidth!==f.get("width")||s.element.clientHeight!==f.get("height");return!1!==g.chartAnimations&&!e&&!ae.propertiesHaveChanged({viewCache:f,layout:n})},[y]=k((()=>{if(!h)return Promise.resolve();const t=({getUseBaseColors:e})=>({theme:r,colorProps:{...n.color,useBaseColors:e(n)},layout:n,hc:n.qHyperCube}),i=function(e){const t={layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{FUNNEL:"fun",FUNNEL_LABELS:"funnel-labels",DIMENSION_TITLE:"dimension-title"}}};return t}(n),a=u({picassoInstance:e,plugins:o,pluginArgs:i});return Promise.all([h.initialize({createConfig:t}),a.initialize()]).then((()=>a))}),[n,h]);v((()=>{if(!s||!h||!y)return;const e=[{type:"q",key:"qHyperCube",data:n.qHyperCube,config:{localeInfo:l}},...h.getData()],a=c({theme:r,config:{id:"funnelChart"}}),o=function({layout:e,themeService:t}){const n=t.getStyles(),r=t=>{var n,r;return null!==(n=null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)))&&void 0!==n?n:void 0};return{axis:{title:{getStyle:()=>{var e,t,i,a,o,l;return{fontFamily:null!==(e=null===(t=r("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:n.axis.title.fontFamily,fontSize:null!==(i=null===(a=r("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.fontSize)&&void 0!==i?i:n.axis.title.fontSize,fill:null!==(o=null===(l=r("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.title)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a,o,l;return{fontSize:null!==(e=null===(t=r("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?void 0:t.fontSize)&&void 0!==e?e:n.axis.label.name.fontSize,fontFamily:null!==(i=null===(a=r("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.name)||void 0===a?void 0:a.fontFamily)&&void 0!==i?i:n.axis.label.name.fontFamily,fill:null!==(o=null===(l=r("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.name)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.label.name.color}}}},label:{value:{getStyle:()=>{var e,t,i,a,o,l,s,u;return{fontSize:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.label.value.fontSize,fontFamily:null!==(i=null===(a=r("label"))||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a.fontFamily)&&void 0!==i?i:n.label.value.fontFamily,fill:null!==(o=null===(l=r("label"))||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.label.value.color,useContrastColor:null===(s=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.useContrastColor)||void 0===s||s}}}}}}({layout:n,themeService:a}),u=function({flags:e,layout:t,constraints:n,colorService:r,themeService:i,styleModel:a,pluginService:o,animationsEnabled:l}){const s=function(e){const t={...e.getScales()};return t}(r),u=r.getPalettes(),c=function({layout:e,constraints:t,colorService:n,animationsEnabled:r}){const i=n.getDatumProps(),a=n.getColor(),o={type:"funnel",key:"fun",data:{extract:{field:"qDimensionInfo/0",props:{num:{field:"qMeasureInfo/0"},...i}}},brush:t.select||t.active?{}:{trigger:[{contexts:["selection"],data:[""]}],consume:[{context:"selection",filter:e=>"section"===e.tag,style:{inactive:{opacity:.3}}}]},settings:{num:{ref:"num"},fill:a,mode:e.funnel.mode},animations:{enabled:r,isMainComponent:!0,trackBy:e=>`${e.tag}: ${e.data.value}`}};return o}({layout:t,constraints:n,colorService:r,animationsEnabled:l}),h=[c,Ni(e,t,i,l,a),Ei(e,t,a)];return{palettes:u,scales:s,components:o.extendComponents(h),formatters:Li()}}({flags:t,layout:n,constraints:i,colorService:h,themeService:a,styleModel:o,pluginService:y,animationsEnabled:p});s.update({data:e,settings:u}),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight),ae.cacheProperties({viewCache:f,layout:n})}),[s,h,r.name(),y,i]),v((()=>{s&&(s.update(),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight))}),[a.width,a.height]),v((()=>{d&&d.setLayout(n)}),[n]),D((e=>h.getSnapshotData().then((t=>(e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData=t,e))).catch((()=>e))))}({picasso:r,flags:i})}}}));var R={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const C={fill:"steelblue",num:1},z=.9,N=150,E=(e,t,n)=>{let r=0,i=0,a=0,o={},l=0;if("labelCenter"===e)r=t.bottomLeft.x,i=t.topRight.y,a=t.bottomRight.x-t.bottomLeft.x,l=t.bottomRight.y-t.topRight.y,o={share:n.share,fill:n.fill};else{const e=180/Math.PI*Math.atan((t.bottomRight.y-t.topRight.y)/(t.topRight.x-t.bottomRight.x));r=e<15&&e>=0?t.topRight.x:e>-15&&e<0?t.bottomRight.x:e<-15?(t.bottomRight.x-t.topRight.x)/2+t.topRight.x+15:(t.topRight.x-t.bottomRight.x)/2+t.bottomRight.x+15,i=t.topRight.y,a=t.width-r,l=t.bottomRight.y-t.topRight.y,o={fill:n.fill}}return{tag:e,type:"rect",x:r,y:i,width:a,height:l,data:n.data,desc:o,fill:"none"}},L=(e,t)=>{const n=(e=>{const t=(e=>{let t=0;return e.forEach((e=>{e.num>t&&(t=e.num)})),t})(e);let n=0;return e.slice().reverse().map((e=>{const r={datum:e,s:n/t,e:e.num/t};return n=e.num,r})).reverse()})(e),r=t.width*z,i=t.height*z,a=(t.width-r)/2,o=(t.height-i)/2,l=r-(r>N&&i>N?100:0),s=(i-1*(n.length-1))/n.length,u=[];return n.forEach(((e,r)=>{const i=(c=e.e,h=r<n.length-1?e.s:e.e,[.5-.5*c,.5+.5*c,.5+.5*h,.5-.5*h]).map((e=>Math.round(e*l+a)));var c,h;const d=s*r+1*r+o,f={bottomRight:{x:i[2],y:Math.round(d+s)},bottomLeft:{x:i[3],y:Math.round(d+s)},topRight:{x:i[1],y:Math.round(d)},topLeft:{x:i[0],y:Math.round(d)},width:t.width},g=`M${f.topLeft.x},${f.topLeft.y} L${f.topRight.x},${f.topRight.y} ${f.bottomRight.x},${f.bottomRight.y} ${f.bottomLeft.x},${f.bottomLeft.y}Z`;u.push({tag:"section",type:"path",d:g,data:e.datum.data,fill:e.datum.fill});const p={share:e.e,fill:e.datum.fill,data:e.datum.data};s>12&&(f.bottomRight.x-f.bottomLeft.x>32&&u.push(E("labelCenter",f,p)),u.push(E("labelLeft",f,p)))})),u},P=(e,t,n,r)=>(r-e)/r*(t-n)+n,$=(e,t,n)=>{const r=e.filter((e=>"NaN"!==e.num&&e.num>0)),i=r.length,a=n.width*z,o=n.height*z,l=Math.round((n.width-a)/2),s=Math.round((n.height-o)/2),u=a-(a>N&&o>N?100:0),c=o-1*(i-1),h=[],d=r[0].data.num.value;let f=s;return r.forEach(((e,r)=>{const i=t[r]*c,a=Math.round(P(f-s,u,.2*u,o)/2),g=Math.round(P(f-s+i,u,.2*u,o)/2),p=l+Math.round(u/2),m={bottomRight:{x:p+g,y:Math.round(f+i)},bottomLeft:{x:p-g,y:Math.round(f+i)},topRight:{x:p+a,y:f},topLeft:{x:p-a,y:f},width:n.width},y=`M${m.topLeft.x},${m.topLeft.y} L${m.topRight.x},${m.topRight.y} ${m.bottomRight.x},${m.bottomRight.y} ${m.bottomLeft.x},${m.bottomLeft.y}Z`;h.push({tag:"section",type:"path",d:y,data:e.data,fill:e.fill});const v={share:e.data.num.value/d,fill:e.fill,data:e.data};i>2&&(m.bottomRight.x-m.bottomLeft.x>32&&h.push(E("labelCenter",m,v)),h.push(E("labelLeft",m,v))),f+=i+1})),h},U=(e,t,n)=>{const r=e.filter((e=>"NaN"!==e.num&&e.num>0));if(r&&r.length>0)switch(t){case"WIDTH":default:return L(r,n);case"ORDER":return $(r,r.map((()=>1/r.length)),n);case"HEIGHT":return $(r,(e=>{const t=e.reduce(((e,t)=>e+t.data.num.value),0);return e.map((e=>e.data.num.value/t))})(r),n);case"AREA":return $(r,((e,t,n)=>{const r=e.reduce(((e,t)=>e+t.data.num.value),0),i=t.width*z,a=t.height*z,o=i*n,l=a*(i+o)/2,s=(i-o)/2/a,u=[];let c=0;for(let t=e.length-1;t>=0;t--){const n=e[t].data.num.value/r,i=2*s*c+o,h=-i/(2*s)+Math.sqrt(i*i/(4*s*s)+n*l/s);u[t]=h/a,c+=h}return u})(r,n,.2),n)}return[]};var q={require:["resolver"],defaultSettings:{settings:{},data:{},style:{item:"$shape"}},render({data:e}){const t=this.resolver.resolve({data:e,defaults:{...C,...this.style.item},settings:this.settings.settings});return U(t.items,this.settings.settings.mode,this.rect)}};const j={version:"1.9.18",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},dataPoint:{auto:!0,labelMode:"share"},footnote:"",funnel:{mode:"WIDTH"},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInterColumnSortOrder:[],qInitialDataFetch:[{qWidth:2,qHeight:5e3}],qSuppressMissing:!0,qSuppressZero:!1},showDimensionTitle:!0,showTitles:!0,subtitle:"",title:""};function I(e,t,n){const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.funnelChart",e,"color")})}}}}}function F(e,t,n){const i=r({theme:e,translator:n,flags:t,config:{id:"funnelChart",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",show:!0,chartType:"funnelchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.FunnelChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{axisTitleSection:{component:"panel-section",label:"Dimension title",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.title",i,e)}}},labelNameSection:{component:"panel-section",label:"Dimension value label",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.label.name",i,e)}}},labelValueSection:{component:"panel-section",label:"Value Label",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...I("label.value",i,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}}}}const O={uses:"sorting"},H=(e,t,n)=>{var r;const i=null==n||null===(r=n.sense)||void 0===r?void 0:r.theme;return{uses:"settings",items:{presentation:{type:"items",label:"Presentation",grouped:!0,items:{...(null==t?void 0:t.isEnabled("SENSECLIENT_IM_4897_VIZBUNDLE_STYLING"))&&{funnelStyling:F(i,t,e)},funnelmode:{ref:"funnel.mode",label:"Funnel Mode",type:"string",component:"dropdown",options:[{value:"AREA",label:"Area"},{value:"HEIGHT",label:"Height"},{value:"WIDTH",label:"Width"},{value:"ORDER",label:"Ordering"}],defaultValue:"WIDTH"},dimensionTitle:{ref:"showDimensionTitle",type:"boolean",component:"switch",label:"Dimension title",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",label:"Value labels",component:"switch",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",label:"None"},{value:"share",label:"Share"},{value:"value",label:"Values"}],defaultValue:"share",show:e=>!e.dataPoint.auto}}},colorsAndLegend:{uses:"colorsAndLegend",translation:"Colors",items:{colors:{items:{colorByLabel:{show:!1},expressionLabel:{show:!1}}},legend:{show:!1}}}}}},_={uses:"data",items:{dimensions:{uses:"dimensions",items:{others:{items:{suppressOther:{defaultValue:!0,show:!1}}}},disabledRef:""},measures:{uses:"measures",disabledRef:""}}};function A({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:_,sorting:O,settings:H(e,t,n)}}}function W(e){return{definition:A(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1},importProperties:null,exportProperties:null}}const B=[{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:()=>"Segments"},measures:{min:1,max:1,description(e){switch(e.funnel.mode){case"WIDTH":return"Width";case"AREA":return"Area";case"HEIGHT":return"Height";case"ORDER":return"Order";default:return""}},added(e,t){2===t.qHyperCubeDef.qInterColumnSortOrder.length&&1!==t.qHyperCubeDef.qInterColumnSortOrder[0]&&(t.qHyperCubeDef.qInterColumnSortOrder=[1,0])}}}];function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y=Object.prototype.hasOwnProperty,J=Object.prototype.toString,K=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,G=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===J.call(e)},X=function(e){if(!e||"[object Object]"!==J.call(e))return!1;var t,n=Y.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Y.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Y.call(e,t)},Q=function(e,t){K&&"__proto__"===t.name?K(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ee=function(e,t){if("__proto__"===t){if(!Y.call(e,t))return;if(Z)return Z(e,t).value}return e[t]},te=function e(){var t,n,r,i,a,o,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=ee(l,n),l!==(i=ee(t,n))&&(c&&i&&(X(i)||(a=G(i)))?(a?(a=!1,o=r&&G(r)?r:[]):o=r&&X(r)?r:{},Q(l,{name:n,newValue:e(c,o,i)})):void 0!==i&&Q(l,{name:n,newValue:i}));return l},ne=V(te),re={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 ie(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:o,qStackedDataPages:l,qTreeDataPages:s,...u}=t,c=ne(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:h}=re;return h.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&a(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&a(e,n,null)}))}})),c}var ae={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var a;if("line"===i.type)return null!==(a=i.tickValue)&&void 0!==a?a:"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:a,currentRect:o,previousRect:l})=>{const s=o.x-l.x,u=o.y-l.y,c=o.width-l.width,h=o.height-l.height;e?("left"===i&&a.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||a.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=o.y,e.y2=e.y1+o.height):(Math.round(e.y1)<o.y||e.y1>o.y+o.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<o.y||e.y>o.y+o.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||a.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=o.x,e.x2=e.x1+o.width):(Math.round(e.x1)<o.x||e.x1>o.x+o.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<o.x||e.x>o.x+o.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?a.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=s,e.x2-=s):"text"===e.type&&(e.x-=s)})):n||r?a.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=s,e.x2+=s+c)})):a.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+h)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,a=t.width-n.width,o=t.height-n.height;let l=-r,s=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(l=t.width);break;case"left":a<0&&(l=-n.width);break;case"top":o<0&&(s=-n.height);break;case"bottom":i>0&&(s=t.height)}switch(e.type){case"text":case"rect":e.x+=l,e.y+=s;break;case"circle":e.cx+=l,e.cy+=s;break;case"path":e.transform=`translate(${l}, ${s})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=ie(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=ie(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function oe(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 se(){}var ue=.7,ce=1/ue,he="\\s*([+-]?\\d+)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,pe=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),me=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),ye=new RegExp(`^rgba\\(${he},${he},${he},${de}\\)$`),ve=new RegExp(`^rgba\\(${fe},${fe},${fe},${de}\\)$`),be=new RegExp(`^hsl\\(${de},${fe},${fe}\\)$`),we=new RegExp(`^hsla\\(${de},${fe},${fe},${de}\\)$`),xe={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 Me(){return this.rgb().formatHex()}function Se(){return this.rgb().formatRgb()}function Te(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ge.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ke(t):3===n?new Ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?De(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?De(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=pe.exec(e))?new Ce(t[1],t[2],t[3],1):(t=me.exec(e))?new Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?De(t[1],t[2],t[3],t[4]):(t=ve.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=be.exec(e))?$e(t[1],t[2]/100,t[3]/100,1):(t=we.exec(e))?$e(t[1],t[2]/100,t[3]/100,t[4]):xe.hasOwnProperty(e)?ke(xe[e]):"transparent"===e?new Ce(NaN,NaN,NaN,0):null}function ke(e){return new Ce(e>>16&255,e>>8&255,255&e,1)}function De(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ce(e,t,n,r)}function Re(e){return e instanceof se||(e=Te(e)),e?new Ce((e=e.rgb()).r,e.g,e.b,e.opacity):new Ce}function Ce(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}function Ne(){const e=Ee(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Ee(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function $e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qe(e,t,n,r)}function Ue(e){if(e instanceof qe)return new qe(e.h,e.s,e.l,e.opacity);if(e instanceof se||(e=Te(e)),!e)return new qe;if(e instanceof qe)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(o=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new qe(o,l,s,e.opacity)}function qe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function je(e){return(e=(e||0)%360)<0?e+360:e}function Ie(e){return Math.max(0,Math.min(1,e||0))}function Fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oe(se,Te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Me,formatHex:Me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ue(this).formatHsl()},formatRgb:Se,toString:Se}),oe(Ce,(function(e,t,n,r){return 1===arguments.length?Re(e):new Ce(e,t,n,null==r?1:r)}),le(se,{brighter(e){return e=null==e?ce:Math.pow(ce,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Le(this.r),Le(this.g),Le(this.b),Ee(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:ze,formatHex:ze,formatHex8:function(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ne,toString:Ne})),oe(qe,(function(e,t,n,r){return 1===arguments.length?Ue(e):new qe(e,t,n,null==r?1:r)}),le(se,{brighter(e){return e=null==e?ce:Math.pow(ce,e),new qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new qe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ce(Fe(e>=240?e-240:e+120,i,r),Fe(e,i,r),Fe(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new qe(je(this.h),Ie(this.s),Ie(this.l),Ee(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=Ee(this.opacity);return`${1===e?"hsl(":"hsla("}${je(this.h)}, ${100*Ie(this.s)}%, ${100*Ie(this.l)}%${1===e?")":`, ${e})`}`}}));const Oe=Math.PI/180,He=180/Math.PI,_e=.96422,Ae=1,We=.82521,Be=4/29,Ve=6/29,Ye=3*Ve*Ve,Je=Ve*Ve*Ve;function Ke(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof nt)return rt(e);e instanceof Ce||(e=Re(e));var t,n,r=et(e.r),i=et(e.g),a=et(e.b),o=Ge((.2225045*r+.7168786*i+.0606169*a)/Ae);return r===i&&i===a?t=n=o:(t=Ge((.4360747*r+.3850649*i+.1430804*a)/_e),n=Ge((.0139322*r+.0971045*i+.7141733*a)/We)),new Ze(116*o-16,500*(t-o),200*(o-n),e.opacity)}function Ze(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ge(e){return e>Je?Math.pow(e,1/3):e/Ye+Be}function Xe(e){return e>Ve?e*e*e:Ye*(e-Be)}function Qe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function et(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof nt)return new nt(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Ke(e)),0===e.a&&0===e.b)return new nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*He;return new nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nt(e,t,n,null==r?1:r)}function nt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rt(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*Oe;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}oe(Ze,(function(e,t,n,r){return 1===arguments.length?Ke(e):new Ze(e,t,n,null==r?1:r)}),le(se,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(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 Ce(Qe(3.1338561*(t=_e*Xe(t))-1.6168667*(e=Ae*Xe(e))-.4906146*(n=We*Xe(n))),Qe(-.9787684*t+1.9161415*e+.033454*n),Qe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),oe(nt,tt,le(se,{brighter(e){return new nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return rt(this).rgb()}}));var it,at,ot={isDark:function(e){return tt(e).l<70}};function lt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}1===(it=lt).length&&(at=it,it=function(e,t){return lt(at(e),t)});var st="$";function ut(){}function ct(e,t){var n=new ut;if(e instanceof ut)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,a=e.length;if(null==t)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t(r=e[i],i,e),r)}else if(e)for(var o in e)n.set(o,e[o]);return n}function ht(){}ut.prototype=ct.prototype={constructor:ut,has:function(e){return st+e in this},get:function(e){return this[st+e]},set:function(e,t){return this[st+e]=t,this},remove:function(e){var t=st+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===st&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===st&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===st&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===st&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===st&&++e;return e},empty:function(){for(var e in this)if(e[0]===st)return!1;return!0},each:function(e){for(var t in this)t[0]===st&&e(this[t],t.slice(1),this)}};var dt=ct.prototype;function ft(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gt(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pt(){}ht.prototype={constructor:ht,has:dt.has,add:function(e){return this[st+(e+="")]=e,this},remove:dt.remove,clear:dt.clear,values:dt.keys,size:dt.size,empty:dt.empty,each:dt.each};var mt=.7,yt=1/mt,vt="\\s*([+-]?\\d+)\\s*",bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",wt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xt=/^#([0-9a-f]{3})$/,Mt=/^#([0-9a-f]{6})$/,St=new RegExp("^rgb\\("+[vt,vt,vt]+"\\)$"),Tt=new RegExp("^rgb\\("+[wt,wt,wt]+"\\)$"),kt=new RegExp("^rgba\\("+[vt,vt,vt,bt]+"\\)$"),Dt=new RegExp("^rgba\\("+[wt,wt,wt,bt]+"\\)$"),Rt=new RegExp("^hsl\\("+[bt,wt,wt]+"\\)$"),Ct=new RegExp("^hsla\\("+[bt,wt,wt,bt]+"\\)$"),zt={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 Nt(e){var t;return e=(e+"").trim().toLowerCase(),(t=xt.exec(e))?new Ut((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Mt.exec(e))?Et(parseInt(t[1],16)):(t=St.exec(e))?new Ut(t[1],t[2],t[3],1):(t=Tt.exec(e))?new Ut(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=kt.exec(e))?Lt(t[1],t[2],t[3],t[4]):(t=Dt.exec(e))?Lt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Rt.exec(e))?jt(t[1],t[2]/100,t[3]/100,1):(t=Ct.exec(e))?jt(t[1],t[2]/100,t[3]/100,t[4]):zt.hasOwnProperty(e)?Et(zt[e]):"transparent"===e?new Ut(NaN,NaN,NaN,0):null}function Et(e){return new Ut(e>>16&255,e>>8&255,255&e,1)}function Lt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ut(e,t,n,r)}function Pt(e){return e instanceof pt||(e=Nt(e)),e?new Ut((e=e.rgb()).r,e.g,e.b,e.opacity):new Ut}function $t(e,t,n,r){return 1===arguments.length?Pt(e):new Ut(e,t,n,null==r?1:r)}function Ut(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function jt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new It(e,t,n,r)}function It(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ft(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ft(pt,Nt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),ft(Ut,$t,gt(pt,{brighter:function(e){return e=null==e?yt:Math.pow(yt,e),new Ut(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?mt:Math.pow(mt,e),new Ut(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"#"+qt(this.r)+qt(this.g)+qt(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+")")}})),ft(It,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof It)return new It(e.h,e.s,e.l,e.opacity);if(e instanceof pt||(e=Nt(e)),!e)return new It;if(e instanceof It)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(o=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new It(o,l,s,e.opacity)}(e):new It(e,t,n,null==r?1:r)}),gt(pt,{brighter:function(e){return e=null==e?yt:Math.pow(yt,e),new It(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?mt:Math.pow(mt,e),new It(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 Ut(Ft(e>=240?e-240:e+120,i,r),Ft(e,i,r),Ft(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 Ot=Math.PI/180,Ht=180/Math.PI,_t=.96422,At=1,Wt=.82521,Bt=4/29,Vt=6/29,Yt=3*Vt*Vt,Jt=Vt*Vt*Vt;function Kt(e){if(e instanceof Zt)return new Zt(e.l,e.a,e.b,e.opacity);if(e instanceof tn){if(isNaN(e.h))return new Zt(e.l,0,0,e.opacity);var t=e.h*Ot;return new Zt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Ut||(e=Pt(e));var n,r,i=en(e.r),a=en(e.g),o=en(e.b),l=Gt((.2225045*i+.7168786*a+.0606169*o)/At);return i===a&&a===o?n=r=l:(n=Gt((.4360747*i+.3850649*a+.1430804*o)/_t),r=Gt((.0139322*i+.0971045*a+.7141733*o)/Wt)),new Zt(116*l-16,500*(n-l),200*(l-r),e.opacity)}function Zt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Gt(e){return e>Jt?Math.pow(e,1/3):e/Yt+Bt}function Xt(e){return e>Vt?e*e*e:Yt*(e-Bt)}function Qt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function en(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}ft(Zt,(function(e,t,n,r){return 1===arguments.length?Kt(e):new Zt(e,t,n,null==r?1:r)}),gt(pt,{brighter:function(e){return new Zt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Zt(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 Ut(Qt(3.1338561*(t=_t*Xt(t))-1.6168667*(e=At*Xt(e))-.4906146*(n=Wt*Xt(n))),Qt(-.9787684*t+1.9161415*e+.033454*n),Qt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ft(tn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof tn)return new tn(e.h,e.c,e.l,e.opacity);if(e instanceof Zt||(e=Kt(e)),0===e.a&&0===e.b)return new tn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ht;return new tn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new tn(e,t,n,null==r?1:r)}),gt(pt,{brighter:function(e){return new tn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new tn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Kt(this).rgb()}}));var nn=-.14861,rn=1.78277,an=-.29227,on=-.90649,ln=1.97294,sn=ln*on,un=ln*rn,cn=rn*an-on*nn;function hn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof dn)return new dn(e.h,e.s,e.l,e.opacity);e instanceof Ut||(e=Pt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(cn*r+sn*t-un*n)/(cn+sn-un),a=r-i,o=(ln*(n-i)-an*a)/on,l=Math.sqrt(o*o+a*a)/(ln*i*(1-i)),s=l?Math.atan2(o,a)*Ht-120:NaN;return new dn(s<0?s+360:s,l,i,e.opacity)}(e):new dn(e,t,n,null==r?1:r)}function dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function fn(e){return function(){return e}}function gn(e,t){return function(n){return e+n*t}}function pn(e){return 1==(e=+e)?mn: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):fn(isNaN(t)?n:t)}}function mn(e,t){var n=t-e;return n?gn(e,n):fn(isNaN(e)?t:e)}function yn(e){return function t(n){function r(t,r){var i=e((t=hn(t)).h,(r=hn(r)).h),a=mn(t.s,r.s),o=mn(t.l,r.l),l=mn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}function vn(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)]}ft(dn,hn,gt(pt,{brighter:function(e){return e=null==e?yt:Math.pow(yt,e),new dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?mt:Math.pow(mt,e),new dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Ot,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Ut(255*(t+n*(nn*r+rn*i)),255*(t+n*(an*r+on*i)),255*(t+n*(ln*r)),this.opacity)}})),function e(t){var n=pn(t);function r(e,t){var r=n((e=$t(e)).r,(t=$t(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1),yn((function(e,t){var n=t-e;return n?gn(e,n>180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(e)?t:e)})),yn(mn);var bn,wn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xn(e){return new Mn(e)}function Mn(e){if(!(t=wn.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 Sn(e,t){var n=vn(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")}xn.prototype=Mn.prototype,Mn.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 Tn={"%":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 Sn(100*e,t)},r:Sn,s:function(e,t){var n=vn(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(bn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+vn(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function kn(e){return e}var Dn,Rn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cn(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,a=[],o=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return a.reverse().join(n)}):kn,i=e.currency,a=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):kn,l=e.percent||"%";function s(e){var t=(e=xn(e)).fill,n=e.align,s=e.sign,u=e.symbol,c=e.zero,h=e.width,d=e.comma,f=e.precision,g=e.trim,p=e.type;"n"===p?(d=!0,p="g"):Tn[p]||(null==f&&(f=12),g=!0,p="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var m="$"===u?i[0]:"#"===u&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(p)?l:"",v=Tn[p],b=/[defgprs%]/.test(p);function w(e){var i,l,u,w=m,x=y;if("c"===p)x=v(e)+x,e="";else{var M=(e=+e)<0;if(e=v(Math.abs(e),f),g&&(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)),M&&0==+e&&(M=!1),w=(M?"("===s?s:"-":"-"===s||"("===s?"":s)+w,x=("s"===p?Rn[8+bn/3]:"")+x+(M&&"("===s?")":""),b)for(i=-1,l=e.length;++i<l;)if(48>(u=e.charCodeAt(i))||u>57){x=(46===u?a+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}d&&!c&&(e=r(e,1/0));var S=w.length+e.length+x.length,T=S<h?new Array(h-S+1).join(t):"";switch(d&&c&&(e=r(T+e,T.length?h-x.length:1/0),T=""),n){case"<":e=w+e+x+T;break;case"=":e=w+T+e+x;break;case"^":e=T.slice(0,S=T.length>>1)+w+e+x+T.slice(S);break;default:e=T+w+e+x}return o(e)}return f=null==f?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),w.toString=function(){return e+""},w}return{format:s,formatPrefix:function(e,t){var n,r=s(((e=xn(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=vn(Math.abs(n)))?n[1]:NaN)/3)))),a=Math.pow(10,-i),o=Rn[8+i/3];return function(e){return r(a*e)+o}}}}(Dn=Cn({decimal:".",thousands:",",grouping:[3],currency:["$",""]})).format,Dn.formatPrefix;var zn=new Date,Nn=new Date;function En(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,a){var o,l=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return l;do{l.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<r);return l},i.filter=function(n){return En((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 zn.setTime(+t),Nn.setTime(+r),e(zn),e(Nn),Math.floor(n(zn,Nn))},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 Ln=En((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Ln.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?En((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Ln:null},Ln.range;var Pn=1e3,$n=6e4,Un=36e5,qn=864e5,jn=6048e5;En((function(e){e.setTime(Math.floor(e/Pn)*Pn)}),(function(e,t){e.setTime(+e+t*Pn)}),(function(e,t){return(t-e)/Pn}),(function(e){return e.getUTCSeconds()})).range,En((function(e){e.setTime(Math.floor(e/$n)*$n)}),(function(e,t){e.setTime(+e+t*$n)}),(function(e,t){return(t-e)/$n}),(function(e){return e.getMinutes()})).range,En((function(e){var t=e.getTimezoneOffset()*$n%Un;t<0&&(t+=Un),e.setTime(Math.floor((+e-t)/Un)*Un+t)}),(function(e,t){e.setTime(+e+t*Un)}),(function(e,t){return(t-e)/Un}),(function(e){return e.getHours()})).range;var In=En((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())*$n)/qn}),(function(e){return e.getDate()-1}));function Fn(e){return En((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())*$n)/jn}))}In.range;var On=Fn(0),Hn=Fn(1),_n=Fn(2),An=Fn(3),Wn=Fn(4),Bn=Fn(5),Vn=Fn(6);On.range,Hn.range,_n.range,An.range,Wn.range,Bn.range,Vn.range,En((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var Yn=En((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()}));Yn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?En((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},Yn.range,En((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*$n)}),(function(e,t){return(t-e)/$n}),(function(e){return e.getUTCMinutes()})).range,En((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Un)}),(function(e,t){return(t-e)/Un}),(function(e){return e.getUTCHours()})).range;var Jn=En((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/qn}),(function(e){return e.getUTCDate()-1}));function Kn(e){return En((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)/jn}))}Jn.range;var Zn=Kn(0),Gn=Kn(1),Xn=Kn(2),Qn=Kn(3),er=Kn(4),tr=Kn(5),nr=Kn(6);Zn.range,Gn.range,Xn.range,Qn.range,er.range,tr.range,nr.range,En((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var rr=En((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 ir(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 ar(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 or(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}rr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?En((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},rr.range;var lr,sr,ur,cr={"-":"",_:" ",0:"0"},hr=/^\s*\d+/,dr=/^%/,fr=/[\\^$*+?|[\]().{}]/g;function gr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function pr(e){return e.replace(fr,"\\$&")}function mr(e){return new RegExp("^(?:"+e.map(pr).join("|")+")","i")}function yr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function vr(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function br(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Mr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Sr(e,t,n){var r=hr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Tr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kr(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 Dr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Rr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Cr(e,t,n){var r=hr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lr(e,t,n){var r=hr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pr(e,t,n){var r=hr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $r(e,t,n){var r=dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ur(e,t,n){var r=hr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qr(e,t,n){var r=hr.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function jr(e,t){return gr(e.getDate(),t,2)}function Ir(e,t){return gr(e.getHours(),t,2)}function Fr(e,t){return gr(e.getHours()%12||12,t,2)}function Or(e,t){return gr(1+In.count(Yn(e),e),t,3)}function Hr(e,t){return gr(e.getMilliseconds(),t,3)}function _r(e,t){return Hr(e,t)+"000"}function Ar(e,t){return gr(e.getMonth()+1,t,2)}function Wr(e,t){return gr(e.getMinutes(),t,2)}function Br(e,t){return gr(e.getSeconds(),t,2)}function Vr(e){var t=e.getDay();return 0===t?7:t}function Yr(e,t){return gr(On.count(Yn(e),e),t,2)}function Jr(e,t){var n=e.getDay();return e=n>=4||0===n?Wn(e):Wn.ceil(e),gr(Wn.count(Yn(e),e)+(4===Yn(e).getDay()),t,2)}function Kr(e){return e.getDay()}function Zr(e,t){return gr(Hn.count(Yn(e),e),t,2)}function Gr(e,t){return gr(e.getFullYear()%100,t,2)}function Xr(e,t){return gr(e.getFullYear()%1e4,t,4)}function Qr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+gr(t/60|0,"0",2)+gr(t%60,"0",2)}function ei(e,t){return gr(e.getUTCDate(),t,2)}function ti(e,t){return gr(e.getUTCHours(),t,2)}function ni(e,t){return gr(e.getUTCHours()%12||12,t,2)}function ri(e,t){return gr(1+Jn.count(rr(e),e),t,3)}function ii(e,t){return gr(e.getUTCMilliseconds(),t,3)}function ai(e,t){return ii(e,t)+"000"}function oi(e,t){return gr(e.getUTCMonth()+1,t,2)}function li(e,t){return gr(e.getUTCMinutes(),t,2)}function si(e,t){return gr(e.getUTCSeconds(),t,2)}function ui(e){var t=e.getUTCDay();return 0===t?7:t}function ci(e,t){return gr(Zn.count(rr(e),e),t,2)}function hi(e,t){var n=e.getUTCDay();return e=n>=4||0===n?er(e):er.ceil(e),gr(er.count(rr(e),e)+(4===rr(e).getUTCDay()),t,2)}function di(e){return e.getUTCDay()}function fi(e,t){return gr(Gn.count(rr(e),e),t,2)}function gi(e,t){return gr(e.getUTCFullYear()%100,t,2)}function pi(e,t){return gr(e.getUTCFullYear()%1e4,t,4)}function mi(){return"+0000"}function yi(){return"%"}function vi(e){return+e}function bi(e){return Math.floor(+e/1e3)}!function(e){lr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=mr(i),c=yr(i),h=mr(a),d=yr(a),f=mr(o),g=yr(o),p=mr(l),m=yr(l),y=mr(s),v=yr(s),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:jr,e:jr,f:_r,H:Ir,I:Fr,j:Or,L:Hr,m:Ar,M:Wr,p:function(e){return i[+(e.getHours()>=12)]},Q:vi,s:bi,S:Br,u:Vr,U:Yr,V:Jr,w:Kr,W:Zr,x:null,X:null,y:Gr,Y:Xr,Z:Qr,"%":yi},w={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:ei,e:ei,f:ai,H:ti,I:ni,j:ri,L:ii,m:oi,M:li,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:vi,s:bi,S:si,u:ui,U:ci,V:hi,w:di,W:fi,x:null,X:null,y:gi,Y:pi,Z:mi,"%":yi},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[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=p.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:Rr,e:Rr,f:Pr,H:zr,I:zr,j:Cr,L:Lr,m:Dr,M:Nr,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Ur,s:qr,S:Er,u:br,U:wr,V:xr,w:vr,W:Mr,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:Tr,Y:Sr,Z:kr,"%":$r};function M(e,t){return function(n){var r,i,a,o=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(i=cr[r=e.charAt(++l)])?r=e.charAt(++l):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function S(e,t){return function(n){var r,i,a=or(1900);if(T(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=ar(or(a.y))).getUTCDay(),r=i>4||0===i?Gn.ceil(r):Gn(r),r=Jn.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=t(or(a.y))).getDay(),r=i>4||0===i?Hn.ceil(r):Hn(r),r=In.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?ar(or(a.y)).getUTCDay():t(or(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ar(a)):t(a)}}function T(e,t,n,r){for(var i,a,o=0,l=t.length,s=n.length;o<l;){if(r>=s)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=x[i in cr?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=M(n,b),b.X=M(r,b),b.c=M(t,b),w.x=M(n,w),w.X=M(r,w),w.c=M(t,w),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",ir);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,ar);return t.toString=function(){return e},t}}}(e),lr.format,lr.parse,sr=lr.utcFormat,ur=lr.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 wi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||sr(wi),+new Date("2000-01-01T00:00:00.000Z")||ur(wi),ne.bind(null,!0);const xi=[[2,4,6],[2,4],[3]],Mi=[,[,,[[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 Si(e,t,n){const r=e?e.length:0;let i,a=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)a=Math.min(a,e[i]/e[i-1]);void 0!==n&&(a=Math.min(a,n/e[r-1])),e.splice(0,0,a)}function Ti(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)Si(e[r],t,n)}function ki(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"}function Di(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Ri(e){return e.formatter("num")(e.node.data.num.value)}function Ci({data:e}){return e?e.label:""}function zi(e){if(e.dataPoint.auto)return Di;switch(e.dataPoint.labelMode){case"share":default:return Di;case"value":return Ri;case"none":return null}}function Ni(e,t,n,r,i){const a=i.axis.label.getStyle(),o=i.label.value.getStyle(),l=n.getStyles().label.value;return{type:"labels",key:"funnel-labels",renderer:ki(e,!0),layout:{displayOrder:2},settings:{sources:[{component:"fun",selector:".labelLeft",strategy:{type:"rows",settings:{align:0,fill:a.fill,fontSize:parseInt(a.fontSize,10),fontFamily:a.fontFamily,labels:[{label:Ci}],linkData:e=>`${e.data.value} ${Ci(e)}`}}},{component:"fun",selector:".labelCenter",strategy:{type:"rows",settings:{align:.5,fill:o.useContrastColor?({node:e})=>(e=>ot.isDark(e.desc.fill)?l.lightColor:l.darkColor)(e):o.fill,fontSize:parseInt(o.fontSize,10),fontFamily:o.fontFamily,labels:[{label:zi(t)}],linkData:e=>"none"===t.dataPoint.labelMode?Math.random():`${e.data.value} ${zi(t)(e)}`}}}]},animations:{enabled:r,trackBy:e=>e.data}}}function Ei(e,t,n){if(!t.showDimensionTitle||!t.qHyperCube.qDimensionInfo[0].qFallbackTitle)return!1;const r=t.qHyperCube.qDimensionInfo[0].qFallbackTitle,i=n.axis.title.getStyle();return{type:"text",key:"dimension-title",renderer:ki(e,!0),text:r,layout:{dock:"top"},style:{text:{fill:i.fill,fontSize:i.fontSize,fontFamily:i.fontFamily}}}}function Li(){return{share:{type:"d3-number",format:".1%"},num:{data:{field:"qMeasureInfo/0"}}}}function Pi({picasso:e}){const t=h(),n=d(),r=f(),i=g(),a=p(),u=m(),[c,b]=y(),[w,x]=y(),[M,S]=y(),[T,k]=y();return v((()=>{const c=o({picasso:e,model:r,app:i,translator:a,config:{auto:!1,key:"fill"}});t.style.overflow="hidden";const h=e({renderer:{prio:[u.renderer||"svg"]}}).chart({element:t,data:[],settings:{}}),d=l({chart:h,selections:n,config:{selectionActions:!1}});return S(d),x(c),b(h),k(s()),()=>{d.destroy(),h.destroy()}}),[]),[c,w,M,T]}!function(){let e,t;for(Ti(xi,1,10),e=0;e<Mi.length;e++)if(Mi[e])for(t=0;t<Mi[e].length;t++)Array.isArray(Mi[e][t])&&Ti(Mi[e][t])}()}}}));
|
7
|
+
System.register(["picasso.js","picasso-plugin-q","qlik-chart-modules","@nebula.js/stardust"],(function(e){"use strict";var t,n,r,i,a,o,l,s,u,c,h,d,f,g,p,m,y,v,b,w,x,M,S,T,k,D;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.fontResolver,i=e.getValue,a=e.setValue,o=e.colorService,l=e.selectionService,s=e.cache,u=e.pluginService,c=e.themeService},function(e){h=e.useElement,d=e.useSelections,f=e.useModel,g=e.useApp,p=e.useTranslator,m=e.useOptions,y=e.useState,v=e.useEffect,b=e.useStaleLayout,w=e.useTheme,x=e.useConstraints,M=e.useRect,S=e.usePlugins,T=e.useAppLayout,k=e.usePromise,D=e.onTakeSnapshot}],execute:function(){e("default",(function(e){!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(R).forEach((t=>{e.add(R[t])}))}}(e.translator);const r=t();r.use(n),r.component("funnel",q);const{flags:i}=e;return{ext:W(e),qae:{properties:{initial:j},data:{targets:B}},component(){!function({picasso:e,flags:t}){const n=b(),r=w(),i=x(),a=M(),o=S(),l=T().qLocaleInfo,[s,h,d,f]=Ri({picasso:e,layout:n}),g=m(),p=()=>{const e=s.element.clientWidth!==f.get("width")||s.element.clientHeight!==f.get("height");return!1!==g.chartAnimations&&!e&&!Q.propertiesHaveChanged({viewCache:f,layout:n})},[y]=k((()=>{if(!h)return Promise.resolve();const t=({getUseBaseColors:e})=>({theme:r,colorProps:{...n.color,useBaseColors:e(n)},layout:n,hc:n.qHyperCube}),i=function(e){const t={layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{FUNNEL:"fun",FUNNEL_LABELS:"funnel-labels",DIMENSION_TITLE:"dimension-title"}}};return t}(n),a=u({picassoInstance:e,plugins:o,pluginArgs:i});return Promise.all([h.initialize({createConfig:t}),a.initialize()]).then((()=>a))}),[n,h]);v((()=>{if(!s||!h||!y)return;const e=[{type:"q",key:"qHyperCube",data:n.qHyperCube,config:{localeInfo:l}},...h.getData()],a=c({theme:r,config:{id:"funnelChart"}}),o=function({layout:e,themeService:t}){const n=t.getStyles(),r=t=>{var n,r;return null!==(n=null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)))&&void 0!==n?n:void 0};return{axis:{title:{getStyle:()=>{var e,t,i,a,o,l;return{fontFamily:null!==(e=null===(t=r("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:n.axis.title.fontFamily,fontSize:null!==(i=null===(a=r("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.title)||void 0===a?void 0:a.fontSize)&&void 0!==i?i:n.axis.title.fontSize,fill:null!==(o=null===(l=r("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.title)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a,o,l;return{fontSize:null!==(e=null===(t=r("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?void 0:t.fontSize)&&void 0!==e?e:n.axis.label.name.fontSize,fontFamily:null!==(i=null===(a=r("axis"))||void 0===a||null===(a=a.axis)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.name)||void 0===a?void 0:a.fontFamily)&&void 0!==i?i:n.axis.label.name.fontFamily,fill:null!==(o=null===(l=r("axis"))||void 0===l||null===(l=l.axis)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.name)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.axis.label.name.color}}}},label:{value:{getStyle:()=>{var e,t,i,a,o,l,s,u;return{fontSize:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.fontSize)&&void 0!==e?e:n.label.value.fontSize,fontFamily:null!==(i=null===(a=r("label"))||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a.fontFamily)&&void 0!==i?i:n.label.value.fontFamily,fill:null!==(o=null===(l=r("label"))||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l||null===(l=l.color)||void 0===l?void 0:l.color)&&void 0!==o?o:n.label.value.color,useContrastColor:null===(s=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.useContrastColor)||void 0===s||s}}}}}}({layout:n,themeService:a}),u=function({flags:e,layout:t,constraints:n,colorService:r,themeService:i,styleModel:a,pluginService:o,animationsEnabled:l}){const s=function(e){const t={...e.getScales()};return t}(r),u=r.getPalettes(),c=function({layout:e,constraints:t,colorService:n,animationsEnabled:r}){const i=n.getDatumProps(),a=n.getColor(),o={type:"funnel",key:"fun",data:{extract:{field:"qDimensionInfo/0",props:{num:{field:"qMeasureInfo/0"},...i}}},brush:t.select||t.active?{}:{trigger:[{contexts:["selection"],data:[""]}],consume:[{context:"selection",filter:e=>"section"===e.tag,style:{inactive:{opacity:.3}}}]},settings:{num:{ref:"num"},fill:a,mode:e.funnel.mode},animations:{enabled:r,isMainComponent:!0,trackBy:e=>`${e.tag}: ${e.data.value}`}};return o}({layout:t,constraints:n,colorService:r,animationsEnabled:l}),h=[c,Ti(e,t,i,l,a),ki(e,t,a)];return{palettes:u,scales:s,components:o.extendComponents(h),formatters:Di()}}({flags:t,layout:n,constraints:i,colorService:h,themeService:a,styleModel:o,pluginService:y,animationsEnabled:p});s.update({data:e,settings:u}),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight),Q.cacheProperties({viewCache:f,layout:n})}),[s,h,r.name(),y,i]),v((()=>{s&&(s.update(),f.set("width",s.element.clientWidth),f.set("height",s.element.clientHeight))}),[a.width,a.height]),v((()=>{d&&d.setLayout(n)}),[n]),D((e=>h.getSnapshotData().then((t=>(e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData=t,e))).catch((()=>e))))}({picasso:r,flags:i})}}}));var R={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const C={fill:"steelblue",num:1},z=.9,N=150,E=(e,t,n)=>{let r=0,i=0,a=0,o={},l=0;if("labelCenter"===e)r=t.bottomLeft.x,i=t.topRight.y,a=t.bottomRight.x-t.bottomLeft.x,l=t.bottomRight.y-t.topRight.y,o={share:n.share,fill:n.fill};else{const e=180/Math.PI*Math.atan((t.bottomRight.y-t.topRight.y)/(t.topRight.x-t.bottomRight.x));r=e<15&&e>=0?t.topRight.x:e>-15&&e<0?t.bottomRight.x:e<-15?(t.bottomRight.x-t.topRight.x)/2+t.topRight.x+15:(t.topRight.x-t.bottomRight.x)/2+t.bottomRight.x+15,i=t.topRight.y,a=t.width-r,l=t.bottomRight.y-t.topRight.y,o={fill:n.fill}}return{tag:e,type:"rect",x:r,y:i,width:a,height:l,data:n.data,desc:o,fill:"none"}},L=(e,t)=>{const n=(e=>{const t=(e=>{let t=0;return e.forEach((e=>{e.num>t&&(t=e.num)})),t})(e);let n=0;return e.slice().reverse().map((e=>{const r={datum:e,s:n/t,e:e.num/t};return n=e.num,r})).reverse()})(e),r=t.width*z,i=t.height*z,a=(t.width-r)/2,o=(t.height-i)/2,l=r-(r>N&&i>N?100:0),s=(i-1*(n.length-1))/n.length,u=[];return n.forEach(((e,r)=>{const i=(c=e.e,h=r<n.length-1?e.s:e.e,[.5-.5*c,.5+.5*c,.5+.5*h,.5-.5*h]).map((e=>Math.round(e*l+a)));var c,h;const d=s*r+1*r+o,f={bottomRight:{x:i[2],y:Math.round(d+s)},bottomLeft:{x:i[3],y:Math.round(d+s)},topRight:{x:i[1],y:Math.round(d)},topLeft:{x:i[0],y:Math.round(d)},width:t.width},g=`M${f.topLeft.x},${f.topLeft.y} L${f.topRight.x},${f.topRight.y} ${f.bottomRight.x},${f.bottomRight.y} ${f.bottomLeft.x},${f.bottomLeft.y}Z`;u.push({tag:"section",type:"path",d:g,data:e.datum.data,fill:e.datum.fill});const p={share:e.e,fill:e.datum.fill,data:e.datum.data};s>12&&(f.bottomRight.x-f.bottomLeft.x>32&&u.push(E("labelCenter",f,p)),u.push(E("labelLeft",f,p)))})),u},P=(e,t,n,r)=>(r-e)/r*(t-n)+n,$=(e,t,n)=>{const r=e.filter((e=>"NaN"!==e.num&&e.num>0)),i=r.length,a=n.width*z,o=n.height*z,l=Math.round((n.width-a)/2),s=Math.round((n.height-o)/2),u=a-(a>N&&o>N?100:0),c=o-1*(i-1),h=[],d=r[0].data.num.value;let f=s;return r.forEach(((e,r)=>{const i=t[r]*c,a=Math.round(P(f-s,u,.2*u,o)/2),g=Math.round(P(f-s+i,u,.2*u,o)/2),p=l+Math.round(u/2),m={bottomRight:{x:p+g,y:Math.round(f+i)},bottomLeft:{x:p-g,y:Math.round(f+i)},topRight:{x:p+a,y:f},topLeft:{x:p-a,y:f},width:n.width},y=`M${m.topLeft.x},${m.topLeft.y} L${m.topRight.x},${m.topRight.y} ${m.bottomRight.x},${m.bottomRight.y} ${m.bottomLeft.x},${m.bottomLeft.y}Z`;h.push({tag:"section",type:"path",d:y,data:e.data,fill:e.fill});const v={share:e.data.num.value/d,fill:e.fill,data:e.data};i>2&&(m.bottomRight.x-m.bottomLeft.x>32&&h.push(E("labelCenter",m,v)),h.push(E("labelLeft",m,v))),f+=i+1})),h},U=(e,t,n)=>{const r=e.filter((e=>"NaN"!==e.num&&e.num>0));if(r&&r.length>0)switch(t){case"WIDTH":default:return L(r,n);case"ORDER":return $(r,r.map((()=>1/r.length)),n);case"HEIGHT":return $(r,(e=>{const t=e.reduce(((e,t)=>e+t.data.num.value),0);return e.map((e=>e.data.num.value/t))})(r),n);case"AREA":return $(r,((e,t,n)=>{const r=e.reduce(((e,t)=>e+t.data.num.value),0),i=t.width*z,a=t.height*z,o=i*n,l=a*(i+o)/2,s=(i-o)/2/a,u=[];let c=0;for(let t=e.length-1;t>=0;t--){const n=e[t].data.num.value/r,i=2*s*c+o,h=-i/(2*s)+Math.sqrt(i*i/(4*s*s)+n*l/s);u[t]=h/a,c+=h}return u})(r,n,.2),n)}return[]};var q={require:["resolver"],defaultSettings:{settings:{},data:{},style:{item:"$shape"}},render({data:e}){const t=this.resolver.resolve({data:e,defaults:{...C,...this.style.item},settings:this.settings.settings});return U(t.items,this.settings.settings.mode,this.rect)}};const j={version:"1.9.20",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},dataPoint:{auto:!0,labelMode:"share"},footnote:"",funnel:{mode:"WIDTH"},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInterColumnSortOrder:[],qInitialDataFetch:[{qWidth:2,qHeight:5e3}],qSuppressMissing:!0,qSuppressZero:!1},showDimensionTitle:!0,showTitles:!0,subtitle:"",title:""};function I(e,t,n){const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.funnelChart",e,"color")})}}}}}function F(e,t,n){const i=r({theme:e,translator:n,flags:t,config:{id:"funnelChart",paths:["axis.title","axis.label.name","label.value"]}});return{component:"styling-panel",show:!0,chartType:"funnelchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.FunnelChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{axisTitleSection:{component:"panel-section",label:"Dimension title",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.title",i,e)}}},labelNameSection:{component:"panel-section",label:"Dimension value label",items:{dimensionTitleItems:{component:"items",ref:"components",key:"axis",items:I("axis.label.name",i,e)}}},labelValueSection:{component:"panel-section",label:"Value Label",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...I("label.value",i,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}}}}const O={uses:"sorting"},H=(e,t,n)=>{var r;const i=null==n||null===(r=n.sense)||void 0===r?void 0:r.theme;return{uses:"settings",items:{presentation:{type:"items",label:"Presentation",grouped:!0,items:{...(null==t?void 0:t.isEnabled("SENSECLIENT_IM_4897_VIZBUNDLE_STYLING"))&&{funnelStyling:F(i,t,e)},funnelmode:{ref:"funnel.mode",label:"Funnel Mode",type:"string",component:"dropdown",options:[{value:"AREA",label:"Area"},{value:"HEIGHT",label:"Height"},{value:"WIDTH",label:"Width"},{value:"ORDER",label:"Ordering"}],defaultValue:"WIDTH"},dimensionTitle:{ref:"showDimensionTitle",type:"boolean",component:"switch",label:"Dimension title",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",label:"Value labels",component:"switch",defaultValue:!0,options:[{value:!0,label:"Auto"},{value:!1,label:"Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",label:"None"},{value:"share",label:"Share"},{value:"value",label:"Values"}],defaultValue:"share",show:e=>!e.dataPoint.auto}}},colorsAndLegend:{uses:"colorsAndLegend",translation:"Colors",items:{colors:{items:{colorByLabel:{show:!1},expressionLabel:{show:!1}}},legend:{show:!1}}}}}},_={uses:"data",items:{dimensions:{uses:"dimensions",items:{others:{items:{suppressOther:{defaultValue:!0,show:!1}}}},disabledRef:""},measures:{uses:"measures",disabledRef:""}}};function A({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:_,sorting:O,settings:H(e,t,n)}}}function W(e){return{definition:A(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1},importProperties:null,exportProperties:null}}const B=[{path:"/qHyperCubeDef",dimensions:{min:1,max:1,description:()=>"Segments"},measures:{min:1,max:1,description(e){switch(e.funnel.mode){case"WIDTH":return"Width";case"AREA":return"Area";case"HEIGHT":return"Height";case"ORDER":return"Order";default:return""}},added(e,t){2===t.qHyperCubeDef.qInterColumnSortOrder.length&&1!==t.qHyperCubeDef.qInterColumnSortOrder[0]&&(t.qHyperCubeDef.qInterColumnSortOrder=[1,0])}}}];function V(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y,J;var K=function(){if(J)return Y;J=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},o=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Y=function e(){var t,n,r,s,u,c,h=arguments[0],d=1,f=arguments.length,g=!1;for("boolean"==typeof h&&(g=h,h=arguments[1]||{},d=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});d<f;++d)if(null!=(t=arguments[d]))for(n in t)r=l(h,n),h!==(s=l(t,n))&&(g&&s&&(a(s)||(u=i(s)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},o(h,{name:n,newValue:e(g,c,s)})):void 0!==s&&o(h,{name:n,newValue:s}));return h},Y}(),Z=V(K),G={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 X(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:o,qStackedDataPages:l,qTreeDataPages:s,...u}=t,c=Z(!0,{},{...n,qHyperCube:{...u,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:h}=G;return h.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==i(c,e)&&a(c,e,null);else{const e=t[0],n=t[1].split("].")[1];i(c,e,[]).forEach((e=>{void 0!==i(e,n)&&a(e,n,null)}))}})),c}var Q={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var a;if("line"===i.type)return null!==(a=i.tickValue)&&void 0!==a?a:"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:a,currentRect:o,previousRect:l})=>{const s=o.x-l.x,u=o.y-l.y,c=o.width-l.width,h=o.height-l.height;e?("left"===i&&a.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||a.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=o.y,e.y2=e.y1+o.height):(Math.round(e.y1)<o.y||e.y1>o.y+o.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<o.y||e.y>o.y+o.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||a.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=o.x,e.x2=e.x1+o.width):(Math.round(e.x1)<o.x||e.x1>o.x+o.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<o.x||e.x>o.x+o.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?a.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=s,e.x2-=s):"text"===e.type&&(e.x-=s)})):n||r?a.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=s,e.x2+=s+c)})):a.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+h)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,a=t.width-n.width,o=t.height-n.height;let l=-r,s=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(l=t.width);break;case"left":a<0&&(l=-n.width);break;case"top":o<0&&(s=-n.height);break;case"bottom":i>0&&(s=t.height)}switch(e.type){case"text":case"rect":e.x+=l,e.y+=s;break;case"circle":e.cx+=l,e.cy+=s;break;case"path":e.transform=`translate(${l}, ${s})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=X(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=X(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function ee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function te(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ne(){}var re=.7,ie=1/re,ae="\\s*([+-]?\\d+)\\s*",oe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),ce=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),he=new RegExp(`^rgba\\(${ae},${ae},${ae},${oe}\\)$`),de=new RegExp(`^rgba\\(${le},${le},${le},${oe}\\)$`),fe=new RegExp(`^hsl\\(${oe},${le},${le}\\)$`),ge=new RegExp(`^hsla\\(${oe},${le},${le},${oe}\\)$`),pe={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 me(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?be(t):3===n?new Me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=ue.exec(e))?new Me(t[1],t[2],t[3],1):(t=ce.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=he.exec(e))?we(t[1],t[2],t[3],t[4]):(t=de.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?Ce(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?Ce(t[1],t[2]/100,t[3]/100,t[4]):pe.hasOwnProperty(e)?be(pe[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function be(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new Me(e,t,n,r)}function xe(e){return e instanceof ne||(e=ve(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}function Me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Se(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}function Te(){const e=ke(this.opacity);return`${1===e?"rgb(":"rgba("}${De(this.r)}, ${De(this.g)}, ${De(this.b)}${1===e?")":`, ${e})`}`}function ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function De(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Re(e){return((e=De(e))<16?"0":"")+e.toString(16)}function Ce(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ne(e,t,n,r)}function ze(e){if(e instanceof Ne)return new Ne(e.h,e.s,e.l,e.opacity);if(e instanceof ne||(e=ve(e)),!e)return new Ne;if(e instanceof Ne)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(o=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Ne(o,l,s,e.opacity)}function Ne(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ee(e){return(e=(e||0)%360)<0?e+360:e}function Le(e){return Math.max(0,Math.min(1,e||0))}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ee(ne,ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:me,formatHex:me,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ze(this).formatHsl()},formatRgb:ye,toString:ye}),ee(Me,(function(e,t,n,r){return 1===arguments.length?xe(e):new Me(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Me(De(this.r),De(this.g),De(this.b),ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Se,formatHex:Se,formatHex8:function(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Te,toString:Te})),ee(Ne,(function(e,t,n,r){return 1===arguments.length?ze(e):new Ne(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new Ne(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 Me(Pe(e>=240?e-240:e+120,i,r),Pe(e,i,r),Pe(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ne(Ee(this.h),Le(this.s),Le(this.l),ke(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ke(this.opacity);return`${1===e?"hsl(":"hsla("}${Ee(this.h)}, ${100*Le(this.s)}%, ${100*Le(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,Ue=180/Math.PI,qe=.96422,je=1,Ie=.82521,Fe=4/29,Oe=6/29,He=3*Oe*Oe,_e=Oe*Oe*Oe;function Ae(e){if(e instanceof We)return new We(e.l,e.a,e.b,e.opacity);if(e instanceof Ze)return Ge(e);e instanceof Me||(e=xe(e));var t,n,r=Je(e.r),i=Je(e.g),a=Je(e.b),o=Be((.2225045*r+.7168786*i+.0606169*a)/je);return r===i&&i===a?t=n=o:(t=Be((.4360747*r+.3850649*i+.1430804*a)/qe),n=Be((.0139322*r+.0971045*i+.7141733*a)/Ie)),new We(116*o-16,500*(t-o),200*(o-n),e.opacity)}function We(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Be(e){return e>_e?Math.pow(e,1/3):e/He+Fe}function Ve(e){return e>Oe?e*e*e:He*(e-Fe)}function Ye(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Je(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ke(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ze)return new Ze(e.h,e.c,e.l,e.opacity);if(e instanceof We||(e=Ae(e)),0===e.a&&0===e.b)return new Ze(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new Ze(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ze(e,t,n,null==r?1:r)}function Ze(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ge(e){if(isNaN(e.h))return new We(e.l,0,0,e.opacity);var t=e.h*$e;return new We(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ee(We,(function(e,t,n,r){return 1===arguments.length?Ae(e):new We(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return new We(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new We(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 Me(Ye(3.1338561*(t=qe*Ve(t))-1.6168667*(e=je*Ve(e))-.4906146*(n=Ie*Ve(n))),Ye(-.9787684*t+1.9161415*e+.033454*n),Ye(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ee(Ze,Ke,te(ne,{brighter(e){return new Ze(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ze(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Ge(this).rgb()}}));var Xe,Qe,et={isDark:function(e){return Ke(e).l<70}};function tt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}1===(Xe=tt).length&&(Qe=Xe,Xe=function(e,t){return tt(Qe(e),t)});var nt="$";function rt(){}function it(e,t){var n=new rt;if(e instanceof rt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,a=e.length;if(null==t)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t(r=e[i],i,e),r)}else if(e)for(var o in e)n.set(o,e[o]);return n}function at(){}rt.prototype=it.prototype={constructor:rt,has:function(e){return nt+e in this},get:function(e){return this[nt+e]},set:function(e,t){return this[nt+e]=t,this},remove:function(e){var t=nt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===nt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===nt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===nt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===nt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===nt&&++e;return e},empty:function(){for(var e in this)if(e[0]===nt)return!1;return!0},each:function(e){for(var t in this)t[0]===nt&&e(this[t],t.slice(1),this)}};var ot=it.prototype;function lt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function st(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ut(){}at.prototype={constructor:at,has:ot.has,add:function(e){return this[nt+(e+="")]=e,this},remove:ot.remove,clear:ot.clear,values:ot.keys,size:ot.size,empty:ot.empty,each:ot.each};var ct=.7,ht=1/ct,dt="\\s*([+-]?\\d+)\\s*",ft="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pt=/^#([0-9a-f]{3})$/,mt=/^#([0-9a-f]{6})$/,yt=new RegExp("^rgb\\("+[dt,dt,dt]+"\\)$"),vt=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),bt=new RegExp("^rgba\\("+[dt,dt,dt,ft]+"\\)$"),wt=new RegExp("^rgba\\("+[gt,gt,gt,ft]+"\\)$"),xt=new RegExp("^hsl\\("+[ft,gt,gt]+"\\)$"),Mt=new RegExp("^hsla\\("+[ft,gt,gt,ft]+"\\)$"),St={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 Tt(e){var t;return e=(e+"").trim().toLowerCase(),(t=pt.exec(e))?new zt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=mt.exec(e))?kt(parseInt(t[1],16)):(t=yt.exec(e))?new zt(t[1],t[2],t[3],1):(t=vt.exec(e))?new zt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bt.exec(e))?Dt(t[1],t[2],t[3],t[4]):(t=wt.exec(e))?Dt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xt.exec(e))?Et(t[1],t[2]/100,t[3]/100,1):(t=Mt.exec(e))?Et(t[1],t[2]/100,t[3]/100,t[4]):St.hasOwnProperty(e)?kt(St[e]):"transparent"===e?new zt(NaN,NaN,NaN,0):null}function kt(e){return new zt(e>>16&255,e>>8&255,255&e,1)}function Dt(e,t,n,r){return r<=0&&(e=t=n=NaN),new zt(e,t,n,r)}function Rt(e){return e instanceof ut||(e=Tt(e)),e?new zt((e=e.rgb()).r,e.g,e.b,e.opacity):new zt}function Ct(e,t,n,r){return 1===arguments.length?Rt(e):new zt(e,t,n,null==r?1:r)}function zt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Nt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Et(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Lt(e,t,n,r)}function Lt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}lt(ut,Tt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),lt(zt,Ct,st(ut,{brighter:function(e){return e=null==e?ht:Math.pow(ht,e),new zt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new zt(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"#"+Nt(this.r)+Nt(this.g)+Nt(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+")")}})),lt(Lt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Lt)return new Lt(e.h,e.s,e.l,e.opacity);if(e instanceof ut||(e=Tt(e)),!e)return new Lt;if(e instanceof Lt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(o=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Lt(o,l,s,e.opacity)}(e):new Lt(e,t,n,null==r?1:r)}),st(ut,{brighter:function(e){return e=null==e?ht:Math.pow(ht,e),new Lt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new Lt(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 zt(Pt(e>=240?e-240:e+120,i,r),Pt(e,i,r),Pt(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 $t=Math.PI/180,Ut=180/Math.PI,qt=.96422,jt=1,It=.82521,Ft=4/29,Ot=6/29,Ht=3*Ot*Ot,_t=Ot*Ot*Ot;function At(e){if(e instanceof Wt)return new Wt(e.l,e.a,e.b,e.opacity);if(e instanceof Kt){if(isNaN(e.h))return new Wt(e.l,0,0,e.opacity);var t=e.h*$t;return new Wt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof zt||(e=Rt(e));var n,r,i=Jt(e.r),a=Jt(e.g),o=Jt(e.b),l=Bt((.2225045*i+.7168786*a+.0606169*o)/jt);return i===a&&a===o?n=r=l:(n=Bt((.4360747*i+.3850649*a+.1430804*o)/qt),r=Bt((.0139322*i+.0971045*a+.7141733*o)/It)),new Wt(116*l-16,500*(n-l),200*(l-r),e.opacity)}function Wt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Bt(e){return e>_t?Math.pow(e,1/3):e/Ht+Ft}function Vt(e){return e>Ot?e*e*e:Ht*(e-Ft)}function Yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Jt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Kt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}lt(Wt,(function(e,t,n,r){return 1===arguments.length?At(e):new Wt(e,t,n,null==r?1:r)}),st(ut,{brighter:function(e){return new Wt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Wt(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 zt(Yt(3.1338561*(t=qt*Vt(t))-1.6168667*(e=jt*Vt(e))-.4906146*(n=It*Vt(n))),Yt(-.9787684*t+1.9161415*e+.033454*n),Yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),lt(Kt,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Kt)return new Kt(e.h,e.c,e.l,e.opacity);if(e instanceof Wt||(e=At(e)),0===e.a&&0===e.b)return new Kt(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ut;return new Kt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Kt(e,t,n,null==r?1:r)}),st(ut,{brighter:function(e){return new Kt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Kt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return At(this).rgb()}}));var Zt=-.14861,Gt=1.78277,Xt=-.29227,Qt=-.90649,en=1.97294,tn=en*Qt,nn=en*Gt,rn=Gt*Xt-Qt*Zt;function an(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof on)return new on(e.h,e.s,e.l,e.opacity);e instanceof zt||(e=Rt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(rn*r+tn*t-nn*n)/(rn+tn-nn),a=r-i,o=(en*(n-i)-Xt*a)/Qt,l=Math.sqrt(o*o+a*a)/(en*i*(1-i)),s=l?Math.atan2(o,a)*Ut-120:NaN;return new on(s<0?s+360:s,l,i,e.opacity)}(e):new on(e,t,n,null==r?1:r)}function on(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ln(e){return function(){return e}}function sn(e,t){return function(n){return e+n*t}}function un(e){return 1==(e=+e)?cn: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):ln(isNaN(t)?n:t)}}function cn(e,t){var n=t-e;return n?sn(e,n):ln(isNaN(e)?t:e)}function hn(e){return function t(n){function r(t,r){var i=e((t=an(t)).h,(r=an(r)).h),a=cn(t.s,r.s),o=cn(t.l,r.l),l=cn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=l(e),t+""}}return n=+n,r.gamma=t,r}(1)}function dn(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)]}lt(on,an,st(ut,{brighter:function(e){return e=null==e?ht:Math.pow(ht,e),new on(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ct:Math.pow(ct,e),new on(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*$t,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new zt(255*(t+n*(Zt*r+Gt*i)),255*(t+n*(Xt*r+Qt*i)),255*(t+n*(en*r)),this.opacity)}})),function e(t){var n=un(t);function r(e,t){var r=n((e=Ct(e)).r,(t=Ct(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=cn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return r.gamma=e,r}(1),hn((function(e,t){var n=t-e;return n?sn(e,n>180||n<-180?n-360*Math.round(n/360):n):ln(isNaN(e)?t:e)})),hn(cn);var fn,gn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pn(e){return new mn(e)}function mn(e){if(!(t=gn.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 yn(e,t){var n=dn(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")}pn.prototype=mn.prototype,mn.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 vn={"%":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 yn(100*e,t)},r:yn,s:function(e,t){var n=dn(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(fn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+dn(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function bn(e){return e}var wn,xn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mn(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,a=[],o=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(i-=l,i+l)),!((s+=l+1)>r));)l=t[o=(o+1)%t.length];return a.reverse().join(n)}):bn,i=e.currency,a=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):bn,l=e.percent||"%";function s(e){var t=(e=pn(e)).fill,n=e.align,s=e.sign,u=e.symbol,c=e.zero,h=e.width,d=e.comma,f=e.precision,g=e.trim,p=e.type;"n"===p?(d=!0,p="g"):vn[p]||(null==f&&(f=12),g=!0,p="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var m="$"===u?i[0]:"#"===u&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(p)?l:"",v=vn[p],b=/[defgprs%]/.test(p);function w(e){var i,l,u,w=m,x=y;if("c"===p)x=v(e)+x,e="";else{var M=(e=+e)<0;if(e=v(Math.abs(e),f),g&&(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)),M&&0==+e&&(M=!1),w=(M?"("===s?s:"-":"-"===s||"("===s?"":s)+w,x=("s"===p?xn[8+fn/3]:"")+x+(M&&"("===s?")":""),b)for(i=-1,l=e.length;++i<l;)if(48>(u=e.charCodeAt(i))||u>57){x=(46===u?a+e.slice(i+1):e.slice(i))+x,e=e.slice(0,i);break}}d&&!c&&(e=r(e,1/0));var S=w.length+e.length+x.length,T=S<h?new Array(h-S+1).join(t):"";switch(d&&c&&(e=r(T+e,T.length?h-x.length:1/0),T=""),n){case"<":e=w+e+x+T;break;case"=":e=w+T+e+x;break;case"^":e=T.slice(0,S=T.length>>1)+w+e+x+T.slice(S);break;default:e=T+w+e+x}return o(e)}return f=null==f?6:/[gprs]/.test(p)?Math.max(1,Math.min(21,f)):Math.max(0,Math.min(20,f)),w.toString=function(){return e+""},w}return{format:s,formatPrefix:function(e,t){var n,r=s(((e=pn(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor((n=t,((n=dn(Math.abs(n)))?n[1]:NaN)/3)))),a=Math.pow(10,-i),o=xn[8+i/3];return function(e){return r(a*e)+o}}}}(wn=Mn({decimal:".",thousands:",",grouping:[3],currency:["$",""]})).format,wn.formatPrefix;var Sn=new Date,Tn=new Date;function kn(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,a){var o,l=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return l;do{l.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<r);return l},i.filter=function(n){return kn((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 Sn.setTime(+t),Tn.setTime(+r),e(Sn),e(Tn),Math.floor(n(Sn,Tn))},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 Dn=kn((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Dn.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?kn((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Dn:null},Dn.range;var Rn=1e3,Cn=6e4,zn=36e5,Nn=864e5,En=6048e5;kn((function(e){e.setTime(Math.floor(e/Rn)*Rn)}),(function(e,t){e.setTime(+e+t*Rn)}),(function(e,t){return(t-e)/Rn}),(function(e){return e.getUTCSeconds()})).range,kn((function(e){e.setTime(Math.floor(e/Cn)*Cn)}),(function(e,t){e.setTime(+e+t*Cn)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getMinutes()})).range,kn((function(e){var t=e.getTimezoneOffset()*Cn%zn;t<0&&(t+=zn),e.setTime(Math.floor((+e-t)/zn)*zn+t)}),(function(e,t){e.setTime(+e+t*zn)}),(function(e,t){return(t-e)/zn}),(function(e){return e.getHours()})).range;var Ln=kn((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())*Cn)/Nn}),(function(e){return e.getDate()-1}));function Pn(e){return kn((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())*Cn)/En}))}Ln.range;var $n=Pn(0),Un=Pn(1),qn=Pn(2),jn=Pn(3),In=Pn(4),Fn=Pn(5),On=Pn(6);$n.range,Un.range,qn.range,jn.range,In.range,Fn.range,On.range,kn((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})).range;var Hn=kn((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()}));Hn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?kn((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},Hn.range,kn((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Cn)}),(function(e,t){return(t-e)/Cn}),(function(e){return e.getUTCMinutes()})).range,kn((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*zn)}),(function(e,t){return(t-e)/zn}),(function(e){return e.getUTCHours()})).range;var _n=kn((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Nn}),(function(e){return e.getUTCDate()-1}));function An(e){return kn((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)/En}))}_n.range;var Wn=An(0),Bn=An(1),Vn=An(2),Yn=An(3),Jn=An(4),Kn=An(5),Zn=An(6);Wn.range,Bn.range,Vn.range,Yn.range,Jn.range,Kn.range,Zn.range,kn((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})).range;var Gn=kn((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 Xn(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 Qn(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 er(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Gn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?kn((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},Gn.range;var tr,nr,rr,ir={"-":"",_:" ",0:"0"},ar=/^\s*\d+/,or=/^%/,lr=/[\\^$*+?|[\]().{}]/g;function sr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function ur(e){return e.replace(lr,"\\$&")}function cr(e){return new RegExp("^(?:"+e.map(ur).join("|")+")","i")}function hr(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function dr(e,t,n){var r=ar.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fr(e,t,n){var r=ar.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function gr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function yr(e,t,n){var r=ar.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function vr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function br(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 wr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function xr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Mr(e,t,n){var r=ar.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Sr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kr(e,t,n){var r=ar.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Dr(e,t,n){var r=ar.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rr(e,t,n){var r=ar.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Cr(e,t,n){var r=or.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function zr(e,t,n){var r=ar.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=ar.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Er(e,t){return sr(e.getDate(),t,2)}function Lr(e,t){return sr(e.getHours(),t,2)}function Pr(e,t){return sr(e.getHours()%12||12,t,2)}function $r(e,t){return sr(1+Ln.count(Hn(e),e),t,3)}function Ur(e,t){return sr(e.getMilliseconds(),t,3)}function qr(e,t){return Ur(e,t)+"000"}function jr(e,t){return sr(e.getMonth()+1,t,2)}function Ir(e,t){return sr(e.getMinutes(),t,2)}function Fr(e,t){return sr(e.getSeconds(),t,2)}function Or(e){var t=e.getDay();return 0===t?7:t}function Hr(e,t){return sr($n.count(Hn(e),e),t,2)}function _r(e,t){var n=e.getDay();return e=n>=4||0===n?In(e):In.ceil(e),sr(In.count(Hn(e),e)+(4===Hn(e).getDay()),t,2)}function Ar(e){return e.getDay()}function Wr(e,t){return sr(Un.count(Hn(e),e),t,2)}function Br(e,t){return sr(e.getFullYear()%100,t,2)}function Vr(e,t){return sr(e.getFullYear()%1e4,t,4)}function Yr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sr(t/60|0,"0",2)+sr(t%60,"0",2)}function Jr(e,t){return sr(e.getUTCDate(),t,2)}function Kr(e,t){return sr(e.getUTCHours(),t,2)}function Zr(e,t){return sr(e.getUTCHours()%12||12,t,2)}function Gr(e,t){return sr(1+_n.count(Gn(e),e),t,3)}function Xr(e,t){return sr(e.getUTCMilliseconds(),t,3)}function Qr(e,t){return Xr(e,t)+"000"}function ei(e,t){return sr(e.getUTCMonth()+1,t,2)}function ti(e,t){return sr(e.getUTCMinutes(),t,2)}function ni(e,t){return sr(e.getUTCSeconds(),t,2)}function ri(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return sr(Wn.count(Gn(e),e),t,2)}function ai(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Jn(e):Jn.ceil(e),sr(Jn.count(Gn(e),e)+(4===Gn(e).getUTCDay()),t,2)}function oi(e){return e.getUTCDay()}function li(e,t){return sr(Bn.count(Gn(e),e),t,2)}function si(e,t){return sr(e.getUTCFullYear()%100,t,2)}function ui(e,t){return sr(e.getUTCFullYear()%1e4,t,4)}function ci(){return"+0000"}function hi(){return"%"}function di(e){return+e}function fi(e){return Math.floor(+e/1e3)}!function(e){tr=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=cr(i),c=hr(i),h=cr(a),d=hr(a),f=cr(o),g=hr(o),p=cr(l),m=hr(l),y=cr(s),v=hr(s),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Er,e:Er,f:qr,H:Lr,I:Pr,j:$r,L:Ur,m:jr,M:Ir,p:function(e){return i[+(e.getHours()>=12)]},Q:di,s:fi,S:Fr,u:Or,U:Hr,V:_r,w:Ar,W:Wr,x:null,X:null,y:Br,Y:Vr,Z:Yr,"%":hi},w={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Jr,e:Jr,f:Qr,H:Kr,I:Zr,j:Gr,L:Xr,m:ei,M:ti,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:di,s:fi,S:ni,u:ri,U:ii,V:ai,w:oi,W:li,x:null,X:null,y:si,Y:ui,Z:ci,"%":hi},x={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=g[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[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=p.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:xr,e:xr,f:Rr,H:Sr,I:Sr,j:Mr,L:Dr,m:wr,M:Tr,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:zr,s:Nr,S:kr,u:fr,U:gr,V:pr,w:dr,W:mr,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:vr,Y:yr,Z:br,"%":Cr};function M(e,t){return function(n){var r,i,a,o=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(i=ir[r=e.charAt(++l)])?r=e.charAt(++l):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function S(e,t){return function(n){var r,i,a=er(1900);if(T(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Qn(er(a.y))).getUTCDay(),r=i>4||0===i?Bn.ceil(r):Bn(r),r=_n.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=t(er(a.y))).getDay(),r=i>4||0===i?Un.ceil(r):Un(r),r=Ln.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Qn(er(a.y)).getUTCDay():t(er(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Qn(a)):t(a)}}function T(e,t,n,r){for(var i,a,o=0,l=t.length,s=n.length;o<l;){if(r>=s)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=x[i in ir?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=M(n,b),b.X=M(r,b),b.c=M(t,b),w.x=M(n,w),w.X=M(r,w),w.c=M(t,w),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",Xn);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,Qn);return t.toString=function(){return e},t}}}(e),tr.format,tr.parse,nr=tr.utcFormat,rr=tr.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 gi="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||nr(gi),+new Date("2000-01-01T00:00:00.000Z")||rr(gi),Z.bind(null,!0);const pi=[[2,4,6],[2,4],[3]],mi=[,[,,[[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 yi(e,t,n){const r=e?e.length:0;let i,a=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)a=Math.min(a,e[i]/e[i-1]);void 0!==n&&(a=Math.min(a,n/e[r-1])),e.splice(0,0,a)}function vi(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)yi(e[r],t,n)}function bi(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"}function wi(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function xi(e){return e.formatter("num")(e.node.data.num.value)}function Mi({data:e}){return e?e.label:""}function Si(e){if(e.dataPoint.auto)return wi;switch(e.dataPoint.labelMode){case"share":default:return wi;case"value":return xi;case"none":return null}}function Ti(e,t,n,r,i){const a=i.axis.label.getStyle(),o=i.label.value.getStyle(),l=n.getStyles().label.value;return{type:"labels",key:"funnel-labels",renderer:bi(e,!0),layout:{displayOrder:2},settings:{sources:[{component:"fun",selector:".labelLeft",strategy:{type:"rows",settings:{align:0,fill:a.fill,fontSize:parseInt(a.fontSize,10),fontFamily:a.fontFamily,labels:[{label:Mi}],linkData:e=>`${e.data.value} ${Mi(e)}`}}},{component:"fun",selector:".labelCenter",strategy:{type:"rows",settings:{align:.5,fill:o.useContrastColor?({node:e})=>(e=>et.isDark(e.desc.fill)?l.lightColor:l.darkColor)(e):o.fill,fontSize:parseInt(o.fontSize,10),fontFamily:o.fontFamily,labels:[{label:Si(t)}],linkData:e=>"none"===t.dataPoint.labelMode?Math.random():`${e.data.value} ${Si(t)(e)}`}}}]},animations:{enabled:r,trackBy:e=>e.data}}}function ki(e,t,n){if(!t.showDimensionTitle||!t.qHyperCube.qDimensionInfo[0].qFallbackTitle)return!1;const r=t.qHyperCube.qDimensionInfo[0].qFallbackTitle,i=n.axis.title.getStyle();return{type:"text",key:"dimension-title",renderer:bi(e,!0),text:r,layout:{dock:"top"},style:{text:{fill:i.fill,fontSize:i.fontSize,fontFamily:i.fontFamily}}}}function Di(){return{share:{type:"d3-number",format:".1%"},num:{data:{field:"qMeasureInfo/0"}}}}function Ri({picasso:e}){const t=h(),n=d(),r=f(),i=g(),a=p(),u=m(),[c,b]=y(),[w,x]=y(),[M,S]=y(),[T,k]=y();return v((()=>{const c=o({picasso:e,model:r,app:i,translator:a,config:{auto:!1,key:"fill"}});t.style.overflow="hidden";const h=e({renderer:{prio:[u.renderer||"svg"]}}).chart({element:t,data:[],settings:{}}),d=l({chart:h,selections:n,config:{selectionActions:!1}});return S(d),x(c),b(h),k(s()),()=>{d.destroy(),h.destroy()}}),[]),[c,w,M,T]}!function(){let e,t;for(vi(pi,1,10),e=0;e<mi.length;e++)if(mi[e])for(t=0;t<mi[e].length;t++)Array.isArray(mi[e][t])&&vi(mi[e][t])}()}}}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nebula.js/sn-funnel-chart",
|
3
|
-
"version": "1.9.
|
3
|
+
"version": "1.9.20",
|
4
4
|
"description": "A sequential chart visualizing a linear process with connected stages, for example a sales process with potential revenue at each stage.",
|
5
5
|
"author": "QlikTech International AB",
|
6
6
|
"license": "MIT",
|