@nebula.js/sn-waterfall 0.25.9 → 0.25.13
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/properties.json +1 -1
- package/core/esm/index.js +660 -85
- package/core/esm/index.js.map +1 -1
- package/dist/sn-waterfall.js +664 -89
- package/dist/sn-waterfall.js.map +1 -1
- package/package.json +5 -5
package/core/esm/index.js
CHANGED
|
@@ -1,56 +1,151 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-waterfall v0.25.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-waterfall v0.25.13
|
|
3
|
+
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLayout as i,useDeviceType as o,useTheme as a,useTranslator as s,useMemo as l,onTakeSnapshot as u,useImperativeHandle as c,useElement as p,useStaleLayout as d,useState as f,useEffect as m}from"@nebula.js/stardust";import h from"jquery";import g from"picasso.js";import b from"picasso-plugin-q";import y from"picasso-plugin-hammer";import v from"hammerjs";import x from"extend";function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){S(o,n,i,a,s,"next",e)}function s(e){S(o,n,i,a,s,"throw",e)}a(void 0)}))}}function w(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var I={"Visualization.Histogram.MeasureAxisLabel":{id:"Visualization.Histogram.MeasureAxisLabel",locale:{"en-US":"Frequency","zh-TW":"頻率","zh-CN":"频率","tr-TR":"Sıklık","sv-SE":"Frekvens","it-IT":"Frequenza","es-ES":"Frecuencia","de-DE":"Häufigkeit","pl-PL":"Częstotliwość","nl-NL":"Frequentie","ko-KR":"빈도","pt-BR":"Frequência","fr-FR":"Fréquence","ja-JP":"レコード数","ru-RU":"Частота"}},"waterfall.legend.positiveValue.label":{id:"waterfall.legend.positiveValue.label",locale:{"en-US":"Positive","zh-TW":"正值","zh-CN":"正","tr-TR":"Pozitif","sv-SE":"Positiv","it-IT":"Positivi","es-ES":"Positivo","de-DE":"Positiv","pl-PL":"Dodatnie","nl-NL":"Positief","ko-KR":"양수","pt-BR":"Positivo","fr-FR":"Positive","ja-JP":"正","ru-RU":"Положительное"}},"waterfall.legend.negativeValue.label":{id:"waterfall.legend.negativeValue.label",locale:{"en-US":"Negative","zh-TW":"負值","zh-CN":"负","tr-TR":"Negatif","sv-SE":"Negativ","it-IT":"Negativi","es-ES":"Negativo","de-DE":"Negativ","pl-PL":"Ujemne","nl-NL":"Negatief","ko-KR":"음수","pt-BR":"Negativo","fr-FR":"Négative","ja-JP":"負","ru-RU":"Отрицательное"}},"waterfall.legend.subtotal.label":{id:"waterfall.legend.subtotal.label",locale:{"en-US":"Subtotal","zh-TW":"小計","zh-CN":"小计","tr-TR":"Ara Toplam","sv-SE":"Deltotal","it-IT":"Subtotale","es-ES":"Subtotal","de-DE":"Teilsumme","pl-PL":"Suma częściowa","nl-NL":"Subtotaal","ko-KR":"소계","pt-BR":"Subtotal","fr-FR":"Sous-total","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_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_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_RequireNumericDimension:{id:"Object.Disclaimer.RequireNumericDimension",locale:{"en-US":"This visualization requires a numeric diemnsion."}},"properties.boxplot.calculationMode.tukey.elements.boxEnd":{id:"properties.boxplot.calculationMode.tukey.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.tukey.elements.boxMiddle":{id:"properties.boxplot.calculationMode.tukey.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Drittes Quartil","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.tukey.elements.boxStart":{id:"properties.boxplot.calculationMode.tukey.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.tukey.elements.firstWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.firstWhisker",locale:{"en-US":"Box start - {0} IQR","zh-TW":"方塊開始 - {0} IQR","zh-CN":"框开始 - {0} IQR","tr-TR":"Kutu başlangıcı - {0} IQR","sv-SE":"Rutans start - {0} IQR","it-IT":"Inizio scatola - {0} IQR","es-ES":"Inicio de caja - {0} IQR","de-DE":"Box-Beginn - {0} IQR","pl-PL":"Początek wykresu pudełkowego - {0} IQR","nl-NL":"Begin box - {0} IQR","ko-KR":"상자 시작 - {0} IQR","pt-BR":"Início da caixa - {0} IQR","fr-FR":"Début de la boîte - {0} IQR","ja-JP":"ボックス開始 - {0} IQR","ru-RU":"Начало поля - {0} IQR"}},"properties.boxplot.calculationMode.tukey.elements.lastWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.lastWhisker",locale:{"en-US":"Box end + {0} IQR","zh-TW":"方塊結束 + {0} IQR","zh-CN":"框结束 + {0} IQR","tr-TR":"Kutu bitişi + {0} IQR","sv-SE":"Rutans slut + {0} IQR","it-IT":"Fine scatola + {0} IQR","es-ES":"Fin de caja + {0} IQR","de-DE":"Box-Ende + {0} IQR","pl-PL":"Koniec wykresu pudełkowego - {0} IQR","nl-NL":"Einde box + {0} IQR","ko-KR":"상자 끝 + {0} IQR","pt-BR":"Fim da caixa + {0} IQR","fr-FR":"Fin de la boîte + {0} IQR","ja-JP":"ボックス終了 + {0} IQR","ru-RU":"Конец поля + {0} IQR"}},"properties.boxplot.calculationMode.stdDev.elements.boxEnd":{id:"properties.boxplot.calculationMode.stdDev.elements.boxEnd",locale:{"en-US":"Box middle + 1 standard deviation","zh-TW":"方塊中間 + 1 個標準差","zh-CN":"框中部 + 1 个标准偏差","tr-TR":"Kutu ortası + 1 standart sapma","sv-SE":"Rutans mitt + 1 standardavvikelse","it-IT":"Centro scatola + 1 deviazione standard","es-ES":"Mitad de la caja + 1 desviación estándar","de-DE":"Box-Mitte +1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego + 1 odch. stand","nl-NL":"Midden box + 1 standaardafwijking","ko-KR":"상자 중간 + 1개 표준 편차","pt-BR":"Meio da caixa + 1 desvio padrão","fr-FR":"Milieu de la boîte + 1 écart type","ja-JP":"ボックス中間 + 1 標準偏差","ru-RU":"Середина поля + 1 стандартное отклонение"}},"properties.boxplot.calculationMode.stdDev.elements.boxMiddle":{id:"properties.boxplot.calculationMode.stdDev.elements.boxMiddle",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.boxplot.calculationMode.stdDev.elements.boxStart":{id:"properties.boxplot.calculationMode.stdDev.elements.boxStart",locale:{"en-US":"Box middle - 1 standard deviation","zh-TW":"方塊中間 - 1 個標準差","zh-CN":"框中部 - 1 个标准偏差","tr-TR":"Kutu ortası - 1 standart sapma","sv-SE":"Rutans mitt - 1 standardavvikelse","it-IT":"Centro scatola - 1 deviazione standard","es-ES":"Mitad de la caja - {1} desviación estándar","de-DE":"Box-Mitte -1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego - 1 odch. stand","nl-NL":"Midden box - 1 standaardafwijking","ko-KR":"상자 중간 - 1개 표준 편차","pt-BR":"Середина поля - 1 стандартное отклонение","fr-FR":"Milieu de la boîte - 1 écart type","ja-JP":"ボックス中間 - 1 標準偏差","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.stdDev.elements.firstWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.firstWhisker",locale:{"en-US":"Box middle - {0} standard deviations","zh-TW":"方塊中間 - {0} 個標準差","zh-CN":"框中部 - {0} 个标准偏差","tr-TR":"Kutu ortası - {0} standart sapma","sv-SE":"Rutans mitt - {0} standardavvikelser","it-IT":"Centro scatola - {0} deviazioni standard","es-ES":"Mitad de la caja - {0} desviaciones estándar","de-DE":"Box-Mitte -{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego - {0} odch. stand","nl-NL":"Midden box - {0} standaardafwijkingen","ko-KR":"상자 중간 - {0}개 표준 편차","pt-BR":"Meio da caixa - {0} desvios padrão","fr-FR":"Milieu de la boîte - {0} écarts types","ja-JP":"ボックス中間 - {0} 標準偏差","ru-RU":"Середина поля - {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.stdDev.elements.lastWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.lastWhisker",locale:{"en-US":"Box middle + {0} standard deviations","zh-TW":"方塊中間 + {0} 個標準差","zh-CN":"框中部 + {0} 个标准偏差","tr-TR":"Kutu ortası + {0} standart sapma","sv-SE":"Rutans mitt + {0} standardavvikelser","it-IT":"Centro scatola + {0} deviazioni standard","es-ES":"Mitad de la caja + {0} desviaciones estándar","de-DE":"Box-Mitte +{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego + {0} odch. stand","nl-NL":"Midden box + {0} standaardafwijkingen","ko-KR":"상자 중간 + {0}개 표준 편차","pt-BR":"Meio da caixa + {0} desvios padrão","fr-FR":"Milieu de la boîte + {0} écarts types","ja-JP":"ボックス中間 + {0} 標準偏差","ru-RU":"Середина поля + {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.fractiles.elements.boxEnd":{id:"properties.boxplot.calculationMode.fractiles.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile<","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.boxMiddle":{id:"properties.boxplot.calculationMode.fractiles.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Median","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.fractiles.elements.boxStart":{id:"properties.boxplot.calculationMode.fractiles.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth",locale:{"en-US":"5th percentile","zh-TW":"第 5 個百分位數","zh-CN":"第 5 个百分位","tr-TR":"5. yüzdebirlik","sv-SE":"5:e percentilen","it-IT":"5° percentile","es-ES":"5º percentil","de-DE":"5. Perzentil","pl-PL":"5. percentyl","nl-NL":"5e percentiel","ko-KR":"5번째 백분위수","pt-BR":"5º percentil","fr-FR":"5e centile","ja-JP":"5 番目のパーセンタイル","ru-RU":"5-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first",locale:{"en-US":"1st percentile","zh-TW":"第 1 個百分位數","zh-CN":"第 1 个百分位","tr-TR":"1. yüzdebirlik","sv-SE":"1:e percentilen","it-IT":"1° percentile","es-ES":"1er percentil","de-DE":"1. Perzentil","pl-PL":"1. percentyl","nl-NL":"1e percentiel","ko-KR":"1번째 백분위수","pt-BR":"1º percentil","fr-FR":"1er centile","ja-JP":"1 番目のパーセンタイル","ru-RU":"1-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min",locale:{"en-US":"Minimum","zh-TW":"最小","zh-CN":"最小值","tr-TR":"En az","sv-SE":"Min","it-IT":"Minimo","es-ES":"Mínimo","de-DE":"Minimum","pl-PL":"Minimum","nl-NL":"Minimum","ko-KR":"최소","pt-BR":"Mínimo","fr-FR":"Minimale","ja-JP":"最小値","ru-RU":"Минимум"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth",locale:{"en-US":"10th percentile","zh-TW":"第 10 個百分位數","zh-CN":"第 10 个百分位","tr-TR":"10. yüzdebirlik","sv-SE":"10:e percentilen","it-IT":"10° percentile","es-ES":"10º percentil","de-DE":"10. Perzentil","pl-PL":"10. percentyl","nl-NL":"10e percentiel","ko-KR":"10번째 백분위수","pt-BR":"10º percentil","fr-FR":"10e centile","ja-JP":"10 番目のパーセンタイル","ru-RU":"10-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max",locale:{"en-US":"Maximum","zh-TW":"最大","zh-CN":"最大值","tr-TR":"En fazla","sv-SE":"Max","it-IT":"Massimo","es-ES":"Máximo","de-DE":"Maximum","pl-PL":"Maksimum","nl-NL":"Maximum","ko-KR":"최대","pt-BR":"Máximo","fr-FR":"Maximale","ja-JP":"最大値","ru-RU":"Максимум"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth",locale:{"en-US":"90th percentile","zh-TW":"第 90 個百分位數","zh-CN":"第 90 个百分位","tr-TR":"90. yüzdebirlik","sv-SE":"90:e percentilen","it-IT":"90° percentile","es-ES":"90º percentil","de-DE":"90. Perzentil","pl-PL":"90. percentyl","nl-NL":"90e percentiel","ko-KR":"90번째 백분위수","pt-BR":"90º percentil","fr-FR":"90e centile","ja-JP":"90 番目の百分位数","ru-RU":"90-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth",locale:{"en-US":"95th percentile","zh-TW":"第 95 個百分位數","zh-CN":"第 95 个百分位","tr-TR":"95. yüzdebirlik","sv-SE":"95:e percentilen","it-IT":"95° percentile","es-ES":"95º percentil","de-DE":"95. Perzentil","pl-PL":"95. percentyl","nl-NL":"95e percentiel","ko-KR":"95번째 백분위수","pt-BR":"95º percentil","fr-FR":"95e centile","ja-JP":"95 番目の百分位数","ru-RU":"95-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth",locale:{"en-US":"99th percentile","zh-TW":"第 99 個百分位數","zh-CN":"第 99 个百分位","tr-TR":"99. yüzdebirlik","sv-SE":"99:e percentilen","it-IT":"99° percentile","es-ES":"99º percentil","de-DE":"99. Perzentil","pl-PL":"99. percentyl","nl-NL":"99e percentiel","ko-KR":"99번째 백분위수","pt-BR":"99º percentil","fr-FR":"99e centile","ja-JP":"99 番目の百分位数","ru-RU":"99-й процентиль"}}};function O(e){e.component("event-area",{mounted:function(e){e.classList.add("event-area"),e.style.pointerEvents="auto",e.style.zIndex=1},render:function(){return[]}})}var N={renderer:"dom",disableTriggers:!0,preferredSize:function(){return 22},render:function(e){var t=this.settings,r=t.settings,n=r.label,i=r.rtl,o=t.layout.dock,a="top"!==o&&"bottom"!==o||!i?"ltr":"rtl",s=function(e,t){var r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":r.width="".concat(t.height,"px"),r.transform="rotate(-90deg) translate(-".concat(t.height,"px, 0)"),r.transformOrigin="top left";break;case"right":r.width="".concat(t.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(t.width,"px)"),r.transformOrigin="top left";break;case"center":r.width="".concat(t.width,"px"),r.height="".concat(t.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(o,this.rect),l="center"===o?n:"* ".concat(n),u="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:u,title:l},l))}};var L={version:"0.25.9",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qInitialDataFetch:[{qWidth:200,qHeight:10}],qSuppressMissing:!0},color:{auto:!0,positiveValue:{paletteColor:{index:6,color:null}},negativeValue:{paletteColor:{index:-1,color:"#cc6677"}},subtotal:{paletteColor:{index:-1,color:"#c3c3c3"}}},dataPoint:{showLabels:!0},dimensionAxis:{dock:"near",label:"auto",show:"labels"},gridlines:{auto:!0,spacing:2},legend:{dock:"auto",show:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"labels",spacing:1},qDef:{qNumFormat:{},numFormatFromTemplate:!0,isCustomFormatted:!1},refLine:{refLines:[]},showTitles:!0,subtitle:"",title:"",footnote:""};function T(e){var t=e.translator;return{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:1,max:50,description:function(){return t.get("Visualizations.Descriptions.Bars")}}}}function R(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}};window;var F=R(P.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===M(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/conversion/",r(r.s="./index.js")}({"../node_modules/extend/index.js":function(e,t,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,i,o,a,p=arguments[0],d=1,f=arguments.length,m=!1;for("boolean"==typeof p&&(m=p,p=arguments[1]||{},d=2),(null==p||"object"!==M(p)&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)n=c(p,r),p!==(i=c(t,r))&&(m&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(p,{name:r,newValue:e(m,a,i)})):void 0!==i&&u(p,{name:r,newValue:i}));return p}},"../node_modules/qlik-modifiers/dist/qlik-modifiers.js":function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==M(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/qlik-modifiers/",r(r.s=1)}([function(e,t,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,i,o,a,p=arguments[0],d=1,f=arguments.length,m=!1;for("boolean"==typeof p&&(m=p,p=arguments[1]||{},d=2),(null==p||"object"!=M(p)&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)n=c(p,r),p!==(i=c(t,r))&&(m&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(p,{name:r,newValue:e(m,a,i)})):void 0!==i&&u(p,{name:r,newValue:i}));return p}},function(e,t,r){r.r(t);var n=r(0),i=r.n(n),o={setValue:function(e,t,r){if(!t)return!1;var n,i=t.split("."),o=i[i.length-1],a=e;for(n=0;n<i.length-1;++n)void 0===a[i[n]]&&(a[i[n]]=Number.isNaN(+i[n+1])?{}:[]),a=a[i[n]];if(void 0!==r){var s=a[o];return a[o]=r,{updated:r,previous:s}}return delete a[o],!1},getValue:function(e,t,r){var n,i=t.split("."),o=e;if(void 0===o)return r;for(n=0;n<i.length;++n){if(void 0===o[i[n]])return r;o=o[i[n]]}return o}},a="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function l(e){return a+e+s}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===i)return n;if(n.qDerivedFieldData)for(var o=0;o<n.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=n.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function c(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function d(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e).trim();return"="===t.substring(0,1)?t.substring(1).trim():t}function f(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function h(e){return void 0===e?")":", 0, ".concat(e,")")}function g(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=MinString(").concat(t,"))' and Only({1}").concat(t,")<='$(=MaxString(").concat(t,"))'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=g(u(n[0],i),f(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var p=u(n[0],i),d=u(n[1],i),m=f(0),h=f(1),b=g(p,m),y=g(d,h);return"".concat(a,"({1<").concat(b,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function y(e){return"".concat(e,"(")}function v(){return")"}function x(e){var t=e.properties,r=e.layout;return o.getValue(t,"qHyperCubeDef.qDimensions",o.getValue(r,"qHyperCube.qDimensionInfo",[])).length}var q={isFullRange:c,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=l(d(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:i}),u=o?"":", 0";if(n&&1===n.length){var c=f(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(u,")")}if(n&&2===n.length){var p=f(0),m=f(1);return"If(Count(".concat(p,") * Count(").concat(m,") > 0, ").concat(a," + ").concat(s).concat(u,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!c(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:h,getAboveComp:function(e,t,r,n){return m(e,t)+r+h(n)},getFunctionPrefix:y,getFunctionSuffix:v,getRangeComp:function(e,t){return y(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===x({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=f(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var i=["Descending","Ascending"],o=r.qSortByNumeric?"(Numeric, ".concat(i[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(i[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(o,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(o,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:d,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(a);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+a.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,i=void 0===n?1:n,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!r)return!0;var s=x({properties:t,layout:r});return s>=i&&s<=a},getExpressionWithMarkers:l,canExtract:function(e){var t=e.indexOf(a),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:f,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function D(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function S(e){return(S="function"==typeof Symbol&&"symbol"==M(Symbol.iterator)?function(e){return M(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":M(e)})(e)}var E=i.a.bind(null,!0),w={},A=Array.isArray;function j(e){return null!=e&&!Array.isArray(e)&&"object"===S(e)}function C(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,i){if(i!==n.length){r=+t;var o=Number.isNaN(r)?{}:[];e[r||t]=C(e[r||t])?o:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(j(e)&&j(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n+=1)if(!O(e[n],t[n]))return!1;return!0}return e===t}w.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(r,"/").concat(i);O(o,a)||k(t,i)||(C(a)?n.push({op:"add",path:s,value:o}):j(o)&&j(a)?n=n.concat(w.generate(a,o,s)):A(o)&&A(a)?n=n.concat(function(e,t,r){var n=[],i=e.slice(),o=-1;function a(e,t,r){if(e[r]&&C(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,i))return n;if(!C(t[0])&&C(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),i.splice(s,1)):n=n.concat(w.generate(i[s],t[o],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return n}(a,o,s)):n.push({op:"replace",path:"".concat(r,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){C(t[i])&&!k(e,i)&&n.push({op:"remove",path:"".concat(r,"/").concat(i)})})),n},w.apply=function(e,t){t.forEach((function(t){var r,n=I(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&Number.isNaN(+i)?n[i]:n[+i]||n,a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(A(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(A(o)&&A(t.value)){var s,l=t.value.slice();o.length=0,(s=o).push.apply(s,D(l))}else if(j(o)&&j(t.value))r=o,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),E(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){var u=I(e,t.from);A(n)?n.splice(+i,0,u.splice(+a,1)[0]):(n[i]=u[a],delete u[a])}else"remove"===t.op&&(A(n)?n.splice(+i,1):delete n[i])}))},w.clone=function(e){return E({},e)},w.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},w.updateObject=function(e,t){Object.keys(e).length?w.apply(e,w.generate(e,t)):E(e,t)};var N=w,L={saveSoftProperties:function(e,t,r){if(!e)return Promise.resolve();var n=N.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()}},T="accumulation";function R(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function P(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},_={translationKey:"properties.modifier.accumulation",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=q.getNumStepComp(r,l),d=q.getAboveComp(r,l,c,p),f=q.getRangeComp("RangeSum",d);if(q.needDimension({modifier:r,properties:n,layout:i})){var m=q.getDimComp(u,1),h=q.getDimComp(u,0),g=q.getAggrComp(f,m,h);f=r.showExcludedValues?q.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:q.extractInputExpression,initModifier:function(e){q.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=R(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=R(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=R(t,e);return o&&!o.disabled}}}},V="movingAverage";function H(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function z(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},U={translationKey:"properties.modifier.movingAverage",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=q.getNumDimensions({properties:i,layout:a}));var c=o.getValue(i,"qHyperCubeDef.qDimensions",[]),p=n.showExcludedValues&&n.nullSuppression,d=q.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:p}),f=q.getNumStepComp(n,u),m=q.getAboveComp(n,u,d,f);if(n.nullSuppression)t=q.getRangeComp("RangeAvg",m);else{var h=q.getRangeComp("RangeSum",m),g=function(e,t){var r=q.getRowNoComp(e,t);if(!q.isFullRange(e)){var n=e.steps,i="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(i,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(q.needDimension({modifier:n,properties:i,layout:a})){var y=q.getDimComp(c,1),v=q.getDimComp(c,0),x=q.getAggrComp(b,y,v);b=n.showExcludedValues?q.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:q.extractInputExpression,initModifier:function(e){q.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(z(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(V))return!1;var o=H(t,e);return o&&!o.disabled}}}},W="difference";function K(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},Y={translationKey:"properties.modifier.difference",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:q.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=q.getAboveComp(r,l,c),d="".concat(c," - ").concat(p);if(q.needDimension({modifier:r,properties:n,layout:i})){var f=q.getDimComp(u,1),m=q.getDimComp(u,0),h=q.getAggrComp(d,f,m);d=r.showExcludedValues?q.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return d},initModifier:function(e){Object.keys($).forEach((function(t){void 0===e[t]&&(e[t]=$[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(G(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=K(t,e);return o&&!o.disabled}}}},J={SELECTION:{CURRENT_SELECTION:0,SELECT_FIELD_VALUE:1,DISREGARD_SELECTION:2},DIMENSION:{ONE_DIMENSION:0,ALL_DIMENSIOANS:1,DISREGARD_ALL_DIMENSIONS:2}},X="normalization";function Q(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function ee(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}function te(e,t,r,n){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:J.DIMENSION.ONE_DIMENSION,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:J.DIMENSION.ALL_DIMENSIOANS,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,r){if(e<2){var n=ee(t,0);t.splice(n,1)}return t}(i,o),function(e,t,r){if(0===e){var n=ee(t,1);t.splice(n,1)}return t}(Q(e,n).selectionScope,o)}function re(e,t,r){var n=[{value:J.SELECTION.CURRENT_SELECTION,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:J.SELECTION.SELECT_FIELD_VALUE,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:J.SELECTION.DISREGARD_SELECTION,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return function(e,t,r){if(1===e){var n=ee(t,0);t.splice(n,1)}return t}(Q(e,r).dimensionalScope,n)}var ne={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,selectionScope:J.SELECTION.DISREGARD_SELECTION};function ie(e){return 2===e?"{1}":""}function oe(e,t,r){return 1===e?"{$<".concat(q.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,r){return 0===e&&t>1?"<".concat(q.getDimDefWithWrapper(r),">"):""}function le(e,t,r,n,i,o,a){var s=ie(t),l=oe(t,r,n),u=""===s&&""===l?"":s||l,c=ae(i,o),p=se(i,o,a),d=function(e){for(var t=[],r=0;r<e;r++)t[r]=q.getDimDefWithWrapper(r);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(d,"))")}var ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:q.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=r.selectionScope,d=r.dimensionalScope;return le(c,p,r.field,r.value,d,l,r.primaryDimension)},initModifier:function(e){Object.keys(ne).forEach((function(t){void 0===e[t]&&(e[t]=ne[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(Z(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:J.SELECTION.DISREGARD_SELECTION,options:function(r){return re(r,t,e)}},field:{refFn:function(t){return"".concat(Z(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return Q(t,e).selectionScope===J.SELECTION.SELECT_FIELD_VALUE}},value:{refFn:function(t){return"".concat(Z(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return Q(t,e).selectionScope===J.SELECTION.SELECT_FIELD_VALUE}},dimensionalScope:{refFn:function(t){return"".concat(Z(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,supportTooltip:!0,options:function(r,n){return te(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return(Q(t,e).dimensionalScope||0)===J.DIMENSION.ONE_DIMENSION&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Q(t,e);return o&&!o.disabled}}},getDisregardSelectionComp:ie,getFieldSelectionComp:oe,getTotalComp:ae,getSelectedDimComp:se};function ce(e){var t=e.model,r=e.callback,n={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=o.getValue(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=o.getValue(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var i=l(e);n[t].properties!==i&&(n[t].properties=i,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.measureLibraryIds,r=e.dimensionLibraryIds;i={},t.forEach((function(e){i[e]=!0})),a={},r.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:o}),Object.keys(n).forEach((function(e){i[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}var pe={getExpression:function(e){return o.getValue(e,"qDef.base.qDef")||o.getValue(e,"qDef.qDef")},getExpressionRef:function(e){return o.getValue(e,"qDef.base.qDef")?"qDef.base.qDef":"qDef.qDef"},getLibraryIdRef:function(e){return o.getValue(e,"qDef.base.qLibraryId")?"qDef.base.qLibraryId":"qLibraryId"},getLibraryId:function(e){return o.getValue(e,"qDef.base.qLibraryId")||o.getValue(e,"qLibraryId")},getLabelRef:function(e){return o.getValue(e,"qDef.base")?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o.getValue(e,"qDef.base")?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}},de={initBase:function(e,t){(t||de.isValid(e))&&(o.setValue(e,"qDef.base.qDef",o.getValue(e,"qDef.qDef")),o.setValue(e,"qDef.base.qLibraryId",o.getValue(e,"qLibraryId")),o.setValue(e,"qDef.base.qLabel",o.getValue(e,"qDef.qLabel")),o.setValue(e,"qDef.base.qLabelExpression",o.getValue(e,"qDef.qLabelExpression")))},restoreBase:function(e){de.isValid(e)&&(o.setValue(e,"qDef.qDef",o.getValue(e,"qDef.base.qDef")),o.setValue(e,"qLibraryId",o.getValue(e,"qDef.base.qLibraryId")),o.setValue(e,"qDef.qLabel",o.getValue(e,"qDef.base.qLabel")),o.setValue(e,"qDef.qLabelExpression",o.getValue(e,"qDef.base.qLabelExpression")),o.getValue(e,"qDef.qAggrFunc")&&o.getValue(e,"qDef.base.qAggrFunc")&&o.setValue(e,"qDef.qAggrFunc",o.getValue(e,"qDef.base.qAggrFunc")),delete e.qDef.base)},isValid:function(e){var t=o.getValue(e,"qDef.base.qDef"),r=o.getValue(e,"qDef.base.qLibraryId");return void 0!==t||void 0!==r}},fe=de;function me(e){return(me="function"==typeof Symbol&&"symbol"==M(Symbol.iterator)?function(e){return M(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":M(e)})(e)}var he={accumulation:_,movingAverage:U,difference:Y,normalization:ue},ge=(t.default={modifiers:he,apply:be,applyModifiers:ye,cleanUpMeasure:ve,destroy:function(e){e&&ge[e.id]&&ge[e.id].masterItemSubscriber&&(ge[e.id].masterItemSubscriber&&ge[e.id].masterItemSubscriber.unsubscribe(),delete ge[e.id])},hasActiveModifiers:xe,getActiveModifier:qe,initBase:fe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return he[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return he[e]&&he[e].isApplicable({properties:r,layout:n})}))},measureBase:pe,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=Se(e);Ie({modifiers:t,properties:r,layout:n})&&(i=!0,o=o||Re({modifiers:t,properties:r,layout:n}))})),i&&!o},ifEnableTotalsFunction:De},{});function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,a=void 0!==n&&n,s=e.masterItem;ge[t.id]=ge[t.id]||{isFirstTime:!0};var l=ge[t.id].isFirstTime;if(ge[t.id].isFirstTime=!1,r&&"object"===me(r))return ye({model:t,properties:r});var u=t?t.layout:void 0,c=o.getValue(u,"qSelectionInfo.qInSelections");if(a||c)return Promise.resolve(!1);var p=o.getValue(u,"qHyperCube.qMeasureInfo"),d=ge[t.id].lastReloadTime;if(ge[t.id].lastReloadTime=o.getValue(t,"app.layout.qLastReloadTime"),xe({measures:p,layout:u})){var f=function(e){var t=e.measures,r=e.layout,n=e.model,i=e.lastReloadTime;return o.getValue(n,"app.layout.qLastReloadTime")!==i&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return ke({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:u,model:t,lastReloadTime:d});return f||function(e){var t=e.measures,r=e.layout,n=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ie({modifiers:Se(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:u,masterItem:s,isFirstTime:l})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);we(r);var n=Pe(r);return Oe({model:t}).then((function(i){return Ne({libraryIds:n,model:t}).then((function(n){return f&&function(e){var t=e.properties;Me(t).forEach((function(e){return function(e){var t=e.measure,r=e.properties;if(ke({measure:t,properties:r})){var n=0,i=t.qDef.modifiers;Array.isArray(i)&&i.forEach((function(e){if("object"===me(e)&&!e.disabled){if(n++,"object"!==me(he[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=he[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&je(t)&&q.simplifyExpression(t.qDef.base.qDef)!==q.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ye({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:n,dimensionAndFieldList:i})}))}))})):Promise.resolve(!1)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===me(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Pe(r);return Fe({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Me(r).forEach((function(e){return ve(e)})),Te({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(!1)}function ye(e){var t=e.model,r=e.oldProperties,n=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,p=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),we(n);var d=Pe(n);return Fe({model:t,libraryIds:d,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(t||(t=Me(r)),!t.length)return Promise.resolve();if(!xe({measures:t,properties:r}))return t.forEach((function(e){return ve(e)})),Promise.resolve();var l=a?void 0:Pe(r);return Oe({model:n,dimensionAndFieldList:s}).then((function(e){return Ne({libraryIds:l,model:n,libraryItemsProps:a}).then((function(n){t.forEach((function(t){Ie({modifiers:t.qDef.modifiers,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;fe.isValid(t)||fe.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===me(e)&&!e.disabled){if(s++,"object"!==me(he[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");he[e.type].initModifier(e);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.libraryId,o=e.properties,a=e.libraryItemsProps,s=e.dimensionAndFieldList,l=a[n],u=l.qMeasure.qDef,c=he[r.type].generateExpression({expression:u,modifier:r,properties:o,dimensionAndFieldList:s});r.outputExpression=c,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||l.qMeasure.qLabel)&&(t.qDef.qLabel=l.qMeasure.qLabel),(t.qDef.qLabelExpression||l.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=l.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&l.qMeasure.qNumFormat&&(t.qDef.qNumFormat=l.qMeasure.qNumFormat,t.qDef.isCustomFormatted=l.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=l.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:a}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof he[r.type].updateModifier&&he[r.type].updateModifier(r,n.qHyperCubeDef);var a=pe.getExpression(t),s=he[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o.getValue(e,"qDef.qAggrFunc");"Expr"!==t||De(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&De(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ae(t)):ve(t)}))}))}))}({measures:a,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:p}).then((function(){return l?Te({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))}))}function ve(e){!function(e){var t=Se(e);return Array.isArray(t)&&t.some((function(e){return"object"===me(e)&&!e.disabled&&!he[e.type]}))}(e)?fe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ae(e)}function xe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ie({modifiers:Se(e),properties:r,layout:n})}))}function qe(e){var t=Se(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(he[n.type]&&!n.disabled)return n}}function De(e){var t=qe(e);return!t||he[t.type].enableTotalsFunction(e)}function Me(e){return o.getValue(e,"qHyperCubeDef.qMeasures",[]).concat(o.getValue(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Se(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ee(e){return o.getValue(e,"outputExpression.qValueExpression.qExpr")||o.getValue(e,"outputExpression")}function we(e){Me(e).forEach((function(e){return function(e){var t=qe(e);t&&(void 0!==t.outputExpression&&Ee(t)!==e.qDef.qDef?delete e.qDef.base:!fe.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ae(e){var t=Se(e);Array.isArray(t)&&t.forEach((function(t){"object"===me(t)&&(t.disabled||!he[t.type]&&Ee(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function je(e){return e.base||e.qDef&&e.qDef.base}function Ce(e){var t=je(e);return e.qLibraryId||t&&t.qLibraryId}function ke(e){var t=e.measure,r=e.properties,n=e.layout;return!Ce(t)&&Ie({modifiers:Se(t),properties:r,layout:n})}function Ie(e){var t=e.modifiers,r=e.properties,n=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==me(e)||e.disabled||!he[e.type])&&(void 0===i[e.type]&&(i[e.type]=he[e.type].isApplicable({properties:r,layout:n})),i[e.type])}))}function Oe(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));n.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return i}))}function Ne(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Le(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Te(e){var t=e.oldProperties,r=e.newProperties,n=e.model,i=JSON.stringify(o.getValue(t,"qHyperCubeDef.qMeasures"),Le)!==JSON.stringify(o.getValue(r,"qHyperCubeDef.qMeasures"),Le)||JSON.stringify(o.getValue(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Le)!==JSON.stringify(o.getValue(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Le);return i?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o.getValue(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L.saveSoftProperties(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return i})):Promise.resolve(i)}function Re(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===me(e)&&!e.disabled&&he[e.type]&&he[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Pe(e){var t=Me(e),r=[],n=[],i=!1;return t.forEach((function(t){var n=Se(t);if(Ie({modifiers:n,properties:e})){var o=Ce(t);o&&r.push(o),i=i||Re({modifiers:n,properties:e})}})),o.getValue(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Fe(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ge[t.id].masterItemSubscriber=ge[t.id].masterItemSubscriber||ce({model:t,callback:function(e){return be({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ge[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}}])},"./axis-chart/export-properties/index.js":function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
7
|
+
import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useApp as i,useAppLayout as o,useDeviceType as a,useTheme as s,useTranslator as l,useMemo as u,onTakeSnapshot as c,useImperativeHandle as p,useElement as d,useStaleLayout as f,useState as m,useEffect as h}from"@nebula.js/stardust";import g from"jquery";import b from"picasso.js";import y from"picasso-plugin-q";import v from"picasso-plugin-hammer";import x from"hammerjs";import q from"extend";function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,i)}function w(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){E(o,n,i,a,s,"next",e)}function s(e){E(o,n,i,a,s,"throw",e)}a(void 0)}))}}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var O={"Visualization.Histogram.MeasureAxisLabel":{id:"Visualization.Histogram.MeasureAxisLabel",locale:{"en-US":"Frequency","zh-TW":"頻率","zh-CN":"频率","tr-TR":"Sıklık","sv-SE":"Frekvens","it-IT":"Frequenza","es-ES":"Frecuencia","de-DE":"Häufigkeit","pl-PL":"Częstotliwość","nl-NL":"Frequentie","ko-KR":"빈도","pt-BR":"Frequência","fr-FR":"Fréquence","ja-JP":"レコード数","ru-RU":"Частота"}},"waterfall.legend.positiveValue.label":{id:"waterfall.legend.positiveValue.label",locale:{"en-US":"Positive","zh-TW":"正值","zh-CN":"正","tr-TR":"Pozitif","sv-SE":"Positiv","it-IT":"Positivi","es-ES":"Positivo","de-DE":"Positiv","pl-PL":"Dodatnie","nl-NL":"Positief","ko-KR":"양수","pt-BR":"Positivo","fr-FR":"Positive","ja-JP":"正","ru-RU":"Положительное"}},"waterfall.legend.negativeValue.label":{id:"waterfall.legend.negativeValue.label",locale:{"en-US":"Negative","zh-TW":"負值","zh-CN":"负","tr-TR":"Negatif","sv-SE":"Negativ","it-IT":"Negativi","es-ES":"Negativo","de-DE":"Negativ","pl-PL":"Ujemne","nl-NL":"Negatief","ko-KR":"음수","pt-BR":"Negativo","fr-FR":"Négative","ja-JP":"負","ru-RU":"Отрицательное"}},"waterfall.legend.subtotal.label":{id:"waterfall.legend.subtotal.label",locale:{"en-US":"Subtotal","zh-TW":"小計","zh-CN":"小计","tr-TR":"Ara Toplam","sv-SE":"Deltotal","it-IT":"Subtotale","es-ES":"Subtotal","de-DE":"Teilsumme","pl-PL":"Suma częściowa","nl-NL":"Subtotaal","ko-KR":"소계","pt-BR":"Subtotal","fr-FR":"Sous-total","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_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_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_RequireNumericDimension:{id:"Object.Disclaimer.RequireNumericDimension",locale:{"en-US":"This visualization requires a numeric diemnsion."}},"properties.boxplot.calculationMode.tukey.elements.boxEnd":{id:"properties.boxplot.calculationMode.tukey.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.tukey.elements.boxMiddle":{id:"properties.boxplot.calculationMode.tukey.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Drittes Quartil","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.tukey.elements.boxStart":{id:"properties.boxplot.calculationMode.tukey.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.tukey.elements.firstWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.firstWhisker",locale:{"en-US":"Box start - {0} IQR","zh-TW":"方塊開始 - {0} IQR","zh-CN":"框开始 - {0} IQR","tr-TR":"Kutu başlangıcı - {0} IQR","sv-SE":"Rutans start - {0} IQR","it-IT":"Inizio scatola - {0} IQR","es-ES":"Inicio de caja - {0} IQR","de-DE":"Box-Beginn - {0} IQR","pl-PL":"Początek wykresu pudełkowego - {0} IQR","nl-NL":"Begin box - {0} IQR","ko-KR":"상자 시작 - {0} IQR","pt-BR":"Início da caixa - {0} IQR","fr-FR":"Début de la boîte - {0} IQR","ja-JP":"ボックス開始 - {0} IQR","ru-RU":"Начало поля - {0} IQR"}},"properties.boxplot.calculationMode.tukey.elements.lastWhisker":{id:"properties.boxplot.calculationMode.tukey.elements.lastWhisker",locale:{"en-US":"Box end + {0} IQR","zh-TW":"方塊結束 + {0} IQR","zh-CN":"框结束 + {0} IQR","tr-TR":"Kutu bitişi + {0} IQR","sv-SE":"Rutans slut + {0} IQR","it-IT":"Fine scatola + {0} IQR","es-ES":"Fin de caja + {0} IQR","de-DE":"Box-Ende + {0} IQR","pl-PL":"Koniec wykresu pudełkowego - {0} IQR","nl-NL":"Einde box + {0} IQR","ko-KR":"상자 끝 + {0} IQR","pt-BR":"Fim da caixa + {0} IQR","fr-FR":"Fin de la boîte + {0} IQR","ja-JP":"ボックス終了 + {0} IQR","ru-RU":"Конец поля + {0} IQR"}},"properties.boxplot.calculationMode.stdDev.elements.boxEnd":{id:"properties.boxplot.calculationMode.stdDev.elements.boxEnd",locale:{"en-US":"Box middle + 1 standard deviation","zh-TW":"方塊中間 + 1 個標準差","zh-CN":"框中部 + 1 个标准偏差","tr-TR":"Kutu ortası + 1 standart sapma","sv-SE":"Rutans mitt + 1 standardavvikelse","it-IT":"Centro scatola + 1 deviazione standard","es-ES":"Mitad de la caja + 1 desviación estándar","de-DE":"Box-Mitte +1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego + 1 odch. stand","nl-NL":"Midden box + 1 standaardafwijking","ko-KR":"상자 중간 + 1개 표준 편차","pt-BR":"Meio da caixa + 1 desvio padrão","fr-FR":"Milieu de la boîte + 1 écart type","ja-JP":"ボックス中間 + 1 標準偏差","ru-RU":"Середина поля + 1 стандартное отклонение"}},"properties.boxplot.calculationMode.stdDev.elements.boxMiddle":{id:"properties.boxplot.calculationMode.stdDev.elements.boxMiddle",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.boxplot.calculationMode.stdDev.elements.boxStart":{id:"properties.boxplot.calculationMode.stdDev.elements.boxStart",locale:{"en-US":"Box middle - 1 standard deviation","zh-TW":"方塊中間 - 1 個標準差","zh-CN":"框中部 - 1 个标准偏差","tr-TR":"Kutu ortası - 1 standart sapma","sv-SE":"Rutans mitt - 1 standardavvikelse","it-IT":"Centro scatola - 1 deviazione standard","es-ES":"Mitad de la caja - {1} desviación estándar","de-DE":"Box-Mitte -1 Standardabweichung","pl-PL":"Środek wykresu pudełkowego - 1 odch. stand","nl-NL":"Midden box - 1 standaardafwijking","ko-KR":"상자 중간 - 1개 표준 편차","pt-BR":"Середина поля - 1 стандартное отклонение","fr-FR":"Milieu de la boîte - 1 écart type","ja-JP":"ボックス中間 - 1 標準偏差","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.stdDev.elements.firstWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.firstWhisker",locale:{"en-US":"Box middle - {0} standard deviations","zh-TW":"方塊中間 - {0} 個標準差","zh-CN":"框中部 - {0} 个标准偏差","tr-TR":"Kutu ortası - {0} standart sapma","sv-SE":"Rutans mitt - {0} standardavvikelser","it-IT":"Centro scatola - {0} deviazioni standard","es-ES":"Mitad de la caja - {0} desviaciones estándar","de-DE":"Box-Mitte -{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego - {0} odch. stand","nl-NL":"Midden box - {0} standaardafwijkingen","ko-KR":"상자 중간 - {0}개 표준 편차","pt-BR":"Meio da caixa - {0} desvios padrão","fr-FR":"Milieu de la boîte - {0} écarts types","ja-JP":"ボックス中間 - {0} 標準偏差","ru-RU":"Середина поля - {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.stdDev.elements.lastWhisker":{id:"properties.boxplot.calculationMode.stdDev.elements.lastWhisker",locale:{"en-US":"Box middle + {0} standard deviations","zh-TW":"方塊中間 + {0} 個標準差","zh-CN":"框中部 + {0} 个标准偏差","tr-TR":"Kutu ortası + {0} standart sapma","sv-SE":"Rutans mitt + {0} standardavvikelser","it-IT":"Centro scatola + {0} deviazioni standard","es-ES":"Mitad de la caja + {0} desviaciones estándar","de-DE":"Box-Mitte +{0} Standardabweichung","pl-PL":"Środek wykresu pudełkowego + {0} odch. stand","nl-NL":"Midden box + {0} standaardafwijkingen","ko-KR":"상자 중간 + {0}개 표준 편차","pt-BR":"Meio da caixa + {0} desvios padrão","fr-FR":"Milieu de la boîte + {0} écarts types","ja-JP":"ボックス中間 + {0} 標準偏差","ru-RU":"Середина поля + {0} стандартное(ых) отклонение(й)"}},"properties.boxplot.calculationMode.fractiles.elements.boxEnd":{id:"properties.boxplot.calculationMode.fractiles.elements.boxEnd",locale:{"en-US":"Third quartile","zh-TW":"第三四分位數","zh-CN":"第 3 个四分位","tr-TR":"Üçüncü çeyrek","sv-SE":"Tredje kvartilen","it-IT":"Terzo quartile<","es-ES":"Tercer cuartil","de-DE":"Drittes Quartil","pl-PL":"Trzeci kwartyl","nl-NL":"Derde kwartiel","ko-KR":"3번째 사분위수","pt-BR":"Terceiro quartil","fr-FR":"Troisième quartile","ja-JP":"第 3 四分位数","ru-RU":"Третий квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.boxMiddle":{id:"properties.boxplot.calculationMode.fractiles.elements.boxMiddle",locale:{"en-US":"Median","zh-TW":"中位數","zh-CN":"中间值","tr-TR":"Medyan","sv-SE":"Median","it-IT":"Mediana","es-ES":"Mediana","de-DE":"Median","pl-PL":"Mediana","nl-NL":"Mediaan","ko-KR":"중앙값","pt-BR":"Mediano","fr-FR":"Médiane","ja-JP":"中央値","ru-RU":"Медианное"}},"properties.boxplot.calculationMode.fractiles.elements.boxStart":{id:"properties.boxplot.calculationMode.fractiles.elements.boxStart",locale:{"en-US":"First quartile","zh-TW":"第一四分位數","zh-CN":"第 1 个四分位","tr-TR":"İlk çeyrek","sv-SE":"Första kvartilen","it-IT":"Primo quartile","es-ES":"Primer cuartil","de-DE":"Erstes Quartil","pl-PL":"Pierwszy kwartyl","nl-NL":"Eerste kwartiel","ko-KR":"1번째 사분위수","pt-BR":"Primeiro quartil","fr-FR":"Premier quartile","ja-JP":"第 1 四分位数","ru-RU":"Первый квартиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.fifth",locale:{"en-US":"5th percentile","zh-TW":"第 5 個百分位數","zh-CN":"第 5 个百分位","tr-TR":"5. yüzdebirlik","sv-SE":"5:e percentilen","it-IT":"5° percentile","es-ES":"5º percentil","de-DE":"5. Perzentil","pl-PL":"5. percentyl","nl-NL":"5e percentiel","ko-KR":"5번째 백분위수","pt-BR":"5º percentil","fr-FR":"5e centile","ja-JP":"5 番目のパーセンタイル","ru-RU":"5-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.first",locale:{"en-US":"1st percentile","zh-TW":"第 1 個百分位數","zh-CN":"第 1 个百分位","tr-TR":"1. yüzdebirlik","sv-SE":"1:e percentilen","it-IT":"1° percentile","es-ES":"1er percentil","de-DE":"1. Perzentil","pl-PL":"1. percentyl","nl-NL":"1e percentiel","ko-KR":"1번째 백분위수","pt-BR":"1º percentil","fr-FR":"1er centile","ja-JP":"1 番目のパーセンタイル","ru-RU":"1-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.min",locale:{"en-US":"Minimum","zh-TW":"最小","zh-CN":"最小值","tr-TR":"En az","sv-SE":"Min","it-IT":"Minimo","es-ES":"Mínimo","de-DE":"Minimum","pl-PL":"Minimum","nl-NL":"Minimum","ko-KR":"최소","pt-BR":"Mínimo","fr-FR":"Minimale","ja-JP":"最小値","ru-RU":"Минимум"}},"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth":{id:"properties.boxplot.calculationMode.fractiles.elements.firstWhisker.tenth",locale:{"en-US":"10th percentile","zh-TW":"第 10 個百分位數","zh-CN":"第 10 个百分位","tr-TR":"10. yüzdebirlik","sv-SE":"10:e percentilen","it-IT":"10° percentile","es-ES":"10º percentil","de-DE":"10. Perzentil","pl-PL":"10. percentyl","nl-NL":"10e percentiel","ko-KR":"10번째 백분위수","pt-BR":"10º percentil","fr-FR":"10e centile","ja-JP":"10 番目のパーセンタイル","ru-RU":"10-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.max",locale:{"en-US":"Maximum","zh-TW":"最大","zh-CN":"最大值","tr-TR":"En fazla","sv-SE":"Max","it-IT":"Massimo","es-ES":"Máximo","de-DE":"Maximum","pl-PL":"Maksimum","nl-NL":"Maximum","ko-KR":"최대","pt-BR":"Máximo","fr-FR":"Maximale","ja-JP":"最大値","ru-RU":"Максимум"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetieth",locale:{"en-US":"90th percentile","zh-TW":"第 90 個百分位數","zh-CN":"第 90 个百分位","tr-TR":"90. yüzdebirlik","sv-SE":"90:e percentilen","it-IT":"90° percentile","es-ES":"90º percentil","de-DE":"90. Perzentil","pl-PL":"90. percentyl","nl-NL":"90e percentiel","ko-KR":"90번째 백분위수","pt-BR":"90º percentil","fr-FR":"90e centile","ja-JP":"90 番目の百分位数","ru-RU":"90-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetyfifth",locale:{"en-US":"95th percentile","zh-TW":"第 95 個百分位數","zh-CN":"第 95 个百分位","tr-TR":"95. yüzdebirlik","sv-SE":"95:e percentilen","it-IT":"95° percentile","es-ES":"95º percentil","de-DE":"95. Perzentil","pl-PL":"95. percentyl","nl-NL":"95e percentiel","ko-KR":"95번째 백분위수","pt-BR":"95º percentil","fr-FR":"95e centile","ja-JP":"95 番目の百分位数","ru-RU":"95-й процентиль"}},"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth":{id:"properties.boxplot.calculationMode.fractiles.elements.lastWhisker.ninetynineth",locale:{"en-US":"99th percentile","zh-TW":"第 99 個百分位數","zh-CN":"第 99 个百分位","tr-TR":"99. yüzdebirlik","sv-SE":"99:e percentilen","it-IT":"99° percentile","es-ES":"99º percentil","de-DE":"99. Perzentil","pl-PL":"99. percentyl","nl-NL":"99e percentiel","ko-KR":"99번째 백분위수","pt-BR":"99º percentil","fr-FR":"99e centile","ja-JP":"99 番目の百分位数","ru-RU":"99-й процентиль"}}};function N(e){e.component("event-area",{mounted:function(e){e.classList.add("event-area"),e.style.pointerEvents="auto",e.style.zIndex=1},render:function(){return[]}})}var L={renderer:"dom",disableTriggers:!0,preferredSize:function(){return 22},render:function(e){var t=this.settings,r=t.settings,n=r.label,i=r.rtl,o=t.layout.dock,a="top"!==o&&"bottom"!==o||!i?"ltr":"rtl",s=function(e,t){var r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px"};switch(e){case"left":r.width="".concat(t.height,"px"),r.transform="rotate(-90deg) translate(-".concat(t.height,"px, 0)"),r.transformOrigin="top left";break;case"right":r.width="".concat(t.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(t.width,"px)"),r.transformOrigin="top left";break;case"center":r.width="".concat(t.width,"px"),r.height="".concat(t.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center";break;default:case"top":case"bottom":r.justifyContent="flex-start",r.alignItems="flex-start"}return r}(o,this.rect),l="center"===o?n:"* ".concat(n),u="center"!==o?{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}:{};return e("div",{style:s,dir:a},e("span",{ref:this.alignToRef,style:u,title:l},l))}};var T={version:"0.25.13",qHyperCubeDef:{qDimensions:[],qMeasures:[],qMode:"S",qInitialDataFetch:[{qWidth:200,qHeight:10}],qSuppressMissing:!0},color:{auto:!0,positiveValue:{paletteColor:{index:6,color:null}},negativeValue:{paletteColor:{index:-1,color:"#cc6677"}},subtotal:{paletteColor:{index:-1,color:"#c3c3c3"}}},dataPoint:{showLabels:!0},dimensionAxis:{dock:"near",label:"auto",show:"labels"},gridlines:{auto:!0,spacing:2},legend:{dock:"auto",show:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"labels",spacing:1},qDef:{qNumFormat:{},numFormatFromTemplate:!0,isCustomFormatted:!1},refLine:{refLines:[]},showTitles:!0,subtitle:"",title:"",footnote:""};function R(e){var t=e.translator;return{path:"/qHyperCubeDef",dimensions:{min:0,max:0},measures:{min:1,max:50,description:function(){return t.get("Visualizations.Descriptions.Bars")}}}}function P(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}};window;var _=P(F.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===S(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/conversion/",r(r.s="./index.js")}({"../node_modules/extend/index.js":
|
|
8
|
+
/*!***************************************!*\
|
|
9
|
+
!*** ../node_modules/extend/index.js ***!
|
|
10
|
+
\***************************************/
|
|
11
|
+
/*! no static exports found */
|
|
12
|
+
function(e,t,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,i,o,a,p=arguments[0],d=1,f=arguments.length,m=!1;for("boolean"==typeof p&&(m=p,p=arguments[1]||{},d=2),(null==p||"object"!==S(p)&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)n=c(p,r),p!==(i=c(t,r))&&(m&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(p,{name:r,newValue:e(m,a,i)})):void 0!==i&&u(p,{name:r,newValue:i}));return p}},"../node_modules/qlik-modifiers/dist/qlik-modifiers.js":
|
|
13
|
+
/*!*************************************************************!*\
|
|
14
|
+
!*** ../node_modules/qlik-modifiers/dist/qlik-modifiers.js ***!
|
|
15
|
+
\*************************************************************/
|
|
16
|
+
/*! no static exports found */
|
|
17
|
+
function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==S(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/qlik-modifiers/",r(r.s=1)}([function(e,t,r){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,i,o,a,p=arguments[0],d=1,f=arguments.length,m=!1;for("boolean"==typeof p&&(m=p,p=arguments[1]||{},d=2),(null==p||"object"!=S(p)&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)n=c(p,r),p!==(i=c(t,r))&&(m&&i&&(l(i)||(o=s(i)))?(o?(o=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(p,{name:r,newValue:e(m,a,i)})):void 0!==i&&u(p,{name:r,newValue:i}));return p}},function(e,t,r){r.r(t);var n=r(0),i=r.n(n),o={setValue:function(e,t,r){if(!t)return!1;var n,i=t.split("."),o=i[i.length-1],a=e;for(n=0;n<i.length-1;++n)void 0===a[i[n]]&&(a[i[n]]=Number.isNaN(+i[n+1])?{}:[]),a=a[i[n]];if(void 0!==r){var s=a[o];return a[o]=r,{updated:r,previous:s}}return delete a[o],!1},getValue:function(e,t,r){var n,i=t.split("."),o=e;if(void 0===o)return r;for(n=0;n<i.length;++n){if(void 0===o[i[n]])return r;o=o[i[n]]}return o}},a="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function l(e){return a+e+s}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===i)return n;if(n.qDerivedFieldData)for(var o=0;o<n.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=n.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function c(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function d(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e).trim();return"="===t.substring(0,1)?t.substring(1).trim():t}function f(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function h(e){return void 0===e?")":", 0, ".concat(e,")")}function g(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=MinString(").concat(t,"))' and Only({1}").concat(t,")<='$(=MaxString(").concat(t,"))'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=g(u(n[0],i),f(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var p=u(n[0],i),d=u(n[1],i),m=f(0),h=f(1),b=g(p,m),y=g(d,h);return"".concat(a,"({1<").concat(b,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function y(e){return"".concat(e,"(")}function v(){return")"}function x(e){var t=e.properties,r=e.layout;return o.getValue(t,"qHyperCubeDef.qDimensions",o.getValue(r,"qHyperCube.qDimensionInfo",[])).length}var q={isFullRange:c,getNumDimensions:x,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=l(d(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:i}),u=o?"":", 0";if(n&&1===n.length){var c=f(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(u,")")}if(n&&2===n.length){var p=f(0),m=f(1);return"If(Count(".concat(p,") * Count(").concat(m,") > 0, ").concat(a," + ").concat(s).concat(u,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!c(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:h,getAboveComp:function(e,t,r,n){return m(e,t)+r+h(n)},getFunctionPrefix:y,getFunctionSuffix:v,getRangeComp:function(e,t){return y(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===x({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=f(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var i=["Descending","Ascending"],o=r.qSortByNumeric?"(Numeric, ".concat(i[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(i[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(o,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(o,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:d,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(a);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+a.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,i=void 0===n?1:n,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!r)return!0;var s=x({properties:t,layout:r});return s>=i&&s<=a},getExpressionWithMarkers:l,canExtract:function(e){var t=e.indexOf(a),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:f,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")}};function D(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function M(e){return(M="function"==typeof Symbol&&"symbol"==S(Symbol.iterator)?function(e){return S(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":S(e)})(e)}var E=i.a.bind(null,!0),w={},A=Array.isArray;function j(e){return null!=e&&!Array.isArray(e)&&"object"===M(e)}function C(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function I(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,i){if(i!==n.length){r=+t;var o=Number.isNaN(r)?{}:[];e[r||t]=C(e[r||t])?o:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(j(e)&&j(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n+=1)if(!O(e[n],t[n]))return!1;return!0}return e===t}w.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?E({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(r,"/").concat(i);O(o,a)||k(t,i)||(C(a)?n.push({op:"add",path:s,value:o}):j(o)&&j(a)?n=n.concat(w.generate(a,o,s)):A(o)&&A(a)?n=n.concat(function(e,t,r){var n=[],i=e.slice(),o=-1;function a(e,t,r){if(e[r]&&C(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,i=e.length;n<i;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,i))return n;if(!C(t[0])&&C(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),i.splice(s,1)):n=n.concat(w.generate(i[s],t[o],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return n}(a,o,s)):n.push({op:"replace",path:"".concat(r,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){C(t[i])&&!k(e,i)&&n.push({op:"remove",path:"".concat(r,"/").concat(i)})})),n},w.apply=function(e,t){t.forEach((function(t){var r,n=I(e,t.path),i=t.path.split("/").splice(-1)[0],o=i&&Number.isNaN(+i)?n[i]:n[+i]||n,a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(A(n))"-"===i&&(i=n.length),n.splice(+i,"add"===t.op?0:1,t.value);else if(A(o)&&A(t.value)){var s,l=t.value.slice();o.length=0,(s=o).push.apply(s,D(l))}else if(j(o)&&j(t.value))r=o,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),E(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[i]=t.value}else if("move"===t.op){var u=I(e,t.from);A(n)?n.splice(+i,0,u.splice(+a,1)[0]):(n[i]=u[a],delete u[a])}else"remove"===t.op&&(A(n)?n.splice(+i,1):delete n[i])}))},w.clone=function(e){return E({},e)},w.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},w.updateObject=function(e,t){Object.keys(e).length?w.apply(e,w.generate(e,t)):E(e,t)};var N=w,L={saveSoftProperties:function(e,t,r){if(!e)return Promise.resolve();var n=N.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()}},T="accumulation";function R(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function P(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""},_={translationKey:"properties.modifier.accumulation",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=q.getNumStepComp(r,l),d=q.getAboveComp(r,l,c,p),f=q.getRangeComp("RangeSum",d);if(q.needDimension({modifier:r,properties:n,layout:i})){var m=q.getDimComp(u,1),h=q.getDimComp(u,0),g=q.getAggrComp(f,m,h);f=r.showExcludedValues?q.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:q.extractInputExpression,initModifier:function(e){q.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=R(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=R(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(T))return!1;var o=R(t,e);return o&&!o.disabled}}}},V="movingAverage";function H(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function z(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1},U={translationKey:"properties.modifier.movingAverage",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=q.getNumDimensions({properties:i,layout:a}));var c=o.getValue(i,"qHyperCubeDef.qDimensions",[]),p=n.showExcludedValues&&n.nullSuppression,d=q.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:p}),f=q.getNumStepComp(n,u),m=q.getAboveComp(n,u,d,f);if(n.nullSuppression)t=q.getRangeComp("RangeAvg",m);else{var h=q.getRangeComp("RangeSum",m),g=function(e,t){var r=q.getRowNoComp(e,t);if(!q.isFullRange(e)){var n=e.steps,i="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(i,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(q.needDimension({modifier:n,properties:i,layout:a})){var y=q.getDimComp(c,1),v=q.getDimComp(c,0),x=q.getAggrComp(b,y,v);b=n.showExcludedValues?q.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:q.extractInputExpression,initModifier:function(e){q.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(z(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(V))return!1;var o=H(t,e);return o&&!o.disabled}}}},W="difference";function K(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""},Y={translationKey:"properties.modifier.difference",needDimension:q.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:q.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=q.getAboveComp(r,l,c),d="".concat(c," - ").concat(p);if(q.needDimension({modifier:r,properties:n,layout:i})){var f=q.getDimComp(u,1),m=q.getDimComp(u,0),h=q.getAggrComp(d,f,m);d=r.showExcludedValues?q.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return d},initModifier:function(e){Object.keys($).forEach((function(t){void 0===e[t]&&(e[t]=$[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(G(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(G(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(W))return!1;var o=K(t,e);return o&&!o.disabled}}}},J={SELECTION:{CURRENT_SELECTION:0,SELECT_FIELD_VALUE:1,DISREGARD_SELECTION:2},DIMENSION:{ONE_DIMENSION:0,ALL_DIMENSIOANS:1,DISREGARD_ALL_DIMENSIONS:2}},X="normalization";function Q(e,t){var r=o.getValue(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=o.getValue(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function ee(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}function te(e,t,r,n){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:J.DIMENSION.ONE_DIMENSION,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:J.DIMENSION.ALL_DIMENSIOANS,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,r){if(e<2){var n=ee(t,0);t.splice(n,1)}return t}(i,o),function(e,t,r){if(0===e){var n=ee(t,1);t.splice(n,1)}return t}(Q(e,n).selectionScope,o)}function re(e,t,r){var n=[{value:J.SELECTION.CURRENT_SELECTION,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:J.SELECTION.SELECT_FIELD_VALUE,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:J.SELECTION.DISREGARD_SELECTION,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return function(e,t,r){if(1===e){var n=ee(t,0);t.splice(n,1)}return t}(Q(e,r).dimensionalScope,n)}var ne={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,selectionScope:J.SELECTION.DISREGARD_SELECTION};function ie(e){return 2===e?"{1}":""}function oe(e,t,r){return 1===e?"{$<".concat(q.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ae(e,t){return 0===e&&t>1||2===e?"Total":""}function se(e,t,r){return 0===e&&t>1?"<".concat(q.getDimDefWithWrapper(r),">"):""}function le(e,t,r,n,i,o,a){var s=ie(t),l=oe(t,r,n),u=""===s&&""===l?"":s||l,c=ae(i,o),p=se(i,o,a),d=function(e){for(var t=[],r=0;r<e;r++)t[r]=q.getDimDefWithWrapper(r);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(d,"))")}var ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return q.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:q.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=q.getNumDimensions({properties:n,layout:i}));var u=o.getValue(n,"qHyperCubeDef.qDimensions",[]),c=q.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),p=r.selectionScope,d=r.dimensionalScope;return le(c,p,r.field,r.value,d,l,r.primaryDimension)},initModifier:function(e){Object.keys(ne).forEach((function(t){void 0===e[t]&&(e[t]=ne[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!q.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(Z(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:J.SELECTION.DISREGARD_SELECTION,options:function(r){return re(r,t,e)}},field:{refFn:function(t){return"".concat(Z(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return Q(t,e).selectionScope===J.SELECTION.SELECT_FIELD_VALUE}},value:{refFn:function(t){return"".concat(Z(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return Q(t,e).selectionScope===J.SELECTION.SELECT_FIELD_VALUE}},dimensionalScope:{refFn:function(t){return"".concat(Z(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:J.DIMENSION.DISREGARD_ALL_DIMENSIONS,supportTooltip:!0,options:function(r,n){return te(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return(Q(t,e).dimensionalScope||0)===J.DIMENSION.ONE_DIMENSION&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return q.isApplicable({properties:t.properties})}}},show:function(t,r,n){var i=n.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Q(t,e);return o&&!o.disabled}}},getDisregardSelectionComp:ie,getFieldSelectionComp:oe,getTotalComp:ae,getSelectedDimComp:se};function ce(e){var t=e.model,r=e.callback,n={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=o.getValue(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=o.getValue(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var i=l(e);n[t].properties!==i&&(n[t].properties=i,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.measureLibraryIds,r=e.dimensionLibraryIds;i={},t.forEach((function(e){i[e]=!0})),a={},r.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:o}),Object.keys(n).forEach((function(e){i[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}var pe={getExpression:function(e){return o.getValue(e,"qDef.base.qDef")||o.getValue(e,"qDef.qDef")},getExpressionRef:function(e){return o.getValue(e,"qDef.base.qDef")?"qDef.base.qDef":"qDef.qDef"},getLibraryIdRef:function(e){return o.getValue(e,"qDef.base.qLibraryId")?"qDef.base.qLibraryId":"qLibraryId"},getLibraryId:function(e){return o.getValue(e,"qDef.base.qLibraryId")||o.getValue(e,"qLibraryId")},getLabelRef:function(e){return o.getValue(e,"qDef.base")?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o.getValue(e,"qDef.base")?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}},de={initBase:function(e,t){(t||de.isValid(e))&&(o.setValue(e,"qDef.base.qDef",o.getValue(e,"qDef.qDef")),o.setValue(e,"qDef.base.qLibraryId",o.getValue(e,"qLibraryId")),o.setValue(e,"qDef.base.qLabel",o.getValue(e,"qDef.qLabel")),o.setValue(e,"qDef.base.qLabelExpression",o.getValue(e,"qDef.qLabelExpression")))},restoreBase:function(e){de.isValid(e)&&(o.setValue(e,"qDef.qDef",o.getValue(e,"qDef.base.qDef")),o.setValue(e,"qLibraryId",o.getValue(e,"qDef.base.qLibraryId")),o.setValue(e,"qDef.qLabel",o.getValue(e,"qDef.base.qLabel")),o.setValue(e,"qDef.qLabelExpression",o.getValue(e,"qDef.base.qLabelExpression")),o.getValue(e,"qDef.qAggrFunc")&&o.getValue(e,"qDef.base.qAggrFunc")&&o.setValue(e,"qDef.qAggrFunc",o.getValue(e,"qDef.base.qAggrFunc")),delete e.qDef.base)},isValid:function(e){var t=o.getValue(e,"qDef.base.qDef"),r=o.getValue(e,"qDef.base.qLibraryId");return void 0!==t||void 0!==r}},fe=de;function me(e){return(me="function"==typeof Symbol&&"symbol"==S(Symbol.iterator)?function(e){return S(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":S(e)})(e)}var he={accumulation:_,movingAverage:U,difference:Y,normalization:ue},ge=(t.default={modifiers:he,apply:be,applyModifiers:ye,cleanUpMeasure:ve,destroy:function(e){e&&ge[e.id]&&ge[e.id].masterItemSubscriber&&(ge[e.id].masterItemSubscriber&&ge[e.id].masterItemSubscriber.unsubscribe(),delete ge[e.id])},hasActiveModifiers:xe,getActiveModifier:qe,initBase:fe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return he[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return he[e]&&he[e].isApplicable({properties:r,layout:n})}))},measureBase:pe,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=Se(e);Ie({modifiers:t,properties:r,layout:n})&&(i=!0,o=o||Re({modifiers:t,properties:r,layout:n}))})),i&&!o},ifEnableTotalsFunction:De},{});function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,a=void 0!==n&&n,s=e.masterItem;ge[t.id]=ge[t.id]||{isFirstTime:!0};var l=ge[t.id].isFirstTime;if(ge[t.id].isFirstTime=!1,r&&"object"===me(r))return ye({model:t,properties:r});var u=t?t.layout:void 0,c=o.getValue(u,"qSelectionInfo.qInSelections");if(a||c)return Promise.resolve(!1);var p=o.getValue(u,"qHyperCube.qMeasureInfo"),d=ge[t.id].lastReloadTime;if(ge[t.id].lastReloadTime=o.getValue(t,"app.layout.qLastReloadTime"),xe({measures:p,layout:u})){var f=function(e){var t=e.measures,r=e.layout,n=e.model,i=e.lastReloadTime;return o.getValue(n,"app.layout.qLastReloadTime")!==i&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return ke({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:u,model:t,lastReloadTime:d});return f||function(e){var t=e.measures,r=e.layout,n=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ie({modifiers:Se(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:u,masterItem:s,isFirstTime:l})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);we(r);var n=Pe(r);return Oe({model:t}).then((function(i){return Ne({libraryIds:n,model:t}).then((function(n){return f&&function(e){var t=e.properties;Me(t).forEach((function(e){return function(e){var t=e.measure,r=e.properties;if(ke({measure:t,properties:r})){var n=0,i=t.qDef.modifiers;Array.isArray(i)&&i.forEach((function(e){if("object"===me(e)&&!e.disabled){if(n++,"object"!==me(he[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=he[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&je(t)&&q.simplifyExpression(t.qDef.base.qDef)!==q.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),ye({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:n,dimensionAndFieldList:i})}))}))})):Promise.resolve(!1)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===me(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Pe(r);return Fe({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Me(r).forEach((function(e){return ve(e)})),Te({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(!1)}function ye(e){var t=e.model,r=e.oldProperties,n=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,p=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),we(n);var d=Pe(n);return Fe({model:t,libraryIds:d,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(t||(t=Me(r)),!t.length)return Promise.resolve();if(!xe({measures:t,properties:r}))return t.forEach((function(e){return ve(e)})),Promise.resolve();var l=a?void 0:Pe(r);return Oe({model:n,dimensionAndFieldList:s}).then((function(e){return Ne({libraryIds:l,model:n,libraryItemsProps:a}).then((function(n){t.forEach((function(t){Ie({modifiers:t.qDef.modifiers,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;fe.isValid(t)||fe.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===me(e)&&!e.disabled){if(s++,"object"!==me(he[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");he[e.type].initModifier(e);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.libraryId,o=e.properties,a=e.libraryItemsProps,s=e.dimensionAndFieldList,l=a[n],u=l.qMeasure.qDef,c=he[r.type].generateExpression({expression:u,modifier:r,properties:o,dimensionAndFieldList:s});r.outputExpression=c,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||l.qMeasure.qLabel)&&(t.qDef.qLabel=l.qMeasure.qLabel),(t.qDef.qLabelExpression||l.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=l.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&l.qMeasure.qNumFormat&&(t.qDef.qNumFormat=l.qMeasure.qNumFormat,t.qDef.isCustomFormatted=l.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=l.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:a}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof he[r.type].updateModifier&&he[r.type].updateModifier(r,n.qHyperCubeDef);var a=pe.getExpression(t),s=he[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o.getValue(e,"qDef.qAggrFunc");"Expr"!==t||De(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&De(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ae(t)):ve(t)}))}))}))}({measures:a,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:p}).then((function(){return l?Te({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))}))}function ve(e){!function(e){var t=Se(e);return Array.isArray(t)&&t.some((function(e){return"object"===me(e)&&!e.disabled&&!he[e.type]}))}(e)?fe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ae(e)}function xe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ie({modifiers:Se(e),properties:r,layout:n})}))}function qe(e){var t=Se(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(he[n.type]&&!n.disabled)return n}}function De(e){var t=qe(e);return!t||he[t.type].enableTotalsFunction(e)}function Me(e){return o.getValue(e,"qHyperCubeDef.qMeasures",[]).concat(o.getValue(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Se(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ee(e){return o.getValue(e,"outputExpression.qValueExpression.qExpr")||o.getValue(e,"outputExpression")}function we(e){Me(e).forEach((function(e){return function(e){var t=qe(e);t&&(void 0!==t.outputExpression&&Ee(t)!==e.qDef.qDef?delete e.qDef.base:!fe.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ae(e){var t=Se(e);Array.isArray(t)&&t.forEach((function(t){"object"===me(t)&&(t.disabled||!he[t.type]&&Ee(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function je(e){return e.base||e.qDef&&e.qDef.base}function Ce(e){var t=je(e);return e.qLibraryId||t&&t.qLibraryId}function ke(e){var t=e.measure,r=e.properties,n=e.layout;return!Ce(t)&&Ie({modifiers:Se(t),properties:r,layout:n})}function Ie(e){var t=e.modifiers,r=e.properties,n=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==me(e)||e.disabled||!he[e.type])&&(void 0===i[e.type]&&(i[e.type]=he[e.type].isApplicable({properties:r,layout:n})),i[e.type])}))}function Oe(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));n.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return i}))}function Ne(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Le(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Te(e){var t=e.oldProperties,r=e.newProperties,n=e.model,i=JSON.stringify(o.getValue(t,"qHyperCubeDef.qMeasures"),Le)!==JSON.stringify(o.getValue(r,"qHyperCubeDef.qMeasures"),Le)||JSON.stringify(o.getValue(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Le)!==JSON.stringify(o.getValue(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Le);return i?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o.getValue(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L.saveSoftProperties(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return i})):Promise.resolve(i)}function Re(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===me(e)&&!e.disabled&&he[e.type]&&he[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Pe(e){var t=Me(e),r=[],n=[],i=!1;return t.forEach((function(t){var n=Se(t);if(Ie({modifiers:n,properties:e})){var o=Ce(t);o&&r.push(o),i=i||Re({modifiers:n,properties:e})}})),o.getValue(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Fe(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ge[t.id].masterItemSubscriber=ge[t.id].masterItemSubscriber||ce({model:t,callback:function(e){return be({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ge[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}}])},"./axis-chart/export-properties/index.js":
|
|
18
|
+
/*!***********************************************!*\
|
|
19
|
+
!*** ./axis-chart/export-properties/index.js ***!
|
|
20
|
+
\***********************************************/
|
|
21
|
+
/*! exports provided: default */
|
|
22
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
8
23
|
/*! ../../quarantine/quarantine-property */
|
|
9
24
|
"./quarantine/quarantine-property.js"),i=r(
|
|
10
25
|
/*! ../../color-chart */
|
|
11
|
-
"./color-chart/index.js");function o(e){var t=e.propertyTree,r=e.hypercubePath,o=e.viewDataMode,a=e.supportedAutoMinMax,s=void 0===a||a,l=i.default.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:o}),u=l.properties;return s?(Object(n.default)(u,"measureAxis.min","supportedAutoMinMax"),Object(n.default)(u,"measureAxis.max","supportedAutoMinMax")):(Object(n.default)(u,"measureAxis.min","unsupportedAutoMinMax"),Object(n.default)(u,"measureAxis.max","unsupportedAutoMinMax")),l}},"./axis-chart/import-properties/helpers/get-measures-per-axis.js":
|
|
26
|
+
"./color-chart/index.js");function o(e){var t=e.propertyTree,r=e.hypercubePath,o=e.viewDataMode,a=e.supportedAutoMinMax,s=void 0===a||a,l=i.default.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:o}),u=l.properties;return s?(Object(n.default)(u,"measureAxis.min","supportedAutoMinMax"),Object(n.default)(u,"measureAxis.max","supportedAutoMinMax")):(Object(n.default)(u,"measureAxis.min","unsupportedAutoMinMax"),Object(n.default)(u,"measureAxis.max","unsupportedAutoMinMax")),l}},"./axis-chart/import-properties/helpers/get-measures-per-axis.js":
|
|
27
|
+
/*!***********************************************************************!*\
|
|
28
|
+
!*** ./axis-chart/import-properties/helpers/get-measures-per-axis.js ***!
|
|
29
|
+
\***********************************************************************/
|
|
30
|
+
/*! exports provided: default */
|
|
31
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=["bar","marker","line"];function i(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,i=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),n.includes(i)&&t[o].type[i]++,t[o].type.total++}})),t}},"./axis-chart/import-properties/helpers/handle-auto-min-max.js":
|
|
32
|
+
/*!*********************************************************************!*\
|
|
33
|
+
!*** ./axis-chart/import-properties/helpers/handle-auto-min-max.js ***!
|
|
34
|
+
\*********************************************************************/
|
|
35
|
+
/*! exports provided: default */
|
|
36
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
12
37
|
/*! extend */
|
|
13
38
|
"../node_modules/extend/index.js"),i=r.n(n),o=r(
|
|
14
39
|
/*! ../../../quarantine/unquarantine-property */
|
|
15
|
-
"./quarantine/unquarantine-property.js");function a(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?Object(o.default)(r,"unsupportedAutoMinMax")||i()(r.measureAxis,t.measureAxis):Object(o.default)(r,"supportedAutoMinMax")||i()(r.measureAxis,t.measureAxis)}},"./axis-chart/import-properties/helpers/handle-measures-axis.js":
|
|
40
|
+
"./quarantine/unquarantine-property.js");function a(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?Object(o.default)(r,"unsupportedAutoMinMax")||i()(r.measureAxis,t.measureAxis):Object(o.default)(r,"supportedAutoMinMax")||i()(r.measureAxis,t.measureAxis)}},"./axis-chart/import-properties/helpers/handle-measures-axis.js":
|
|
41
|
+
/*!**********************************************************************!*\
|
|
42
|
+
!*** ./axis-chart/import-properties/helpers/handle-measures-axis.js ***!
|
|
43
|
+
\**********************************************************************/
|
|
44
|
+
/*! exports provided: default */
|
|
45
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return s}));var n=r(
|
|
16
46
|
/*! extend */
|
|
17
47
|
"../node_modules/extend/index.js"),i=r.n(n),o=r(
|
|
18
48
|
/*! ./should-update-measure-axis */
|
|
19
49
|
"./axis-chart/import-properties/helpers/should-update-measure-axis.js"),a=r(
|
|
20
50
|
/*! ./get-measures-per-axis */
|
|
21
|
-
"./axis-chart/import-properties/helpers/get-measures-per-axis.js");function s(e){var t,r=e.exportFormat,n=e.initialProperties,s=e.properties,l=e.measureType,u=s.qHyperCubeDef,c=s.measureAxis;if(Object(o.default)({exportFormat:r,initialProperties:n})){var p=Object(a.default)(u);p.length?(l&&(t=p.filter((function(e){return e.type[l]>0})).sort((function(e,t){return t.type[l]-e.type[l]}))),t&&t.length||(t=p.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&i()(c,r.properties.measureAxes[t[0].axis])):i()(c,r.properties.measureAxes[0])}}},"./axis-chart/import-properties/helpers/index.js":
|
|
51
|
+
"./axis-chart/import-properties/helpers/get-measures-per-axis.js");function s(e){var t,r=e.exportFormat,n=e.initialProperties,s=e.properties,l=e.measureType,u=s.qHyperCubeDef,c=s.measureAxis;if(Object(o.default)({exportFormat:r,initialProperties:n})){var p=Object(a.default)(u);p.length?(l&&(t=p.filter((function(e){return e.type[l]>0})).sort((function(e,t){return t.type[l]-e.type[l]}))),t&&t.length||(t=p.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&i()(c,r.properties.measureAxes[t[0].axis])):i()(c,r.properties.measureAxes[0])}}},"./axis-chart/import-properties/helpers/index.js":
|
|
52
|
+
/*!*******************************************************!*\
|
|
53
|
+
!*** ./axis-chart/import-properties/helpers/index.js ***!
|
|
54
|
+
\*******************************************************/
|
|
55
|
+
/*! exports provided: default */
|
|
56
|
+
function(e,t,r){r.r(t);var n=r(
|
|
22
57
|
/*! ./handle-auto-min-max */
|
|
23
58
|
"./axis-chart/import-properties/helpers/handle-auto-min-max.js"),i=r(
|
|
24
59
|
/*! ./handle-measures-axis */
|
|
25
60
|
"./axis-chart/import-properties/helpers/handle-measures-axis.js"),o=r(
|
|
26
61
|
/*! ./set-inter-column-sort-order */
|
|
27
|
-
"./axis-chart/import-properties/helpers/set-inter-column-sort-order.js");t.default={handleAutoMinMax:n.default,handleMeasuresAxis:i.default,setInterColumnSortOrder:o.default}},"./axis-chart/import-properties/helpers/set-inter-column-sort-order.js":
|
|
62
|
+
"./axis-chart/import-properties/helpers/set-inter-column-sort-order.js");t.default={handleAutoMinMax:n.default,handleMeasuresAxis:i.default,setInterColumnSortOrder:o.default}},"./axis-chart/import-properties/helpers/set-inter-column-sort-order.js":
|
|
63
|
+
/*!*****************************************************************************!*\
|
|
64
|
+
!*** ./axis-chart/import-properties/helpers/set-inter-column-sort-order.js ***!
|
|
65
|
+
\*****************************************************************************/
|
|
66
|
+
/*! exports provided: default */
|
|
67
|
+
function(e,t,r){function n(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}}r.r(t),r.d(t,"default",(function(){return n}))},"./axis-chart/import-properties/helpers/should-update-measure-axis.js":
|
|
68
|
+
/*!****************************************************************************!*\
|
|
69
|
+
!*** ./axis-chart/import-properties/helpers/should-update-measure-axis.js ***!
|
|
70
|
+
\****************************************************************************/
|
|
71
|
+
/*! exports provided: default */
|
|
72
|
+
function(e,t,r){function n(e){var t=e.exportFormat,r=e.initialProperties;return!(!t.properties.measureAxes||r.measureAxes||!r.measureAxis||void 0===r.measureAxis.autoMinMax)}r.r(t),r.d(t,"default",(function(){return n}))},"./axis-chart/import-properties/index.js":
|
|
73
|
+
/*!***********************************************!*\
|
|
74
|
+
!*** ./axis-chart/import-properties/index.js ***!
|
|
75
|
+
\***********************************************/
|
|
76
|
+
/*! exports provided: default */
|
|
77
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
28
78
|
/*! ./helpers */
|
|
29
79
|
"./axis-chart/import-properties/helpers/index.js"),i=r(
|
|
30
80
|
/*! ../../color-chart */
|
|
31
|
-
"./color-chart/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=e.dataDefinition,a=e.defaultPropertyValues,s=e.hypercubePath,l=e.measureType,u=i.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:o,defaultPropertyValues:a,hypercubePath:s}),c=u.qProperty;return n.default.handleAutoMinMax({initialProperties:r,properties:c}),n.default.handleMeasuresAxis({exportFormat:t,initialProperties:r,properties:c,measureType:l}),n.default.setInterColumnSortOrder(c.qHyperCubeDef),u}},"./axis-chart/index.js":
|
|
81
|
+
"./color-chart/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=e.dataDefinition,a=e.defaultPropertyValues,s=e.hypercubePath,l=e.measureType,u=i.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:o,defaultPropertyValues:a,hypercubePath:s}),c=u.qProperty;return n.default.handleAutoMinMax({initialProperties:r,properties:c}),n.default.handleMeasuresAxis({exportFormat:t,initialProperties:r,properties:c,measureType:l}),n.default.setInterColumnSortOrder(c.qHyperCubeDef),u}},"./axis-chart/index.js":
|
|
82
|
+
/*!*****************************!*\
|
|
83
|
+
!*** ./axis-chart/index.js ***!
|
|
84
|
+
\*****************************/
|
|
85
|
+
/*! exports provided: default */
|
|
86
|
+
function(e,t,r){r.r(t);var n=r(
|
|
32
87
|
/*! ./export-properties */
|
|
33
88
|
"./axis-chart/export-properties/index.js"),i=r(
|
|
34
89
|
/*! ./import-properties */
|
|
35
|
-
"./axis-chart/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./color-chart/export-properties/index.js":
|
|
90
|
+
"./axis-chart/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./color-chart/export-properties/index.js":
|
|
91
|
+
/*!************************************************!*\
|
|
92
|
+
!*** ./color-chart/export-properties/index.js ***!
|
|
93
|
+
\************************************************/
|
|
94
|
+
/*! exports provided: default */
|
|
95
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
36
96
|
/*! ../../utils/attribute-expression-util */
|
|
37
97
|
"./utils/attribute-expression-util/index.js"),i=r(
|
|
38
98
|
/*! ../../hypercube */
|
|
39
|
-
"./hypercube/index.js");function o(e){var t=e.propertyTree,r=e.hypercubePath,o=e.viewDataMode,a=i.default.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:o}),s=a.data[0],l=s.dimensions.concat(s.excludedDimensions),u=s.measures.concat(s.excludedMeasures),c=n.default.IDMAP,p=c.COLOR_BY_ALTERNATIVE,d=c.COLOR_BY_EXPRESSION;return n.default.moveByIdFromGroup(l,[],"qAttributeDimensions",p),n.default.moveByIdFromGroup(l,[],"qAttributeExpressions",p),n.default.moveByIdFromGroup(u,[],"qAttributeExpressions",d),a}},"./color-chart/import-properties/helpers/add-color-by-expression.js":
|
|
99
|
+
"./hypercube/index.js");function o(e){var t=e.propertyTree,r=e.hypercubePath,o=e.viewDataMode,a=i.default.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:o}),s=a.data[0],l=s.dimensions.concat(s.excludedDimensions),u=s.measures.concat(s.excludedMeasures),c=n.default.IDMAP,p=c.COLOR_BY_ALTERNATIVE,d=c.COLOR_BY_EXPRESSION;return n.default.moveByIdFromGroup(l,[],"qAttributeDimensions",p),n.default.moveByIdFromGroup(l,[],"qAttributeExpressions",p),n.default.moveByIdFromGroup(u,[],"qAttributeExpressions",d),a}},"./color-chart/import-properties/helpers/add-color-by-expression.js":
|
|
100
|
+
/*!**************************************************************************!*\
|
|
101
|
+
!*** ./color-chart/import-properties/helpers/add-color-by-expression.js ***!
|
|
102
|
+
\**************************************************************************/
|
|
103
|
+
/*! exports provided: default */
|
|
104
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
40
105
|
/*! ../../../utils */
|
|
41
|
-
"./utils/index.js");function i(e){var t=n.default.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=n.default.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),n.default.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)}},"./color-chart/import-properties/helpers/change-property.js":
|
|
106
|
+
"./utils/index.js");function i(e){var t=n.default.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=n.default.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),n.default.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)}},"./color-chart/import-properties/helpers/change-property.js":
|
|
107
|
+
/*!******************************************************************!*\
|
|
108
|
+
!*** ./color-chart/import-properties/helpers/change-property.js ***!
|
|
109
|
+
\******************************************************************/
|
|
110
|
+
/*! exports provided: default */
|
|
111
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
42
112
|
/*! ../../../utils */
|
|
43
113
|
"./utils/index.js"),i=r(
|
|
44
114
|
/*! ./update-layout-exclude */
|
|
45
|
-
"./color-chart/import-properties/helpers/update-layout-exclude.js");function o(e,t,r){n.default.setValue(e,t,r),n.default.isAtomicValue(r)&&Object(i.default)(e,t,r)}},"./color-chart/import-properties/helpers/clear-attribute-by-type.js":
|
|
115
|
+
"./color-chart/import-properties/helpers/update-layout-exclude.js");function o(e,t,r){n.default.setValue(e,t,r),n.default.isAtomicValue(r)&&Object(i.default)(e,t,r)}},"./color-chart/import-properties/helpers/clear-attribute-by-type.js":
|
|
116
|
+
/*!**************************************************************************!*\
|
|
117
|
+
!*** ./color-chart/import-properties/helpers/clear-attribute-by-type.js ***!
|
|
118
|
+
\**************************************************************************/
|
|
119
|
+
/*! exports provided: default */
|
|
120
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
46
121
|
/*! ../../../utils/array-util */
|
|
47
|
-
"./utils/array-util.js");function i(e,t,r){if(Array.isArray(e[t])){var i=n.default.findIndexByPropertyValue(e[t],"id",r);i>=0&&e[t].splice(i,1)}else e[t]=[]}},"./color-chart/import-properties/helpers/clear-color-by-item.js":
|
|
122
|
+
"./utils/array-util.js");function i(e,t,r){if(Array.isArray(e[t])){var i=n.default.findIndexByPropertyValue(e[t],"id",r);i>=0&&e[t].splice(i,1)}else e[t]=[]}},"./color-chart/import-properties/helpers/clear-color-by-item.js":
|
|
123
|
+
/*!**********************************************************************!*\
|
|
124
|
+
!*** ./color-chart/import-properties/helpers/clear-color-by-item.js ***!
|
|
125
|
+
\**********************************************************************/
|
|
126
|
+
/*! exports provided: default */
|
|
127
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
48
128
|
/*! ../../../utils/attribute-expression-util */
|
|
49
129
|
"./utils/attribute-expression-util/index.js"),i=r(
|
|
50
130
|
/*! ./clear-attribute-by-type */
|
|
51
|
-
"./color-chart/import-properties/helpers/clear-attribute-by-type.js");function o(e,t){var r=n.default.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){Object(i.default)(e,"qAttributeDimensions",r),Object(i.default)(e,"qAttributeExpressions",r)})),t.forEach((function(e){Object(i.default)(e,"qAttributeDimensions",r),Object(i.default)(e,"qAttributeExpressions",r)}))}},"./color-chart/import-properties/helpers/delete-total-mode.js":
|
|
131
|
+
"./color-chart/import-properties/helpers/clear-attribute-by-type.js");function o(e,t){var r=n.default.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){Object(i.default)(e,"qAttributeDimensions",r),Object(i.default)(e,"qAttributeExpressions",r)})),t.forEach((function(e){Object(i.default)(e,"qAttributeDimensions",r),Object(i.default)(e,"qAttributeExpressions",r)}))}},"./color-chart/import-properties/helpers/delete-total-mode.js":
|
|
132
|
+
/*!********************************************************************!*\
|
|
133
|
+
!*** ./color-chart/import-properties/helpers/delete-total-mode.js ***!
|
|
134
|
+
\********************************************************************/
|
|
135
|
+
/*! exports provided: default */
|
|
136
|
+
function(e,t,r){function n(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/get-can-color-by.js":
|
|
137
|
+
/*!*******************************************************************!*\
|
|
138
|
+
!*** ./color-chart/import-properties/helpers/get-can-color-by.js ***!
|
|
139
|
+
\*******************************************************************/
|
|
140
|
+
/*! exports provided: default */
|
|
141
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
52
142
|
/*! ./get-color-options */
|
|
53
|
-
"./color-chart/import-properties/helpers/get-color-options.js");function i(e,t){var r={primary:!0};if(e){var i=Object(n.default)(t);r.byDimension=i.dimension(e),r.byMeasure=i.measure(e),r.byMultiple=i.multiColor(e),r.byExpression=i.expression(e)}return r}},"./color-chart/import-properties/helpers/get-color-by-definition.js":
|
|
143
|
+
"./color-chart/import-properties/helpers/get-color-options.js");function i(e,t){var r={primary:!0};if(e){var i=Object(n.default)(t);r.byDimension=i.dimension(e),r.byMeasure=i.measure(e),r.byMultiple=i.multiColor(e),r.byExpression=i.expression(e)}return r}},"./color-chart/import-properties/helpers/get-color-by-definition.js":
|
|
144
|
+
/*!**************************************************************************!*\
|
|
145
|
+
!*** ./color-chart/import-properties/helpers/get-color-by-definition.js ***!
|
|
146
|
+
\**************************************************************************/
|
|
147
|
+
/*! exports provided: default */
|
|
148
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return s}));var n=r(
|
|
54
149
|
/*! ./get-expression */
|
|
55
150
|
"./color-chart/import-properties/helpers/get-expression.js"),i=r(
|
|
56
151
|
/*! ./get-dimension-label */
|
|
@@ -58,7 +153,12 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
58
153
|
/*! ./get-measure-label */
|
|
59
154
|
"./color-chart/import-properties/helpers/get-measure-label.js"),a=r(
|
|
60
155
|
/*! ./get-measure-library-id */
|
|
61
|
-
"./color-chart/import-properties/helpers/get-measure-library-id.js");function s(e,t,r,s){var l,u,c={};switch(e){case"dimension":r.qLibraryId?(c.type="dimension",c.name=r.qLibraryId,c.id=r.qLibraryId):(c.type="field",t?(c.name=r.label||r.qDef,c.id=r.qDef):(c.name=r.qDef.qFieldDefs[0],c.label=Object(i.default)(r)));break;case"measure":(l=Object(a.default)(r,t))?(c.type="measure",c.name=l,c.id=l,(u=Object(n.default)(r,s))&&(c.expression=u)):(c.type="expression",t?(c.name=r.label||r.qExpression,c.id=r.qExpression):(c.name=r.qDef.qDef,c.label=Object(o.default)(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return c}},"./color-chart/import-properties/helpers/get-color-options.js":
|
|
156
|
+
"./color-chart/import-properties/helpers/get-measure-library-id.js");function s(e,t,r,s){var l,u,c={};switch(e){case"dimension":r.qLibraryId?(c.type="dimension",c.name=r.qLibraryId,c.id=r.qLibraryId):(c.type="field",t?(c.name=r.label||r.qDef,c.id=r.qDef):(c.name=r.qDef.qFieldDefs[0],c.label=Object(i.default)(r)));break;case"measure":(l=Object(a.default)(r,t))?(c.type="measure",c.name=l,c.id=l,(u=Object(n.default)(r,s))&&(c.expression=u)):(c.type="expression",t?(c.name=r.label||r.qExpression,c.id=r.qExpression):(c.name=r.qDef.qDef,c.label=Object(o.default)(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return c}},"./color-chart/import-properties/helpers/get-color-options.js":
|
|
157
|
+
/*!********************************************************************!*\
|
|
158
|
+
!*** ./color-chart/import-properties/helpers/get-color-options.js ***!
|
|
159
|
+
\********************************************************************/
|
|
160
|
+
/*! exports provided: default */
|
|
161
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return c}));var n=r(
|
|
62
162
|
/*! ./patches/default */
|
|
63
163
|
"./color-chart/import-properties/helpers/patches/default.js"),i=r(
|
|
64
164
|
/*! ./patches/scatter-plot */
|
|
@@ -70,11 +170,36 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
70
170
|
/*! ./patches/map */
|
|
71
171
|
"./color-chart/import-properties/helpers/patches/map.js"),l=r(
|
|
72
172
|
/*! ./patches/distribution-plot */
|
|
73
|
-
"./color-chart/import-properties/helpers/patches/distribution-plot.js"),u={scatterplot:i.default,piechart:o.default,linechart:a.default,map:s.default,distributionplot:l.default};function c(e){return(u[e]||n.default).colorModeOptions||n.default.colorModeOptions}},"./color-chart/import-properties/helpers/get-dimension-label.js":
|
|
173
|
+
"./color-chart/import-properties/helpers/patches/distribution-plot.js"),u={scatterplot:i.default,"sn-scatter-plot":i.default,piechart:o.default,linechart:a.default,map:s.default,distributionplot:l.default};function c(e){return(u[e]||n.default).colorModeOptions||n.default.colorModeOptions}},"./color-chart/import-properties/helpers/get-dimension-label.js":
|
|
174
|
+
/*!**********************************************************************!*\
|
|
175
|
+
!*** ./color-chart/import-properties/helpers/get-dimension-label.js ***!
|
|
176
|
+
\**********************************************************************/
|
|
177
|
+
/*! exports provided: default */
|
|
178
|
+
function(e,t,r){function n(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qFieldLabels&&t.qFieldLabels[0]?t.qFieldLabels[0]:t.qFieldDefs[0]}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/get-expression.js":
|
|
179
|
+
/*!*****************************************************************!*\
|
|
180
|
+
!*** ./color-chart/import-properties/helpers/get-expression.js ***!
|
|
181
|
+
\*****************************************************************/
|
|
182
|
+
/*! exports provided: default */
|
|
183
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
74
184
|
/*! qlik-modifiers */
|
|
75
|
-
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e,t){return i.a.hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}},"./color-chart/import-properties/helpers/get-measure-label.js":
|
|
185
|
+
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e,t){return i.a.hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}},"./color-chart/import-properties/helpers/get-measure-label.js":
|
|
186
|
+
/*!********************************************************************!*\
|
|
187
|
+
!*** ./color-chart/import-properties/helpers/get-measure-label.js ***!
|
|
188
|
+
\********************************************************************/
|
|
189
|
+
/*! exports provided: default */
|
|
190
|
+
function(e,t,r){function n(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/get-measure-library-id.js":
|
|
191
|
+
/*!*************************************************************************!*\
|
|
192
|
+
!*** ./color-chart/import-properties/helpers/get-measure-library-id.js ***!
|
|
193
|
+
\*************************************************************************/
|
|
194
|
+
/*! exports provided: default */
|
|
195
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
76
196
|
/*! qlik-modifiers */
|
|
77
|
-
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e,t){return t?e.qLibraryId:i.a.measureBase.getLibraryId(e)}},"./color-chart/import-properties/helpers/index.js":
|
|
197
|
+
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e,t){return t?e.qLibraryId:i.a.measureBase.getLibraryId(e)}},"./color-chart/import-properties/helpers/index.js":
|
|
198
|
+
/*!********************************************************!*\
|
|
199
|
+
!*** ./color-chart/import-properties/helpers/index.js ***!
|
|
200
|
+
\********************************************************/
|
|
201
|
+
/*! exports provided: default */
|
|
202
|
+
function(e,t,r){r.r(t);var n=r(
|
|
78
203
|
/*! ./change-property */
|
|
79
204
|
"./color-chart/import-properties/helpers/change-property.js"),i=r(
|
|
80
205
|
/*! ./get-can-color-by */
|
|
@@ -92,21 +217,61 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
92
217
|
/*! ./switch-to-auto-color */
|
|
93
218
|
"./color-chart/import-properties/helpers/switch-to-auto-color.js"),p=r(
|
|
94
219
|
/*! ./should-switch-to-color-persistent */
|
|
95
|
-
"./color-chart/import-properties/helpers/should-switch-to-color-persistent.js");t.default={changeProperty:n.default,getCanColorBy:i.default,shouldUpdateColorBy:o.default,updateColorBy:a.default,deleteTotalMode:s.default,shouldAddColorByExpression:l.default,addColorByExpression:u.default,switchToAutoColor:c.default,shouldSwitchToColorPersistent:p.default}},"./color-chart/import-properties/helpers/is-map-point-layer.js":
|
|
220
|
+
"./color-chart/import-properties/helpers/should-switch-to-color-persistent.js");t.default={changeProperty:n.default,getCanColorBy:i.default,shouldUpdateColorBy:o.default,updateColorBy:a.default,deleteTotalMode:s.default,shouldAddColorByExpression:l.default,addColorByExpression:u.default,switchToAutoColor:c.default,shouldSwitchToColorPersistent:p.default}},"./color-chart/import-properties/helpers/is-map-point-layer.js":
|
|
221
|
+
/*!*********************************************************************!*\
|
|
222
|
+
!*** ./color-chart/import-properties/helpers/is-map-point-layer.js ***!
|
|
223
|
+
\*********************************************************************/
|
|
224
|
+
/*! exports provided: default */
|
|
225
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
96
226
|
/*! ../../../utils */
|
|
97
|
-
"./utils/index.js");function i(e,t,r){var i=n.default.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=n.default.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===i&&"point"===s}},"./color-chart/import-properties/helpers/patches/default.js":
|
|
227
|
+
"./utils/index.js");function i(e,t,r){var i=n.default.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=n.default.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===i&&"point"===s}},"./color-chart/import-properties/helpers/patches/default.js":
|
|
228
|
+
/*!******************************************************************!*\
|
|
229
|
+
!*** ./color-chart/import-properties/helpers/patches/default.js ***!
|
|
230
|
+
\******************************************************************/
|
|
231
|
+
/*! exports provided: default */
|
|
232
|
+
function(e,t,r){r.r(t);var n=r(
|
|
98
233
|
/*! ../../../../utils/hypercube-util */
|
|
99
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>0&&n.default.getNumMeasures(e)<=1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)>0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/distribution-plot.js":
|
|
234
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>0&&n.default.getNumMeasures(e)<=1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)>0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/distribution-plot.js":
|
|
235
|
+
/*!****************************************************************************!*\
|
|
236
|
+
!*** ./color-chart/import-properties/helpers/patches/distribution-plot.js ***!
|
|
237
|
+
\****************************************************************************/
|
|
238
|
+
/*! exports provided: default */
|
|
239
|
+
function(e,t,r){r.r(t);var n=r(
|
|
100
240
|
/*! ../../../../utils/hypercube-util */
|
|
101
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumDimensions(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/line-chart.js":
|
|
241
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumDimensions(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/line-chart.js":
|
|
242
|
+
/*!*********************************************************************!*\
|
|
243
|
+
!*** ./color-chart/import-properties/helpers/patches/line-chart.js ***!
|
|
244
|
+
\*********************************************************************/
|
|
245
|
+
/*! exports provided: default */
|
|
246
|
+
function(e,t,r){r.r(t);var n=r(
|
|
102
247
|
/*! ../../../../utils/hypercube-util */
|
|
103
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)<=1},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/map.js":
|
|
248
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)<=1},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/map.js":
|
|
249
|
+
/*!**************************************************************!*\
|
|
250
|
+
!*** ./color-chart/import-properties/helpers/patches/map.js ***!
|
|
251
|
+
\**************************************************************/
|
|
252
|
+
/*! exports provided: default */
|
|
253
|
+
function(e,t,r){r.r(t);var n=r(
|
|
104
254
|
/*! ../../../../utils/hypercube-util */
|
|
105
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>=1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)>=1},expression:function(e){return n.default.getNumDimensions(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/pie-chart.js":
|
|
255
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(e){return n.default.getNumDimensions(e)>=1},multiColor:function(e){return n.default.getNumMeasures(e)>1},measure:function(e){return n.default.getNumDimensions(e)>=1},expression:function(e){return n.default.getNumDimensions(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/pie-chart.js":
|
|
256
|
+
/*!********************************************************************!*\
|
|
257
|
+
!*** ./color-chart/import-properties/helpers/patches/pie-chart.js ***!
|
|
258
|
+
\********************************************************************/
|
|
259
|
+
/*! exports provided: default */
|
|
260
|
+
function(e,t,r){r.r(t);var n=r(
|
|
106
261
|
/*! ../../../../utils/hypercube-util */
|
|
107
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/scatter-plot.js":
|
|
262
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/patches/scatter-plot.js":
|
|
263
|
+
/*!***********************************************************************!*\
|
|
264
|
+
!*** ./color-chart/import-properties/helpers/patches/scatter-plot.js ***!
|
|
265
|
+
\***********************************************************************/
|
|
266
|
+
/*! exports provided: default */
|
|
267
|
+
function(e,t,r){r.r(t);var n=r(
|
|
108
268
|
/*! ../../../../utils/hypercube-util */
|
|
109
|
-
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/resolve-color-by-property-def.js":
|
|
269
|
+
"./utils/hypercube-util.js"),i={primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return n.default.getNumMeasures(e)>=1}};t.default={colorModeOptions:i}},"./color-chart/import-properties/helpers/resolve-color-by-property-def.js":
|
|
270
|
+
/*!********************************************************************************!*\
|
|
271
|
+
!*** ./color-chart/import-properties/helpers/resolve-color-by-property-def.js ***!
|
|
272
|
+
\********************************************************************************/
|
|
273
|
+
/*! exports provided: default */
|
|
274
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return l}));var n=r(
|
|
110
275
|
/*! ../../../utils */
|
|
111
276
|
"./utils/index.js"),i=r(
|
|
112
277
|
/*! ../../../utils/attribute-expression-util */
|
|
@@ -116,15 +281,40 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
116
281
|
/*! ./set-attribute-by-expression */
|
|
117
282
|
"./color-chart/import-properties/helpers/set-attribute-by-expression.js"),s=r(
|
|
118
283
|
/*! ./set-attribute-by-library */
|
|
119
|
-
"./color-chart/import-properties/helpers/set-attribute-by-library.js");function l(e){var t=e.properties,r=e.isDimension,l=e.dimensions,u=e.excludedDimensions,c=e.measures,p=e.label;Object(o.default)(l,u);var d=l[l.length-1];if(d){var f=r?n.default.getValue(t,"color.byDimDef"):n.default.getValue(t,"color.byMeasureDef"),m=n.default.getValue(t,"color.formatting.qNumFormat"),h=n.default.getValue(t,"color.formatting.isCustomFormatted");if(f){var g=i.default.create(i.default.IDMAP.COLOR_BY_ALTERNATIVE);switch(f.type){case"expression":Object(a.default)({attributeExpression:g,label:p,item:f,isDimension:r,qNumFormat:m,isCustomFormatted:h});break;case"libraryItem":Object(s.default)({attributeExpression:g,measures:c,item:f,isDimension:r,qNumFormat:m,isCustomFormatted:h})}r?(g.qSortBy={qSortByAscii:1},d.qAttributeDimensions.push(g)):d.qAttributeExpressions.push(g)}}}},"./color-chart/import-properties/helpers/set-alt-label.js":
|
|
284
|
+
"./color-chart/import-properties/helpers/set-attribute-by-library.js");function l(e){var t=e.properties,r=e.isDimension,l=e.dimensions,u=e.excludedDimensions,c=e.measures,p=e.label;Object(o.default)(l,u);var d=l[l.length-1];if(d){var f=r?n.default.getValue(t,"color.byDimDef"):n.default.getValue(t,"color.byMeasureDef"),m=n.default.getValue(t,"color.formatting.qNumFormat"),h=n.default.getValue(t,"color.formatting.isCustomFormatted");if(f){var g=i.default.create(i.default.IDMAP.COLOR_BY_ALTERNATIVE);switch(f.type){case"expression":Object(a.default)({attributeExpression:g,label:p,item:f,isDimension:r,qNumFormat:m,isCustomFormatted:h});break;case"libraryItem":Object(s.default)({attributeExpression:g,measures:c,item:f,isDimension:r,qNumFormat:m,isCustomFormatted:h})}r?(g.qSortBy={qSortByAscii:1},d.qAttributeDimensions.push(g)):d.qAttributeExpressions.push(g)}}}},"./color-chart/import-properties/helpers/set-alt-label.js":
|
|
285
|
+
/*!****************************************************************!*\
|
|
286
|
+
!*** ./color-chart/import-properties/helpers/set-alt-label.js ***!
|
|
287
|
+
\****************************************************************/
|
|
288
|
+
/*! exports provided: default */
|
|
289
|
+
function(e,t,r){function n(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/set-attribute-by-expression.js":
|
|
290
|
+
/*!******************************************************************************!*\
|
|
291
|
+
!*** ./color-chart/import-properties/helpers/set-attribute-by-expression.js ***!
|
|
292
|
+
\******************************************************************************/
|
|
293
|
+
/*! exports provided: default */
|
|
294
|
+
function(e,t,r){function n(e){var t=e.attributeExpression,r=e.label,n=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,i?t.qDef=n.key:(t.qExpression=n.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/set-attribute-by-library.js":
|
|
295
|
+
/*!***************************************************************************!*\
|
|
296
|
+
!*** ./color-chart/import-properties/helpers/set-attribute-by-library.js ***!
|
|
297
|
+
\***************************************************************************/
|
|
298
|
+
/*! exports provided: default */
|
|
299
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
120
300
|
/*! ../../../utils/array-util */
|
|
121
|
-
"./utils/array-util.js");function i(e){var t=e.attributeExpression,r=e.measures,i=e.item,o=e.isDimension,a=e.qNumFormat,s=e.isCustomFormatted;o||(t.matchMeasure=n.default.findIndexByPropertyValue(r,"qLibraryId",i.key),a&&(t.qNumFormat=a,t.isCustomFormatted=s)),void 0!==i.expression?t.qExpression=i.expression:t.qLibraryId=i.key,t.colorMapRef=i.key}},"./color-chart/import-properties/helpers/set-color-by-dimension-1.js":
|
|
301
|
+
"./utils/array-util.js");function i(e){var t=e.attributeExpression,r=e.measures,i=e.item,o=e.isDimension,a=e.qNumFormat,s=e.isCustomFormatted;o||(t.matchMeasure=n.default.findIndexByPropertyValue(r,"qLibraryId",i.key),a&&(t.qNumFormat=a,t.isCustomFormatted=s)),void 0!==i.expression?t.qExpression=i.expression:t.qLibraryId=i.key,t.colorMapRef=i.key}},"./color-chart/import-properties/helpers/set-color-by-dimension-1.js":
|
|
302
|
+
/*!***************************************************************************!*\
|
|
303
|
+
!*** ./color-chart/import-properties/helpers/set-color-by-dimension-1.js ***!
|
|
304
|
+
\***************************************************************************/
|
|
305
|
+
/*! exports provided: default */
|
|
306
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
122
307
|
/*! ../../../utils */
|
|
123
308
|
"./utils/index.js"),i=r(
|
|
124
309
|
/*! ./get-color-by-definition */
|
|
125
310
|
"./color-chart/import-properties/helpers/get-color-by-definition.js"),o=r(
|
|
126
311
|
/*! ./set-color-by-property-def */
|
|
127
|
-
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function a(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),a=n.default.getValue(e,"color.byDimDef");a.activeDimensionIndex=Math.min(a.activeDimensionIndex,r.length-1);var s=r[a.activeDimensionIndex],l=Object(i.default)("dimension",!1,s);l.activeDimensionIndex=a.activeDimensionIndex,Object(o.default)(e,l)}},"./color-chart/import-properties/helpers/set-color-by-dimension-2.js":
|
|
312
|
+
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function a(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),a=n.default.getValue(e,"color.byDimDef");a.activeDimensionIndex=Math.min(a.activeDimensionIndex,r.length-1);var s=r[a.activeDimensionIndex],l=Object(i.default)("dimension",!1,s);l.activeDimensionIndex=a.activeDimensionIndex,Object(o.default)(e,l)}},"./color-chart/import-properties/helpers/set-color-by-dimension-2.js":
|
|
313
|
+
/*!***************************************************************************!*\
|
|
314
|
+
!*** ./color-chart/import-properties/helpers/set-color-by-dimension-2.js ***!
|
|
315
|
+
\***************************************************************************/
|
|
316
|
+
/*! exports provided: default */
|
|
317
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return u}));var n=r(
|
|
128
318
|
/*! ../../../utils */
|
|
129
319
|
"./utils/index.js"),i=r(
|
|
130
320
|
/*! ../../../utils/array-util */
|
|
@@ -136,13 +326,23 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
136
326
|
/*! ./set-color-by-property-def */
|
|
137
327
|
"./color-chart/import-properties/helpers/set-color-by-property-def.js"),l=r(
|
|
138
328
|
/*! ./is-map-point-layer */
|
|
139
|
-
"./color-chart/import-properties/helpers/is-map-point-layer.js");function u(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),u=r[Object(l.default)(r,e,t)?0:r.length-1],c=o.default.IDMAP.COLOR_BY_ALTERNATIVE,p=i.default.findItemByPropertyValue(u.qAttributeDimensions,"id",c);return Object(s.default)(e,Object(a.default)("dimension",!!p,p||u)),!!p}},"./color-chart/import-properties/helpers/set-color-by-measure-1.js":
|
|
329
|
+
"./color-chart/import-properties/helpers/is-map-point-layer.js");function u(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),u=r[Object(l.default)(r,e,t)?0:r.length-1],c=o.default.IDMAP.COLOR_BY_ALTERNATIVE,p=i.default.findItemByPropertyValue(u.qAttributeDimensions,"id",c);return Object(s.default)(e,Object(a.default)("dimension",!!p,p||u)),!!p}},"./color-chart/import-properties/helpers/set-color-by-measure-1.js":
|
|
330
|
+
/*!*************************************************************************!*\
|
|
331
|
+
!*** ./color-chart/import-properties/helpers/set-color-by-measure-1.js ***!
|
|
332
|
+
\*************************************************************************/
|
|
333
|
+
/*! exports provided: default */
|
|
334
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
140
335
|
/*! ../../../utils */
|
|
141
336
|
"./utils/index.js"),i=r(
|
|
142
337
|
/*! ./get-color-by-definition */
|
|
143
338
|
"./color-chart/import-properties/helpers/get-color-by-definition.js"),o=r(
|
|
144
339
|
/*! ./set-color-by-property-def */
|
|
145
|
-
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function a(e,t){var r=n.default.getValue(e,"".concat(t,"qMeasures"),[]),a=n.default.getValue(e,"color.byMeasureDef");if(a.activeMeasureIndex=Math.min(a.activeMeasureIndex,r.length-1),a.activeMeasureIndex>-1){var s=r[a.activeMeasureIndex],l=Object(i.default)("measure",!1,s,!0);l.activeMeasureIndex=a.activeMeasureIndex,Object(o.default)(e,l)}}},"./color-chart/import-properties/helpers/set-color-by-measure-2.js":
|
|
340
|
+
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function a(e,t){var r=n.default.getValue(e,"".concat(t,"qMeasures"),[]),a=n.default.getValue(e,"color.byMeasureDef");if(a.activeMeasureIndex=Math.min(a.activeMeasureIndex,r.length-1),a.activeMeasureIndex>-1){var s=r[a.activeMeasureIndex],l=Object(i.default)("measure",!1,s,!0);l.activeMeasureIndex=a.activeMeasureIndex,Object(o.default)(e,l)}}},"./color-chart/import-properties/helpers/set-color-by-measure-2.js":
|
|
341
|
+
/*!*************************************************************************!*\
|
|
342
|
+
!*** ./color-chart/import-properties/helpers/set-color-by-measure-2.js ***!
|
|
343
|
+
\*************************************************************************/
|
|
344
|
+
/*! exports provided: default */
|
|
345
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return l}));var n=r(
|
|
146
346
|
/*! ../../../utils */
|
|
147
347
|
"./utils/index.js"),i=r(
|
|
148
348
|
/*! ../../../utils/array-util */
|
|
@@ -152,21 +352,81 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
152
352
|
/*! ./get-color-by-definition */
|
|
153
353
|
"./color-chart/import-properties/helpers/get-color-by-definition.js"),s=r(
|
|
154
354
|
/*! ./set-color-by-property-def */
|
|
155
|
-
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function l(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),l=n.default.getValue(e,"".concat(t,"qMeasures"),[]),u=r[r.length-1],c=o.default.IDMAP.COLOR_BY_ALTERNATIVE,p=i.default.findItemByPropertyValue(u.qAttributeExpressions,"id",c);return Object(s.default)(e,Object(a.default)("measure",!!p,p||l[0])),!!p}},"./color-chart/import-properties/helpers/set-color-by-property-def.js":
|
|
355
|
+
"./color-chart/import-properties/helpers/set-color-by-property-def.js");function l(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),l=n.default.getValue(e,"".concat(t,"qMeasures"),[]),u=r[r.length-1],c=o.default.IDMAP.COLOR_BY_ALTERNATIVE,p=i.default.findItemByPropertyValue(u.qAttributeExpressions,"id",c);return Object(s.default)(e,Object(a.default)("measure",!!p,p||l[0])),!!p}},"./color-chart/import-properties/helpers/set-color-by-property-def.js":
|
|
356
|
+
/*!****************************************************************************!*\
|
|
357
|
+
!*** ./color-chart/import-properties/helpers/set-color-by-property-def.js ***!
|
|
358
|
+
\****************************************************************************/
|
|
359
|
+
/*! exports provided: default */
|
|
360
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
156
361
|
/*! ../../../utils/hypercube-util */
|
|
157
362
|
"./utils/hypercube-util.js"),i=r(
|
|
158
363
|
/*! ../../../utils/number-format-util */
|
|
159
364
|
"./utils/number-format-util.js"),o=r(
|
|
160
365
|
/*! ./set-alt-label */
|
|
161
|
-
"./color-chart/import-properties/helpers/set-alt-label.js");function a(e,t,r,a){var s=r?"expression":t.type,l=e.color,u=l.mode,c=n.default.getItemLabel(t);switch(Object(o.default)(e,c||""),s){case"field":u="byDimension",l.byDimDef={label:t.label||n.default.wrapFieldName(t.name),key:n.default.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":u="byMeasure",l.byMeasureDef={label:r||c,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":u="byDimension",l.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":u="byMeasure",l.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},l.formatting&&i.default.useMasterNumberFormat(l.formatting)}a||(l.auto=!1,l.mode=u)}},"./color-chart/import-properties/helpers/should-add-color-by-expression.js":
|
|
366
|
+
"./color-chart/import-properties/helpers/set-alt-label.js");function a(e,t,r,a){var s=r?"expression":t.type,l=e.color,u=l.mode,c=n.default.getItemLabel(t);switch(Object(o.default)(e,c||""),s){case"field":u="byDimension",l.byDimDef={label:t.label||n.default.wrapFieldName(t.name),key:n.default.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":u="byMeasure",l.byMeasureDef={label:r||c,key:r||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":u="byDimension",l.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":u="byMeasure",l.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},l.formatting&&i.default.useMasterNumberFormat(l.formatting)}a||(l.auto=!1,l.mode=u)}},"./color-chart/import-properties/helpers/should-add-color-by-expression.js":
|
|
367
|
+
/*!*********************************************************************************!*\
|
|
368
|
+
!*** ./color-chart/import-properties/helpers/should-add-color-by-expression.js ***!
|
|
369
|
+
\*********************************************************************************/
|
|
370
|
+
/*! exports provided: default */
|
|
371
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
162
372
|
/*! ../../../utils */
|
|
163
|
-
"./utils/index.js");function i(e){var t=e.shouldUpdateColorBy,r=e.properties,i=n.default.getValue(r,"qHyperCubeDef.qMeasures",[]),o=n.default.getValue(r,"color.mode","");return!t&&"byExpression"===o&&i.length>0}},"./color-chart/import-properties/helpers/should-set-color-by-dimension-1.js":
|
|
373
|
+
"./utils/index.js");function i(e){var t=e.shouldUpdateColorBy,r=e.properties,i=n.default.getValue(r,"qHyperCubeDef.qMeasures",[]),o=n.default.getValue(r,"color.mode","");return!t&&"byExpression"===o&&i.length>0}},"./color-chart/import-properties/helpers/should-set-color-by-dimension-1.js":
|
|
374
|
+
/*!**********************************************************************************!*\
|
|
375
|
+
!*** ./color-chart/import-properties/helpers/should-set-color-by-dimension-1.js ***!
|
|
376
|
+
\**********************************************************************************/
|
|
377
|
+
/*! exports provided: default */
|
|
378
|
+
function(e,t,r){function n(e){return!!(e&&e.activeDimensionIndex>-1)}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/should-set-color-by-dimension-2.js":
|
|
379
|
+
/*!**********************************************************************************!*\
|
|
380
|
+
!*** ./color-chart/import-properties/helpers/should-set-color-by-dimension-2.js ***!
|
|
381
|
+
\**********************************************************************************/
|
|
382
|
+
/*! exports provided: default */
|
|
383
|
+
function(e,t,r){function n(e){return!e||!e.key}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/should-set-color-by-measure-1.js":
|
|
384
|
+
/*!********************************************************************************!*\
|
|
385
|
+
!*** ./color-chart/import-properties/helpers/should-set-color-by-measure-1.js ***!
|
|
386
|
+
\********************************************************************************/
|
|
387
|
+
/*! exports provided: default */
|
|
388
|
+
function(e,t,r){function n(e){return!!(e&&e.activeMeasureIndex>-1)}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/should-set-color-by-measure-2.js":
|
|
389
|
+
/*!********************************************************************************!*\
|
|
390
|
+
!*** ./color-chart/import-properties/helpers/should-set-color-by-measure-2.js ***!
|
|
391
|
+
\********************************************************************************/
|
|
392
|
+
/*! exports provided: default */
|
|
393
|
+
function(e,t,r){function n(e,t){return(!e||!e.key)&&t.length>0}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/should-switch-to-color-persistent.js":
|
|
394
|
+
/*!************************************************************************************!*\
|
|
395
|
+
!*** ./color-chart/import-properties/helpers/should-switch-to-color-persistent.js ***!
|
|
396
|
+
\************************************************************************************/
|
|
397
|
+
/*! exports provided: default */
|
|
398
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
164
399
|
/*! ../../../utils */
|
|
165
|
-
"./utils/index.js");function i(e){var t=n.default.getValue(e,"qHyperCubeDef.qDimensions",[]),r=n.default.getValue(e,"color.persistent",!1);return t.length>1&&!r}},"./color-chart/import-properties/helpers/should-update-color-by-dimension.js":
|
|
400
|
+
"./utils/index.js");function i(e){var t=n.default.getValue(e,"qHyperCubeDef.qDimensions",[]),r=n.default.getValue(e,"color.persistent",!1);return t.length>1&&!r}},"./color-chart/import-properties/helpers/should-update-color-by-dimension.js":
|
|
401
|
+
/*!***********************************************************************************!*\
|
|
402
|
+
!*** ./color-chart/import-properties/helpers/should-update-color-by-dimension.js ***!
|
|
403
|
+
\***********************************************************************************/
|
|
404
|
+
/*! exports provided: default */
|
|
405
|
+
function(e,t,r){function n(e){var t=e.auto,r=e.colorMode,n=e.dimensions;return!t&&"byDimension"===r&&n.length>0}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/should-update-color-by-measure.js":
|
|
406
|
+
/*!*********************************************************************************!*\
|
|
407
|
+
!*** ./color-chart/import-properties/helpers/should-update-color-by-measure.js ***!
|
|
408
|
+
\*********************************************************************************/
|
|
409
|
+
/*! exports provided: default */
|
|
410
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
166
411
|
/*! ../../../utils */
|
|
167
|
-
"./utils/index.js");function i(e){var t=e.auto,r=e.colorMode,i=e.dimensions,o=e.measures,a=e.properties,s=n.default.getValue(a,"visualization");return!(t||"byMeasure"!==r||!i.length||"map"!==s&&!o.length)}},"./color-chart/import-properties/helpers/should-update-color-by.js":
|
|
412
|
+
"./utils/index.js");function i(e){var t=e.auto,r=e.colorMode,i=e.dimensions,o=e.measures,a=e.properties,s=n.default.getValue(a,"visualization");return!(t||"byMeasure"!==r||!i.length||"map"!==s&&!o.length)}},"./color-chart/import-properties/helpers/should-update-color-by.js":
|
|
413
|
+
/*!*************************************************************************!*\
|
|
414
|
+
!*** ./color-chart/import-properties/helpers/should-update-color-by.js ***!
|
|
415
|
+
\*************************************************************************/
|
|
416
|
+
/*! exports provided: default */
|
|
417
|
+
function(e,t,r){function n(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,i=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!i.length))}r.r(t),r.d(t,"default",(function(){return n}))},"./color-chart/import-properties/helpers/switch-to-auto-color.js":
|
|
418
|
+
/*!***********************************************************************!*\
|
|
419
|
+
!*** ./color-chart/import-properties/helpers/switch-to-auto-color.js ***!
|
|
420
|
+
\***********************************************************************/
|
|
421
|
+
/*! exports provided: default */
|
|
422
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
168
423
|
/*! ../../../utils */
|
|
169
|
-
"./utils/index.js");function i(e){n.default.setValue(e,"color.mode","primary"),n.default.setValue(e,"color.auto",!0)}},"./color-chart/import-properties/helpers/update-color-by-dimension.js":
|
|
424
|
+
"./utils/index.js");function i(e){n.default.setValue(e,"color.mode","primary"),n.default.setValue(e,"color.auto",!0)}},"./color-chart/import-properties/helpers/update-color-by-dimension.js":
|
|
425
|
+
/*!****************************************************************************!*\
|
|
426
|
+
!*** ./color-chart/import-properties/helpers/update-color-by-dimension.js ***!
|
|
427
|
+
\****************************************************************************/
|
|
428
|
+
/*! exports provided: default */
|
|
429
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return c}));var n=r(
|
|
170
430
|
/*! ../../../utils */
|
|
171
431
|
"./utils/index.js"),i=r(
|
|
172
432
|
/*! ./set-alt-label */
|
|
@@ -180,7 +440,12 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
180
440
|
/*! ./set-color-by-dimension-1 */
|
|
181
441
|
"./color-chart/import-properties/helpers/set-color-by-dimension-1.js"),u=r(
|
|
182
442
|
/*! ./set-color-by-dimension-2 */
|
|
183
|
-
"./color-chart/import-properties/helpers/set-color-by-dimension-2.js");function c(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),c=n.default.getValue(e,"".concat(t,"qMeasures"),[]),p=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),d=n.default.getValue(e,"color.byDimDef");if(d&&Object(i.default)(e,d.label),Object(a.default)(d))Object(l.default)(e,t);else if(Object(s.default)(d)&&Object(u.default)(e,t))return;var f=n.default.getValue(e,"color.byDimDef.label");Object(o.default)({properties:e,isDimension:!0,dimensions:r,excludedDimensions:p,measures:c,label:f})}},"./color-chart/import-properties/helpers/update-color-by-measure.js":
|
|
443
|
+
"./color-chart/import-properties/helpers/set-color-by-dimension-2.js");function c(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),c=n.default.getValue(e,"".concat(t,"qMeasures"),[]),p=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),d=n.default.getValue(e,"color.byDimDef");if(d&&Object(i.default)(e,d.label),Object(a.default)(d))Object(l.default)(e,t);else if(Object(s.default)(d)&&Object(u.default)(e,t))return;var f=n.default.getValue(e,"color.byDimDef.label");Object(o.default)({properties:e,isDimension:!0,dimensions:r,excludedDimensions:p,measures:c,label:f})}},"./color-chart/import-properties/helpers/update-color-by-measure.js":
|
|
444
|
+
/*!**************************************************************************!*\
|
|
445
|
+
!*** ./color-chart/import-properties/helpers/update-color-by-measure.js ***!
|
|
446
|
+
\**************************************************************************/
|
|
447
|
+
/*! exports provided: default */
|
|
448
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return c}));var n=r(
|
|
184
449
|
/*! ../../../utils */
|
|
185
450
|
"./utils/index.js"),i=r(
|
|
186
451
|
/*! ./set-alt-label */
|
|
@@ -194,11 +459,21 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
194
459
|
/*! ./should-set-color-by-measure-1 */
|
|
195
460
|
"./color-chart/import-properties/helpers/should-set-color-by-measure-1.js"),u=r(
|
|
196
461
|
/*! ./should-set-color-by-measure-2 */
|
|
197
|
-
"./color-chart/import-properties/helpers/should-set-color-by-measure-2.js");function c(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),c=n.default.getValue(e,"".concat(t,"qMeasures"),[]),p=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),d=n.default.getValue(e,"color.byMeasureDef");if(d&&Object(i.default)(e,d.label),Object(l.default)(d))Object(a.default)(e,t);else if(Object(u.default)(d,c)&&Object(s.default)(e,t))return;var f=n.default.getValue(e,"color.byMeasureDef.label");Object(o.default)({properties:e,isDimension:!1,dimensions:r,excludedDimensions:p,measures:c,label:f})}},"./color-chart/import-properties/helpers/update-color-by-other.js":
|
|
462
|
+
"./color-chart/import-properties/helpers/should-set-color-by-measure-2.js");function c(e,t){var r=n.default.getValue(e,"".concat(t,"qDimensions"),[]),c=n.default.getValue(e,"".concat(t,"qMeasures"),[]),p=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),d=n.default.getValue(e,"color.byMeasureDef");if(d&&Object(i.default)(e,d.label),Object(l.default)(d))Object(a.default)(e,t);else if(Object(u.default)(d,c)&&Object(s.default)(e,t))return;var f=n.default.getValue(e,"color.byMeasureDef.label");Object(o.default)({properties:e,isDimension:!1,dimensions:r,excludedDimensions:p,measures:c,label:f})}},"./color-chart/import-properties/helpers/update-color-by-other.js":
|
|
463
|
+
/*!************************************************************************!*\
|
|
464
|
+
!*** ./color-chart/import-properties/helpers/update-color-by-other.js ***!
|
|
465
|
+
\************************************************************************/
|
|
466
|
+
/*! exports provided: default */
|
|
467
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
198
468
|
/*! ../../../utils */
|
|
199
469
|
"./utils/index.js"),i=r(
|
|
200
470
|
/*! ./clear-color-by-item */
|
|
201
|
-
"./color-chart/import-properties/helpers/clear-color-by-item.js");function o(e,t){var r=n.default.getValue(e,"color.mode"),o=n.default.getValue(e,"".concat(t,"qDimensions"),[]),a=n.default.getValue(e,"".concat(t,"qMeasures"),[]),s=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&a.length<2&&n.default.setValue(e,"color.mode","primary"),Object(i.default)(o,s)}},"./color-chart/import-properties/helpers/update-color-by.js":
|
|
471
|
+
"./color-chart/import-properties/helpers/clear-color-by-item.js");function o(e,t){var r=n.default.getValue(e,"color.mode"),o=n.default.getValue(e,"".concat(t,"qDimensions"),[]),a=n.default.getValue(e,"".concat(t,"qMeasures"),[]),s=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&a.length<2&&n.default.setValue(e,"color.mode","primary"),Object(i.default)(o,s)}},"./color-chart/import-properties/helpers/update-color-by.js":
|
|
472
|
+
/*!******************************************************************!*\
|
|
473
|
+
!*** ./color-chart/import-properties/helpers/update-color-by.js ***!
|
|
474
|
+
\******************************************************************/
|
|
475
|
+
/*! exports provided: default */
|
|
476
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return c}));var n=r(
|
|
202
477
|
/*! ../../../utils */
|
|
203
478
|
"./utils/index.js"),i=r(
|
|
204
479
|
/*! ./clear-color-by-item */
|
|
@@ -212,31 +487,81 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
212
487
|
/*! ./update-color-by-measure */
|
|
213
488
|
"./color-chart/import-properties/helpers/update-color-by-measure.js"),u=r(
|
|
214
489
|
/*! ./update-color-by-other */
|
|
215
|
-
"./color-chart/import-properties/helpers/update-color-by-other.js");function c(e,t){var r=n.default.getValue(e,"color.mode"),c=n.default.getValue(e,"color.auto"),p=n.default.getValue(e,"".concat(t,"qDimensions"),[]),d=n.default.getValue(e,"".concat(t,"qMeasures"),[]),f=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);c?Object(i.default)(p,f):Object(o.default)({auto:c,colorMode:r,dimensions:p})?Object(s.default)(e,t):Object(a.default)({auto:c,colorMode:r,dimensions:p,measures:d,properties:e})?Object(l.default)(e,t):Object(u.default)(e,t)}},"./color-chart/import-properties/helpers/update-layout-exclude.js":
|
|
490
|
+
"./color-chart/import-properties/helpers/update-color-by-other.js");function c(e,t){var r=n.default.getValue(e,"color.mode"),c=n.default.getValue(e,"color.auto"),p=n.default.getValue(e,"".concat(t,"qDimensions"),[]),d=n.default.getValue(e,"".concat(t,"qMeasures"),[]),f=n.default.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);c?Object(i.default)(p,f):Object(o.default)({auto:c,colorMode:r,dimensions:p})?Object(s.default)(e,t):Object(a.default)({auto:c,colorMode:r,dimensions:p,measures:d,properties:e})?Object(l.default)(e,t):Object(u.default)(e,t)}},"./color-chart/import-properties/helpers/update-layout-exclude.js":
|
|
491
|
+
/*!************************************************************************!*\
|
|
492
|
+
!*** ./color-chart/import-properties/helpers/update-layout-exclude.js ***!
|
|
493
|
+
\************************************************************************/
|
|
494
|
+
/*! exports provided: default */
|
|
495
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
216
496
|
/*! ../../../utils */
|
|
217
|
-
"./utils/index.js");function i(e,t,r){var i=e.qLayoutExclude;i&&(i.changed||(i.changed={}),i.changed[t]={from:n.default.getValue(e,t),to:r})}},"./color-chart/import-properties/index.js":
|
|
497
|
+
"./utils/index.js");function i(e,t,r){var i=e.qLayoutExclude;i&&(i.changed||(i.changed={}),i.changed[t]={from:n.default.getValue(e,t),to:r})}},"./color-chart/import-properties/index.js":
|
|
498
|
+
/*!************************************************!*\
|
|
499
|
+
!*** ./color-chart/import-properties/index.js ***!
|
|
500
|
+
\************************************************/
|
|
501
|
+
/*! exports provided: default */
|
|
502
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
218
503
|
/*! ../../utils */
|
|
219
504
|
"./utils/index.js"),i=r(
|
|
220
505
|
/*! ./helpers */
|
|
221
506
|
"./color-chart/import-properties/helpers/index.js"),o=r(
|
|
222
507
|
/*! ../../hypercube */
|
|
223
|
-
"./hypercube/index.js");function a(e){var t=e.exportFormat,r=e.initialProperties,a=e.dataDefinition,s=e.defaultPropertyValues,l=e.hypercubePath,u=o.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:a,defaultPropertyValues:s,hypercubePath:l}),c=u.qProperty,p=n.default.getValue(c,"visualization"),d=n.default.getValue(c,"qHyperCubeDef.qDimensions",[]),f=n.default.getValue(c,"color.mode",""),m=n.default.getValue(c,"color.auto",""),h=i.default.getCanColorBy(c,p),g=i.default.shouldUpdateColorBy({canColorBy:h,autoColor:m,colorMode:f,dimensions:d});return h[f]?i.default.shouldAddColorByExpression({shouldUpdateColorBy:g,properties:c})&&i.default.addColorByExpression(c):i.default.switchToAutoColor(c),g&&i.default.updateColorBy(c,"qHyperCubeDef."),i.default.shouldSwitchToColorPersistent(c)&&i.default.changeProperty(c,"color.persistent",!0),i.default.deleteTotalMode(d),u}},"./color-chart/index.js":
|
|
508
|
+
"./hypercube/index.js");function a(e){var t=e.exportFormat,r=e.initialProperties,a=e.dataDefinition,s=e.defaultPropertyValues,l=e.hypercubePath,u=o.default.importProperties({exportFormat:t,initialProperties:r,dataDefinition:a,defaultPropertyValues:s,hypercubePath:l}),c=u.qProperty,p=n.default.getValue(c,"visualization"),d=n.default.getValue(c,"qHyperCubeDef.qDimensions",[]),f=n.default.getValue(c,"color.mode",""),m=n.default.getValue(c,"color.auto",""),h=i.default.getCanColorBy(c,p),g=i.default.shouldUpdateColorBy({canColorBy:h,autoColor:m,colorMode:f,dimensions:d});return h[f]?i.default.shouldAddColorByExpression({shouldUpdateColorBy:g,properties:c})&&i.default.addColorByExpression(c):i.default.switchToAutoColor(c),g&&i.default.updateColorBy(c,"qHyperCubeDef."),i.default.shouldSwitchToColorPersistent(c)&&i.default.changeProperty(c,"color.persistent",!0),i.default.deleteTotalMode(d),u}},"./color-chart/index.js":
|
|
509
|
+
/*!******************************!*\
|
|
510
|
+
!*** ./color-chart/index.js ***!
|
|
511
|
+
\******************************/
|
|
512
|
+
/*! exports provided: default */
|
|
513
|
+
function(e,t,r){r.r(t);var n=r(
|
|
224
514
|
/*! ./export-properties */
|
|
225
515
|
"./color-chart/export-properties/index.js"),i=r(
|
|
226
516
|
/*! ./import-properties */
|
|
227
|
-
"./color-chart/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./conditional-coloring.js":
|
|
517
|
+
"./color-chart/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./conditional-coloring.js":
|
|
518
|
+
/*!*********************************!*\
|
|
519
|
+
!*** ./conditional-coloring.js ***!
|
|
520
|
+
\*********************************/
|
|
521
|
+
/*! exports provided: default */
|
|
522
|
+
function(e,t,r){r.r(t);var n=r(
|
|
228
523
|
/*! ./quarantine/quarantine-array-prop */
|
|
229
524
|
"./quarantine/quarantine-array-prop.js"),i=r(
|
|
230
525
|
/*! ./quarantine/unquarantine-array-prop */
|
|
231
|
-
"./quarantine/unquarantine-array-prop.js"),o="qHyperCubeDef.qMeasures",a="conditionalColoring",s="measures",l="qDef.conditionalColoring";t.default={quarantine:function(e){Object(n.default)({properties:e,arrayPath:o,quarantineName:a,arrayName:s,itemPath:l})},unquarantine:function(e){Object(i.default)({properties:e,arrayPath:o,itemPath:l,arrayName:s,quarantineName:a})}}},"./conditional-show.js":
|
|
526
|
+
"./quarantine/unquarantine-array-prop.js"),o="qHyperCubeDef.qMeasures",a="conditionalColoring",s="measures",l="qDef.conditionalColoring";t.default={quarantine:function(e){Object(n.default)({properties:e,arrayPath:o,quarantineName:a,arrayName:s,itemPath:l})},unquarantine:function(e){Object(i.default)({properties:e,arrayPath:o,itemPath:l,arrayName:s,quarantineName:a})}}},"./conditional-show.js":
|
|
527
|
+
/*!*****************************!*\
|
|
528
|
+
!*** ./conditional-show.js ***!
|
|
529
|
+
\*****************************/
|
|
530
|
+
/*! exports provided: default */
|
|
531
|
+
function(e,t,r){r.r(t);var n=r(
|
|
232
532
|
/*! ./quarantine/quarantine-array-prop */
|
|
233
533
|
"./quarantine/quarantine-array-prop.js"),i=r(
|
|
234
534
|
/*! ./quarantine/unquarantine-array-prop */
|
|
235
|
-
"./quarantine/unquarantine-array-prop.js"),o="qHyperCubeDef.qMeasures",a="measures",s="qHyperCubeDef.qDimensions",l="dimensions",u="qCalcCondition",c="conditionalShowHide";t.default={quarantine:function(e){Object(n.default)({properties:e,arrayPath:o,quarantineName:c,arrayName:a,itemPath:u}),Object(n.default)({properties:e,arrayPath:s,quarantineName:c,arrayName:l,itemPath:u})},unquarantine:function(e){Object(i.default)({properties:e,arrayPath:o,quarantineName:c,arrayName:a,itemPath:u}),Object(i.default)({properties:e,arrayPath:s,quarantineName:c,arrayName:l,itemPath:u})}}},"./export-format.js":
|
|
535
|
+
"./quarantine/unquarantine-array-prop.js"),o="qHyperCubeDef.qMeasures",a="measures",s="qHyperCubeDef.qDimensions",l="dimensions",u="qCalcCondition",c="conditionalShowHide";t.default={quarantine:function(e){Object(n.default)({properties:e,arrayPath:o,quarantineName:c,arrayName:a,itemPath:u}),Object(n.default)({properties:e,arrayPath:s,quarantineName:c,arrayName:l,itemPath:u})},unquarantine:function(e){Object(i.default)({properties:e,arrayPath:o,quarantineName:c,arrayName:a,itemPath:u}),Object(i.default)({properties:e,arrayPath:s,quarantineName:c,arrayName:l,itemPath:u})}}},"./export-format.js":
|
|
536
|
+
/*!**************************!*\
|
|
537
|
+
!*** ./export-format.js ***!
|
|
538
|
+
\**************************/
|
|
539
|
+
/*! exports provided: default */
|
|
540
|
+
function(e,t,r){function n(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/export-properties/helpers/add-dimensions.js":
|
|
541
|
+
/*!***************************************************************!*\
|
|
542
|
+
!*** ./hypercube/export-properties/helpers/add-dimensions.js ***!
|
|
543
|
+
\***************************************************************/
|
|
544
|
+
/*! exports provided: default */
|
|
545
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
236
546
|
/*! ../../../utils */
|
|
237
|
-
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t,r=e.exportFormat,o=e.qHyperCubeDef,a=r.data[0];(t=a.dimensions).push.apply(t,i(o.qDimensions));var s,l=n.default.getValue(o,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=a.excludedDimensions).push.apply(s,i(l))}},"./hypercube/export-properties/helpers/add-measures.js":
|
|
547
|
+
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t,r=e.exportFormat,o=e.qHyperCubeDef,a=r.data[0];(t=a.dimensions).push.apply(t,i(o.qDimensions));var s,l=n.default.getValue(o,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=a.excludedDimensions).push.apply(s,i(l))}},"./hypercube/export-properties/helpers/add-measures.js":
|
|
548
|
+
/*!*************************************************************!*\
|
|
549
|
+
!*** ./hypercube/export-properties/helpers/add-measures.js ***!
|
|
550
|
+
\*************************************************************/
|
|
551
|
+
/*! exports provided: default */
|
|
552
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
238
553
|
/*! ../../../utils */
|
|
239
|
-
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t,r=e.exportFormat,o=e.qHyperCubeDef,a=r.data[0];(t=a.measures).push.apply(t,i(o.qMeasures));var s,l=n.default.getValue(o,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(s=a.excludedMeasures).push.apply(s,i(l))}},"./hypercube/export-properties/helpers/copy-properties.js":
|
|
554
|
+
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t,r=e.exportFormat,o=e.qHyperCubeDef,a=r.data[0];(t=a.measures).push.apply(t,i(o.qMeasures));var s,l=n.default.getValue(o,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(s=a.excludedMeasures).push.apply(s,i(l))}},"./hypercube/export-properties/helpers/copy-properties.js":
|
|
555
|
+
/*!****************************************************************!*\
|
|
556
|
+
!*** ./hypercube/export-properties/helpers/copy-properties.js ***!
|
|
557
|
+
\****************************************************************/
|
|
558
|
+
/*! exports provided: default */
|
|
559
|
+
function(e,t,r){function n(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/export-properties/helpers/index.js":
|
|
560
|
+
/*!******************************************************!*\
|
|
561
|
+
!*** ./hypercube/export-properties/helpers/index.js ***!
|
|
562
|
+
\******************************************************/
|
|
563
|
+
/*! exports provided: default */
|
|
564
|
+
function(e,t,r){r.r(t);var n=r(
|
|
240
565
|
/*! ./add-dimensions */
|
|
241
566
|
"./hypercube/export-properties/helpers/add-dimensions.js"),i=r(
|
|
242
567
|
/*! ./add-measures */
|
|
@@ -248,49 +573,139 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
248
573
|
/*! ./update-layout-exclude */
|
|
249
574
|
"./hypercube/export-properties/helpers/update-layout-exclude.js"),l=r(
|
|
250
575
|
/*! ./store-measures-modifiers */
|
|
251
|
-
"./hypercube/export-properties/helpers/store-measures-modifiers.js");t.default={addDimensions:n.default,addMeasures:i.default,setInterColumnSortOrder:o.default,copyProperties:a.default,updateLayoutExclude:s.default,storeMeasuresModifiers:l.default}},"./hypercube/export-properties/helpers/restore-changed-properties.js":
|
|
576
|
+
"./hypercube/export-properties/helpers/store-measures-modifiers.js");t.default={addDimensions:n.default,addMeasures:i.default,setInterColumnSortOrder:o.default,copyProperties:a.default,updateLayoutExclude:s.default,storeMeasuresModifiers:l.default}},"./hypercube/export-properties/helpers/restore-changed-properties.js":
|
|
577
|
+
/*!***************************************************************************!*\
|
|
578
|
+
!*** ./hypercube/export-properties/helpers/restore-changed-properties.js ***!
|
|
579
|
+
\***************************************************************************/
|
|
580
|
+
/*! exports provided: default */
|
|
581
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
252
582
|
/*! ../../../utils */
|
|
253
|
-
"./utils/index.js");function i(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===n.default.getValue(e,t)&&n.default.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}},"./hypercube/export-properties/helpers/set-inter-column-sort-order.js":
|
|
583
|
+
"./utils/index.js");function i(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===n.default.getValue(e,t)&&n.default.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}},"./hypercube/export-properties/helpers/set-inter-column-sort-order.js":
|
|
584
|
+
/*!****************************************************************************!*\
|
|
585
|
+
!*** ./hypercube/export-properties/helpers/set-inter-column-sort-order.js ***!
|
|
586
|
+
\****************************************************************************/
|
|
587
|
+
/*! exports provided: default */
|
|
588
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
254
589
|
/*! ../../../utils */
|
|
255
590
|
"./utils/index.js"),i=r(
|
|
256
591
|
/*! ../../../utils/array-util */
|
|
257
|
-
"./utils/array-util.js");function o(e){var t=e.exportFormat,r=e.qHyperCubeDef,o=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),o.interColumnSortOrder=r.qInterColumnSortOrder.concat();var a=n.default.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");a&&i.default.isOrderedSubset(a,o.interColumnSortOrder)&&(o.interColumnSortOrder=a.concat())}},"./hypercube/export-properties/helpers/store-measures-modifiers.js":
|
|
592
|
+
"./utils/array-util.js");function o(e){var t=e.exportFormat,r=e.qHyperCubeDef,o=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),o.interColumnSortOrder=r.qInterColumnSortOrder.concat();var a=n.default.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");a&&i.default.isOrderedSubset(a,o.interColumnSortOrder)&&(o.interColumnSortOrder=a.concat())}},"./hypercube/export-properties/helpers/store-measures-modifiers.js":
|
|
593
|
+
/*!*************************************************************************!*\
|
|
594
|
+
!*** ./hypercube/export-properties/helpers/store-measures-modifiers.js ***!
|
|
595
|
+
\*************************************************************************/
|
|
596
|
+
/*! exports provided: default */
|
|
597
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
258
598
|
/*! qlik-modifiers */
|
|
259
|
-
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e){e.forEach((function(e){i.a.cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))}},"./hypercube/export-properties/helpers/update-layout-exclude.js":
|
|
599
|
+
"../node_modules/qlik-modifiers/dist/qlik-modifiers.js"),i=r.n(n);function o(e){e.forEach((function(e){i.a.cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))}},"./hypercube/export-properties/helpers/update-layout-exclude.js":
|
|
600
|
+
/*!**********************************************************************!*\
|
|
601
|
+
!*** ./hypercube/export-properties/helpers/update-layout-exclude.js ***!
|
|
602
|
+
\**********************************************************************/
|
|
603
|
+
/*! exports provided: default */
|
|
604
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
260
605
|
/*! ../../../utils */
|
|
261
606
|
"./utils/index.js"),i=r(
|
|
262
607
|
/*! ./restore-changed-properties */
|
|
263
|
-
"./hypercube/export-properties/helpers/restore-changed-properties.js");function o(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(Object(i.default)(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!n.default.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude}},"./hypercube/export-properties/index.js":
|
|
608
|
+
"./hypercube/export-properties/helpers/restore-changed-properties.js");function o(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(Object(i.default)(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!n.default.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude}},"./hypercube/export-properties/index.js":
|
|
609
|
+
/*!**********************************************!*\
|
|
610
|
+
!*** ./hypercube/export-properties/index.js ***!
|
|
611
|
+
\**********************************************/
|
|
612
|
+
/*! exports provided: default */
|
|
613
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
264
614
|
/*! ../../export-format */
|
|
265
615
|
"./export-format.js"),i=r(
|
|
266
616
|
/*! ../../utils */
|
|
267
617
|
"./utils/index.js"),o=r(
|
|
268
618
|
/*! ./helpers */
|
|
269
|
-
"./hypercube/export-properties/helpers/index.js");function a(e){var t=e.propertyTree,r=e.hypercubePath,a=e.viewDataMode,s=Object(n.default)(),l=t.qProperty,u=i.default.getValue(l,r||""),c=u.qHyperCubeDef;return c.qInterColumnSortOrder||(c.qInterColumnSortOrder=[]),o.default.addDimensions({exportFormat:s,qHyperCubeDef:c}),o.default.addMeasures({exportFormat:s,qHyperCubeDef:c}),o.default.setInterColumnSortOrder({exportFormat:s,qHyperCubeDef:c}),delete c.qLayoutExclude,o.default.copyProperties({exportFormat:s,properties:l}),r&&(s.properties.qHyperCubeDef=c,delete u.qHyperCubeDef),o.default.updateLayoutExclude({exportFormat:s,properties:l}),a||o.default.storeMeasuresModifiers(s.properties.qHyperCubeDef.qMeasures),s}},"./hypercube/import-properties/helpers/add-dimensions.js":
|
|
619
|
+
"./hypercube/export-properties/helpers/index.js");function a(e){var t=e.propertyTree,r=e.hypercubePath,a=e.viewDataMode,s=Object(n.default)(),l=t.qProperty,u=i.default.getValue(l,r||""),c=u.qHyperCubeDef;return c.qInterColumnSortOrder||(c.qInterColumnSortOrder=[]),o.default.addDimensions({exportFormat:s,qHyperCubeDef:c}),o.default.addMeasures({exportFormat:s,qHyperCubeDef:c}),o.default.setInterColumnSortOrder({exportFormat:s,qHyperCubeDef:c}),delete c.qLayoutExclude,o.default.copyProperties({exportFormat:s,properties:l}),r&&(s.properties.qHyperCubeDef=c,delete u.qHyperCubeDef),o.default.updateLayoutExclude({exportFormat:s,properties:l}),a||o.default.storeMeasuresModifiers(s.properties.qHyperCubeDef.qMeasures),s}},"./hypercube/import-properties/helpers/add-dimensions.js":
|
|
620
|
+
/*!***************************************************************!*\
|
|
621
|
+
!*** ./hypercube/import-properties/helpers/add-dimensions.js ***!
|
|
622
|
+
\***************************************************************/
|
|
623
|
+
/*! exports provided: default */
|
|
624
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
270
625
|
/*! ./create-dimension */
|
|
271
|
-
"./hypercube/import-properties/helpers/create-dimension.js");function i(e){var t,r=e.exportFormat,i=e.maxDimensions,o=e.minDimensions,a=e.newHyperCubeDef,s=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var u=Object(n.default)(l.dimensions[t],s);a.qDimensions.length<i?a.qDimensions.push(u):a.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}for(t=0;t<l.excludedDimensions.length;++t){var c=Object(n.default)(l.excludedDimensions[t],s);a.qDimensions.length<o?a.qDimensions.push(c):a.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}}},"./hypercube/import-properties/helpers/add-measures.js":
|
|
626
|
+
"./hypercube/import-properties/helpers/create-dimension.js");function i(e){var t,r=e.exportFormat,i=e.maxDimensions,o=e.minDimensions,a=e.newHyperCubeDef,s=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var u=Object(n.default)(l.dimensions[t],s);a.qDimensions.length<i?a.qDimensions.push(u):a.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}for(t=0;t<l.excludedDimensions.length;++t){var c=Object(n.default)(l.excludedDimensions[t],s);a.qDimensions.length<o?a.qDimensions.push(c):a.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}}},"./hypercube/import-properties/helpers/add-measures.js":
|
|
627
|
+
/*!*************************************************************!*\
|
|
628
|
+
!*** ./hypercube/import-properties/helpers/add-measures.js ***!
|
|
629
|
+
\*************************************************************/
|
|
630
|
+
/*! exports provided: default */
|
|
631
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
272
632
|
/*! ./create-measure */
|
|
273
|
-
"./hypercube/import-properties/helpers/create-measure.js");function i(e){var t,r=e.exportFormat,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var u=Object(n.default)(l.measures[t],s);a.qMeasures.length<i?a.qMeasures.push(u):a.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}for(t=0;t<l.excludedMeasures.length;++t){var c=Object(n.default)(l.excludedMeasures[t],s);a.qMeasures.length<o?a.qMeasures.push(c):a.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}}},"./hypercube/import-properties/helpers/copy-property-if-exist.js":
|
|
633
|
+
"./hypercube/import-properties/helpers/create-measure.js");function i(e){var t,r=e.exportFormat,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var u=Object(n.default)(l.measures[t],s);a.qMeasures.length<i?a.qMeasures.push(u):a.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}for(t=0;t<l.excludedMeasures.length;++t){var c=Object(n.default)(l.excludedMeasures[t],s);a.qMeasures.length<o?a.qMeasures.push(c):a.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}}},"./hypercube/import-properties/helpers/copy-property-if-exist.js":
|
|
634
|
+
/*!***********************************************************************!*\
|
|
635
|
+
!*** ./hypercube/import-properties/helpers/copy-property-if-exist.js ***!
|
|
636
|
+
\***********************************************************************/
|
|
637
|
+
/*! exports provided: default */
|
|
638
|
+
function(e,t,r){function n(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/copy-property-or-set-default.js":
|
|
639
|
+
/*!*****************************************************************************!*\
|
|
640
|
+
!*** ./hypercube/import-properties/helpers/copy-property-or-set-default.js ***!
|
|
641
|
+
\*****************************************************************************/
|
|
642
|
+
/*! exports provided: default */
|
|
643
|
+
function(e,t,r){function n(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/create-dimension.js":
|
|
644
|
+
/*!*****************************************************************!*\
|
|
645
|
+
!*** ./hypercube/import-properties/helpers/create-dimension.js ***!
|
|
646
|
+
\*****************************************************************/
|
|
647
|
+
/*! exports provided: default */
|
|
648
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return s}));var n=r(
|
|
274
649
|
/*! extend */
|
|
275
650
|
"../node_modules/extend/index.js"),i=r.n(n),o=r(
|
|
276
651
|
/*! ../../../utils */
|
|
277
652
|
"./utils/index.js"),a=r(
|
|
278
653
|
/*! ./get-others-label */
|
|
279
|
-
"./hypercube/import-properties/helpers/get-others-label.js");function s(e,t){var r=i()(!0,{},t,e);return o.default.getValue(r,"qOtherTotalSpec.qOtherCounted")||o.default.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.default.getValue(r,"qOtherTotalSpec.qOtherLimit")||o.default.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel=Object(a.default)()),r}},"./hypercube/import-properties/helpers/create-measure.js":
|
|
654
|
+
"./hypercube/import-properties/helpers/get-others-label.js");function s(e,t){var r=i()(!0,{},t,e);return o.default.getValue(r,"qOtherTotalSpec.qOtherCounted")||o.default.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.default.getValue(r,"qOtherTotalSpec.qOtherLimit")||o.default.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel=Object(a.default)()),r}},"./hypercube/import-properties/helpers/create-measure.js":
|
|
655
|
+
/*!***************************************************************!*\
|
|
656
|
+
!*** ./hypercube/import-properties/helpers/create-measure.js ***!
|
|
657
|
+
\***************************************************************/
|
|
658
|
+
/*! exports provided: default */
|
|
659
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
280
660
|
/*! extend */
|
|
281
|
-
"../node_modules/extend/index.js"),i=r.n(n);function o(e,t){return i()(!0,{},t,e)}},"./hypercube/import-properties/helpers/create-new-properties.js":
|
|
661
|
+
"../node_modules/extend/index.js"),i=r.n(n);function o(e,t){return i()(!0,{},t,e)}},"./hypercube/import-properties/helpers/create-new-properties.js":
|
|
662
|
+
/*!**********************************************************************!*\
|
|
663
|
+
!*** ./hypercube/import-properties/helpers/create-new-properties.js ***!
|
|
664
|
+
\**********************************************************************/
|
|
665
|
+
/*! exports provided: default */
|
|
666
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return s}));var n=r(
|
|
282
667
|
/*! extend */
|
|
283
668
|
"../node_modules/extend/index.js"),i=r.n(n),o=r(
|
|
284
669
|
/*! ../../../utils */
|
|
285
670
|
"./utils/index.js"),a=r(
|
|
286
671
|
/*! ./is-master-item-property */
|
|
287
|
-
"./hypercube/import-properties/helpers/is-master-item-property.js");function s(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,s={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(s.qLayoutExclude.quarantine=i()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?o.default.setValue(s,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||Object(a.default)(e)?s[e]=t.properties[e]:s.qLayoutExclude.disabled[e]=t.properties[e]})),null===(s=i()(!0,{},r,s)).components&&(s.components=[]),s}},"./hypercube/import-properties/helpers/get-default-dimension.js":
|
|
672
|
+
"./hypercube/import-properties/helpers/is-master-item-property.js");function s(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,s={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(s.qLayoutExclude.quarantine=i()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?o.default.setValue(s,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||Object(a.default)(e)?s[e]=t.properties[e]:s.qLayoutExclude.disabled[e]=t.properties[e]})),null===(s=i()(!0,{},r,s)).components&&(s.components=[]),s}},"./hypercube/import-properties/helpers/get-default-dimension.js":
|
|
673
|
+
/*!**********************************************************************!*\
|
|
674
|
+
!*** ./hypercube/import-properties/helpers/get-default-dimension.js ***!
|
|
675
|
+
\**********************************************************************/
|
|
676
|
+
/*! exports provided: default */
|
|
677
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
288
678
|
/*! ./get-others-label */
|
|
289
|
-
"./hypercube/import-properties/helpers/get-others-label.js");function i(){return{qDef:{autoSort:!0,cId:"",othersLabel:Object(n.default)()},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}}},"./hypercube/import-properties/helpers/get-default-measure.js":
|
|
679
|
+
"./hypercube/import-properties/helpers/get-others-label.js");function i(){return{qDef:{autoSort:!0,cId:"",othersLabel:Object(n.default)()},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}}},"./hypercube/import-properties/helpers/get-default-measure.js":
|
|
680
|
+
/*!********************************************************************!*\
|
|
681
|
+
!*** ./hypercube/import-properties/helpers/get-default-measure.js ***!
|
|
682
|
+
\********************************************************************/
|
|
683
|
+
/*! exports provided: default */
|
|
684
|
+
function(e,t,r){function n(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/get-max-min-dimension-measure.js":
|
|
685
|
+
/*!******************************************************************************!*\
|
|
686
|
+
!*** ./hypercube/import-properties/helpers/get-max-min-dimension-measure.js ***!
|
|
687
|
+
\******************************************************************************/
|
|
688
|
+
/*! exports provided: default */
|
|
689
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
290
690
|
/*! ./resolve-value */
|
|
291
|
-
"./hypercube/import-properties/helpers/resolve-value.js"),i=Math.pow(2,53)-1;function o(e){var t=e.exportFormat,r=e.dataDefinition,o=void 0===r?{}:r,a=t.data[0],s=o.dimensions||{max:0},l=o.measures||{max:0},u=Object(n.default)(l.max,a.dimensions.length,i),c=Object(n.default)(l.min,a.dimensions.length,0);return{maxDimensions:Object(n.default)(s.max,u,i),minDimensions:Object(n.default)(s.min,c,0),maxMeasures:u,minMeasures:c}}},"./hypercube/import-properties/helpers/get-others-label.js":
|
|
691
|
+
"./hypercube/import-properties/helpers/resolve-value.js"),i=Math.pow(2,53)-1;function o(e){var t=e.exportFormat,r=e.dataDefinition,o=void 0===r?{}:r,a=t.data[0],s=o.dimensions||{max:0},l=o.measures||{max:0},u=Object(n.default)(l.max,a.dimensions.length,i),c=Object(n.default)(l.min,a.dimensions.length,0);return{maxDimensions:Object(n.default)(s.max,u,i),minDimensions:Object(n.default)(s.min,c,0),maxMeasures:u,minMeasures:c}}},"./hypercube/import-properties/helpers/get-others-label.js":
|
|
692
|
+
/*!*****************************************************************!*\
|
|
693
|
+
!*** ./hypercube/import-properties/helpers/get-others-label.js ***!
|
|
694
|
+
\*****************************************************************/
|
|
695
|
+
/*! exports provided: default */
|
|
696
|
+
function(e,t,r){function n(){return"Others"}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/import-common-properties.js":
|
|
697
|
+
/*!*************************************************************************!*\
|
|
698
|
+
!*** ./hypercube/import-properties/helpers/import-common-properties.js ***!
|
|
699
|
+
\*************************************************************************/
|
|
700
|
+
/*! exports provided: default */
|
|
701
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
292
702
|
/*! ../../../utils */
|
|
293
|
-
"./utils/index.js");function i(e,t,r){var i="masterobject"===n.default.getValue(t,"properties.qInfo.qType")?"masterobject":n.default.getValue(r,"qInfo.qType");n.default.setValue(e,"qInfo.qType",i),e.visualization=r.visualization}},"./hypercube/import-properties/helpers/index.js":
|
|
703
|
+
"./utils/index.js");function i(e,t,r){var i="masterobject"===n.default.getValue(t,"properties.qInfo.qType")?"masterobject":n.default.getValue(r,"qInfo.qType");n.default.setValue(e,"qInfo.qType",i),e.visualization=r.visualization}},"./hypercube/import-properties/helpers/index.js":
|
|
704
|
+
/*!******************************************************!*\
|
|
705
|
+
!*** ./hypercube/import-properties/helpers/index.js ***!
|
|
706
|
+
\******************************************************/
|
|
707
|
+
/*! exports provided: default */
|
|
708
|
+
function(e,t,r){r.r(t);var n=r(
|
|
294
709
|
/*! ./import-common-properties */
|
|
295
710
|
"./hypercube/import-properties/helpers/import-common-properties.js"),i=r(
|
|
296
711
|
/*! ./copy-property-if-exist */
|
|
@@ -318,21 +733,71 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
318
733
|
/*! ./update-dimensions-on-added */
|
|
319
734
|
"./hypercube/import-properties/helpers/update-dimensions-on-added.js"),g=r(
|
|
320
735
|
/*! ./update-measures-on-added */
|
|
321
|
-
"./hypercube/import-properties/helpers/update-measures-on-added.js");t.default={importCommonProperties:n.default,copyPropertyIfExist:i.default,copyPropertyOrSetDefault:o.default,getDefaultDimension:a.default,getDefaultMeasure:s.default,addDimensions:l.default,addMeasures:u.default,getMaxMinDimensionMeasure:c.default,setInterColumnSortOrder:p.default,createNewProperties:d.default,shouldInitLayoutExclude:f.default,initLayoutExclude:m.default,updateDimensionsOnAdded:h.default,updateMeasuresOnAdded:g.default}},"./hypercube/import-properties/helpers/init-layout-exclude.js":
|
|
736
|
+
"./hypercube/import-properties/helpers/update-measures-on-added.js");t.default={importCommonProperties:n.default,copyPropertyIfExist:i.default,copyPropertyOrSetDefault:o.default,getDefaultDimension:a.default,getDefaultMeasure:s.default,addDimensions:l.default,addMeasures:u.default,getMaxMinDimensionMeasure:c.default,setInterColumnSortOrder:p.default,createNewProperties:d.default,shouldInitLayoutExclude:f.default,initLayoutExclude:m.default,updateDimensionsOnAdded:h.default,updateMeasuresOnAdded:g.default}},"./hypercube/import-properties/helpers/init-layout-exclude.js":
|
|
737
|
+
/*!********************************************************************!*\
|
|
738
|
+
!*** ./hypercube/import-properties/helpers/init-layout-exclude.js ***!
|
|
739
|
+
\********************************************************************/
|
|
740
|
+
/*! exports provided: default */
|
|
741
|
+
function(e,t,r){function n(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/is-master-item-property.js":
|
|
742
|
+
/*!************************************************************************!*\
|
|
743
|
+
!*** ./hypercube/import-properties/helpers/is-master-item-property.js ***!
|
|
744
|
+
\************************************************************************/
|
|
745
|
+
/*! exports provided: default */
|
|
746
|
+
function(e,t,r){function n(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/resolve-value.js":
|
|
747
|
+
/*!**************************************************************!*\
|
|
748
|
+
!*** ./hypercube/import-properties/helpers/resolve-value.js ***!
|
|
749
|
+
\**************************************************************/
|
|
750
|
+
/*! exports provided: default */
|
|
751
|
+
function(e,t,r){function n(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/set-inter-column-sort-order.js":
|
|
752
|
+
/*!****************************************************************************!*\
|
|
753
|
+
!*** ./hypercube/import-properties/helpers/set-inter-column-sort-order.js ***!
|
|
754
|
+
\****************************************************************************/
|
|
755
|
+
/*! exports provided: default */
|
|
756
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
322
757
|
/*! ../../../utils/array-util */
|
|
323
|
-
"./utils/array-util.js");function i(e){var t=e.exportFormat,r=e.newHyperCubeDef,i=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=i.interColumnSortOrder.concat();var a=r.qInterColumnSortOrder.length;if(a!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());a!==o;)a<o?(n.default.indexAdded(r.qInterColumnSortOrder,a),++a):(--a,n.default.indexRemoved(r.qInterColumnSortOrder,a))}},"./hypercube/import-properties/helpers/should-init-layout-exclude.js":
|
|
758
|
+
"./utils/array-util.js");function i(e){var t=e.exportFormat,r=e.newHyperCubeDef,i=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=i.interColumnSortOrder.concat();var a=r.qInterColumnSortOrder.length;if(a!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=i.interColumnSortOrder.concat());a!==o;)a<o?(n.default.indexAdded(r.qInterColumnSortOrder,a),++a):(--a,n.default.indexRemoved(r.qInterColumnSortOrder,a))}},"./hypercube/import-properties/helpers/should-init-layout-exclude.js":
|
|
759
|
+
/*!***************************************************************************!*\
|
|
760
|
+
!*** ./hypercube/import-properties/helpers/should-init-layout-exclude.js ***!
|
|
761
|
+
\***************************************************************************/
|
|
762
|
+
/*! exports provided: default */
|
|
763
|
+
function(e,t,r){function n(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!r&&a.dimensions.length>0}r.r(t),r.d(t,"default",(function(){return n}))},"./hypercube/import-properties/helpers/update-dimensions-on-added.js":
|
|
764
|
+
/*!***************************************************************************!*\
|
|
765
|
+
!*** ./hypercube/import-properties/helpers/update-dimensions-on-added.js ***!
|
|
766
|
+
\***************************************************************************/
|
|
767
|
+
/*! exports provided: default */
|
|
768
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
324
769
|
/*! ../../../utils */
|
|
325
|
-
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=n.default.getValue(t,o||"").qHyperCubeDef,s=i(a.qDimensions);a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,t)}))}}},"./hypercube/import-properties/helpers/update-measures-on-added.js":
|
|
770
|
+
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=n.default.getValue(t,o||"").qHyperCubeDef,s=i(a.qDimensions);a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,t)}))}}},"./hypercube/import-properties/helpers/update-measures-on-added.js":
|
|
771
|
+
/*!*************************************************************************!*\
|
|
772
|
+
!*** ./hypercube/import-properties/helpers/update-measures-on-added.js ***!
|
|
773
|
+
\*************************************************************************/
|
|
774
|
+
/*! exports provided: default */
|
|
775
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return a}));var n=r(
|
|
326
776
|
/*! ../../../utils */
|
|
327
|
-
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=n.default.getValue(t,o||"").qHyperCubeDef,s=i(a.qMeasures);a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,t)}))}}},"./hypercube/import-properties/index.js":
|
|
777
|
+
"./utils/index.js");function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e){var t=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=n.default.getValue(t,o||"").qHyperCubeDef,s=i(a.qMeasures);a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,t)}))}}},"./hypercube/import-properties/index.js":
|
|
778
|
+
/*!**********************************************!*\
|
|
779
|
+
!*** ./hypercube/import-properties/index.js ***!
|
|
780
|
+
\**********************************************/
|
|
781
|
+
/*! exports provided: default */
|
|
782
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
328
783
|
/*! ../../utils */
|
|
329
784
|
"./utils/index.js"),i=r(
|
|
330
785
|
/*! ./helpers */
|
|
331
|
-
"./hypercube/import-properties/helpers/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=void 0===r?{}:r,a=e.dataDefinition,s=void 0===a?{}:a,l=e.defaultPropertyValues,u=void 0===l?{}:l,c=e.hypercubePath,p={qChildren:[]},d=i.default.createNewProperties({exportFormat:t,initialProperties:o,hypercubePath:c}),f=n.default.getValue(o,c||"").qHyperCubeDef,m=n.default.getValue(d,c||"").qHyperCubeDef,h=i.default.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:s}),g=h.maxDimensions,b=h.minDimensions,y=h.maxMeasures,v=h.minMeasures,x=u.defaultDimension,q=void 0===x?i.default.getDefaultDimension():x,D=u.defaultMeasure,M=void 0===D?i.default.getDefaultMeasure():D;return m.qDimensions.length=0,m.qMeasures.length=0,i.default.shouldInitLayoutExclude({exportFormat:t,maxDimensions:g,minDimensions:b,maxMeasures:y,minMeasures:v})&&i.default.initLayoutExclude({exportFormat:t,maxDimensions:g,minDimensions:b,maxMeasures:y,minMeasures:v,newHyperCubeDef:m}),i.default.addDimensions({exportFormat:t,maxDimensions:g,minDimensions:b,newHyperCubeDef:m,defaultDimension:q}),i.default.addMeasures({exportFormat:t,maxMeasures:y,minMeasures:v,newHyperCubeDef:m,defaultMeasure:M}),i.default.updateDimensionsOnAdded({newProperties:d,dataDefinition:s,hypercubePath:c}),i.default.updateMeasuresOnAdded({newProperties:d,dataDefinition:s,hypercubePath:c}),i.default.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:m}),i.default.copyPropertyIfExist("qMaxStackedCells",f,m),i.default.copyPropertyIfExist("qNoOfLeftDims",f,m),i.default.copyPropertyOrSetDefault("qInitialDataFetch",f,m,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),i.default.copyPropertyOrSetDefault("qMode",f,m,"S"),i.default.copyPropertyOrSetDefault("qReductionMode",f,m,"N"),i.default.copyPropertyOrSetDefault("qSortbyYValue",f,m),i.default.copyPropertyOrSetDefault("qIndentMode",f,m),i.default.copyPropertyOrSetDefault("qShowTotalsAbove",f,m),i.default.importCommonProperties(d,t,o),p.qProperty=d,p}},"./hypercube/index.js":
|
|
786
|
+
"./hypercube/import-properties/helpers/index.js");function o(e){var t=e.exportFormat,r=e.initialProperties,o=void 0===r?{}:r,a=e.dataDefinition,s=void 0===a?{}:a,l=e.defaultPropertyValues,u=void 0===l?{}:l,c=e.hypercubePath,p={qChildren:[]},d=i.default.createNewProperties({exportFormat:t,initialProperties:o,hypercubePath:c}),f=n.default.getValue(o,c||"").qHyperCubeDef,m=n.default.getValue(d,c||"").qHyperCubeDef,h=i.default.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:s}),g=h.maxDimensions,b=h.minDimensions,y=h.maxMeasures,v=h.minMeasures,x=u.defaultDimension,q=void 0===x?i.default.getDefaultDimension():x,D=u.defaultMeasure,M=void 0===D?i.default.getDefaultMeasure():D;return m.qDimensions.length=0,m.qMeasures.length=0,i.default.shouldInitLayoutExclude({exportFormat:t,maxDimensions:g,minDimensions:b,maxMeasures:y,minMeasures:v})&&i.default.initLayoutExclude({exportFormat:t,maxDimensions:g,minDimensions:b,maxMeasures:y,minMeasures:v,newHyperCubeDef:m}),i.default.addDimensions({exportFormat:t,maxDimensions:g,minDimensions:b,newHyperCubeDef:m,defaultDimension:q}),i.default.addMeasures({exportFormat:t,maxMeasures:y,minMeasures:v,newHyperCubeDef:m,defaultMeasure:M}),i.default.updateDimensionsOnAdded({newProperties:d,dataDefinition:s,hypercubePath:c}),i.default.updateMeasuresOnAdded({newProperties:d,dataDefinition:s,hypercubePath:c}),i.default.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:m}),i.default.copyPropertyIfExist("qMaxStackedCells",f,m),i.default.copyPropertyIfExist("qNoOfLeftDims",f,m),i.default.copyPropertyOrSetDefault("qInitialDataFetch",f,m,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),i.default.copyPropertyOrSetDefault("qMode",f,m,"S"),i.default.copyPropertyOrSetDefault("qReductionMode",f,m,"N"),i.default.copyPropertyOrSetDefault("qSortbyYValue",f,m),i.default.copyPropertyOrSetDefault("qIndentMode",f,m),i.default.copyPropertyOrSetDefault("qShowTotalsAbove",f,m),i.default.importCommonProperties(d,t,o),p.qProperty=d,p}},"./hypercube/index.js":
|
|
787
|
+
/*!****************************!*\
|
|
788
|
+
!*** ./hypercube/index.js ***!
|
|
789
|
+
\****************************/
|
|
790
|
+
/*! exports provided: default */
|
|
791
|
+
function(e,t,r){r.r(t);var n=r(
|
|
332
792
|
/*! ./export-properties */
|
|
333
793
|
"./hypercube/export-properties/index.js"),i=r(
|
|
334
794
|
/*! ./import-properties */
|
|
335
|
-
"./hypercube/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./index.js":
|
|
795
|
+
"./hypercube/import-properties/index.js");t.default={exportProperties:n.default,importProperties:i.default}},"./index.js":
|
|
796
|
+
/*!******************!*\
|
|
797
|
+
!*** ./index.js ***!
|
|
798
|
+
\******************/
|
|
799
|
+
/*! exports provided: default */
|
|
800
|
+
function(e,t,r){r.r(t);var n=r(
|
|
336
801
|
/*! ./hypercube */
|
|
337
802
|
"./hypercube/index.js"),i=r(
|
|
338
803
|
/*! ./color-chart */
|
|
@@ -350,51 +815,161 @@ import{useRect as e,useOptions as t,useConstraints as r,usePromise as n,useAppLa
|
|
|
350
815
|
/*! ./conditional-coloring */
|
|
351
816
|
"./conditional-coloring.js"),p=r(
|
|
352
817
|
/*! ./conditional-show */
|
|
353
|
-
"./conditional-show.js");t.default={hypercube:n.default,colorChart:i.default,axisChart:o.default,quarantineProperty:a.default,unquarantineProperty:s.default,quarantineArrayProp:l.default,unquarantineArrayProp:u.default,conditionalColoring:c.default,conditionalShow:p.default}},"./quarantine/get-quarantine-path.js":
|
|
818
|
+
"./conditional-show.js");t.default={hypercube:n.default,colorChart:i.default,axisChart:o.default,quarantineProperty:a.default,unquarantineProperty:s.default,quarantineArrayProp:l.default,unquarantineArrayProp:u.default,conditionalColoring:c.default,conditionalShow:p.default}},"./quarantine/get-quarantine-path.js":
|
|
819
|
+
/*!*******************************************!*\
|
|
820
|
+
!*** ./quarantine/get-quarantine-path.js ***!
|
|
821
|
+
\*******************************************/
|
|
822
|
+
/*! exports provided: default */
|
|
823
|
+
function(e,t,r){function n(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}r.r(t),r.d(t,"default",(function(){return n}))},"./quarantine/quarantine-array-item.js":
|
|
824
|
+
/*!*********************************************!*\
|
|
825
|
+
!*** ./quarantine/quarantine-array-item.js ***!
|
|
826
|
+
\*********************************************/
|
|
827
|
+
/*! exports provided: default */
|
|
828
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
354
829
|
/*! ../utils */
|
|
355
830
|
"./utils/index.js"),i=r(
|
|
356
831
|
/*! ./get-quarantine-path */
|
|
357
|
-
"./quarantine/get-quarantine-path.js");function o(e){var t=e.properties,r=e.quarantineName,o=e.arrayName,a=e.item,s=e.itemPath,l=n.default.getValue(a,s);if(void 0!==l){var u=n.default.getValue(a,"qDef.cId");u||(u=n.default.generateId(),n.default.setValue(a,"qDef.cId",u));var c=Object(i.default)(r,o,u);n.default.setValue(t,c,l),n.default.setValue(a,s,void 0)}}},"./quarantine/quarantine-array-prop.js":
|
|
832
|
+
"./quarantine/get-quarantine-path.js");function o(e){var t=e.properties,r=e.quarantineName,o=e.arrayName,a=e.item,s=e.itemPath,l=n.default.getValue(a,s);if(void 0!==l){var u=n.default.getValue(a,"qDef.cId");u||(u=n.default.generateId(),n.default.setValue(a,"qDef.cId",u));var c=Object(i.default)(r,o,u);n.default.setValue(t,c,l),n.default.setValue(a,s,void 0)}}},"./quarantine/quarantine-array-prop.js":
|
|
833
|
+
/*!*********************************************!*\
|
|
834
|
+
!*** ./quarantine/quarantine-array-prop.js ***!
|
|
835
|
+
\*********************************************/
|
|
836
|
+
/*! exports provided: default */
|
|
837
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
358
838
|
/*! ../utils */
|
|
359
839
|
"./utils/index.js"),i=r(
|
|
360
840
|
/*! ./quarantine-array-item */
|
|
361
|
-
"./quarantine/quarantine-array-item.js");function o(e){var t=e.properties,r=e.arrayPath,o=e.quarantineName,a=e.arrayName,s=e.itemPath;n.default.getValue(t,r,[]).forEach((function(e){return Object(i.default)({properties:t,quarantineName:o,arrayName:a,item:e,itemPath:s})}))}},"./quarantine/quarantine-property.js":
|
|
841
|
+
"./quarantine/quarantine-array-item.js");function o(e){var t=e.properties,r=e.arrayPath,o=e.quarantineName,a=e.arrayName,s=e.itemPath;n.default.getValue(t,r,[]).forEach((function(e){return Object(i.default)({properties:t,quarantineName:o,arrayName:a,item:e,itemPath:s})}))}},"./quarantine/quarantine-property.js":
|
|
842
|
+
/*!*******************************************!*\
|
|
843
|
+
!*** ./quarantine/quarantine-property.js ***!
|
|
844
|
+
\*******************************************/
|
|
845
|
+
/*! exports provided: default */
|
|
846
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
362
847
|
/*! ../utils */
|
|
363
|
-
"./utils/index.js");function i(e,t,r){var i,o,a=n.default.getValue(e,t);if(!n.default.isAtomicValue(a))try{if((o=(o=(i=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(i)}catch(e){return}n.default.getValue(e,"qLayoutExclude.quarantine")||n.default.setValue(e,"qLayoutExclude.quarantine",{});var s=n.default.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}},"./quarantine/unquarantine-array-item.js":
|
|
848
|
+
"./utils/index.js");function i(e,t,r){var i,o,a=n.default.getValue(e,t);if(!n.default.isAtomicValue(a))try{if((o=(o=(i=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(i)}catch(e){return}n.default.getValue(e,"qLayoutExclude.quarantine")||n.default.setValue(e,"qLayoutExclude.quarantine",{});var s=n.default.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}},"./quarantine/unquarantine-array-item.js":
|
|
849
|
+
/*!***********************************************!*\
|
|
850
|
+
!*** ./quarantine/unquarantine-array-item.js ***!
|
|
851
|
+
\***********************************************/
|
|
852
|
+
/*! exports provided: default */
|
|
853
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
364
854
|
/*! ../utils */
|
|
365
855
|
"./utils/index.js"),i=r(
|
|
366
856
|
/*! ./get-quarantine-path */
|
|
367
|
-
"./quarantine/get-quarantine-path.js");function o(e){var t=e.properties,r=e.quarantineName,o=e.arrayName,a=e.item,s=e.itemPath,l=n.default.getValue(a,"qDef.cId");if(l){var u=Object(i.default)(r,o,l),c=n.default.getValue(t,u);void 0!==c&&(n.default.setValue(a,s,c),n.default.setValue(t,u,void 0))}}},"./quarantine/unquarantine-array-prop.js":
|
|
857
|
+
"./quarantine/get-quarantine-path.js");function o(e){var t=e.properties,r=e.quarantineName,o=e.arrayName,a=e.item,s=e.itemPath,l=n.default.getValue(a,"qDef.cId");if(l){var u=Object(i.default)(r,o,l),c=n.default.getValue(t,u);void 0!==c&&(n.default.setValue(a,s,c),n.default.setValue(t,u,void 0))}}},"./quarantine/unquarantine-array-prop.js":
|
|
858
|
+
/*!***********************************************!*\
|
|
859
|
+
!*** ./quarantine/unquarantine-array-prop.js ***!
|
|
860
|
+
\***********************************************/
|
|
861
|
+
/*! exports provided: default */
|
|
862
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
368
863
|
/*! ../utils */
|
|
369
864
|
"./utils/index.js"),i=r(
|
|
370
865
|
/*! ./unquarantine-array-item */
|
|
371
|
-
"./quarantine/unquarantine-array-item.js");function o(e){var t=e.properties,r=e.arrayPath,o=e.quarantineName,a=e.arrayName,s=e.itemPath;n.default.getValue(t,r,[]).forEach((function(e){return Object(i.default)({properties:t,quarantineName:o,arrayName:a,item:e,itemPath:s})}))}},"./quarantine/unquarantine-property.js":
|
|
866
|
+
"./quarantine/unquarantine-array-item.js");function o(e){var t=e.properties,r=e.arrayPath,o=e.quarantineName,a=e.arrayName,s=e.itemPath;n.default.getValue(t,r,[]).forEach((function(e){return Object(i.default)({properties:t,quarantineName:o,arrayName:a,item:e,itemPath:s})}))}},"./quarantine/unquarantine-property.js":
|
|
867
|
+
/*!*********************************************!*\
|
|
868
|
+
!*** ./quarantine/unquarantine-property.js ***!
|
|
869
|
+
\*********************************************/
|
|
870
|
+
/*! exports provided: default */
|
|
871
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
372
872
|
/*! ../utils */
|
|
373
|
-
"./utils/index.js");function i(e,t){var r=n.default.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){n.default.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}},"./utils/array-util.js":
|
|
873
|
+
"./utils/index.js");function i(e,t){var r=n.default.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){n.default.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}},"./utils/array-util.js":
|
|
874
|
+
/*!*****************************!*\
|
|
875
|
+
!*** ./utils/array-util.js ***!
|
|
876
|
+
\*****************************/
|
|
877
|
+
/*! exports provided: default */
|
|
878
|
+
function(e,t,r){r.r(t);var n=r(
|
|
374
879
|
/*! ./find-item-by-property-value */
|
|
375
880
|
"./utils/find-item-by-property-value.js"),i=r(
|
|
376
881
|
/*! ./find-index-by-property-value */
|
|
377
|
-
"./utils/find-index-by-property-value.js");t.default={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var i=e.indexOf(t[n]);if(r>i)return!1;r=i}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:n.default,findIndexByPropertyValue:i.default}},"./utils/attribute-expression-util/create.js":
|
|
882
|
+
"./utils/find-index-by-property-value.js");t.default={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var i=e.indexOf(t[n]);if(r>i)return!1;r=i}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:n.default,findIndexByPropertyValue:i.default}},"./utils/attribute-expression-util/create.js":
|
|
883
|
+
/*!***************************************************!*\
|
|
884
|
+
!*** ./utils/attribute-expression-util/create.js ***!
|
|
885
|
+
\***************************************************/
|
|
886
|
+
/*! exports provided: default */
|
|
887
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function i(e,t){if(!e||!n[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r}},"./utils/attribute-expression-util/index.js":
|
|
888
|
+
/*!**************************************************!*\
|
|
889
|
+
!*** ./utils/attribute-expression-util/index.js ***!
|
|
890
|
+
\**************************************************/
|
|
891
|
+
/*! exports provided: default */
|
|
892
|
+
function(e,t,r){r.r(t);var n=r(
|
|
378
893
|
/*! ./create */
|
|
379
894
|
"./utils/attribute-expression-util/create.js"),i=r(
|
|
380
895
|
/*! ./move-by-id-from-group */
|
|
381
|
-
"./utils/attribute-expression-util/move-by-id-from-group.js");t.default={create:n.default,moveByIdFromGroup:i.default,IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}}},"./utils/attribute-expression-util/is-size-changed.js":
|
|
896
|
+
"./utils/attribute-expression-util/move-by-id-from-group.js");t.default={create:n.default,moveByIdFromGroup:i.default,IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}}},"./utils/attribute-expression-util/is-size-changed.js":
|
|
897
|
+
/*!************************************************************!*\
|
|
898
|
+
!*** ./utils/attribute-expression-util/is-size-changed.js ***!
|
|
899
|
+
\************************************************************/
|
|
900
|
+
/*! exports provided: default */
|
|
901
|
+
function(e,t,r){function n(e,t){return e.length!==t}r.r(t),r.d(t,"default",(function(){return n}))},"./utils/attribute-expression-util/move-by-id-from-group.js":
|
|
902
|
+
/*!******************************************************************!*\
|
|
903
|
+
!*** ./utils/attribute-expression-util/move-by-id-from-group.js ***!
|
|
904
|
+
\******************************************************************/
|
|
905
|
+
/*! exports provided: default */
|
|
906
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return o}));var n=r(
|
|
382
907
|
/*! ./move-by-id */
|
|
383
908
|
"./utils/attribute-expression-util/move-by-id.js"),i=r(
|
|
384
909
|
/*! ./is-size-changed */
|
|
385
|
-
"./utils/attribute-expression-util/is-size-changed.js");function o(e,t,r,o,a){r=r||"qAttributeExpressions",a=a||"id";for(var s=0;s<e.length;s++){var l=e[s][r],u=t.length;if(Object(n.default)(l,t,o,a),Object(i.default)(t,u))return t}return t}},"./utils/attribute-expression-util/move-by-id.js":
|
|
910
|
+
"./utils/attribute-expression-util/is-size-changed.js");function o(e,t,r,o,a){r=r||"qAttributeExpressions",a=a||"id";for(var s=0;s<e.length;s++){var l=e[s][r],u=t.length;if(Object(n.default)(l,t,o,a),Object(i.default)(t,u))return t}return t}},"./utils/attribute-expression-util/move-by-id.js":
|
|
911
|
+
/*!*******************************************************!*\
|
|
912
|
+
!*** ./utils/attribute-expression-util/move-by-id.js ***!
|
|
913
|
+
\*******************************************************/
|
|
914
|
+
/*! exports provided: default */
|
|
915
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
386
916
|
/*! ../find-index-by-property-value */
|
|
387
|
-
"./utils/find-index-by-property-value.js");function i(e,t,r,i){t=t||[];var o=Object(n.default)(e,i,r),a=Object(n.default)(t,i,r);if(-1!==o&&-1===a){var s=e.splice(o,1);t.push(s[0])}return t}},"./utils/find-index-by-property-value.js":
|
|
917
|
+
"./utils/find-index-by-property-value.js");function i(e,t,r,i){t=t||[];var o=Object(n.default)(e,i,r),a=Object(n.default)(t,i,r);if(-1!==o&&-1===a){var s=e.splice(o,1);t.push(s[0])}return t}},"./utils/find-index-by-property-value.js":
|
|
918
|
+
/*!***********************************************!*\
|
|
919
|
+
!*** ./utils/find-index-by-property-value.js ***!
|
|
920
|
+
\***********************************************/
|
|
921
|
+
/*! exports provided: default */
|
|
922
|
+
function(e,t,r){function n(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}r.r(t),r.d(t,"default",(function(){return n}))},"./utils/find-item-by-property-value.js":
|
|
923
|
+
/*!**********************************************!*\
|
|
924
|
+
!*** ./utils/find-item-by-property-value.js ***!
|
|
925
|
+
\**********************************************/
|
|
926
|
+
/*! exports provided: default */
|
|
927
|
+
function(e,t,r){function n(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null}r.r(t),r.d(t,"default",(function(){return n}))},"./utils/generate-id.js":
|
|
928
|
+
/*!******************************!*\
|
|
929
|
+
!*** ./utils/generate-id.js ***!
|
|
930
|
+
\******************************/
|
|
931
|
+
/*! exports provided: default */
|
|
932
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
388
933
|
/*! ./get-base62 */
|
|
389
|
-
"./utils/get-base62.js");function i(){return Object(n.default)(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},"./utils/get-base62.js":
|
|
934
|
+
"./utils/get-base62.js");function i(){return Object(n.default)(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},"./utils/get-base62.js":
|
|
935
|
+
/*!*****************************!*\
|
|
936
|
+
!*** ./utils/get-base62.js ***!
|
|
937
|
+
\*****************************/
|
|
938
|
+
/*! exports provided: default */
|
|
939
|
+
function(e,t,r){r.r(t),r.d(t,"default",(function(){return i}));var n=r(
|
|
390
940
|
/*! ./get-char */
|
|
391
|
-
"./utils/get-char.js");function i(e){var t=Object(n.default)(e%62),r=Math.floor(e/62);return r>0?i(r)+t:t}},"./utils/get-char.js":
|
|
941
|
+
"./utils/get-char.js");function i(e){var t=Object(n.default)(e%62),r=Math.floor(e/62);return r>0?i(r)+t:t}},"./utils/get-char.js":
|
|
942
|
+
/*!***************************!*\
|
|
943
|
+
!*** ./utils/get-char.js ***!
|
|
944
|
+
\***************************/
|
|
945
|
+
/*! exports provided: default */
|
|
946
|
+
function(e,t,r){function n(e){var t,r=e;return r>9?(t=65+r-10)>90&&(t+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(t)>-1?n(r+1):String.fromCharCode(t)}r.r(t),r.d(t,"default",(function(){return n}))},"./utils/hypercube-util.js":
|
|
947
|
+
/*!*********************************!*\
|
|
948
|
+
!*** ./utils/hypercube-util.js ***!
|
|
949
|
+
\*********************************/
|
|
950
|
+
/*! exports provided: default */
|
|
951
|
+
function(e,t,r){r.r(t);var n=r(
|
|
392
952
|
/*! . */
|
|
393
953
|
"./utils/index.js"),i=r(
|
|
394
954
|
/*! ./wrap-file-name */
|
|
395
|
-
"./utils/wrap-file-name.js");t.default={getNumDimensions:function(e){return n.default.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return n.default.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:i.default,getItemLabel:function(e){return e.label||e.name}}},"./utils/index.js":
|
|
955
|
+
"./utils/wrap-file-name.js");t.default={getNumDimensions:function(e){return n.default.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return n.default.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:i.default,getItemLabel:function(e){return e.label||e.name}}},"./utils/index.js":
|
|
956
|
+
/*!************************!*\
|
|
957
|
+
!*** ./utils/index.js ***!
|
|
958
|
+
\************************/
|
|
959
|
+
/*! exports provided: default */
|
|
960
|
+
function(e,t,r){r.r(t);var n=r(
|
|
396
961
|
/*! ./generate-id */
|
|
397
|
-
"./utils/generate-id.js");function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(""!==a){if(void 0===i[a]||null===i[a])return r;i=i[a]}}return i},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),i=n[n.length-1],o=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:n.default}},"./utils/number-format-util.js":
|
|
962
|
+
"./utils/generate-id.js");function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.default={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(""!==a){if(void 0===i[a]||null===i[a])return r;i=i[a]}}return i},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),i=n[n.length-1],o=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+n[a+1])?{}:[]),o=o[s]}void 0!==r?o[i]=r:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:n.default}},"./utils/number-format-util.js":
|
|
963
|
+
/*!*************************************!*\
|
|
964
|
+
!*** ./utils/number-format-util.js ***!
|
|
965
|
+
\*************************************/
|
|
966
|
+
/*! exports provided: default */
|
|
967
|
+
function(e,t,r){r.r(t),t.default={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}}},"./utils/wrap-file-name.js":
|
|
968
|
+
/*!*********************************!*\
|
|
969
|
+
!*** ./utils/wrap-file-name.js ***!
|
|
970
|
+
\*********************************/
|
|
971
|
+
/*! exports provided: default */
|
|
972
|
+
function(e,t,r){function n(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e}r.r(t),r.d(t,"default",(function(){return n}))}}));function V(e){var t=e.dataDefinition,r=e.defaultPropertyValues,n=e.exportFormat,i=e.initialProperties,o=_.hypercube.importProperties({exportFormat:n,initialProperties:i,dataDefinition:t,defaultPropertyValues:r}),a=o.qProperty;return"all"===a.dimensionAxis.show?a.dimensionAxis.show="labels":"title"===a.dimensionAxis.show&&(a.dimensionAxis.show="none"),"all"===a.measureAxis.show?a.measureAxis.show="labels":"title"===a.measureAxis.show&&(a.measureAxis.show="none"),a.qHyperCubeDef.qMeasures.length>0&&(a.qDef.numFormatFromTemplate=a.qHyperCubeDef.qMeasures[0].qDef.numFormatFromTemplate,a.qDef.qNumFormat=a.qHyperCubeDef.qMeasures[0].qDef.qNumFormat,a.qHyperCubeDef.qMeasures.forEach((function(e){e.qDef.numFormatFromTemplate=a.qDef.numFormatFromTemplate,e.qDef.qNumFormat=q(!0,{},a.qDef.qNumFormat)}))),a.qHyperCubeDef.qSuppressZero=!1,o}function H(e){var t=e.propertyTree,r=e.viewDataMode;return _.hypercube.exportProperties({propertyTree:t,viewDataMode:r})}var z=function(e){var t=R(e);return{properties:T,data:{targets:[t]},importProperties:function(e){var r=e.exportFormat,n=e.initialProperties;return V({dataDefinition:t,exportFormat:r,initialProperties:n})},exportProperties:H}};function B(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function U(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function W(){}var K=1/.7,G="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Y="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",J=/^#([0-9a-f]{3,8})$/,X=new RegExp("^rgb\\("+[G,G,G]+"\\)$"),Q=new RegExp("^rgb\\("+[Y,Y,Y]+"\\)$"),Z=new RegExp("^rgba\\("+[G,G,G,$]+"\\)$"),ee=new RegExp("^rgba\\("+[Y,Y,Y,$]+"\\)$"),te=new RegExp("^hsl\\("+[$,Y,Y]+"\\)$"),re=new RegExp("^hsla\\("+[$,Y,Y,$]+"\\)$"),ne={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 ie(){return this.rgb().formatHex()}function oe(){return this.rgb().formatRgb()}function ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=J.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?se(t):3===r?new ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?le(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=X.exec(e))?new ce(t[1],t[2],t[3],1):(t=Q.exec(e))?new ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Z.exec(e))?le(t[1],t[2],t[3],t[4]):(t=ee.exec(e))?le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=te.exec(e))?me(t[1],t[2]/100,t[3]/100,1):(t=re.exec(e))?me(t[1],t[2]/100,t[3]/100,t[4]):ne.hasOwnProperty(e)?se(ne[e]):"transparent"===e?new ce(NaN,NaN,NaN,0):null}function se(e){return new ce(e>>16&255,e>>8&255,255&e,1)}function le(e,t,r,n){return n<=0&&(e=t=r=NaN),new ce(e,t,r,n)}function ue(e){return e instanceof W||(e=ae(e)),e?new ce((e=e.rgb()).r,e.g,e.b,e.opacity):new ce}function ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pe(){return"#"+fe(this.r)+fe(this.g)+fe(this.b)}function de(){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+")")}function fe(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function me(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ge(e,t,r,n)}function he(e){if(e instanceof ge)return new ge(e.h,e.s,e.l,e.opacity);if(e instanceof W||(e=ae(e)),!e)return new ge;if(e instanceof ge)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ge(a,s,l,e.opacity)}function ge(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function be(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function ye(e,t,r){if(void 0===e||void 0===t)return r;for(var n=t.split("."),i=e,o=0;o<n.length;++o){var a=n[o];if(void 0===i[a])return r;i=i[a]}return i}function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qe(e,t,r){return t&&xe(e.prototype,t),r&&xe(e,r),e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}B(W,ae,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ie,formatHex:ie,formatHsl:function(){return he(this).formatHsl()},formatRgb:oe,toString:oe}),B(ce,(function(e,t,r,n){return 1===arguments.length?ue(e):new ce(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:pe,formatHex:pe,formatRgb:de,toString:de})),B(ge,(function(e,t,r,n){return 1===arguments.length?he(e):new ge(e,t,r,null==n?1:n)}),U(W,{brighter:function(e){return e=null==e?K:Math.pow(K,e),new ge(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ge(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ce(be(e>=240?e-240:e+120,i,n),be(e,i,n),be(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Me,Se=(
|
|
398
973
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
399
|
-
(De={exports:{}}).exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,l,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,i=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",o=n&&n[1]&&n[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(p=t[0]).length%l,d=p.length,v=0;v<d;v++)h+=p.charAt(v),!((v-b+1)%l)&&v<d-l&&(h+=o);t[0]=h}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x},De.exports);function Se(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var Ee={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},we=/%$/,Ae=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,je=/^\(oct\)/i,Ce=/^\(dec\)/i,ke=/^\(hex\)/i,Ie=/^\(bin\)/i,Oe=/^\(rom\)/i,Ne=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Le=/#|0/g;function Te(e,t,r,n){return e=e.toString(t),r[1]===r[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",n||".")}function Re(e,t,r){var n=Se(e);return r?n:new RegExp(n||"",t)}function Pe(e,t,r){var n,i,o,a,s,l,u,c,p,d,f,m=e.pattern;m.indexOf("A")>=0&&(m=m.replace("A",""),e.abbreviate=!0),d=t,(f=r)&&(f=Se(f)),d&&(d=Se(d)),p=new RegExp("(?:[#0]+".concat(d,")?[#0]+(?:").concat(f,"[#0]+)?")),a=(o=(o=m.match(p))?o[0]:"")?m.substr(0,m.indexOf(o)):m,s=o?m.substring(m.indexOf(o)+o.length):"",o||(o=m?"#":"##########"),t&&t===r&&(i=(n=o.split(r)).pop(),o=n.join("")+r+i,t=""),l=t,t=/,/.test(r)?"¤":",",l&&(o=o.replace(Re(l,"g"),t)),u=r,r=".",u&&(o=o.replace(Re(u,"g"),r)),c=(c=o.match(/#/g))?c.length:0;var h,g=m.split(u);g[1]&&(h=g[1].match(Le)),e.prefix=a||"",e.postfix=s||"",e.pattern=m,e.maxPrecision=h?h.length:2,e.percentage=we.test(m),e.numericPattern=o||"",e.numericRegex=new RegExp("".concat(Re(t,null,!0),"|").concat(Re(r,null,!0)),"g"),e.groupTemp=l,e.decTemp=u,e.t=t,e.d=r,e.temp=c}!function(){function e(t,r,n,i,o){ye(this,e),this.localeInfo=t,this.pattern=r,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Ee;var r={};return e.qNumericalAbbreviation.split(t).forEach((function(e){var t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}(t,this.patternSeparator),this.prepare()}xe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t,r,n){return this.prepare(t,r,n),this.formatValue(e)}},{key:"prepare",value:function(e,t,r){var n;void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===r&&(r=this.decimalDelimiter),e?(this._prepared={positive:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},n=this._prepared,e=e.split(this.patternSeparator),n.positive.pattern=e[0],n.negative.pattern=e[1],n.zero.pattern=e[2],Ne.test(e[0])&&(n.positive.isFunctional=!0),e[1]?Ne.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?Ne.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1,n.positive.isFunctional||Pe(n.positive,t,r),n.negative&&!n.negative.isFunctional&&Pe(n.negative,t,r),n.zero&&!n.zero.isFunctional&&Pe(n.zero,t,r)):this._prepared={pattern:!1}}},{key:"formatValue",value:function(e){var t,r,n,i,o,a,s,l,u,c=this._prepared,p="",d="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return(c=c.zero).pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,o=c.d,a=c.t,c.isFunctional)e=function(e,t,r){var n;return Ae.test(t)?e=Te(e,Number(/\d{2}/.exec(t)[0]),t,r):je.test(t)?e=Te(e,8,t,r):Ce.test(t)?e=Te(e,10,t,r):ke.test(t)?e=Te(e,16,t,r):Ie.test(t)?e=Te(e,2,t,r):Oe.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=function(e,t){for(var r,n="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();i>0;)for(r=0;r<a.length;r++)if(a[r]<=i){n+=s[r],i-=a[r];break}for(r=0;r<o;r++)n="M".concat(n);return t[1]!==t[1].toUpperCase()&&(n=n.toLowerCase()),n}(e,t)):t+n+e.toExponential(0)),e}(e,c.pattern,o);else{if(c.percentage&&(e*=100),c.abbreviate){var m,h,g=Object.keys(this.abbreviations).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})),b=g[0];for(s=0,r=Number(Number(e).toExponential().split("e")[1]);b<=r&&s<g.length;)b=g[++s];s>0&&(m=g[s-1]),m&&r>0&&m>0?h=m:(r<0&&m<0||!m)&&(b<0&&b-r<=c.maxPrecision?h=b:m<=r&&!(b>0&&-r<=c.maxPrecision)&&(h=m)),h&&(p=this.abbreviations[h],e/=Math.pow(10,h))}if(n=Math.abs(e),t=c.temp,u=(l=c.numericPattern).split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,u||"#"!==l.slice(-1)[0])if(n>=1e15||n>0&&n<=1e-14)e=n?n.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{var y=Number(e.toFixed(Math.min(20,u?u.length:0)).split(".")[0]),v=l.split(o)[0];if(e=Me(v+=o,y)||"0",u){var x=Math.max(0,Math.min(14,u.length)),q=u.replace(/#+$/,"").length,D=("I"===this.type?0:n%1).toFixed(x).slice(2).replace(/0+$/,"");for(s=D.length;s<q;s++)D+="0";D&&(e+=o+D)}else 0===y&&(i=0)}else if(n>=Math.pow(10,t)||n<1||n<1e-4)0===e?e="0":n<1e-4||n>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),d=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Me(l,e)}e=e.replace(c.numericRegex,(function(e){return e===a?c.groupTemp:e===o?c.decTemp:""})),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+d+p+c.postfix}}],[{key:"getStaticFormatter",value:function(){return{prepare:function(){},formatValue:function(e){return"".concat(e)}}}}])}();var Fe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],_e=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ve=["January","February","March","April","May","June","July","August","September","October","November","December"],He=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ze(e,t){for(var r=e.length;r<t;r++)e="0".concat(e);return e}function Be(e){var t=e.toString().split(".");return t[1]?t=Number("0.".concat(t[1])):0}!function(){function e(t,r,n){ye(this,e);var i,o=t||{};o.qCalendarStrings||(o.qCalendarStrings={qLongDayNames:Fe,qDayNames:_e,qLongMonthNames:Ve,qMonthNames:He}),this.localeInfo=o,this.locale_days=o.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=o.qCalendarStrings.qDayNames.slice(),this.locale_months=o.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=o.qCalendarStrings.qMonthNames.slice(),r||(r=(qe(i={},"T",o.qTimeFmt||"hh:mm:ss"),qe(i,"D",o.qDateFmt||"YYYY-MM-DD"),qe(i,"TS",o.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"),i)[n]),this.pattern=r}xe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");var r,n,i,o,a,s=/t+/gi.test(t);e instanceof Date?(i=s,o=(n=e).getUTCHours(),i&&((o%=12)||(o=12)),(a=n.getUTCDay()-1)<0&&(a=6),r={year:n.getUTCFullYear(),month:n.getUTCMonth(),day:a,date:n.getUTCDate(),h:o,m:n.getUTCMinutes(),s:n.getUTCSeconds(),f:n.getUTCMilliseconds(),t:n.getUTCHours()>=12?"pm":"am"}):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){var r,n=function(e){var t=e,r=24*Be(t),n=60*Be(r),i=60*Be(n),o=1e3*Be(i);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(i),f:Math.round(o)}}(e),i=n.d,o=n.h,a=n.m,s=n.s,l=n.f,u=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(r.getTime())&&(r=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=r?r.getDay()-1:0)<0&&(u=6);var c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:i,h:o,m:a,s:s,f:l,t:c}}(e,t));var l=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:ze("".concat(t.year).slice(-2),2),YYY:ze("".concat(t.year).slice(-3),3),def:function(e){return ze("".concat(t.year),e.length)}},"M+":{M:t.month+1,MM:ze("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:ze("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:function(e){return ze("".concat(t.date),e.length)}},"h+|H+":{h:t.h,def:function(e){return ze("".concat(t.h),e.length)}},"m+":{m:t.m,def:function(e){return ze("".concat(t.m),e.length)}},"s+|S+":{s:t.s,def:function(e){return ze("".concat(t.s),e.length)}},"f+|F+":{def:function(e){var r="".concat(t.f),n=e.length-r.length;if(n>0)for(var i=0;i<n;i++)r+="0";else n<0&&(r=r.slice(0,e.length));return r}},"t{1,2}|T{1,2}":{def:function(e){var r=t.t;return e[0].toUpperCase()===e[0]&&(r=r.toUpperCase()),r.slice(0,e.length)}}}}(this,r),u=[];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&u.push(c);var p=new RegExp(u.join("|"),"g");return t.replace(p,(function(e){var t,r,n;for(r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&(t=new RegExp(r)).test(e))break;if(!t)return"";for(var i in l[r])if(i===e||i.toLowerCase()===e){void 0===(n=l[r][i])&&(n=l[r][i.toLowerCase()]);break}return void 0===n&&(n=l[r].def),"function"==typeof n&&(n=n(e)),n}))}}])}();function Ue(e,t,r,n,i){var o=e.color||e.qDef.color;return o&&!o.auto&&o[r]?o[r].paletteColor:{index:i,color:t.getStyle("object.waterfallChart","shape.".concat(r),"fill")||n}}var We={valueTypes:{NORMAL:"NORMAL",INVERSE:"INVERSE",SUBTOTAL:"SUBTOTAL"},chartID:"object.waterfallChart",getColorForPositiveValue:function(e,t){return t.getColorPickerColor(Ue(e,t,"positiveValue",null,6))},getColorForNegativeValue:function(e,t){return t.getColorPickerColor(Ue(e,t,"negativeValue","#cc6677",-1))},getColorForSubtotal:function(e,t){return t.getColorPickerColor(Ue(e,t,"subtotal","#c3c3c3",-1))}};function Ke(e){return!e.color.auto}function Ge(e){var t=e.flags,r=e.translator,n={translation:"properties.numberFormatting",type:"items",globalChange:function(e){e.qHyperCubeDef.qMeasures.forEach((function(t){t.qDef.numFormatFromTemplate=e.qDef.numFormatFromTemplate,t.qDef.qNumFormat=x(!0,{},e.qDef.qNumFormat)}))},items:{numberFormatting:{uses:"measures.items.numberFormatting",items:{numberFormattingType:void 0}}}};return{type:"items",component:"accordion",items:{data:{uses:"data",addTranslation:"Properties.AddData",items:{measures:{disabledRef:"",items:{numberFormatting:{show:!1},valueType:{type:"string",component:"dropdown",ref:"qDef.valueType",translation:"properties.waterfall.measureOperation",options:[{value:We.valueTypes.NORMAL,translation:"properties.waterfall.measureOperation.add"},{value:We.valueTypes.INVERSE,translation:"properties.waterfall.measureOperation.subtract"},{value:We.valueTypes.SUBTOTAL,translation:"properties.waterfall.measureOperation.subtotal"}],defaultValue:We.valueTypes.NORMAL},subTotal:{ref:"qDef.subtotal.enable",type:"boolean",defaultValue:!1,translation:"properties.waterfall.measureOperation.subtotal",show:function(e){return e.qDef.valueType!==We.valueTypes.SUBTOTAL}},subTotalLabel:{translation:"properties.waterfall.subtotalLabel",component:"string",expression:"optional",ref:"qDef.subtotal.label",defaultValue:function(){return r.get("properties.waterfall.measureOperation.subtotal")},show:function(e){return e.qDef.valueType!==We.valueTypes.SUBTOTAL&&e.qDef.subtotal&&e.qDef.subtotal.enable}}}}}},numberFormatting:n,addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridlines.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridlines.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:function(e){return e.gridlines&&!e.gridlines.auto}}}},showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],snapshot:{tid:"property-dataPoints"}}}},colors:{translation:"properties.colorsAndLegend",type:"items",grouped:!0,items:{colors:{type:"items",items:{autoColor:{ref:"color.auto",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},positiveValueColor:{ref:"color.positiveValue.paletteColor",translation:"properties.waterfall.color.positiveValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:6,color:null},show:Ke},negativeValueColor:{ref:"color.negativeValue.paletteColor",translation:"properties.waterfall.color.negativeValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#cc6677"},show:Ke},subtotalColor:{ref:"color.subtotal.paletteColor",translation:"properties.waterfall.color.subtotalColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#c3c3c3"},show:Ke}}},legend:{type:"items",items:{show:{ref:"legend.show",type:"boolean",translation:"properties.legend.show",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},dock:{type:"string",component:"dropdown",ref:"legend.dock",translation:"properties.legend.position",options:[{value:"auto",translation:"Common.Auto"},{value:"right",translation:"properties.dock.right"},{value:"bottom",translation:"Common.Bottom"},{value:"left",translation:"properties.dock.left"},{value:"top",translation:"Common.Top"}],defaultValue:"auto",show:function(e){return be(e,"legend.show",!0)}}}}}},measureAxis:{uses:"axis.picasso.measureAxis",label:r.get("properties.yAxis"),items:{axis:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]}}}}},dimensionAxis:{uses:"axis.picasso.dimensionAxis",items:{othersGroup:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]},label:{options:t.isEnabled("SENSECLIENT_LAYERED_LABELS")?[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]:void 0}}}}}}}}}}function $e(e){var t;if(null!==(t=e.anything)&&void 0!==t&&t.sense)return{definition:Ge(e),support:{cssScaling:!1,snapshot:!0,export:!0,exportData:!0,sharing:!0,viewData:!0},importProperties:function(t,r,n){n.mapProperties();var i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return _({dataDefinition:T(e),defaultPropertyValues:i,exportFormat:t,initialProperties:r})},exportProperties:function(e,t,r){return V({propertyTree:e,viewDataMode:r})}}}Object.freeze(We.valueTypes),Object.freeze(We);var Ye=/xyz/.test((function(){}))?/\b_super\b/:/.*/,Je=function(){};Je.extend=function e(t,r){var n=this.prototype;"string"!=typeof t&&(r=t,t="Class");var i=Object.create(this.prototype);for(var o in r)i[o]="function"==typeof r[o]&&"function"==typeof n[o]&&Ye.test(r[o])?function(e,t){return function(){var r=this._super;this._super=n[e];var i=t.apply(this,arguments);return this._super=r,i}}(o,r[o]):r[o];if(!/^[_a-z][_a-z\d]*$/i.test(t))throw new Error("Invalid subclass name. Alphanumericals only.");var a=new Function("return (function ".concat(t,"(){ typeof this.init === 'function' && this.init.apply(this, [].slice.call(arguments)) });"))();return a.prototype=i,a.prototype.constructor=a,a.extend=e,a};var Xe={getChar:function(e){var t,r=e;return r>9?(t=65+r-10)>90&&(t+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62:function(e){var t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id:function(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function Qe(){return Xe.id()}function Ze(e,t,r){return"y"===e?et(t,r):function(e){return"far"===e?"top":"bottom"}(t)}function et(e,t){var r=e||"near";return t&&"near"===r||!t&&"far"===r?"right":"left"}var tt={getAxisDock:Ze,getOppositeAxisDock:function(e,t,r){return Ze(e,"far"===t?"near":"far",r)},getYAxisDock:et},rt=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),nt=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),it=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function ot(e){return rt.test(e)}function at(e){return nt.test(e)||it.test(e)}var st={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),detectTextDirection:function(e){var t,r,n=e?e.length:0;for(t=0;t<n;t++){if(ot(r=e[t]))return"ltr";if(at(r))return"rtl"}return"ltr"}};var lt={lineSettings:function(e,t){var r,n={value:0,line:{stroke:void 0!==t.paletteColor?t.theme.getColorPickerColor(t.paletteColor):"transparent",strokeDasharray:null==t||null===(r=t.style)||void 0===r?void 0:r.lineType}};return x(!0,n,e||{})},lineLabelSettings:function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.label.name","color"),i=t.theme.getStyle(r,"referenceLine.label.name","fontSize"),o=t.theme.getStyle(r,"referenceLine.label.name","fontFamily");return t.paletteColor?n=t.theme.getColorPickerColor(t.paletteColor):n||(n="transparent"),x(!0,{value:0,line:{stroke:"transparent"},label:{align:"center",vAlign:"middle",text:"",fill:n,fontFamily:o,fontSize:i,maxWidthPx:135}},e||{})},isVisible:function(e){return e&&!1!==e.show&&0!==e.show&&"0"!==e.show&&void 0!==e.refLineExpr},getRefLineTitle:function(e){var t=e.refLine,r=e.label,n=e.valueString;return!1!==t.showValue?!1!==t.showLabel?"".concat(r," ").concat(st.lrm,"(").concat(n,")").concat(st.lrm):"".concat(st.lrm,"(").concat(n,")").concat(st.lrm):!1!==t.showLabel?r:""}},ut={SHOW_AXIS_LABELS_OPTIONS:["all","labels"],SHOW_TITLE_OPTIONS:["all","title"],HORIZONTAL:"horizontal",VERTICAL:"vertical",LAYOUTSETTINGS:{lasso:{displayOrder:1e4},rangeDim:{displayOrder:1e4},rangeMeasure:{displayOrder:1e4},rangeMinor:{displayOrder:1e4},scrollBar:{minimumLayoutMode:"SPARK",prioOrder:-1,displayOrder:100},refLines:{minimumLayoutMode:"SPARK",prioOrder:60,displayOrder:-10},measureAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},dimensionAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},measureAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},dimensionAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},gridLines:{minimumLayoutMode:"XSMALL",displayOrder:-100},refLinesLabels:{minimumLayoutMode:"SMALL",prioOrder:60,displayOrder:0}}};ut.DEFAULT_CHART_ORIENTATION=ut.HORIZONTAL;function ct(e,t){var r=t||{},n=r.measureAxisProperties||{},i=r.dimensionAxisProperties||{},o=r.orientation||ut.DEFAULT_CHART_ORIENTATION,a=o===ut.HORIZONTAL,s=a?"x":"y",l=a?"y":"x",u=ut.SHOW_AXIS_LABELS_OPTIONS,c=ut.SHOW_TITLE_OPTIONS,p=u.includes(n.show),d=!!r.measureTitleText&&c.includes(n.show),f=r.includeDimensionAxis&&u.includes(i.show),m=r.includeDimensionAxis&&!!r.dimensionTitleText&&c.includes(i.show),h=r.gridlines&&!(!r.gridlines.auto&&0===r.gridlines.spacing),g=r.refLines&&r.refLines.some((function(e){return e.show})),b=[];(p&&function(e,t,r,n){var i={scale:"measure",forceBounds:n&&!n.autoMinMax&&n.showBounds};i=x(i,ut.LAYOUTSETTINGS.measureAxis);var o=dt(t,r);e.addComponent("".concat(r,"-axis"),i,o)}(e,r,s,n),d&&function(e,t,r){var n={text:t.measureTitleText};n=x(n,ut.LAYOUTSETTINGS.measureAxisTitle);var i=function(e,t){return dt(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,s),function(e,t,r,n){var i=t.measureScaleSettings,o={isRtl:t.isRtl,source:t.measureSource,orientation:r,measureAxisProperties:n};n&&n.spacing>0&&(i=x(!0,i||{},{component:{ticks:{distance:100*n.spacing}}}));e.addScale("measure-scale",i,o)}(e,r,o,n),f&&function(e,t,r){var n={scale:"dimension"};n=x(n,ut.LAYOUTSETTINGS.dimensionAxis);var i=ft(t,r);x(!0,n,t.dimensionAxisSettings||{}),e.addComponent("".concat(r,"-axis"),n,i)}(e,r,l),m&&function(e,t,r){var n={text:t.dimensionTitleText};n=x(n,ut.LAYOUTSETTINGS.dimensionAxisTitle);var i=function(e,t){return ft(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,l),r.includeDimensionAxis&&function(e,t,r){var n={isRtl:t.isRtl,source:t.dimensionSource,orientation:r===ut.HORIZONTAL?ut.VERTICAL:ut.HORIZONTAL};e.addScale("dimension-scale",t.dimensionScaleSettings,n)}(e,r,o),h&&function(e,t,r){var n={ticks:{show:!0},minorTicks:{show:!t.auto&&!t.auto&&3===t.spacing}};(n=x(n,ut.LAYOUTSETTINGS.gridLines))[r]={scale:"measure"},e.addComponent("grid-line",n)}(e,r.gridlines,s),r.hasNavigation&&function(e,t,r,n){e.getSettings().scroll={dimension:{viewSize:r.scrollSettings&&r.scrollSettings.viewSize||0,max:r.scrollSettings&&r.scrollSettings.max||0}};var i={isRtl:r.isRtl,chartID:r.chartID,isHorizontal:!n},o=x({},ut.LAYOUTSETTINGS.scrollBar);e.addComponent("scrollbar",o,i),pt(t,function(e){function t(t,r){if(!r||!e())return!1;var n={x:r.center.x-r.deltaX,y:r.center.y-r.deltaY};return this.chart.componentsFromPoint(n).some((function(e){return"scrollbar"===e.settings.key}))}return[{type:"Tap",options:{enable:t},events:{tap:function(e){this.chart.component("scrollbar").emit("tap",e)}}},{type:"Pan",options:{enable:t},events:{panstart:function(e){this.chart.component("scrollbar").emit("panStart",e)},pan:function(e){this.chart.component("scrollbar").emit("panMove",e)},panend:function(e){this.chart.component("scrollbar").emit("panEnd",e)},pancancel:function(e){this.chart.component("scrollbar").emit("panCancel",e)}}}]}(r.isNavigationEnabledFn))}(e,b,r,a),g&&function(e,t,r,n){var i=tt.getAxisDock(r,n.dock,t.isRtl),o={key:"ref-line",style:{oob:{show:!1}},lines:{x:[],y:[]}};o=x(o,ut.LAYOUTSETTINGS.refLines);var a={key:"ref-line-labels-".concat(Qe()),require:["renderer","chart"],dock:tt.getOppositeAxisDock(r,n.dock,t.isRtl),preferredSize:function(){if("x"===r)return 26;for(var t=this.renderer.measureText,n=this.chart.formatter({data:e.settings.scales.measure.data}),i=a.lines.y.map((function(e){var r=!1!==e.label.showValue?"(".concat(n(e.value),")"):"",i="".concat(e.label.text," ").concat(r),o=e.label.text&&r?" ".concat(r):r;return{wanted:t({text:i,fontSize:e.fontSize,fontFamily:e.fontFamily}).width,required:t({text:o,fontSize:e.fontSize,fontFamily:e.fontFamily}).width}})),o=i[0],s=1;s<i.length;s++)i[s].wanted>o.wanted&&(o.wanted=i[s].wanted),i[s].required>o.required&&(o.required=i[s].required);var l=12;return o.required+l>100?o.required+l:Math.min(o.wanted+l,100)},lines:{x:[],y:[]}};a=x(a,ut.LAYOUTSETTINGS.refLinesLabels),t.refLines.forEach((function(n){if(n.show){var s=n.refLineExpr&&n.refLineExpr.value,l=x(!0,{},t,{paletteColor:n.paletteColor,style:n.style,chartID:e.options.chartID}),u=lt.lineSettings({scale:"measure",dir:r,value:s},l);o.lines[r].push(u);var c=lt.lineLabelSettings({scale:"measure",value:s,label:{text:!1!==n.showLabel?n.label:"",showValue:!1!==n.showValue}},l);"x"===r?c.label.vAlign="near"===i?1:0:c.label.align="near"===i?0:1,a.lines[r].push(c)}})),e.addComponent("ref-line",o,{}),e.addComponent("ref-line",a,{})}(e,r,s,n),r.enableLasso&&r.selectionsEnabled)&&function(e,t){var r={brushKey:t.brushKey,brushComponents:t.brushComponents,brushData:t.brushData};e.addComponent("lasso",ut.LAYOUTSETTINGS.lasso,r)}(e,r.lasso||{});r.enableDimRange&&r.includeDimensionAxis&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeDim"};o=x(o,ut.LAYOUTSETTINGS.rangeDim);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,isHorizontal:!r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.dimRange||{},a,ft(r,l).dock,r.isRtl);r.enableMeasureRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMeasure"};o=x(o,ut.LAYOUTSETTINGS.rangeMeasure);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.measureRange||{},a,dt(r,s).dock,r.isRtl);r.enableAreaRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMinor"};o=x(o,ut.LAYOUTSETTINGS.rangeMinor);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushData:t.brushData,brushArea:t.brushArea,brushComponents:t.brushComponents,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:"measure"===t.brushScale?r:!r,dock:n,isRtl:i,chartInstance:t.chartInstance};e.addComponent("range-area",o,a)}(e,r.areaRange||{},a,ft(r,l).dock,r.isRtl);r.brushActions&&pt(b,r.brushActions),b.length&&function(e,t){e.addInteraction({},{gestures:t})}(e,b)}function pt(e,t){t.forEach((function(t){e.push(t)}))}function dt(e,t){return{dock:e.measureAxisProperties&&e.measureAxisProperties.dock,direction:t,isRtl:e.isRtl}}function ft(e,t){return{dock:e.dimensionAxisProperties&&e.dimensionAxisProperties.dock,direction:t,isRtl:e.isRtl}}function mt(e,t){var r=t||{},n=!r.orientation||"horizontal"===r.orientation,i=!!r.isRtl,o={name:r.name||"scale",component:{invert:n&&i,minorTicks:{count:1},range:r.range||void 0,domain:r.domain||void 0,trackBy:r.trackBy||"id"}};return x(!0,{},o,e||{})}function ht(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.line.major","color"),s=t.theme.getStyle(r,"axis.title","fontSize"),l=t.theme.getStyle(r,"axis.title","color"),u=t.theme.getStyle(r,"axis.label.name","color"),c=t.theme.getStyle(r,"axis.label.name","fontSize"),p=t.theme.getStyle(r,"axis.title","fontFamily"),d=t.theme.getStyle(r,"axis.label.name","fontFamily"),f={key:"axis",type:"axis",dock:tt.getAxisDock(i,n,o),brush:{trigger:[],consume:[]},settings:{title:{fontSize:s,fontFamily:p,fill:l},line:{show:!0,strokeWidth:1,stroke:a},labels:{fill:u,fontSize:c,fontFamily:d,tiltAngle:o?-40:40,maxEdgeBleed:75,maxSize:150,mode:"auto"},ticks:{stroke:a},minorTicks:{stroke:a}}};return x(!0,{},f,e||{})}function gt(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.title","fontSize"),s=t.theme.getStyle(r,"axis.title","color"),l=t.theme.getStyle(r,"axis.title","fontFamily"),u={key:"text",type:"text",dock:tt.getAxisDock(i,n,o)||"bottom",displayOrder:0,style:{text:{fontSize:a,fontFamily:l,fill:s}}};return x(!0,{},u,e||{})}mt.measureScale=function(e,t){var r=(t||{}).source||[];"string"==typeof r&&(r=[r]);var n={name:"measure",component:{expand:.1,data:{fields:r.map((function(e){return{field:e}}))}}},i=t&&t.measureAxisProperties;i&&!i.autoMinMax&&(["min","minMax"].includes(i.minMax)&&(n.component.min=i.min),["max","minMax"].includes(i.minMax)&&(n.component.max=i.max));var o=mt(x(!0,n,e||{}),t);return!(e&&e.component&&void 0!==e.component.invert)&&t&&"vertical"===t.orientation&&(o.component.invert=!o.component.invert),o},mt.dimensionScale=function(e,t){var r={name:"dimension",component:{trackBy:"id",type:"band",data:{extract:{field:t&&t.source||"",props:{label:function(e){return e.qText||""}}}},label:function(e){return e.datum.label.value}}};return mt(x(!0,r,e||{}),t)},ht.xAxis=function(e,t){return ht(x(!0,{key:"x-axis",scale:"x"},e||{}),t)},ht.yAxis=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis",scale:"y",dock:tt.getYAxisDock(r,n)};return ht(x(!0,i,e||{}),t)},gt.xAxisTitle=function(e,t){return gt(x(!0,{key:"x-axis-title"},e||{}),t)},gt.yAxisTitle=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis-title",dock:tt.getYAxisDock(r,n)||"left"};return gt(x(!0,i,e||{}),t)};var bt={getBublesAlign:function(e,t,r){var n=e&&"far"!==t||!e&&"far"===t;return!e&&r&&(n=!n),n?"start":"end"},getDock:function(e,t){var r,n=[];return e&&n.push("@".concat(e)),t&&n.push("@".concat(t)),n.length&&(r=n.join(",")),r}};var yt={SPARK:{width:0,height:0},XSMALL:{width:150,height:75},SMALL:{width:300,height:150},MEDIUM:{width:400,height:220},FULL:{width:550,height:450}};function vt(){return yt}function xt(e){var t=e.data.end;return e.dataset(t.source.key).field(t.source.field).formatter()(t.value)}vt.getLayoutModeKeys=function(){var e,t=[];for(e in yt)t.push(e);return t};var qt={left:"left",right:"right",up:"top",down:"bottom"};function Dt(e,t,r){switch(e){case"scale":return mt(t,r);case"measure-scale":return mt.measureScale(t,r);case"dimension-scale":return mt.dimensionScale(t,r);case"axis":return ht(t,r);case"box-marker":return function(e){return x(!0,{},{key:"box-marker",type:"box-marker",settings:{minor:{scale:"x"},orientation:"horizontal"},brush:{trigger:[],consume:[]}},e||{})}(t);case"point-marker":return function(e){return x(!0,{},{key:"point-marker",type:"point-marker",settings:{},brush:{trigger:[],consume:[]}},e||{})}(t);case"scrollbar":return function(e,t){var r=t&&t.isRtl,n=t&&t.chartID,i=t&&t.isHorizontal,o={key:"scrollbar",type:"scrollbar",scroll:"dimension",dock:i?"bottom":r?"left":"right",settings:{backgroundColor:t.theme.getStyle(n,"","backgroundColor"),invert:r&&i}};return x(!0,{},o,e||{})}(t,r);case"text":return gt(t,r);case"lasso":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushComponents?t.brushComponents:[],i=t&&t.brushData?t.brushData:["elemNo"],o={type:"brush-lasso",key:"lasso",displayOrder:99,settings:{brush:{components:[]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"rgba(102,102,102,1)",strokeWidth:2,opacity:1,strokeDasharray:null},startPoint:{r:10,fill:"rgba(0, 152, 69, 1)",strokeWidth:0,opacity:1}}};return n.forEach((function(e){o.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:i})})),x(!0,{},o,e||{})}(t,r);case"range":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushArea,o=t&&t.brushScale,a=t&&t.isHorizontal,s=t&&t.dock,l=t&&t.isRtl,u={type:"brush-range",key:"range",displayOrder:99,dock:bt.getDock(n,i),settings:{brush:r,fill:"rgba(0, 0, 0, 0)",scale:o,multiple:!t||!1!==t.multiple||t.multiple,direction:a?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:bt.getBublesAlign(a,s,l)}}};return x(!0,{},u,e||{})}(t,r);case"range-area":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushComponents?t.brushComponents:[],o=t&&t.brushData?t.brushData:["elemNo"],a=t&&t.brushArea,s=t&&t.isHorizontal,l=t&&t.dock,u=t&&t.isRtl,c=t&&t.chartInstance,p=!0,d={type:"brush-area-dir",key:"area",displayOrder:99,dock:bt.getDock(n,a),settings:{brush:{components:[]},direction:s?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:bt.getBublesAlign(s,l,u),label:function(e){return p?(p=!1,c.dataset(e.binStart.source.key).field(e.binStart.source.field).formatter()(e.binStart.value)):(p=!0,c.dataset(e.binEnd.source.key).field(e.binEnd.source.field).formatter()(e.binEnd.value))}},multiple:!t||!1!==t.multiple||t.multiple}};return i.forEach((function(e){d.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:o,action:"add"})})),x(!0,{},d,e||{})}(t,r);case"categorical-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t&&t.dock||"auto",o=t&&t.show;"auto"===i&&(i=t.chartHeight/t.chartWidth<1?n?"left":"right":"bottom");var a=t.theme.getStyle(r,"legend.title","color"),s=t.theme.getStyle(r,"legend.title","fontSize"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.title","fontFamily"),p={key:"legend",type:"legend-cat",dock:i,show:o,scale:{type:"color"},settings:{title:{anchor:"middle"},layout:{direction:n?"rtl":"ltr",size:"top"===i||"bottom"===i?2:1,vertical:"top"===i||"bottom"===i?16:8},navigation:{button:{class:{"lui-fade-button":!0},content:function(e,t){return e("span",{style:{pointerEvents:"none"},class:["lui-button__icon","lui-icon","lui-icon--triangle-".concat(qt[t.direction])].join(" ")})}}}},style:{item:{label:{fontSize:u,fontFamily:t.theme.getStyle(r,"legend.label","fontFamily"),fill:l,lineHeight:1,wordBreak:"break-word"},margin:{top:5,left:10,right:10,bottom:10},shape:{type:t.type?t.type:"square",size:3*parseInt(u,10)/4}},title:{show:t.showTitle,fontSize:s,fontFamily:c,fill:a}}};return x(!0,{},p,e)}(t,r);case"sequential-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t.dock||"auto";"auto"===i&&(i=t.chartHeight<t.chartWidth?n?"left":"right":"bottom");var o=t.theme.getStyle(r,"legend.title","color"),a=t.theme.getStyle(r,"legend.title","fontSize"),s=t.theme.getStyle(r,"legend.title","fontFamily"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.label","fontFamily");function p(e){switch(e){case"left":return 0;case"right":return 1;case"middle":default:return.5}}var d={key:"seqlegend",type:"legend-seq",dock:i,displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,settings:{align:p(n?"right":"left"),major:{invert:"left"===i||"right"===i||n},title:{show:t.showTitle,fontSize:a,fontFamily:s,fill:o},tick:{fill:l,fontSize:u,fontFamily:c}}};return x(!0,{},d,e)}(t,r);case"x-axis":return ht.xAxis(t,r);case"y-axis":return ht.yAxis(t,r);case"x-axis-title":return gt.xAxisTitle(t,r);case"y-axis-title":return gt.yAxisTitle(t,r);case"grid-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"grid.line.major","color");return x(!0,{},{displayOrder:-1,key:"grid-line",type:"grid-line",x:null,y:null,ticks:{stroke:n},minorTicks:{stroke:n}},e||{})}(t,r);case"interaction":return function(e,t){var r=t&&t.gestures||[];return x(!0,{},{type:"hammer",key:"hammered",gestures:r},e||{})}(t,r);case"ref-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.outOfBounds","color"),i=t.theme.getStyle(r,"referenceLine.outOfBounds","backgroundColor");return x(!0,{},{key:"ref-line",type:"ref-line",dock:"center",prioOrder:-1,lines:{x:[],y:[]},style:{oob:{width:7,fill:i,text:{fill:n},padding:{x:7,y:5}}}},e||{})}(t,r);case"event-area":return function(e){return x(!0,{},{type:"event-area",key:"event-area"},e||{})}(t);case"labels":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"label.value","color"),i=t.theme.getStyle(r,"label.value","fontSize"),o={key:"labels",type:"labels",displayOrder:1,settings:{sources:[{component:"box-marker",selector:"rect",strategy:{type:"bar",settings:{direction:"up",fontFamily:t.theme.getStyle(r,"label.value","fontFamily"),fontSize:parseFloat(i),align:.5,labels:[{placements:[{position:"outside",fill:n,justify:0},{position:"inside",fill:e&&e.settings.sources[0].strategy.settings.labels[0].placements[1].fill,justify:1}],label:xt}]}}}]}};return x(!0,{},o,e||{})}(t,r);default:return}}function Mt(e){this.options=e||{},this.settings={dockLayout:{layoutModes:vt()},components:[],scales:{}}}Mt.prototype.addComponent=function(e,t,r){var n=Dt(e,t,x(!0,{},this.options,r||{}));return this.settings.components.push(n),n},Mt.prototype.addInteraction=function(e,t){var r=Dt("interaction",e,x(!0,{},this.options,t||{}));return this.settings.interactions||(this.settings.interactions=[]),this.settings.interactions.push(r),r},Mt.prototype.addScale=function(e,t,r){var n=Dt(e,t,x(!0,{},this.options,r||{}));this.settings.scales[n.name]=n.component},Mt.prototype.getSettings=function(){return this.settings},Mt.prototype.getComponent=function(e){return this.settings.components.filter((function(t){return t.key===e}))[0]},Mt.prototype.addPreset=function(e,t){!function(e,t,r){switch(e){case"dimension-measure-chart":ct(t,r);break;default:throw Error("There is no chart preset with that type")}}(e,this,t)},Mt.validateComponentKeys=function(e){var t={};return e.map((function(e){var r=e.key;return r?t[r]?"Duplicate key for component ".concat(e.type):(t[r]=!0,null):"Missing key for component ".concat(e.type)})).filter((function(e){return!!e}))},Mt.create=function(e){return new Mt(e)},Mt.createComponent=Dt;var St={CENTER:0,BOTTOM:1},Et={DISCLAIMERS:[{label:"NoDataExist",alignment:St.CENTER,default:!0},{label:"RequireNumericDimension",alignment:St.CENTER,default:!1},{label:"OnlyNanData",alignment:St.CENTER,default:!0},{label:"OnlyNegativeOrZeroValues",alignment:St.CENTER,default:!1},{label:"LimitedData",alignment:St.BOTTOM,default:!1},{label:"OnlyNanColor",alignment:St.BOTTOM,default:!1},{label:"NegativeOrZeroValues",alignment:St.BOTTOM,default:!1},{label:"DataRangeIncludingZero",alignment:St.BOTTOM,default:!1}],ALIGNMENT:St};var wt={getNoDataExistAttribute:function(e){return e.qSize.qcy*e.qSize.qcx==0},getRequireNumericDimensionAttribute:function(e,t){return t.requireNumericDimension&&e.qDimensionInfo.length>0&&-1===e.qDimensionInfo[0].qTags.indexOf("$numeric")},getLimitedDataAttribute:function(e,t){var r,n,i=!1;return e?void 0!==t.explicitLimitedData?i=!0===t.explicitLimitedData:e.qDataPages&&e.qDataPages[0]?i=!t.paging&&e.qSize.qcy>e.qDataPages[0].qMatrix.length:(n=e.qStackedDataPages)&&n[0]&&n[0].qData[0]&&n[0].qData[0].qSubNodes&&(r=t.maxNbrOfDimensions?t.maxNbrOfDimensions:2,i=e.qDimensionInfo.length>=r?e.qStackedDataPages[0].qData[0].qSubNodes.some((function(e){return e.qDown>0})):e.qStackedDataPages[0].qData[0].qSubNodes.length<e.qStackedDataPages[0].qArea.qHeight):i=!0===t.explicitLimitedData,i},getNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.some((function(e){return e.qMin<=0}))},getOnlyNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.every((function(e){return e.qMax<=0&&e.qMax>=e.qMin}))||0===e.qSize.qcy},getOnlyNanDataAttribute:function(e,t){return void 0!==t.explicitOnlyNanData?t.explicitOnlyNanData:e.qMeasureInfo.every((function(e){return e.qMax<e.qMin||"NaN"===e.qMax}))},getDataRangeIncludingZeroAttribute:function(e,t){return!t.supportRangeOverZero&&function(e,t){var r,n,i,o,a,s=t.length;for(e&&(n=!(e.autoMinMax||"min"!==e.minMax&&"minMax"!==e.minMax||null===e.min||Number.isNaN(+e.min)),i=!(e.autoMinMax||"max"!==e.minMax&&"minMax"!==e.minMax||null===e.max||Number.isNaN(+e.max))),o=Number.MAX_VALUE,a=-Number.MAX_VALUE,r=0;r<s;r++)if(o=Math.min(o,t[r].qMin),a=Math.max(a,t[r].qMax),o<=0&&a>=0)return!0;return o=n?e.min:o,a=i?e.max:a,o<=0&&a>=0}(e.measureAxis,e.qHyperCube.qMeasureInfo)},applyAttributes:function(e,t){var r=e||{},n={};return r.supportNegative=void 0===r.supportNegative||r.supportNegative,r.supportRangeOverZero=void 0===r.supportRangeOverZero||r.supportRangeOverZero,Et.DISCLAIMERS.forEach((function(e){n[e.label]=!1})),t&&t.qHyperCube?(n.NoDataExist=this.getNoDataExistAttribute(t.qHyperCube),n.NoDataExist?n:(n.RequireNumericDimension=this.getRequireNumericDimensionAttribute(t.qHyperCube,r),n.RequireNumericDimension||(n.LimitedData=this.getLimitedDataAttribute(t.qHyperCube,r),n.NegativeOrZeroValues=this.getNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNegativeOrZeroValues=this.getOnlyNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNanData=this.getOnlyNanDataAttribute(t.qHyperCube,r),n.DataRangeIncludingZero=this.getDataRangeIncludingZeroAttribute(t,r)),n)):n}};function At(e,t,r){this.disclaimersConfig=e,this.dataAttributes=t,this.supportedDisclaimers=r}function jt(e,t){return e&&t&&t[e]}function Ct(e){this.environment=e,this.clear()}At.prototype.isValidAndSupported=function(e,t){return jt(e.label,this.dataAttributes)&&(e.default||jt(e.label,this.supportedDisclaimers))&&void 0!==t&&e.alignment===t},At.prototype.isAnyValidDisclaimer=function(e){var t=!1,r=this;return this.disclaimersConfig.forEach((function(n){r.isValidAndSupported(n,e)&&(t=!0)})),t},At.prototype.getMessage=function(e,t){var r="",n=this;return t&&this.disclaimersConfig.forEach((function(i){n.isValidAndSupported(i,e)&&(r+="".concat(t.get("Object.Disclaimer.".concat(i.label))," "))})),r},Ct.ERRORS={SET:"Calling Disclaimer.set() without attributes",DISPLAY:"Calling Disclaimer.display() before attributes are applied"},Ct._applyDefaultSupport=function(e,t){var r=e;return r||(r={}),t.forEach((function(e){void 0===r[e.label]&&(r[e.label]=e.default)})),r},Ct.prototype.getComponentSettings=function(){var e,t,r,n,i=this.environment.translator,o=x(!0,{},this.vizAttributes.supportedDisclaimers),a=new At(Et.DISCLAIMERS,this.dataAttributes,o);if(a.isAnyValidDisclaimer(Et.ALIGNMENT.CENTER))r=a.getMessage(Et.ALIGNMENT.CENTER,i),n="center";else{if(!a.isAnyValidDisclaimer(Et.ALIGNMENT.BOTTOM))return;r=a.getMessage(Et.ALIGNMENT.BOTTOM,i),n="bottom"}return{key:"disclaimer",type:"disclaimer",layout:{displayOrder:1e3,dock:n},settings:{label:r,rtl:"rtl"===(null===(e=this.environment)||void 0===e||null===(t=e.options)||void 0===t?void 0:t.direction)}}},Ct.prototype.set=function(e){if(this.clear(),!e)throw new Error(Ct.ERRORS.SET);this.vizAttributes=e,this.dataAttributes=wt.applyAttributes(this.vizAttributes.options,this.vizAttributes.data)},Ct.prototype.clear=function(){this.vizAttributes=null,this.dataAttributes=null};var kt=Je.extend({init:function(e,t,r,n,i){this.$element=t,this.environment=r,this.backendApi=n,this._selectionsApi=i,this._on=!1,this._disclaimer=new Ct(r),this._dataPaths=["qHyperCube"];var o=this;this.picassoElement=t[0],this.picassoElement.className+=" picasso-chart",this.chartInstance=e.chart({element:this.picassoElement,settings:{components:[Mt.createComponent("event-area",{mounted:function(e){o.dataAreaElem=e}})]}})},updateEnvironment:function(e){this.environment=e},isRtl:function(){var e;return"rtl"===(null===(e=this.environment.options)||void 0===e?void 0:e.direction)},setDataPaths:function(e){this._dataPaths=e},getData:function(e,t,r){return function(e,t,r){var n,i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};if(r){var o=r.width||t.qSize.qcx,a=Math.floor(1e4/o);i={qTop:r.top||0,qLeft:r.left||0,qWidth:o,qHeight:r.height?Math.min(r.height,a):a}}else i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};switch(t.qMode){case"K":n="qStackedDataPages";break;case"S":default:n="qDataPages"}return e.getData([i],null,t).then((function(e){t[n]=e}))}(e,t,r)},hasValidData:function(){return!0},paint:function(){if(this.hasValidData()){var e;this._disclaimer.set(this.getDisclaimerAttributes(this.layout));var t=this._disclaimer.getComponentSettings(),r="center"===(null==t||null===(e=t.layout)||void 0===e?void 0:e.dock),n=this.createChartSettings(this.layout);r?n.components=[t]:t&&n.components.push(t),Mt.validateComponentKeys(n.components).forEach((function(e){console.error(e)})),this.updateChart(this.layout,n),this._painted=!0}return Promise.resolve()},resize:function(){if(this.layout)return this.paint()},createChartSettings:function(){throw new Error('Subclass must implement "createChartSettings" function')},addSnapshotChartSettings:function(e,t){!this.environment.options.freeResize&&t.snapshotData&&(e.dockLayout.logicalSize={width:t.snapshotData.content.size.w,height:t.snapshotData.content.size.h,preserveAspectRatio:!0})},updateData:function(e){return this._destroyed?Promise.reject():(this.layout=x(!0,{},e),this.layout.permissions=e.permissions,Promise.resolve())},updateChart:function(e,t,r){var n,i,o=null!==(n=null===(i=this.environment.appLayout)||void 0===i?void 0:i.qLocaleInfo)&&void 0!==n?n:{},a=this._dataPaths.map((function(t){return{type:"q",key:t,config:{localeInfo:o},data:be(e,t.replace(/\//g,"."))}}));this.colorService&&a.push.apply(a,j(this.colorService.getData())),this.chartInstance.update({data:a,settings:t,partialData:r});this.picassoElement.setAttribute("data-state",2)},destroy:function(){this._destroyed=!0,this.off(),this.chartInstance.destroy()},getViewState:function(){return{}},isLassoDisabled:function(){return!0},setSnapshotData:function(e){e.snapshotData||(e.snapshotData={}),e.snapshotData.content={chartData:{},size:{w:this.$element.width(),h:this.$element.height()}}},getDisclaimerAttributes:function(e){return{data:e}}}),It={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Ot=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Nt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Lt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Tt=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Rt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Pt=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,Ft=Math.floor,_t=Math.round,Vt=Je.extend({init:function(){var e,t,r,n,i,o,a,s,l,u,c,p,d=0,f=0,m=0,h=1;if(this._invalid=!1,arguments[0]instanceof Vt)d=arguments[0]._r,f=arguments[0]._g,m=arguments[0]._b,h=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(c=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p=arguments[0]))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10);else if(c=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10),h=parseFloat(c[4]);else if(c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(p))d=parseInt(c[1],16),f=parseInt(c[2],16),m=parseInt(c[3],16),h=1;else if(c=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(p))d=parseInt(c[1]+c[1],16),f=parseInt(c[2]+c[2],16),m=parseInt(c[3]+c[3],16),h=1;else if(c=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=_t(255*d),f=_t(255*f),m=_t(255*m),h=1}else if(c=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),h=parseFloat(c[7]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=_t(255*d),f=_t(255*f),m=_t(255*m)}else if(c=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),i=parseFloat(c[5]),a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(i=(i/=100)<0?0:i>1?1:i)*(t=(t/=100)<0?0:t>1?1:t))*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=i-o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=_t(255*d),f=_t(255*f),m=_t(255*m),h=1}else It[p.toLowerCase()]?(r=p.toLowerCase(),d=It[r].r,f=It[r].g,m=It[r].b,h="number"==typeof It[r].a?It[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(h=(4278190080&arguments[0])>>>24,h/=255,d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(d=arguments[0],f=arguments[1],m=arguments[2],h=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+d+f+m+h)&&(this._invalid=!0),this._r=Ft(d),this._g=Ft(f),this._b=Ft(m),this._a=h,this._spaces={}},isInvalid:function(){return this._invalid},setAlpha:function(e){this._a=e,this._spaces={}},getAlpha:function(){return this._a},toRGB:function(){return this._spaces.rgb||(this._spaces.rgb=Vt.toRGB(this)),this._spaces.rgb},toRGBA:function(){return this._spaces.rgba||(this._spaces.rgba=Vt.toRGBA(this)),this._spaces.rgba},toString:function(){return this._spaces.rgb||(this._spaces.rgb=Vt.toRGB(this)),this._spaces.rgb},toHex:function(){return this._spaces.hex||(this._spaces.hex=Vt.toHex(this)),this._spaces.hex},toHSL:function(e){return this._spaces.hsl||(this._spaces.hsl=Vt.toHSL(this,e)),this._spaces.hsl},toHSLA:function(e){return this._spaces.hsla||(this._spaces.hsla=Vt.toHSLA(this,e)),this._spaces.hsla},toHSV:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")},toHSVComponents:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=Vt.toHSVComponents(this)),this._spaces.hsvComp},toNumber:function(){return this._spaces.num||(this._spaces.num=Vt.toNumber(this)),this._spaces.num},isDark:function(){return this.isInvalid()||this.getLuminance()<125},getLuminance:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi},shiftLuminance:function(e){var t=this.toHSLA(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(r[1]),i=parseFloat(r[3]),o=parseFloat(r[5]),a=parseFloat(r[7]);return o+=e,o=Math.max(0,Math.min(o,100)),"hsla(".concat(n,",").concat(i,",").concat(o,",").concat(a,")")},isEqual:function(e){return e instanceof Vt||(e=new Vt(e)),this._r===e._r&&this._g===e._g&&this._b===e._b},blend:function(e,t){var r=Ft(this._r+(e._r-this._r)*t),n=Ft(this._g+(e._g-this._g)*t),i=Ft(this._b+(e._b-this._b)*t),o=Ft(this._a+(e._a-this._a)*t);return"rgba(".concat([r,n,i,o].join(","),")")},createShiftedColor:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var t=this.getLuminance(),r=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*r<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Vt(n)}});Vt.toRGB=function(e){if(e instanceof Vt)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Vt.toNumber(e));var t=(65280&e)>>8,r=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(r,")")},Vt.toRGBA=function(e,t){if(e instanceof Vt)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Vt.toNumber(e));var r=(65280&e)>>8,n=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(r,",").concat(n,",").concat(void 0!==t?t:e._a,")")},Vt.toHex=function(e){var t,r,n;return e instanceof Vt?(t=e._r.toString(16),r=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""))):("string"==typeof e&&(e=Vt.toNumber(e)),t=((16711680&e)>>16).toString(16),r=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n))},Vt.toHSL=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Vt(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=Math.max(a,s,l),c=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(u+c)/2,u===c)r=0,o=0;else{switch(i=u-c,r=n>.5?i/(2-u-c):i/(u+c),u){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsl(".concat(360*o,",").concat(100*r,",").concat(100*n,")")},Vt.toHSLA=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Vt(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=e._a,c=Math.max(a,s,l),p=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(c+p)/2,c===p)r=0,o=0;else{switch(i=c-p,r=n>.5?i/(2-c-p):i/(c+p),c){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsla(".concat(360*o,",").concat(100*r,",").concat(100*n,",").concat(u,")")},Vt.toHSVComponents=function(e){var t,r,n=0;"string"==typeof e&&(e=new Vt(e));var i=e._r/255,o=e._g/255,a=e._b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=s;if(s===l)t=0,n=0;else{switch(t=0===(r=s-l)?0:r/u,s){case i:n=(o-a)/r+(o<a?6:0);break;case o:n=(a-i)/r+2;break;case a:n=(i-o)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*u}},Vt.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof Vt)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,r=0,n=0,i=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(r=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(r=parseInt(e[1],16),n=parseInt(e[2],16),i=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(r=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16))),(r<<16)+(n<<8)+i},Vt.blend=function(e,t,r){var n=(16711680&(e=Vt.toNumber(e)))>>16,i=(65280&e)>>8,o=255&e;return(n+(((16711680&(t=Vt.toNumber(t)))>>16)-n)*r<<16)+(i+(((65280&t)>>8)-i)*r<<8)+(o+((255&t)-o)*r)},Vt.getBlend=function(e,t,r){var n=e._r+(t._r-e._r)*r,i=e._g+(t._g-e._g)*r,o=e._b+(t._b-e._b)*r,a=e._a+(t._a-e._a)*r;return new Vt(n,i,o,a)},Vt.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(Ot.test(e)||Nt.test(e)||Lt.test(e)||Tt.test(e)||Rt.test(e)||Pt.test(e)||It[e.toLowerCase()])},Vt.getBestContrast=function(e,t,r){var n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-r.getLuminance())?t:r},Vt.getContrast=function(e,t){if(e&&t){var r=e.getLuminance()/100,n=t.getLuminance()/100;return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}},Vt.isDark=function(){var e={getLuminance:Vt.prototype.getLuminance,isInvalid:Vt.prototype.isInvalid};return Vt.prototype.init.apply(e,[].slice.call(arguments)),Vt.prototype.isDark.call(e)},Vt.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t};var Ht={TRANSPARENT_BLACK:"rgba( 0,0,0,0.2 )",TRANSPARENT_WHITE:"rgba( 255,255,255,0.7 )",LIGHT_GREY:"#ccc",DARK_GREY:"#666",BLACK:"#000",WHITE:"#fff",getInverse:function(e){var t=new Vt(e);return 0===t.getAlpha()?this.BLACK:t.isDark()?this.WHITE:this.BLACK},getContrastingGrey:function(e){var t=new Vt(e);return 0===t.getAlpha()?this.DARK_GREY:Vt.getBestContrast(t,new Vt(Ht.LIGHT_GREY),new Vt(Ht.DARK_GREY))},getBestContrast:function(e,t,r){return Vt.getBestContrast(new Vt(e),new Vt(t),new Vt(r))},getContrastingTransparent:function(e){var t=new Vt(e);return 0===t.getAlpha()||"none"===e?this.TRANSPARENT_BLACK:t.isDark()?this.TRANSPARENT_WHITE:this.TRANSPARENT_BLACK}},zt=".scrollHandler";function Bt(e,t,r,n,i){if(!e||!t||!r)throw Error("Scroll-handler: Missing input");this._chartInstance=e,this._$chartElement=t,this._getSlicedDataFn=r,this._on=!1,this._itemSize=30,this.options={direction:"vertical"},this._onScrollCallback=n,this._legendKey=i}function Ut(){var e=("horizontal"===this.options.direction?this._$chartElement.width():this._$chartElement.height())||0,t=Math.floor(e/this.getItemSize());this._scrollViewSizeInItem=Math.max(t,1)}function Wt(e){var t,r,n,i,o=(t=e.originalEvent,r=0,n=0,i=0,t.wheelDelta&&(r=t.wheelDelta/60),t.detail&&(r=-t.detail/3),i=r,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(i=0,n=-1*r),void 0!==t.wheelDeltaY&&(i=t.wheelDeltaY/60),void 0!==t.wheelDeltaX&&(n=-1*t.wheelDeltaX/60),{delta:r,deltaX:n,deltaY:i,x:t.pageX,y:t.pageY});if(!function(e,t,r,n){return!(!n||!r.componentsFromPoint(t).some((function(e){return e.settings.key===n}))||(r.component(n).emit(t.delta>0?"prev":"next"),e.preventDefault(),0))}(e,o,this._chartInstance,this._legendKey)&&!this._disabled&&this.getScrollApi()&&(e.preventDefault(),o.delta)){var a=o.delta<0?3:-3;this._scrollApi.move(a)}}function Kt(){if(this._disabled||this._sizeChanged)this._sizeChanged=!1;else{var e=this;this.getViewData().then((function(t){e._on&&!e._disabled&&e._onScrollCallback&&e._onScrollCallback(t,void 0,!0)})).catch((function(e){}))}}Bt.prototype.getScrollApi=function(){this._scrollApi||(this._scrollApi=this._chartInstance.scroll("dimension"));return this._scrollApi},Bt.prototype.setDisabled=function(e){this._disabled=e},Bt.prototype.getDisabled=function(){return this._disabled},Bt.prototype.setItemSize=function(e){this._itemSize!==e&&(this._itemSize=e,Ut.call(this))},Bt.prototype.getItemSize=function(){return this._itemSize},Bt.prototype.getScrollViewSizeInItem=function(){this._scrollViewSizeInItem||Ut.call(this);return this._scrollViewSizeInItem},Bt.prototype.on=function(){if(this._on)return;this.getScrollApi()&&(this._scrollApi.removeAllListeners(),this._scrollApi.on("update",Kt.bind(this)));this._$chartElement.on("mousewheel".concat(zt," DOMMouseScroll").concat(zt),Wt.bind(this)),this._$chartElement.on("touchstart".concat(zt),(function(e){e.preventDefault()})),this._on=!0},Bt.prototype.isOn=function(){return this._on},Bt.prototype.off=function(){if(!this._on)return;this.getScrollApi()&&this._scrollApi.removeAllListeners();this._$chartElement.off(zt),this._on=!1},Bt.prototype.updateViewState=function(e){Ut.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem,max:e})},Bt.prototype.onResize=function(){this._sizeChanged=!0,Ut.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem})},Bt.prototype.isDataSizeChanged=function(e,t){return Math.min(this.getScrollViewSizeInItem(),t)!==e},Bt.prototype.resetScroll=function(){this.getScrollApi()&&this._scrollApi.moveTo(0)},Bt.prototype.getViewData=function(){var e=0,t=0;if(this.getScrollApi()){var r=this._scrollApi.getState();e=Math.round(r.start),t=r.viewSize}return this._getSlicedDataFn(e,t)},Bt.prototype.setOptions=function(e){this.options.direction!==e.direction&&(this._scrollViewSizeInItem=void 0);this.options=e},Bt.prototype.getScrollState=function(){return this.getScrollApi().getState().start},Bt.prototype.setScrollState=function(e){this.getScrollApi().moveTo(e)};var Gt={isOnComponentForRange:function(e,t,r){return!!e&&!!r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return-1!==t.indexOf(e.settings.key)}))[0]},isOnComponentForLasso:function(e,t,r){return e&&r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return e.settings.key===t.keys.componentKey}))[0]},isOnComponentForNavBtn:function(e,t,r){return r.chart.componentsFromPoint(e.center).some((function(e){return e.settings.key===t}))}};var $t={callLassoGesture:function(e,t,r){return{type:"Pan",options:{direction:v.DIRECTION_ALL,threshold:1,enable:function(n,i){if(e.lassoing)return t.isSelectionEnabled();var o,a=Gt.isOnComponentForLasso(i,r,this);return t.isSelectionEnabled()&&i&&((o=r.handlers).selectionHandler.lassoState()&&!o.selectionHandler.allFieldsLocked()||e.lassoing)&&a},event:"lasso"},recognizeWith:r.handlers.scrollHandler?"drag":null,events:{lassostart:function(n){Gt.isOnComponentForLasso(n,r,this)&&(t.switchTo("lasso",this.chart,n),e.lassoing=!0,r.handlers.selectionHandler.pauseEngineCalls(r.keys.lassoBrushKey),n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoStart",n))},lassomove:function(r){e.lassoing&&(r.clientX=r.pointers[0].clientX,r.clientY=r.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoMove",r))},lassoend:function(n){e.lassoing&&(n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoEnd",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!0),e.lassoing=!1)},lassocancel:function(n){e.lassoing=!1,t.doEmit(this.chart,"lasso","lassoCancel",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!1)}}}}};var Yt={callMeasureRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?v.DIRECTION_HORIZONTAL:v.DIRECTION_VERTICAL,event:"measurerange",enable:function(i,o){if(!r.rangeSelStatus.isOpenMea)return!1;if(e.measureSelecting)return t.isSelectionEnabled();var a="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=Gt.isOnComponentForRange(o,a,this);return e.measureSelecting=t.isSelectionEnabled()&&!!o&&!!s,e.measureSelecting&&!!r.keys.measureRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{measurerangestart:function(i){var o="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n];Gt.isOnComponentForRange(i,o,this)&&(e.measureSelecting=!0,t.switchTo("measurerange",this.chart,i),t.doEmit(this.chart,"rangeMeasure","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.measureRangeBrushKey))},measurerangemove:function(r){e.measureSelecting&&t.doEmit(this.chart,"rangeMeasure","rangeMove",r)},measurerangeend:function(n){e.measureSelecting&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!0),t.doEmit(this.chart,"rangeMeasure","rangeEnd",n),e.measureSelecting=!1)},measurerangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!1),e.measureSelecting=!1}}}}};function Jt(e,t){return"x-axis"===e?"horizontal"===t?v.DIRECTION_VERTICAL:v.DIRECTION_HORIZONTAL:"horizontal"===t?v.DIRECTION_HORIZONTAL:v.DIRECTION_VERTICAL}var Xt={callAreaRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"measurerange";return{type:"Pan",options:{direction:Jt(n,r.isHorizontal),event:"arearange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.minoring)return t.isSelectionEnabled();var a="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=Gt.isOnComponentForRange(o,a,this);return e.minoring=t.isSelectionEnabled()&&!!o&&!!s,e.minoring}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{arearangestart:function(i){var o="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n];Gt.isOnComponentForRange(i,o,this)&&(e.minoring=!0,t.switchTo("arearange",this.chart,i),t.doEmit(this.chart,"rangeMinor","areaStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.areaBrushKey))},arearangemove:function(n){e.minoring&&(this.chart.brush(r.keys.areaBrushKey).clear(),t.doEmit(this.chart,"rangeMinor","areaMove",n))},arearangeend:function(n){e.minoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!0),t.doEmit(this.chart,"rangeMinor","areaEnd",n),e.minoring=!1)},arearangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!1),e.minoring=!1}}}}};var Qt={callDimensionRangeGesture:function(e,t,r,n){var i=r.keys.measureRangeBrushKey?"measurerange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?v.DIRECTION_VERTICAL:v.DIRECTION_HORIZONTAL,event:"majorrange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.majoring)return t.isSelectionEnabled();var a="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=Gt.isOnComponentForRange(o,a,this);return e.majoring=t.isSelectionEnabled()&&!!o&&!!s,e.majoring&&!!r.keys.dimRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{majorrangestart:function(i){var o="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n];Gt.isOnComponentForRange(i,o,this)&&(e.majoring=!0,t.switchTo("majorrange",this.chart,i),t.doEmit(this.chart,"rangeDim","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.dimRangeBrushKey))},majorrangemove:function(r){e.majoring&&t.doEmit(this.chart,"rangeDim","rangeMove",r)},majorrangeend:function(n){e.majoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!0),t.doEmit(this.chart,"rangeDim","rangeEnd",n),e.majoring=!1)},majorrangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!1),e.majoring=!1}}}}};var Zt={callDragGesture:function(e,t,r,n,i){var o={};return{type:"Pan",options:{direction:r.isHorizontal?v.DIRECTION_VERTICAL:v.DIRECTION_HORIZONTAL,event:"drag",enable:function(n,i){return e.dragging?t.isNavigationEnabled():(e.dragging=t.isNavigationEnabled()&&!!i&&!!this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((function(e){return e.settings.key===r.keys.componentKey}))[0],e.dragging)}},requireFailure:n?"lasso ".concat(t.getBrushConfig()):"",events:{dragstart:function(e){o={x:e.deltaX,y:e.deltaY};var t=-(r.isHorizontal?e.deltaY:e.deltaX)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(t=-t),r.handlers.scrollHandler.getScrollApi().move(t)},dragmove:function(t){if(e.dragging){var n=-(r.isHorizontal?t.deltaY-o.y:t.deltaX-o.x)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(n=-n),r.handlers.scrollHandler.getScrollApi().move(n),o={x:t.deltaX,y:t.deltaY}}},dragend:function(){e.dragging&&(e.dragging=!1)},dragcancel:function(){e.dragging=!1}}}}};var er={callNavBtnGesture:function(e,t){return{type:"Tap",options:{event:"navBtnTap",enable:function(r,n){return!(!n||!e())&&Gt.isOnComponentForNavBtn(n,t,this)}},events:{navBtnTap:function(e){this.chart.componentsFromPoint(e.center).forEach((function(t){var r=e.target,n=r?r.getAttribute("data-action"):"";if(n)return t.emit(n)}))}}}}};var tr={create:function(e,t,r,n,i){var o={};t=t||"vertical";var a=n.lassoBrushKey||"select",s=n.dimRangeBrushKey||null,l=n.measureRangeBrushKey||null,u=n.areaBrushKey||null,c=n.legendBrushKey||null,p=!!e.selectionHandler&&e.selectionHandler.isOn(),d={dragging:!1,lassoing:!1,majoring:!1,minoring:!1,measureSelecting:!1},f={gesture:"",type:""},m="horizontal"===t,h=m?"y-axis":"x-axis",g=m?"x-axis":"y-axis";function b(e,t,r){if(f.gesture!==e){var n=a,i=t||f.chart;switch(f.gesture){case"majorrange":y(i,"rangeDim","rangeClear",r),n=s;break;case"measurerange":y(i,"rangeMeasure","rangeClear",r),n=l;break;case"arearange":y(i,"rangeMinor","areaClear",r),n=u}f.gesture=e;var o="range"===e?"range":"item";f.type&&f.type!==o&&i.brush(n).clear(),f.chart=t,f.type=o}}function y(e,t,r,n){if(e){var i=e.component(t);i&&i.emit(r,n)}}var v=[],x={isSelectionEnabled:function(){return e.selectionHandler&&e.selectionHandler.isOn()},isNavigationEnabled:function(){return e.scrollHandler&&e.scrollHandler.isOn()},doEmit:y,switchTo:b,getBrushConfig:function(){return s?l?"majorrange measurerange":"majorrange arearange":"measurerange arearange"}},q={handlers:e,keys:n,isHorizontal:m,active:f,rangeSelStatus:i};function D(){b("none"),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}return p&&((v=[{type:"Tap",options:{event:"rangeClearTap"},events:{rangeClearTap:function(e){b("none",this.chart,e),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}}}]).unshift(er.callNavBtnGesture(x.isNavigationEnabled,c)),v.push($t.callLassoGesture(d,x,q)),s?l?(v.push(Qt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Yt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"})):(v.push(Qt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Xt.callAreaRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"})):(v.push(Yt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"}),v.push(Xt.callAreaRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"}))),e.scrollHandler&&(v.push(Zt.callDragGesture(d,x,q,p,r)),e.scrollHandler.getScrollApi().on("update",D)),o.gestures=v,o.destroy=function(){e.scrollHandler&&e.scrollHandler.getScrollApi().removeListener("update",D)},o}};function rr(e,t,r,n,i){var o=!1;n=n||"tooltip",r=r||["self"];var a=e.brush(n),s={};function l(){o&&e.component(i).emit("hide");o=!1}return s.isOpen=function(){return o},s.closeTooltip=l,s.update=function(){var s=a.brushes(),u=e.getAffectedShapes(n,"and",r,t);s.length>=1?(o=!0,function(t){o=!0;var r={nodes:t};e.component(i).emit("show",{},r)}(u)):l()},s.toggleInterceptor=function(e){if(r.length>1){var t={},n=[];return e.forEach((function(e){t[e.key]||(t[e.key]={}),t[e.key][e.value]||(t[e.key][e.value]=!0,n.push(e))})),n}return e},s}var nr=function(){return rr.apply(void 0,arguments)},ir={formatMeasureValue:function(e,t){if(e.raw().isCustomFormatted)return e.formatter()(t.value.qText);var r=void 0!==t.value.qNum?t.value.qNum:t.value.qValue;return e.formatter()(r)}};var or=function(e){return function(t){var r=t.h,n=t.data,i=t.style,o=function(e,t){for(var r=e.chartInstance.dataset(e.dataPath),n=[],i=t.length-5,o=Math.min(5,t.length),a=function(i){var o=t[i],a={rows:[]};if(e.labelData){for(var s=[],l=e.labelData,u=!1,c=0;c<l.length;c++){var p=o.data[l[c]].value;if(-2===p.qElemNo||-2===p.qElemNumber){u=!0;break}s.push(o.data[l[c]].value.qText)}if(u)return{v:void 0};a.header=e.headerResolver(s),a.rows=e.measureRows.map((function(t){var n=o.data;return e.rowResolver(r.field(n[t].source.field),n[t],n)})).filter((function(e){return!!e}));var d=function(e,t){var r,n,i,o=t.data.color,a=null===(r=e.colorService)||void 0===r||null===(n=r.getSettings)||void 0===n?void 0:n.call(r);if(!a||"color"===a.type||!o||!a.fieldType)return;var s=[];e.data.forEach((function(e){var r=t.data[e];r&&s.push(r.value)}));var l=function(e){for(var t=-1,r=0;r<e.length;r++)-3===e[r]&&(t=r);return t}(s),u=e.translator,c=a.label,p=null===(i=t.attrs)||void 0===i?void 0:i.fill,d=-1!==l?u.get("properties.dimensionLimits.others"):o.label;return{color:p,label:c,value:d}}(e,o);d&&a.rows.unshift(d),n.push(a)}},s=0;s<o;s++){var l=a(s);if("object"===M(l))return l.v}i>0&&(n.numberInExcess=i);return n.rowCount=n[0]?n.length*n[0].rows.length:0,n}(e,n),a={h:r,style:i,rtl:"rtl"===e.direction,translator:e.translator};return e.renderer(a,o)}};var ar="#".concat("dist-flow-tooltip");function sr(){if(!document.querySelector(ar)){var e=document.createElement("div");e.id="dist-flow-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function lr(e){var t=e.key,r=void 0===t?"tooltip":t,n=e.rtl,i=e.fontFamily,o=e.filter;return{show:!0,key:r,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){sr()},beforeUpdate:function(){sr()},destroyed:function(){var e;(e=document.querySelector(ar))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(ar)},content:e.content,filter:o,extract:function(e){return e.node},direction:n?"rtl":"ltr",placement:"bounds"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:i,"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}var ur=st.detectTextDirection;var cr={tooltipKey:"tooltip",data:[""],contexts:["tooltip"],headerResolver:function(e){return e.join(", ")},rowResolver:function(e,t){return{value:ir.formatMeasureValue(e,t),label:e.title()}},direction:"ltr",renderer:function(e,t){var r=e.h,n=e.style,i=e.translator,o=e.rtl,a=[],s=o?"right":"left";if(t.forEach((function(e){if(e.header){var t=D(D({},n.cell),{},{textAlign:s,fontWeight:"bold",direction:ur(e.header)});a.push(r("tr",null,r("td",{style:t,colSpan:2},e.header)))}e.rows.forEach((function(e){var t=e.value;if(e.color){var i={display:"inline-block",width:10,height:10,"background-color":e.color,margin:"0 8px"},l=r("div",{style:i});t=o?[e.value,l]:[l,e.value]}var u=o?[":",e.label]:[e.label,":"],c=D(D({},n.cell),{},{textAlign:s,direction:ur(e.label)}),p=D(D({},n.cell),{},{textAlign:o?"left":"right",direction:ur(e.value)});a.push(r("tr",null,r("td",{style:c},u),r("td",{style:p},t)))}))})),t.numberInExcess){var l=i.get("Object.ChartTooltip.NMore",t.numberInExcess),u=D(D({},n.cell),{},{textAlign:s,direction:ur(l)});a.push(r("tr",null,r("td",{style:u,colSpan:2},l)))}return a}};function pr(e,t,r){if(!e)throw Error("Tooltips-handler: Missing input");var n={},i=!1,o={};function a(e){e.listeners.update=function(t,r){e.action.update(t,r,e)},e.listeners.end=function(){e.action.closeTooltip()},e.brush.on(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.on("end",e.listeners.end),e.brush.intercept("set-values",e.action.toggleInterceptor)}function s(){Object.keys(n).forEach((function(e){l(n[e])}))}function l(e){e.brush.removeListener(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.removeListener("end",e.listeners.end),e.brush.removeInterceptor("set-values",e.action.toggleInterceptor)}function u(){Object.keys(n).forEach((function(e){n[e].action.closeTooltip()}))}function c(){for(var e in u(),n)n[e].brush.clear()}return o.setUp=function(t){var o=x(!0,{},cr,t);if(!o.componentKey)throw Error("Tooltips-handler.setUp: Missing required input");n[o.contexts[0]]&&i&&l(n[o.contexts[0]]);var s=function(e,t){return{brush:t.brush(e.contexts[0]),action:nr(t,e.componentKey,e.data,e.contexts[0],e.tooltipKey),listeners:{},chartInstance:t,dataPath:e.dataPath,renderer:e.renderer,data:e.data,headerResolver:e.headerResolver,rowResolver:e.rowResolver,colorService:e.colorService,attrDimPath:e.attrDimPath,measureRows:e.measureRows,labelData:e.labelData,filterShapes:e.filterShapes,direction:e.environment.options.direction,theme:e.environment.theme,translator:e.environment.translator,treatAsDesktop:"touch"!==e.environment.deviceType}}(o,e);n[o.contexts[0]]=s,i&&a(s);var u,c=lr({key:o.tooltipKey,rtl:"rtl"===s.direction,fontFamily:s.theme.getStyle(r,"tooltip","fontFamily"),filter:(u=s.filterShapes,function(e){return u?u(e):function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&"container"!==e.type&&t.push(e)})),t}(e)}),content:or(s,o.dataPath)});return o.chartBuilder.getSettings().components.push(c),{trigger:{on:s.treatAsDesktop?"over":"tap",action:"set",contexts:o.contexts,data:o.data,globalPropagation:"stop"},consume:o.contexts.map((function(e){return{context:e}})),component:c}},o.tearDown=function(){i&&s(),n=[]},o.closeTooltip=u,o.isOn=function(){return i},o.on=function(){i||(i=!0,Object.keys(n).forEach((function(e){a(n[e])})),t&&t.on("mouseleave",c))},o.off=function(){i&&(i=!1,s(),t&&t.off("mouseleave",c),u())},o}var dr=function(e,t,r){return pr(e,t,r)};function fr(e){return(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11}function mr(e){if(!e)return{latin:0,cjk:0};var t=e.match(/[\u4E00-\u9FFF]/g),r=e.match(/[\u3040-\u309F]/g),n=e.match(/[\u30A0-\u30FF]/g),i=(t=t?t.length:0)+(r=r?r.length:0)+(n=n?n.length:0);return{latin:e.length-i,cjk:i}}function hr(e,t){var r={latin:0,cjk:0};void 0===t?e.forEach((function(e){var t=mr(e.qText);r.latin+=t.latin,r.cjk+=t.cjk})):e.forEach((function(e){var n=mr(e[t].qText);r.latin+=n.latin,r.cjk+=n.cjk}));var n=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/n,r.cjkRatio=r.cjk/n,r}function gr(e,t,r){return e*(e<=24?t:r)}var br={endsWith:function(e,t){return-1!==e.indexOf(t,e.length-t.length)},startsWith:function(e,t){return 0===e.indexOf(t)},contains:function(e,t){if(!e)throw new Error("Haystack is undefined.");if(!t)throw new Error("Needle is undefined.");return-1!==e.indexOf(t)},stringWidthOverMWidth:fr,getCharacterRatios:mr,getTotalCharacterRatios:hr,getAdjustedMaxGlyphCount:function(e,t,r){var n=hr(t,r),i=n.latinRatio*e,o=n.cjkRatio*e;return Math.ceil(fr(i)+1.0909090909090908*o)},estimateLatinLabelWidth:gr,estimateLabelWidth:function(e,t,r,n,i){return e*r+gr(t,n,i)}};var yr={generateHyperCube:function(e,t){var r=e.qHyperCube.qMeasureInfo,n=e.qHyperCube.qDataPages[0].qMatrix,i=r.length;if(i){for(var o,a,s=We.getColorForPositiveValue(e,t),l=We.getColorForNegativeValue(e,t),u=We.getColorForSubtotal(e,t),c=function(e){return"".concat(e)},p=[],d=0,f=0,m=-Number.MAX_VALUE,h=Number.MAX_VALUE,g=-Number.MAX_VALUE,b=Number.MAX_VALUE,y=0,v=0;v<i;v++)a=Number.isNaN(+n[0][v].qNum)?0:n[0][v].qNum,r[v].valueType!==We.valueTypes.SUBTOTAL?(o=(d=f)<(f+=a*(r[v].valueType===We.valueTypes.INVERSE?-1:1))?s:l,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:o},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}]),r[v].subtotal&&r[v].subtotal.enable&&p.push([{qText:r[v].subtotal.label||"",qElemNumber:y++},{qText:u},{qNum:0},{qNum:f},{qNum:f,qText:c(f)}])):(d=0,f=a,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:u},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}])),m=Math.max(m,d),h=Math.min(h,d),g=Math.max(g,f),b=Math.min(b,f);var x=function(e){return e.qHyperCube.qMeasureInfo[0].qNumFormat}(e),q=e.qHyperCube.qMeasureInfo[0].qIsAutoFormat,D=e.qDef.isCustomFormatted,M={qHyperCube:{qMode:"S",qDataPages:[{qArea:{qTop:0,qLeft:0,qWidth:5,qHeight:p.length},qMatrix:p}],qDimensionInfo:[{qStateCounts:{}},{qStateCounts:{}}],qMeasureInfo:[{qMin:h,qMax:m,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D}]}};e.generatedMatrix=p,e.generated=M}},generateSlicedHyperCube:function(e,t,r){e.generated.qHyperCube.qDataPages=[{qArea:{qTop:t,qLeft:0,qWidth:5,qHeight:r},qMatrix:e.generatedMatrix.slice(t,t+r)}]},getGeneratedDimensionPath:function(e){return"qDimensionInfo/".concat(e)},getGeneratedMeasurePath:function(e){return"qMeasureInfo/".concat(e)}};function vr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var xr,qr,Dr=(1===(xr=vr).length&&(qr=xr,xr=function(e,t){return vr(qr(e),t)}),{left:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;xr(e[i],t)<0?r=i+1:n=i}return r},right:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;xr(e[i],t)>0?n=i:r=i+1}return r}}).right,Mr=Math.sqrt(50),Sr=Math.sqrt(10),Er=Math.sqrt(2);function wr(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=Mr?10:o>=Sr?5:o>=Er?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Mr?10:o>=Sr?5:o>=Er?2:1)}function Ar(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function jr(){}function Cr(e,t){var r=new jr;if(e instanceof jr)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var n,i=-1,o=e.length;if(null==t)for(;++i<o;)r.set(i,e[i]);else for(;++i<o;)r.set(t(n=e[i],i,e),n)}else if(e)for(var a in e)r.set(a,e[a]);return r}function kr(){}jr.prototype=Cr.prototype={constructor:jr,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Ir=Cr.prototype;kr.prototype={constructor:kr,has:Ir.has,add:function(e){return this["$"+(e+="")]=e,this},remove:Ir.remove,clear:Ir.clear,values:Ir.keys,size:Ir.size,empty:Ir.empty,each:Ir.each};var Or=Array.prototype,Nr=Or.map,Lr=Or.slice;function Tr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Rr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Pr(){}var Fr=1/.7,_r="\\s*([+-]?\\d+)\\s*",Vr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zr=/^#([0-9a-f]{3,8})$/,Br=new RegExp("^rgb\\("+[_r,_r,_r]+"\\)$"),Ur=new RegExp("^rgb\\("+[Hr,Hr,Hr]+"\\)$"),Wr=new RegExp("^rgba\\("+[_r,_r,_r,Vr]+"\\)$"),Kr=new RegExp("^rgba\\("+[Hr,Hr,Hr,Vr]+"\\)$"),Gr=new RegExp("^hsl\\("+[Vr,Hr,Hr]+"\\)$"),$r=new RegExp("^hsla\\("+[Vr,Hr,Hr,Vr]+"\\)$"),Yr={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 Jr(){return this.rgb().formatHex()}function Xr(){return this.rgb().formatRgb()}function Qr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=zr.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Zr(t):3===r?new nn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?en(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?en(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=Br.exec(e))?new nn(t[1],t[2],t[3],1):(t=Ur.exec(e))?new nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wr.exec(e))?en(t[1],t[2],t[3],t[4]):(t=Kr.exec(e))?en(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Gr.exec(e))?ln(t[1],t[2]/100,t[3]/100,1):(t=$r.exec(e))?ln(t[1],t[2]/100,t[3]/100,t[4]):Yr.hasOwnProperty(e)?Zr(Yr[e]):"transparent"===e?new nn(NaN,NaN,NaN,0):null}function Zr(e){return new nn(e>>16&255,e>>8&255,255&e,1)}function en(e,t,r,n){return n<=0&&(e=t=r=NaN),new nn(e,t,r,n)}function tn(e){return e instanceof Pr||(e=Qr(e)),e?new nn((e=e.rgb()).r,e.g,e.b,e.opacity):new nn}function rn(e,t,r,n){return 1===arguments.length?tn(e):new nn(e,t,r,null==n?1:n)}function nn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function on(){return"#"+sn(this.r)+sn(this.g)+sn(this.b)}function an(){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+")")}function sn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function ln(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new cn(e,t,r,n)}function un(e){if(e instanceof cn)return new cn(e.h,e.s,e.l,e.opacity);if(e instanceof Pr||(e=Qr(e)),!e)return new cn;if(e instanceof cn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new cn(a,s,l,e.opacity)}function cn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function pn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function dn(e){return function(){return e}}function fn(e){return 1==(e=+e)?mn:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):dn(isNaN(t)?r:t)}}function mn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):dn(isNaN(e)?t:e)}Tr(Pr,Qr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Jr,formatHex:Jr,formatHsl:function(){return un(this).formatHsl()},formatRgb:Xr,toString:Xr}),Tr(nn,rn,Rr(Pr,{brighter:function(e){return e=null==e?Fr:Math.pow(Fr,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:on,formatHex:on,formatRgb:an,toString:an})),Tr(cn,(function(e,t,r,n){return 1===arguments.length?un(e):new cn(e,t,r,null==n?1:n)}),Rr(Pr,{brighter:function(e){return e=null==e?Fr:Math.pow(Fr,e),new cn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new cn(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new nn(pn(e>=240?e-240:e+120,i,n),pn(e,i,n),pn(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var hn=function e(t){var r=fn(t);function n(e,t){var n=r((e=rn(e)).r,(t=rn(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=mn(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function gn(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function bn(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=Sn(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function yn(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function vn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function xn(e,t){var r,n={},i={};for(r in null!==e&&"object"===M(e)||(e={}),null!==t&&"object"===M(t)||(t={}),t)r in e?n[r]=Sn(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var qn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dn=new RegExp(qn.source,"g");function Mn(e,t){var r,n,i,o=qn.lastIndex=Dn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(r=qn.exec(e))&&(n=Dn.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:vn(r,n)})),o=Dn.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join("")})}function Sn(e,t){var r,n,i=M(t);return null==t||"boolean"===i?dn(t):("number"===i?vn:"string"===i?(r=Qr(t))?(t=r,hn):Mn:t instanceof Qr?hn:t instanceof Date?yn:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?bn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?xn:vn:gn))(e,t)}function En(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function wn(e){return+e}var An=[0,1];function jn(e){return e}function Cn(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function kn(e){var t,r=e[0],n=e[e.length-1];return r>n&&(t=r,r=n,n=t),function(e){return Math.max(r,Math.min(n,e))}}function In(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Cn(i,n),o=r(a,o)):(n=Cn(n,i),o=r(o,a)),function(e){return o(n(e))}}function On(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Cn(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=Dr(e,t,1,n)-1;return o[r](i[r](t))}}function Nn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ln(e,t){return function(){var e,t,r,n,i,o,a=An,s=An,l=Sn,u=jn;function c(){return n=Math.min(a.length,s.length)>2?On:In,i=o=null,p}function p(t){return isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return p.invert=function(r){return u(t((o||(o=n(s,a.map(e),vn)))(r)))},p.domain=function(e){return arguments.length?(a=Nr.call(e,wn),u===jn||(u=kn(a)),c()):a.slice()},p.range=function(e){return arguments.length?(s=Lr.call(e),c()):s.slice()},p.rangeRound=function(e){return s=Lr.call(e),l=En,c()},p.clamp=function(e){return arguments.length?(u=e?kn(a):jn,p):u!==jn},p.interpolate=function(e){return arguments.length?(l=e,c()):l},p.unknown=function(e){return arguments.length?(r=e,p):r},function(r,n){return e=r,t=n,c()}}()(e,t)}function Tn(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Rn(e){return(e=Tn(Math.abs(e)))?e[1]:NaN}var Pn,Fn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _n(e){if(!(t=Fn.exec(e)))throw new Error("invalid format: "+e);var t;return new Vn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Vn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Hn(e,t){var r=Tn(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}_n.prototype=Vn.prototype,Vn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var zn={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):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 Hn(100*e,t)},r:Hn,s:function(e,t){var r=Tn(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Pn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Tn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Bn(e){return e}var Un,Wn,Kn,Gn=Array.prototype.map,$n=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yn(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Bn:(t=Gn.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Bn:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Gn.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=_n(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,h=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(h=!0,y="g"):zn[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===d?o:/[%p]/.test(y)?l:"",q=zn[y],D=/[defgprs%]/.test(y);function M(e){var i,o,l,d=v,M=x;if("c"===y)M=q(e)+M,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:q(Math.abs(e),g),b&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==p&&(S=!1),d=(S?"("===p?p:u:"-"===p||"("===p?"":p)+d,M=("s"===y?$n[8+Pn/3]:"")+M+(S&&"("===p?")":""),D)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}h&&!f&&(e=n(e,1/0));var E=d.length+e.length+M.length,w=E<m?new Array(m-E+1).join(t):"";switch(h&&f&&(e=n(w+e,w.length?m-M.length:1/0),w=""),r){case"<":e=d+e+M+w;break;case"=":e=d+w+e+M;break;case"^":e=w.slice(0,E=w.length>>1)+d+e+M+w.slice(E);break;default:e=w+d+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:p,formatPrefix:function(e,t){var r=p(((e=_n(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(Rn(t)/3))),i=Math.pow(10,-n),o=$n[8+n/3];return function(e){return r(i*e)+o}}}}function Jn(e,t,r,n){var i,o=function(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Mr?i*=10:o>=Sr?i*=5:o>=Er&&(i*=2),t<e?-i:i}(e,t,r);switch((n=_n(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rn(t)/3)))-Rn(Math.abs(e)))}(o,a))||(n.precision=i),Kn(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rn(t)-Rn(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Rn(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Wn(n)}function Xn(e){var t=e.domain;return e.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=wr(e,t,r))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return n&&o.reverse(),o}(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Jn(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(n=s,s=l,l=n,n=o,o=a,a=n),(n=wr(s,l,r))>0?n=wr(s=Math.floor(s/n)*n,l=Math.ceil(l/n)*n,r):n<0&&(n=wr(s=Math.ceil(s*n)/n,l=Math.floor(l*n)/n,r)),n>0?(i[o]=Math.floor(s/n)*n,i[a]=Math.ceil(l/n)*n,t(i)):n<0&&(i[o]=Math.ceil(s*n)/n,i[a]=Math.floor(l*n)/n,t(i)),e},e}function Qn(){var e=Ln(jn,jn);return e.copy=function(){return Nn(e,Qn())},Ar.apply(e,arguments),Xn(e)}Un=Yn({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Wn=Un.format,Kn=Un.formatPrefix;var Zn={getMinorTicks:function(e){for(var t=e.majorTicks,r=e.minorTickCount,n=[],i=0;i<t.length-1;i++)for(var o=t[i],a=(t[i+1]-o)/(r+1),s=1;s<=r;s++)n.push(o+a*s);return n},adjustTicks:function(e){var t=e.ticks,r=e.majorTicks,n=e.minorTicks,i=e.autoMinMax,o=e.minMax,a=e.min,s=e.max,l=n[0]-r[0],u=r[0]-a;u>l&&t.unshift({value:r[0]-l,isMinor:!0});var c=s-r[r.length-1];return c>l&&t.push({value:r[r.length-1]+l,isMinor:!0}),i||(("min"===o||"minMax"===o)&&u>0&&t.unshift({value:a,isMinor:!1}),("max"===o||"minMax"===o)&&c>0&&t.push({value:s,isMinor:!1})),t},getTicks:function(e){var t=e.layout,r=e.height,n=t.measureAxis,i=n.autoMinMax,o=n.minMax,a=n.spacing,s=Math.min.apply(Math,j(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMin})))),l=Math.max.apply(Math,j(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMax}))));if(!i)switch(o){case"min":s=t.measureAxis.min;break;case"max":l=t.measureAxis.max;break;case"minMax":var u=t.measureAxis;s=u.min,l=u.max}var c=100*a,p=Math.max(1,Math.round(r/c)),d=Qn().domain([s,l]).ticks(p),f=Zn.getMinorTicks({majorTicks:d,minorTickCount:1}),m=[].concat(j(d.map((function(e){return{value:e,isMinor:!1}}))),j(f.map((function(e){return{value:e,isMinor:!0}})))).sort((function(e,t){return e.value-t.value}));return Zn.adjustTicks({ticks:m,majorTicks:d,minorTicks:f,autoMinMax:i,minMax:o,min:s,max:l})}},ei=We.chartID;function ti(e){this._scrollHandler.setDisabled(!!e)}function ri(e){var t=-Number.MAX_VALUE;return e.qHyperCube.qMeasureInfo.forEach((function(e){t=Math.max(t,e.qFallbackTitle.length),e.valueType!==We.valueTypes.SUBTOTAL&&e.subtotal&&e.subtotal.enable&&(t=Math.max(t,e.subtotal.label?e.subtotal.label.length:0))})),Math.min(20,Math.max(0,t))}function ni(e){return{settings:{labels:{mode:e.dimensionAxis.label,maxGlyphCount:Math.ceil(br.stringWidthOverMWidth(ri(e))),maxLengthPx:this.picassoElement.getBoundingClientRect().height/4}}}}function ii(e){var t=e.data.measure,r=e.dataset(t.source.key).field(t.source.field);return ir.formatMeasureValue(r,t)}function oi(e){var t=e.getStyle(ei,"value.color","default"),r=e.getStyle(ei,"value.color","dark"),n=e.getStyle(ei,"value.color","light");return{settings:{sources:[{strategy:{settings:{direction:function(e){return e.data&&e.data.end.value>e.data.start.value?"up":"down"},labels:[{placements:[{fill:t},{fill:function(e){return function(e,t,r){return Ht.getBestContrast(e,t,r)}(e.data.boxColor.value,r,n)}},{position:"opposite",fill:t,justify:0}],label:ii}]}}}]}}}function ai(e,t){return{viewSize:t,max:e.generatedMatrix.length}}var si=kt.extend("WaterfallChart",{namespace:".waterfallchart",chartID:ei,init:function(e){var t=e.picasso,r=e.environment,n=e.$element;this._super(t,n,r,null,null),this._tooltipHandler=dr(this.chartInstance,n,ei),this._scrollHandler=new Bt(this.chartInstance,n,this.getSlicedData.bind(this),this.updateChart.bind(this)),this._scrollHandler.setOptions({direction:"horizontal"}),this.setDataPaths(["generated/qHyperCube"])},updateConstraints:function(e){var t=!e.active,r=!e.passive;this._scrollHandler[t?"on":"off"](),this._tooltipHandler[r?"on":"off"]()},off:function(){this._scrollHandler.off(),this._tooltipHandler.off()},createChartSettings:function(e){var t=this,r=this.isRtl(),n=this.environment.theme,i=!!e.snapshotData,o=Mt.create({chartID:ei,theme:n,isRtl:r}),a=this.picassoElement.clientWidth,s=this.picassoElement.clientHeight,l={};l.box=this._tooltipHandler.setUp({chartBuilder:o,environment:this.environment,data:[""],contexts:["boxTip"],componentKey:"box-marker",headerResolver:function(){},rowResolver:function(e,t,r){var n=r.boxColor.value;return{value:ir.formatMeasureValue(e,t),label:r.tooltip.value.qText,color:n}},labelData:["tooltip"],measureRows:["measure"]});var u={scrollHandler:this._scrollHandler,selectionHandler:null};this._dependentActions&&this._dependentActions.destroy(),this._dependentActions=tr.create(u,"vertical",r,{componentKey:"box-marker"}),o.addPreset("dimension-measure-chart",{isRtl:r,orientation:"vertical",theme:n,gridlines:e.gridlines,includeDimensionAxis:!0,dimensionAxisProperties:e.dimensionAxis,dimensionAxisSettings:ni.call(this,e),dimensionSource:yr.getGeneratedDimensionPath(0),dimensionScaleSettings:{component:{maxPxStep:function(){return s/4}}},includeMeasureAxis:!0,measureAxisProperties:e.measureAxis,measureSource:[yr.getGeneratedMeasurePath(0),yr.getGeneratedMeasurePath(1)],measureScaleSettings:{component:{expand:0,include:[0],ticks:{values:function(){return Zn.getTicks({layout:e,height:s})}}}},hasNavigation:!i,isNavigationEnabledFn:function(){return t._scrollHandler.isOn()},scrollSettings:ai(e,this._scrollHandler.getScrollViewSizeInItem()),refLines:e.refLine&&e.refLine.refLines,brushActions:this._dependentActions.gestures}),o.addComponent("box-marker",function(e,t){var r=e?[e.box.trigger]:[],n=e?e.box.consume:[];return{data:{extract:{key:"qHyperCube",field:yr.getGeneratedDimensionPath(0),props:{start:{field:yr.getGeneratedMeasurePath(0)},end:{field:yr.getGeneratedMeasurePath(1)},measure:{field:yr.getGeneratedMeasurePath(2),reduce:"first",value:function(e){return e}},boxColor:{field:yr.getGeneratedDimensionPath(1),value:function(e){return e.qText}},isCustomFormatted:!!t.qDef.isCustomFormatted,tooltip:{value:function(e){return e}}}}},settings:{major:{scale:"dimension"},minor:{scale:"measure"},orientation:"",box:{width:.7,maxWidthPx:4e3,fill:function(e){return e.datum.boxColor.value},strokeWidth:0}},brush:{trigger:r,consume:n}}}(l,e)),o.addComponent("point-marker",function(e,t){var r=t.getStyle(ei,"shape.bridge","stroke");return{data:{extract:{key:"qHyperCube",field:yr.getGeneratedDimensionPath(0),props:{x:{},y:{field:yr.getGeneratedMeasurePath(1)}}}},settings:{x:{scale:"dimension",ref:"x",fn:function(t){return e?t.scale(t.datum.value):t.scale(t.datum.value)+t.scale.bandwidth()}},y:{scale:"measure"},sizeLimits:{maxPx:2e4,maxRelExtent:1e4,minRelDiscrete:0,maxRelDiscrete:1},shape:"line",stroke:r,size:1-.7,strokeDasharray:"4 4",fill:"none",strokeWidth:function(e,t){return t===e.data.items.length-1?0:2}}}}(r,n)),e.legend&&!e.legend.show||o.addComponent("categorical-legend",function(e,t){var r=e.theme,n=e.translator,i=We.getColorForPositiveValue(t,r),o=We.getColorForNegativeValue(t,r),a=We.getColorForSubtotal(t,r);return{displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,scale:{type:"categorical-color",data:[n.get("waterfall.legend.positiveValue.label"),n.get("waterfall.legend.negativeValue.label"),n.get("waterfall.legend.subtotal.label")],range:[i,o,a]},style:{title:{show:!1}}}}(this.environment,e),{dock:e.legend?e.legend.dock:"auto",isRtl:r,chartWidth:a,chartHeight:s}),e.dataPoint.showLabels&&o.addComponent("labels",oi(n));var c=o.getSettings();return this.addSnapshotChartSettings(c,e),c},updateData:function(e){var t=this.environment,r=t.theme,n=t.options,i=this;return this._super(e).then((function(){if(i._destroyed)return Promise.reject();var t,o;if(!!e.snapshotData){var a=i.layout.generated.qHyperCube.qDataPages[0].qArea;t=a.qTop,o=a.qHeight,yr.generateHyperCube(i.layout,r)}else{yr.generateHyperCube(i.layout,r),ti.call(i,!0);var s=n.viewState;s?(i._scrollHandler.updateViewState(i.layout.generatedMatrix.length),i._scrollHandler.setScrollState(s.scroll),t=s.scroll):(i._scrollHandler.resetScroll(),t=0),o=i._scrollHandler.getScrollViewSizeInItem()}yr.generateSlicedHyperCube(i.layout,t,o)}))},resize:function(){this._scrollHandler.onResize(),this._super()},paint:function(){var e=!!this.layout.snapshotData;e||this.environment.options.viewState||ti.call(this,!1),this._tooltipHandler.closeTooltip();var t=this.layout.generated.qHyperCube.qDataPages[0].qMatrix.length,r=this.layout.generatedMatrix.length;if(!e&&this._scrollHandler.isDataSizeChanged(t,r)){var n=this._super,i=this;return this._scrollHandler.getViewData().finally((function(){return n.call(i)}))}return this._super()},getSlicedData:function(e,t){return yr.generateSlicedHyperCube(this.layout,e,t),Promise.resolve(this.layout)},setSnapshotData:function(e){this._super(e),e.generated=this.layout.generated,e.generatedMatrix=this.layout.generatedMatrix},getViewState:function(){return{scroll:this._scrollHandler.getScrollState()}}});function li(x){!function(e){if(e&&e.get&&e.add){var t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(I).forEach((function(t){e.add(I[t])}))}}(x.translator);var q=function(){var e=g();return e.renderer.prio(["canvas"]),e.use(b),e.use(y(v)),e.use(O),e.component("disclaimer",N),e}();return{qae:H(x),ext:$e(x),component:function(){var g,b,y,v,x,D,M=p(),S=(g=i(),b=o(),y=t(),v=a(),x=s(),l((function(){return{appLayout:g,deviceType:b,options:y,theme:v,translator:x}}),[g,y.direction,y.freeResize,x.language(),v.name(),b])),w=d(),j=r(),C=A(f(),2),k=C[0],I=C[1];m((function(){var e=h(M),t=new si({picasso:q,environment:S,$element:e});return I(t),function(){t.destroy()}}),[]),function(){var e=A(n.apply(void 0,arguments),2)[1];if(e)throw e}(E(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k){e.next=2;break}return e.abrupt("return");case 2:return k.updateEnvironment(S),k.updateConstraints(j),e.next=6,k.updateData(w);case 6:return e.next=8,k.paint();case 8:case"end":return e.stop()}}),e)}))),[w,k,S]),function(i){var o=e(),a=t(),s=r(),l=A(n(E(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return i.updateConstraints(s),i.options=a,e.next=6,i.resize();case 6:case"end":return e.stop()}}),e)}))),[o.width,o.height]),2)[1];if(l)throw l}(k),D=k,u((function(e){if(D)return D.setSnapshotData(e)})),c((function(){return{getViewState:function(){if(D)return D.getViewState()}}}),[D])}}}export{li as default};
|
|
974
|
+
(Me={exports:{}}).exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,i,o,a,s,l,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),x=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,i=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",o=n&&n[1]&&n[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(p=t[0]).length%l,d=p.length,v=0;v<d;v++)h+=p.charAt(v),!((v-b+1)%l)&&v<d-l&&(h+=o);t[0]=h}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x},Me.exports);function Ee(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}var we={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Ae=/%$/,je=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Ce=/^\(oct\)/i,ke=/^\(dec\)/i,Ie=/^\(hex\)/i,Oe=/^\(bin\)/i,Ne=/^\(rom\)/i,Le=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Te=/#|0/g;function Re(e,t,r,n){return e=e.toString(t),r[1]===r[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",n||".")}function Pe(e,t,r){var n=Ee(e);return r?n:new RegExp(n||"",t)}function Fe(e,t,r){var n,i,o,a,s,l,u,c,p,d,f,m=e.pattern;m.indexOf("A")>=0&&(m=m.replace("A",""),e.abbreviate=!0),d=t,(f=r)&&(f=Ee(f)),d&&(d=Ee(d)),p=new RegExp("(?:[#0]+".concat(d,")?[#0]+(?:").concat(f,"[#0]+)?")),a=(o=(o=m.match(p))?o[0]:"")?m.substr(0,m.indexOf(o)):m,s=o?m.substring(m.indexOf(o)+o.length):"",o||(o=m?"#":"##########"),t&&t===r&&(i=(n=o.split(r)).pop(),o=n.join("")+r+i,t=""),l=t,t=/,/.test(r)?"¤":",",l&&(o=o.replace(Pe(l,"g"),t)),u=r,r=".",u&&(o=o.replace(Pe(u,"g"),r)),c=(c=o.match(/#/g))?c.length:0;var h,g=m.split(u);g[1]&&(h=g[1].match(Te)),e.prefix=a||"",e.postfix=s||"",e.pattern=m,e.maxPrecision=h?h.length:2,e.percentage=Ae.test(m),e.numericPattern=o||"",e.numericRegex=new RegExp("".concat(Pe(t,null,!0),"|").concat(Pe(r,null,!0)),"g"),e.groupTemp=l,e.decTemp=u,e.t=t,e.d=r,e.temp=c}!function(){function e(t,r,n,i,o){ve(this,e),this.localeInfo=t,this.pattern=r,this.thousandDelimiter=n||",",this.decimalDelimiter=i||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return we;var r={};return e.qNumericalAbbreviation.split(t).forEach((function(e){var t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}(t,this.patternSeparator),this.prepare()}qe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t,r,n){return this.prepare(t,r,n),this.formatValue(e)}},{key:"prepare",value:function(e,t,r){var n;void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===r&&(r=this.decimalDelimiter),e?(this._prepared={positive:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},n=this._prepared,e=e.split(this.patternSeparator),n.positive.pattern=e[0],n.negative.pattern=e[1],n.zero.pattern=e[2],Le.test(e[0])&&(n.positive.isFunctional=!0),e[1]?Le.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?Le.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1,n.positive.isFunctional||Fe(n.positive,t,r),n.negative&&!n.negative.isFunctional&&Fe(n.negative,t,r),n.zero&&!n.zero.isFunctional&&Fe(n.zero,t,r)):this._prepared={pattern:!1}}},{key:"formatValue",value:function(e){var t,r,n,i,o,a,s,l,u,c=this._prepared,p="",d="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return(c=c.zero).pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,o=c.d,a=c.t,c.isFunctional)e=function(e,t,r){var n;return je.test(t)?e=Re(e,Number(/\d{2}/.exec(t)[0]),t,r):Ce.test(t)?e=Re(e,8,t,r):ke.test(t)?e=Re(e,10,t,r):Ie.test(t)?e=Re(e,16,t,r):Oe.test(t)?e=Re(e,2,t,r):Ne.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=function(e,t){for(var r,n="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();i>0;)for(r=0;r<a.length;r++)if(a[r]<=i){n+=s[r],i-=a[r];break}for(r=0;r<o;r++)n="M".concat(n);return t[1]!==t[1].toUpperCase()&&(n=n.toLowerCase()),n}(e,t)):t+n+e.toExponential(0)),e}(e,c.pattern,o);else{if(c.percentage&&(e*=100),c.abbreviate){var m,h,g=Object.keys(this.abbreviations).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})),b=g[0];for(s=0,r=Number(Number(e).toExponential().split("e")[1]);b<=r&&s<g.length;)b=g[++s];s>0&&(m=g[s-1]),m&&r>0&&m>0?h=m:(r<0&&m<0||!m)&&(b<0&&b-r<=c.maxPrecision?h=b:m<=r&&!(b>0&&-r<=c.maxPrecision)&&(h=m)),h&&(p=this.abbreviations[h],e/=Math.pow(10,h))}if(n=Math.abs(e),t=c.temp,u=(l=c.numericPattern).split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,u||"#"!==l.slice(-1)[0])if(n>=1e15||n>0&&n<=1e-14)e=n?n.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{var y=Number(e.toFixed(Math.min(20,u?u.length:0)).split(".")[0]),v=l.split(o)[0];if(e=Se(v+=o,y)||"0",u){var x=Math.max(0,Math.min(14,u.length)),q=u.replace(/#+$/,"").length,D=("I"===this.type?0:n%1).toFixed(x).slice(2).replace(/0+$/,"");for(s=D.length;s<q;s++)D+="0";D&&(e+=o+D)}else 0===y&&(i=0)}else if(n>=Math.pow(10,t)||n<1||n<1e-4)0===e?e="0":n<1e-4||n>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),d=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Se(l,e)}e=e.replace(c.numericRegex,(function(e){return e===a?c.groupTemp:e===o?c.decTemp:""})),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+d+p+c.postfix}}],[{key:"getStaticFormatter",value:function(){return{prepare:function(){},formatValue:function(e){return"".concat(e)}}}}])}();var _e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],He=["January","February","March","April","May","June","July","August","September","October","November","December"],ze=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Be(e,t){for(var r=e.length;r<t;r++)e="0".concat(e);return e}function Ue(e){var t=e.toString().split(".");return t[1]?t=Number("0.".concat(t[1])):0}!function(){function e(t,r,n){ve(this,e);var i,o=t||{};o.qCalendarStrings||(o.qCalendarStrings={qLongDayNames:_e,qDayNames:Ve,qLongMonthNames:He,qMonthNames:ze}),this.localeInfo=o,this.locale_days=o.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=o.qCalendarStrings.qDayNames.slice(),this.locale_months=o.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=o.qCalendarStrings.qMonthNames.slice(),r||(r=(De(i={},"T",o.qTimeFmt||"hh:mm:ss"),De(i,"D",o.qDateFmt||"YYYY-MM-DD"),De(i,"TS",o.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"),i)[n]),this.pattern=r}qe(e,[{key:"clone",value:function(){var t=new e(this.localeInfo,this.pattern);return t.subtype=this.subtype,t}},{key:"format",value:function(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");var r,n,i,o,a,s=/t+/gi.test(t);e instanceof Date?(i=s,o=(n=e).getUTCHours(),i&&((o%=12)||(o=12)),(a=n.getUTCDay()-1)<0&&(a=6),r={year:n.getUTCFullYear(),month:n.getUTCMonth(),day:a,date:n.getUTCDate(),h:o,m:n.getUTCMinutes(),s:n.getUTCSeconds(),f:n.getUTCMilliseconds(),t:n.getUTCHours()>=12?"pm":"am"}):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){var r,n=function(e){var t=e,r=24*Ue(t),n=60*Ue(r),i=60*Ue(n),o=1e3*Ue(i);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(i),f:Math.round(o)}}(e),i=n.d,o=n.h,a=n.m,s=n.s,l=n.f,u=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(r.getTime())&&(r=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=r?r.getDay()-1:0)<0&&(u=6);var c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:i,h:o,m:a,s:s,f:l,t:c}}(e,t));var l=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Be("".concat(t.year).slice(-2),2),YYY:Be("".concat(t.year).slice(-3),3),def:function(e){return Be("".concat(t.year),e.length)}},"M+":{M:t.month+1,MM:Be("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Be("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:function(e){return Be("".concat(t.date),e.length)}},"h+|H+":{h:t.h,def:function(e){return Be("".concat(t.h),e.length)}},"m+":{m:t.m,def:function(e){return Be("".concat(t.m),e.length)}},"s+|S+":{s:t.s,def:function(e){return Be("".concat(t.s),e.length)}},"f+|F+":{def:function(e){var r="".concat(t.f),n=e.length-r.length;if(n>0)for(var i=0;i<n;i++)r+="0";else n<0&&(r=r.slice(0,e.length));return r}},"t{1,2}|T{1,2}":{def:function(e){var r=t.t;return e[0].toUpperCase()===e[0]&&(r=r.toUpperCase()),r.slice(0,e.length)}}}}(this,r),u=[];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&u.push(c);var p=new RegExp(u.join("|"),"g");return t.replace(p,(function(e){var t,r,n;for(r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&(t=new RegExp(r)).test(e))break;if(!t)return"";for(var i in l[r])if(i===e||i.toLowerCase()===e){void 0===(n=l[r][i])&&(n=l[r][i.toLowerCase()]);break}return void 0===n&&(n=l[r].def),"function"==typeof n&&(n=n(e)),n}))}}])}();function We(e,t,r,n,i){var o=e.color||e.qDef.color;return o&&!o.auto&&o[r]?o[r].paletteColor:{index:i,color:t.getStyle("object.waterfallChart","shape.".concat(r),"fill")||n}}var Ke={valueTypes:{NORMAL:"NORMAL",INVERSE:"INVERSE",SUBTOTAL:"SUBTOTAL"},chartID:"object.waterfallChart",getColorForPositiveValue:function(e,t){return t.getColorPickerColor(We(e,t,"positiveValue",null,6))},getColorForNegativeValue:function(e,t){return t.getColorPickerColor(We(e,t,"negativeValue","#cc6677",-1))},getColorForSubtotal:function(e,t){return t.getColorPickerColor(We(e,t,"subtotal","#c3c3c3",-1))}};function Ge(e){return!e.color.auto}function $e(e){var t=e.flags,r=e.translator,n={translation:"properties.numberFormatting",type:"items",globalChange:function(e){e.qHyperCubeDef.qMeasures.forEach((function(t){t.qDef.numFormatFromTemplate=e.qDef.numFormatFromTemplate,t.qDef.qNumFormat=q(!0,{},e.qDef.qNumFormat)}))},items:{numberFormatting:{uses:"measures.items.numberFormatting",items:{numberFormattingType:void 0}}}};return{type:"items",component:"accordion",items:{data:{uses:"data",addTranslation:"Properties.AddData",items:{measures:{disabledRef:"",items:{numberFormatting:{show:!1},valueType:{type:"string",component:"dropdown",ref:"qDef.valueType",translation:"properties.waterfall.measureOperation",options:[{value:Ke.valueTypes.NORMAL,translation:"properties.waterfall.measureOperation.add"},{value:Ke.valueTypes.INVERSE,translation:"properties.waterfall.measureOperation.subtract"},{value:Ke.valueTypes.SUBTOTAL,translation:"properties.waterfall.measureOperation.subtotal"}],defaultValue:Ke.valueTypes.NORMAL},subTotal:{ref:"qDef.subtotal.enable",type:"boolean",defaultValue:!1,translation:"properties.waterfall.measureOperation.subtotal",show:function(e){return e.qDef.valueType!==Ke.valueTypes.SUBTOTAL}},subTotalLabel:{translation:"properties.waterfall.subtotalLabel",component:"string",expression:"optional",ref:"qDef.subtotal.label",defaultValue:function(){return r.get("properties.waterfall.measureOperation.subtotal")},show:function(e){return e.qDef.valueType!==Ke.valueTypes.SUBTOTAL&&e.qDef.subtotal&&e.qDef.subtotal.enable}}}}}},numberFormatting:n,addons:{type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines",items:{colorBackground:{show:!1}}}}},settings:{uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridlines.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridlines.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:function(e){return e.gridlines&&!e.gridlines.auto}}}},showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],snapshot:{tid:"property-dataPoints"}}}},colors:{translation:"properties.colorsAndLegend",type:"items",grouped:!0,items:{colors:{type:"items",items:{autoColor:{ref:"color.auto",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},positiveValueColor:{ref:"color.positiveValue.paletteColor",translation:"properties.waterfall.color.positiveValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:6,color:null},show:Ge},negativeValueColor:{ref:"color.negativeValue.paletteColor",translation:"properties.waterfall.color.negativeValueColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#cc6677"},show:Ge},subtotalColor:{ref:"color.subtotal.paletteColor",translation:"properties.waterfall.color.subtotalColor",type:"object",component:"color-picker",dualOutput:!0,defaultValue:{index:-1,color:"#c3c3c3"},show:Ge}}},legend:{type:"items",items:{show:{ref:"legend.show",type:"boolean",translation:"properties.legend.show",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},dock:{type:"string",component:"dropdown",ref:"legend.dock",translation:"properties.legend.position",options:[{value:"auto",translation:"Common.Auto"},{value:"right",translation:"properties.dock.right"},{value:"bottom",translation:"Common.Bottom"},{value:"left",translation:"properties.dock.left"},{value:"top",translation:"Common.Top"}],defaultValue:"auto",show:function(e){return ye(e,"legend.show",!0)}}}}}},measureAxis:{uses:"axis.picasso.measureAxis",label:r.get("properties.yAxis"),items:{axis:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]}}}}},dimensionAxis:{uses:"axis.picasso.dimensionAxis",items:{othersGroup:{items:{show:{translation:"properties.labels",defaultValue:"labels",options:[{value:"labels",translation:"properties.labels"},{value:"none",translation:"Common.None"},null,null]},label:{options:t.isEnabled("SENSECLIENT_LAYERED_LABELS")?[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]:void 0}}}}}}}}}}function Ye(e){var t;if(null!==(t=e.anything)&&void 0!==t&&t.sense)return{definition:$e(e),support:{cssScaling:!1,snapshot:!0,export:!0,exportData:!0,sharing:!0,viewData:!0},importProperties:function(t,r,n){n.mapProperties();var i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return V({dataDefinition:R(e),defaultPropertyValues:i,exportFormat:t,initialProperties:r})},exportProperties:function(e,t,r){return H({propertyTree:e,viewDataMode:r})}}}Object.freeze(Ke.valueTypes),Object.freeze(Ke);var Je=/xyz/.test((function(){}))?/\b_super\b/:/.*/,Xe=function(){};Xe.extend=function e(t,r){var n=this.prototype;"string"!=typeof t&&(r=t,t="Class");var i=Object.create(this.prototype);for(var o in r)i[o]="function"==typeof r[o]&&"function"==typeof n[o]&&Je.test(r[o])?function(e,t){return function(){var r=this._super;this._super=n[e];var i=t.apply(this,arguments);return this._super=r,i}}(o,r[o]):r[o];if(!/^[_a-z][_a-z\d]*$/i.test(t))throw new Error("Invalid subclass name. Alphanumericals only.");var a=new Function("return (function ".concat(t,"(){ typeof this.init === 'function' && this.init.apply(this, [].slice.call(arguments)) });"))();return a.prototype=i,a.prototype.constructor=a,a.extend=e,a};var Qe={getChar:function(e){var t,r=e;return r>9?(t=65+r-10)>90&&(t+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(r+1):String.fromCharCode(t)},base62:function(e){var t=this.getChar(e%62),r=Math.floor(e/62);return r>0?this.base62(r)+t:t},id:function(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function Ze(){return Qe.id()}function et(e,t,r){return"y"===e?tt(t,r):function(e){return"far"===e?"top":"bottom"}(t)}function tt(e,t){var r=e||"near";return t&&"near"===r||!t&&"far"===r?"right":"left"}var rt={getAxisDock:et,getOppositeAxisDock:function(e,t,r){return et(e,"far"===t?"near":"far",r)},getYAxisDock:tt},nt=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),it=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),ot=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]");function at(e){return nt.test(e)}function st(e){return it.test(e)||ot.test(e)}var lt={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),detectTextDirection:function(e){var t,r,n=e?e.length:0;for(t=0;t<n;t++){if(at(r=e[t]))return"ltr";if(st(r))return"rtl"}return"ltr"}};var ut={lineSettings:function(e,t){var r,n={value:0,line:{stroke:void 0!==t.paletteColor?t.theme.getColorPickerColor(t.paletteColor):"transparent",strokeDasharray:null==t||null===(r=t.style)||void 0===r?void 0:r.lineType}};return q(!0,n,e||{})},lineLabelSettings:function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.label.name","color"),i=t.theme.getStyle(r,"referenceLine.label.name","fontSize"),o=t.theme.getStyle(r,"referenceLine.label.name","fontFamily");return t.paletteColor?n=t.theme.getColorPickerColor(t.paletteColor):n||(n="transparent"),q(!0,{value:0,line:{stroke:"transparent"},label:{align:"center",vAlign:"middle",text:"",fill:n,fontFamily:o,fontSize:i,maxWidthPx:135}},e||{})},isVisible:function(e){return e&&!1!==e.show&&0!==e.show&&"0"!==e.show&&void 0!==e.refLineExpr},getRefLineTitle:function(e){var t=e.refLine,r=e.label,n=e.valueString;return!1!==t.showValue?!1!==t.showLabel?"".concat(r," ").concat(lt.lrm,"(").concat(n,")").concat(lt.lrm):"".concat(lt.lrm,"(").concat(n,")").concat(lt.lrm):!1!==t.showLabel?r:""}},ct={SHOW_AXIS_LABELS_OPTIONS:["all","labels"],SHOW_TITLE_OPTIONS:["all","title"],HORIZONTAL:"horizontal",VERTICAL:"vertical",LAYOUTSETTINGS:{lasso:{displayOrder:1e4},rangeDim:{displayOrder:1e4},rangeMeasure:{displayOrder:1e4},rangeMinor:{displayOrder:1e4},scrollBar:{minimumLayoutMode:"SPARK",prioOrder:-1,displayOrder:100},refLines:{minimumLayoutMode:"SPARK",prioOrder:60,displayOrder:-10},measureAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},dimensionAxisTitle:{minimumLayoutMode:"XSMALL",prioOrder:30,displayOrder:90},measureAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},dimensionAxis:{minimumLayoutMode:"XSMALL",prioOrder:10,displayOrder:80},gridLines:{minimumLayoutMode:"XSMALL",displayOrder:-100},refLinesLabels:{minimumLayoutMode:"SMALL",prioOrder:60,displayOrder:0}}};ct.DEFAULT_CHART_ORIENTATION=ct.HORIZONTAL;function pt(e,t){var r=t||{},n=r.measureAxisProperties||{},i=r.dimensionAxisProperties||{},o=r.orientation||ct.DEFAULT_CHART_ORIENTATION,a=o===ct.HORIZONTAL,s=a?"x":"y",l=a?"y":"x",u=ct.SHOW_AXIS_LABELS_OPTIONS,c=ct.SHOW_TITLE_OPTIONS,p=u.includes(n.show),d=!!r.measureTitleText&&c.includes(n.show),f=r.includeDimensionAxis&&u.includes(i.show),m=r.includeDimensionAxis&&!!r.dimensionTitleText&&c.includes(i.show),h=r.gridlines&&!(!r.gridlines.auto&&0===r.gridlines.spacing),g=r.refLines&&r.refLines.some((function(e){return e.show})),b=[];(p&&function(e,t,r,n){var i={scale:"measure",forceBounds:n&&!n.autoMinMax&&n.showBounds};i=q(i,ct.LAYOUTSETTINGS.measureAxis);var o=ft(t,r);e.addComponent("".concat(r,"-axis"),i,o)}(e,r,s,n),d&&function(e,t,r){var n={text:t.measureTitleText};n=q(n,ct.LAYOUTSETTINGS.measureAxisTitle);var i=function(e,t){return ft(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,s),function(e,t,r,n){var i=t.measureScaleSettings,o={isRtl:t.isRtl,source:t.measureSource,orientation:r,measureAxisProperties:n};n&&n.spacing>0&&(i=q(!0,i||{},{component:{ticks:{distance:100*n.spacing}}}));e.addScale("measure-scale",i,o)}(e,r,o,n),f&&function(e,t,r){var n={scale:"dimension"};n=q(n,ct.LAYOUTSETTINGS.dimensionAxis);var i=mt(t,r);q(!0,n,t.dimensionAxisSettings||{}),e.addComponent("".concat(r,"-axis"),n,i)}(e,r,l),m&&function(e,t,r){var n={text:t.dimensionTitleText};n=q(n,ct.LAYOUTSETTINGS.dimensionAxisTitle);var i=function(e,t){return mt(e,t)}(t,r);e.addComponent("".concat(r,"-axis-title"),n,i)}(e,r,l),r.includeDimensionAxis&&function(e,t,r){var n={isRtl:t.isRtl,source:t.dimensionSource,orientation:r===ct.HORIZONTAL?ct.VERTICAL:ct.HORIZONTAL};e.addScale("dimension-scale",t.dimensionScaleSettings,n)}(e,r,o),h&&function(e,t,r){var n={ticks:{show:!0},minorTicks:{show:!t.auto&&!t.auto&&3===t.spacing}};(n=q(n,ct.LAYOUTSETTINGS.gridLines))[r]={scale:"measure"},e.addComponent("grid-line",n)}(e,r.gridlines,s),r.hasNavigation&&function(e,t,r,n){e.getSettings().scroll={dimension:{viewSize:r.scrollSettings&&r.scrollSettings.viewSize||0,max:r.scrollSettings&&r.scrollSettings.max||0}};var i={isRtl:r.isRtl,chartID:r.chartID,isHorizontal:!n},o=q({},ct.LAYOUTSETTINGS.scrollBar);e.addComponent("scrollbar",o,i),dt(t,function(e){function t(t,r){if(!r||!e())return!1;var n={x:r.center.x-r.deltaX,y:r.center.y-r.deltaY};return this.chart.componentsFromPoint(n).some((function(e){return"scrollbar"===e.settings.key}))}return[{type:"Tap",options:{enable:t},events:{tap:function(e){this.chart.component("scrollbar").emit("tap",e)}}},{type:"Pan",options:{enable:t},events:{panstart:function(e){this.chart.component("scrollbar").emit("panStart",e)},pan:function(e){this.chart.component("scrollbar").emit("panMove",e)},panend:function(e){this.chart.component("scrollbar").emit("panEnd",e)},pancancel:function(e){this.chart.component("scrollbar").emit("panCancel",e)}}}]}(r.isNavigationEnabledFn))}(e,b,r,a),g&&function(e,t,r,n){var i=rt.getAxisDock(r,n.dock,t.isRtl),o={key:"ref-line",style:{oob:{show:!1}},lines:{x:[],y:[]}};o=q(o,ct.LAYOUTSETTINGS.refLines);var a={key:"ref-line-labels-".concat(Ze()),require:["renderer","chart"],dock:rt.getOppositeAxisDock(r,n.dock,t.isRtl),preferredSize:function(){if("x"===r)return 26;for(var t=this.renderer.measureText,n=this.chart.formatter({data:e.settings.scales.measure.data}),i=a.lines.y.map((function(e){var r=!1!==e.label.showValue?"(".concat(n(e.value),")"):"",i="".concat(e.label.text," ").concat(r),o=e.label.text&&r?" ".concat(r):r;return{wanted:t({text:i,fontSize:e.fontSize,fontFamily:e.fontFamily}).width,required:t({text:o,fontSize:e.fontSize,fontFamily:e.fontFamily}).width}})),o=i[0],s=1;s<i.length;s++)i[s].wanted>o.wanted&&(o.wanted=i[s].wanted),i[s].required>o.required&&(o.required=i[s].required);var l=12;return o.required+l>100?o.required+l:Math.min(o.wanted+l,100)},lines:{x:[],y:[]}};a=q(a,ct.LAYOUTSETTINGS.refLinesLabels),t.refLines.forEach((function(n){if(n.show){var s=n.refLineExpr&&n.refLineExpr.value,l=q(!0,{},t,{paletteColor:n.paletteColor,style:n.style,chartID:e.options.chartID}),u=ut.lineSettings({scale:"measure",dir:r,value:s},l);o.lines[r].push(u);var c=ut.lineLabelSettings({scale:"measure",value:s,label:{text:!1!==n.showLabel?n.label:"",showValue:!1!==n.showValue}},l);"x"===r?c.label.vAlign="near"===i?1:0:c.label.align="near"===i?0:1,a.lines[r].push(c)}})),e.addComponent("ref-line",o,{}),e.addComponent("ref-line",a,{})}(e,r,s,n),r.enableLasso&&r.selectionsEnabled)&&function(e,t){var r={brushKey:t.brushKey,brushComponents:t.brushComponents,brushData:t.brushData};e.addComponent("lasso",ct.LAYOUTSETTINGS.lasso,r)}(e,r.lasso||{});r.enableDimRange&&r.includeDimensionAxis&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeDim"};o=q(o,ct.LAYOUTSETTINGS.rangeDim);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,isHorizontal:!r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.dimRange||{},a,mt(r,l).dock,r.isRtl);r.enableMeasureRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMeasure"};o=q(o,ct.LAYOUTSETTINGS.rangeMeasure);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushArea:t.brushArea,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:r,dock:n,isRtl:i};e.addComponent("range",o,a)}(e,r.measureRange||{},a,ft(r,s).dock,r.isRtl);r.enableAreaRange&&r.selectionsEnabled&&function(e,t,r,n,i){var o={key:"rangeMinor"};o=q(o,ct.LAYOUTSETTINGS.rangeMinor);var a={brushKey:t.brushKey,brushAxis:t.brushAxis,brushData:t.brushData,brushArea:t.brushArea,brushComponents:t.brushComponents,brushScale:t.brushScale,multiple:t.multiple,isHorizontal:"measure"===t.brushScale?r:!r,dock:n,isRtl:i,chartInstance:t.chartInstance};e.addComponent("range-area",o,a)}(e,r.areaRange||{},a,mt(r,l).dock,r.isRtl);r.brushActions&&dt(b,r.brushActions),b.length&&function(e,t){e.addInteraction({},{gestures:t})}(e,b)}function dt(e,t){t.forEach((function(t){e.push(t)}))}function ft(e,t){return{dock:e.measureAxisProperties&&e.measureAxisProperties.dock,direction:t,isRtl:e.isRtl}}function mt(e,t){return{dock:e.dimensionAxisProperties&&e.dimensionAxisProperties.dock,direction:t,isRtl:e.isRtl}}function ht(e,t){var r=t||{},n=!r.orientation||"horizontal"===r.orientation,i=!!r.isRtl,o={name:r.name||"scale",component:{invert:n&&i,minorTicks:{count:1},range:r.range||void 0,domain:r.domain||void 0,trackBy:r.trackBy||"id"}};return q(!0,{},o,e||{})}function gt(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.line.major","color"),s=t.theme.getStyle(r,"axis.title","fontSize"),l=t.theme.getStyle(r,"axis.title","color"),u=t.theme.getStyle(r,"axis.label.name","color"),c=t.theme.getStyle(r,"axis.label.name","fontSize"),p=t.theme.getStyle(r,"axis.title","fontFamily"),d=t.theme.getStyle(r,"axis.label.name","fontFamily"),f={key:"axis",type:"axis",dock:rt.getAxisDock(i,n,o),brush:{trigger:[],consume:[]},settings:{title:{fontSize:s,fontFamily:p,fill:l},line:{show:!0,strokeWidth:1,stroke:a},labels:{fill:u,fontSize:c,fontFamily:d,tiltAngle:o?-40:40,maxEdgeBleed:75,maxSize:150,mode:"auto"},ticks:{stroke:a},minorTicks:{stroke:a}}};return q(!0,{},f,e||{})}function bt(e,t){var r=t&&t.chartID,n=t&&t.dock,i=t&&t.direction,o=t&&t.isRtl,a=t.theme.getStyle(r,"axis.title","fontSize"),s=t.theme.getStyle(r,"axis.title","color"),l=t.theme.getStyle(r,"axis.title","fontFamily"),u={key:"text",type:"text",dock:rt.getAxisDock(i,n,o)||"bottom",displayOrder:0,style:{text:{fontSize:a,fontFamily:l,fill:s}}};return q(!0,{},u,e||{})}ht.measureScale=function(e,t){var r=(t||{}).source||[];"string"==typeof r&&(r=[r]);var n={name:"measure",component:{expand:.1,data:{fields:r.map((function(e){return{field:e}}))}}},i=t&&t.measureAxisProperties;i&&!i.autoMinMax&&(["min","minMax"].includes(i.minMax)&&(n.component.min=i.min),["max","minMax"].includes(i.minMax)&&(n.component.max=i.max));var o=ht(q(!0,n,e||{}),t);return!(e&&e.component&&void 0!==e.component.invert)&&t&&"vertical"===t.orientation&&(o.component.invert=!o.component.invert),o},ht.dimensionScale=function(e,t){var r={name:"dimension",component:{trackBy:"id",type:"band",data:{extract:{field:t&&t.source||"",props:{label:function(e){return e.qText||""}}}},label:function(e){return e.datum.label.value}}};return ht(q(!0,r,e||{}),t)},gt.xAxis=function(e,t){return gt(q(!0,{key:"x-axis",scale:"x"},e||{}),t)},gt.yAxis=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis",scale:"y",dock:rt.getYAxisDock(r,n)};return gt(q(!0,i,e||{}),t)},bt.xAxisTitle=function(e,t){return bt(q(!0,{key:"x-axis-title"},e||{}),t)},bt.yAxisTitle=function(e,t){var r=t&&t.dock,n=t&&t.isRtl,i={key:"y-axis-title",dock:rt.getYAxisDock(r,n)||"left"};return bt(q(!0,i,e||{}),t)};var yt={getBublesAlign:function(e,t,r){var n=e&&"far"!==t||!e&&"far"===t;return!e&&r&&(n=!n),n?"start":"end"},getDock:function(e,t){var r,n=[];return e&&n.push("@".concat(e)),t&&n.push("@".concat(t)),n.length&&(r=n.join(",")),r}};var vt={SPARK:{width:0,height:0},XSMALL:{width:150,height:75},SMALL:{width:300,height:150},MEDIUM:{width:400,height:220},FULL:{width:550,height:450}};function xt(){return vt}function qt(e){var t=e.data.end;return e.dataset(t.source.key).field(t.source.field).formatter()(t.value)}xt.getLayoutModeKeys=function(){var e,t=[];for(e in vt)t.push(e);return t};var Dt={left:"left",right:"right",up:"top",down:"bottom"};function Mt(e,t,r){switch(e){case"scale":return ht(t,r);case"measure-scale":return ht.measureScale(t,r);case"dimension-scale":return ht.dimensionScale(t,r);case"axis":return gt(t,r);case"box-marker":return function(e){return q(!0,{},{key:"box-marker",type:"box-marker",settings:{minor:{scale:"x"},orientation:"horizontal"},brush:{trigger:[],consume:[]}},e||{})}(t);case"point-marker":return function(e){return q(!0,{},{key:"point-marker",type:"point-marker",settings:{},brush:{trigger:[],consume:[]}},e||{})}(t);case"scrollbar":return function(e,t){var r=t&&t.isRtl,n=t&&t.chartID,i=t&&t.isHorizontal,o={key:"scrollbar",type:"scrollbar",scroll:"dimension",dock:i?"bottom":r?"left":"right",settings:{backgroundColor:t.theme.getStyle(n,"","backgroundColor"),invert:r&&i}};return q(!0,{},o,e||{})}(t,r);case"text":return bt(t,r);case"lasso":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushComponents?t.brushComponents:[],i=t&&t.brushData?t.brushData:["elemNo"],o={type:"brush-lasso",key:"lasso",displayOrder:99,settings:{brush:{components:[]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"rgba(102,102,102,1)",strokeWidth:2,opacity:1,strokeDasharray:null},startPoint:{r:10,fill:"rgba(0, 152, 69, 1)",strokeWidth:0,opacity:1}}};return n.forEach((function(e){o.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:i})})),q(!0,{},o,e||{})}(t,r);case"range":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushArea,o=t&&t.brushScale,a=t&&t.isHorizontal,s=t&&t.dock,l=t&&t.isRtl,u={type:"brush-range",key:"range",displayOrder:99,dock:yt.getDock(n,i),settings:{brush:r,fill:"rgba(0, 0, 0, 0)",scale:o,multiple:!t||!1!==t.multiple||t.multiple,direction:a?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:yt.getBublesAlign(a,s,l)}}};return q(!0,{},u,e||{})}(t,r);case"range-area":return function(e,t){var r=t&&t.brushKey,n=t&&t.brushAxis,i=t&&t.brushComponents?t.brushComponents:[],o=t&&t.brushData?t.brushData:["elemNo"],a=t&&t.brushArea,s=t&&t.isHorizontal,l=t&&t.dock,u=t&&t.isRtl,c=t&&t.chartInstance,p=!0,d={type:"brush-area-dir",key:"area",displayOrder:99,dock:yt.getDock(n,a),settings:{brush:{components:[]},direction:s?"horizontal":"vertical",target:{component:n,fill:"rgba( 82, 204, 82, 0.2 )",fillActive:"rgba(82, 204, 82, 0.4)"},bubbles:{align:yt.getBublesAlign(s,l,u),label:function(e){return p?(p=!1,c.dataset(e.binStart.source.key).field(e.binStart.source.field).formatter()(e.binStart.value)):(p=!0,c.dataset(e.binEnd.source.key).field(e.binEnd.source.field).formatter()(e.binEnd.value))}},multiple:!t||!1!==t.multiple||t.multiple}};return i.forEach((function(e){d.settings.brush.components.push({contexts:r?[r]:void 0,key:e,data:o,action:"add"})})),q(!0,{},d,e||{})}(t,r);case"categorical-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t&&t.dock||"auto",o=t&&t.show;"auto"===i&&(i=t.chartHeight/t.chartWidth<1?n?"left":"right":"bottom");var a=t.theme.getStyle(r,"legend.title","color"),s=t.theme.getStyle(r,"legend.title","fontSize"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.title","fontFamily"),p={key:"legend",type:"legend-cat",dock:i,show:o,scale:{type:"color"},settings:{title:{anchor:"middle"},layout:{direction:n?"rtl":"ltr",size:"top"===i||"bottom"===i?2:1,vertical:"top"===i||"bottom"===i?16:8},navigation:{button:{class:{"lui-fade-button":!0},content:function(e,t){return e("span",{style:{pointerEvents:"none"},class:["lui-button__icon","lui-icon","lui-icon--triangle-".concat(Dt[t.direction])].join(" ")})}}}},style:{item:{label:{fontSize:u,fontFamily:t.theme.getStyle(r,"legend.label","fontFamily"),fill:l,lineHeight:1,wordBreak:"break-word"},margin:{top:5,left:10,right:10,bottom:10},shape:{type:t.type?t.type:"square",size:3*parseInt(u,10)/4}},title:{show:t.showTitle,fontSize:s,fontFamily:c,fill:a}}};return q(!0,{},p,e)}(t,r);case"sequential-legend":return function(e,t){var r=t&&t.chartID,n=t&&t.isRtl,i=t.dock||"auto";"auto"===i&&(i=t.chartHeight<t.chartWidth?n?"left":"right":"bottom");var o=t.theme.getStyle(r,"legend.title","color"),a=t.theme.getStyle(r,"legend.title","fontSize"),s=t.theme.getStyle(r,"legend.title","fontFamily"),l=t.theme.getStyle(r,"legend.label","color"),u=t.theme.getStyle(r,"legend.label","fontSize"),c=t.theme.getStyle(r,"legend.label","fontFamily");function p(e){switch(e){case"left":return 0;case"right":return 1;case"middle":default:return.5}}var d={key:"seqlegend",type:"legend-seq",dock:i,displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,settings:{align:p(n?"right":"left"),major:{invert:"left"===i||"right"===i||n},title:{show:t.showTitle,fontSize:a,fontFamily:s,fill:o},tick:{fill:l,fontSize:u,fontFamily:c}}};return q(!0,{},d,e)}(t,r);case"x-axis":return gt.xAxis(t,r);case"y-axis":return gt.yAxis(t,r);case"x-axis-title":return bt.xAxisTitle(t,r);case"y-axis-title":return bt.yAxisTitle(t,r);case"grid-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"grid.line.major","color");return q(!0,{},{displayOrder:-1,key:"grid-line",type:"grid-line",x:null,y:null,ticks:{stroke:n},minorTicks:{stroke:n}},e||{})}(t,r);case"interaction":return function(e,t){var r=t&&t.gestures||[];return q(!0,{},{type:"hammer",key:"hammered",gestures:r},e||{})}(t,r);case"ref-line":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"referenceLine.outOfBounds","color"),i=t.theme.getStyle(r,"referenceLine.outOfBounds","backgroundColor");return q(!0,{},{key:"ref-line",type:"ref-line",dock:"center",prioOrder:-1,lines:{x:[],y:[]},style:{oob:{width:7,fill:i,text:{fill:n},padding:{x:7,y:5}}}},e||{})}(t,r);case"event-area":return function(e){return q(!0,{},{type:"event-area",key:"event-area"},e||{})}(t);case"labels":return function(e,t){var r=t&&t.chartID,n=t.theme.getStyle(r,"label.value","color"),i=t.theme.getStyle(r,"label.value","fontSize"),o={key:"labels",type:"labels",displayOrder:1,settings:{sources:[{component:"box-marker",selector:"rect",strategy:{type:"bar",settings:{direction:"up",fontFamily:t.theme.getStyle(r,"label.value","fontFamily"),fontSize:parseFloat(i),align:.5,labels:[{placements:[{position:"outside",fill:n,justify:0},{position:"inside",fill:e&&e.settings.sources[0].strategy.settings.labels[0].placements[1].fill,justify:1}],label:qt}]}}}]}};return q(!0,{},o,e||{})}(t,r);default:return}}function St(e){this.options=e||{},this.settings={dockLayout:{layoutModes:xt()},components:[],scales:{}}}St.prototype.addComponent=function(e,t,r){var n=Mt(e,t,q(!0,{},this.options,r||{}));return this.settings.components.push(n),n},St.prototype.addInteraction=function(e,t){var r=Mt("interaction",e,q(!0,{},this.options,t||{}));return this.settings.interactions||(this.settings.interactions=[]),this.settings.interactions.push(r),r},St.prototype.addScale=function(e,t,r){var n=Mt(e,t,q(!0,{},this.options,r||{}));this.settings.scales[n.name]=n.component},St.prototype.getSettings=function(){return this.settings},St.prototype.getComponent=function(e){return this.settings.components.filter((function(t){return t.key===e}))[0]},St.prototype.addPreset=function(e,t){!function(e,t,r){switch(e){case"dimension-measure-chart":pt(t,r);break;default:throw Error("There is no chart preset with that type")}}(e,this,t)},St.validateComponentKeys=function(e){var t={};return e.map((function(e){var r=e.key;return r?t[r]?"Duplicate key for component ".concat(e.type):(t[r]=!0,null):"Missing key for component ".concat(e.type)})).filter((function(e){return!!e}))},St.create=function(e){return new St(e)},St.createComponent=Mt;var Et={CENTER:0,BOTTOM:1},wt={DISCLAIMERS:[{label:"NoDataExist",alignment:Et.CENTER,default:!0},{label:"RequireNumericDimension",alignment:Et.CENTER,default:!1},{label:"OnlyNanData",alignment:Et.CENTER,default:!0},{label:"OnlyNegativeOrZeroValues",alignment:Et.CENTER,default:!1},{label:"LimitedData",alignment:Et.BOTTOM,default:!1},{label:"OnlyNanColor",alignment:Et.BOTTOM,default:!1},{label:"NegativeOrZeroValues",alignment:Et.BOTTOM,default:!1},{label:"DataRangeIncludingZero",alignment:Et.BOTTOM,default:!1}],ALIGNMENT:Et};var At={getNoDataExistAttribute:function(e){return e.qSize.qcy*e.qSize.qcx==0},getLimitedDataAttribute:function(e,t){var r,n,i=!1;return e?void 0!==t.explicitLimitedData?i=!0===t.explicitLimitedData:e.qDataPages&&e.qDataPages[0]?i=!t.paging&&e.qSize.qcy>e.qDataPages[0].qMatrix.length:(n=e.qStackedDataPages)&&n[0]&&n[0].qData[0]&&n[0].qData[0].qSubNodes&&(r=t.maxNbrOfDimensions?t.maxNbrOfDimensions:2,i=e.qDimensionInfo.length>=r?e.qStackedDataPages[0].qData[0].qSubNodes.some((function(e){return e.qDown>0})):e.qStackedDataPages[0].qData[0].qSubNodes.length<e.qStackedDataPages[0].qArea.qHeight):i=!0===t.explicitLimitedData,i},getNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.some((function(e){return e.qMin<=0}))},getOnlyNegativeOrZeroValuesAttribute:function(e,t){return!t.supportNegative&&e.qMeasureInfo.every((function(e){return e.qMax<=0&&e.qMax>=e.qMin}))||0===e.qSize.qcy},getOnlyNanDataAttribute:function(e,t){return void 0!==t.explicitOnlyNanData?t.explicitOnlyNanData:e.qMeasureInfo.every((function(e){return e.qMax<e.qMin||"NaN"===e.qMax}))},getDataRangeIncludingZeroAttribute:function(e,t){return!t.supportRangeOverZero&&function(e,t){var r,n,i,o,a,s=t.length;for(e&&(n=!(e.autoMinMax||"min"!==e.minMax&&"minMax"!==e.minMax||null===e.min||Number.isNaN(+e.min)),i=!(e.autoMinMax||"max"!==e.minMax&&"minMax"!==e.minMax||null===e.max||Number.isNaN(+e.max))),o=Number.MAX_VALUE,a=-Number.MAX_VALUE,r=0;r<s;r++)if(o=Math.min(o,t[r].qMin),a=Math.max(a,t[r].qMax),o<=0&&a>=0)return!0;return o=n?e.min:o,a=i?e.max:a,o<=0&&a>=0}(e.measureAxis,e.qHyperCube.qMeasureInfo)},applyAttributes:function(e,t){var r=e||{},n={};return r.supportNegative=void 0===r.supportNegative||r.supportNegative,r.supportRangeOverZero=void 0===r.supportRangeOverZero||r.supportRangeOverZero,wt.DISCLAIMERS.forEach((function(e){n[e.label]=!1})),t&&t.qHyperCube?(n.NoDataExist=this.getNoDataExistAttribute(t.qHyperCube),n.NoDataExist?n:(n.RequireNumericDimension=r.explicitRequireNumericDimension,n.RequireNumericDimension||(n.LimitedData=this.getLimitedDataAttribute(t.qHyperCube,r),n.NegativeOrZeroValues=this.getNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNegativeOrZeroValues=this.getOnlyNegativeOrZeroValuesAttribute(t.qHyperCube,r),n.OnlyNanData=this.getOnlyNanDataAttribute(t.qHyperCube,r),n.DataRangeIncludingZero=this.getDataRangeIncludingZeroAttribute(t,r)),n)):n}};function jt(e,t,r){this.disclaimersConfig=e,this.dataAttributes=t,this.supportedDisclaimers=r}function Ct(e,t){return e&&t&&t[e]}function kt(e){this.environment=e,this.clear()}jt.prototype.isValidAndSupported=function(e,t){return Ct(e.label,this.dataAttributes)&&(e.default||Ct(e.label,this.supportedDisclaimers))&&void 0!==t&&e.alignment===t},jt.prototype.isAnyValidDisclaimer=function(e){var t=!1,r=this;return this.disclaimersConfig.forEach((function(n){r.isValidAndSupported(n,e)&&(t=!0)})),t},jt.prototype.getMessage=function(e,t){var r="",n=this;return t&&this.disclaimersConfig.forEach((function(i){n.isValidAndSupported(i,e)&&(r+="".concat(t.get("Object.Disclaimer.".concat(i.label))," "))})),r},kt.ERRORS={SET:"Calling Disclaimer.set() without attributes",DISPLAY:"Calling Disclaimer.display() before attributes are applied"},kt._applyDefaultSupport=function(e,t){var r=e;return r||(r={}),t.forEach((function(e){void 0===r[e.label]&&(r[e.label]=e.default)})),r},kt.prototype.getComponentSettings=function(){var e,t,r,n,i=this.environment.translator,o=q(!0,{},this.vizAttributes.supportedDisclaimers),a=new jt(wt.DISCLAIMERS,this.dataAttributes,o);if(a.isAnyValidDisclaimer(wt.ALIGNMENT.CENTER))r=a.getMessage(wt.ALIGNMENT.CENTER,i),n="center";else{if(!a.isAnyValidDisclaimer(wt.ALIGNMENT.BOTTOM))return;r=a.getMessage(wt.ALIGNMENT.BOTTOM,i),n="bottom"}return{key:"disclaimer",type:"disclaimer",layout:{displayOrder:1e3,dock:n},settings:{label:r,rtl:"rtl"===(null===(e=this.environment)||void 0===e||null===(t=e.options)||void 0===t?void 0:t.direction)}}},kt.prototype.set=function(e){if(this.clear(),!e)throw new Error(kt.ERRORS.SET);this.vizAttributes=e,this.dataAttributes=At.applyAttributes(this.vizAttributes.options,this.vizAttributes.data)},kt.prototype.clear=function(){this.vizAttributes=null,this.dataAttributes=null};var It=Xe.extend({init:function(e,t,r,n,i){this.$element=t,this.environment=r,this.backendApi=n,this._selectionsApi=i,this._on=!1,this._disclaimer=new kt(r),this._dataPaths=["qHyperCube"];var o=this;this.picassoElement=t[0],this.picassoElement.className+=" picasso-chart",this.chartInstance=e.chart({element:this.picassoElement,settings:{components:[St.createComponent("event-area",{mounted:function(e){o.dataAreaElem=e}})]}})},updateEnvironment:function(e){this.environment=e},isRtl:function(){var e;return"rtl"===(null===(e=this.environment.options)||void 0===e?void 0:e.direction)},setDataPaths:function(e){this._dataPaths=e},getData:function(e,t,r){return function(e,t,r){var n,i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};if(r){var o=r.width||t.qSize.qcx,a=Math.floor(1e4/o);i={qTop:r.top||0,qLeft:r.left||0,qWidth:o,qHeight:r.height?Math.min(r.height,a):a}}else i={qTop:0,qLeft:0,qWidth:t.qSize.qcx,qHeight:1e4/t.qSize.qcx};switch(t.qMode){case"K":n="qStackedDataPages";break;case"S":default:n="qDataPages"}return e.getData([i],null,t).then((function(e){t[n]=e}))}(e,t,r)},hasValidData:function(){return!0},paint:function(){if(this.hasValidData()){var e;this._disclaimer.set(this.getDisclaimerAttributes(this.layout));var t=this._disclaimer.getComponentSettings(),r="center"===(null==t||null===(e=t.layout)||void 0===e?void 0:e.dock),n=this.createChartSettings(this.layout);r?n.components=[t]:t&&n.components.push(t),St.validateComponentKeys(n.components).forEach((function(e){console.error(e)})),this.updateChart(this.layout,n),this._painted=!0}return Promise.resolve()},resize:function(){if(this.layout)return this.paint()},createChartSettings:function(){throw new Error('Subclass must implement "createChartSettings" function')},addSnapshotChartSettings:function(e,t){!this.environment.options.freeResize&&t.snapshotData&&(e.dockLayout.logicalSize={width:t.snapshotData.content.size.w,height:t.snapshotData.content.size.h,preserveAspectRatio:!0})},updateData:function(e){return this._destroyed?Promise.reject():(this.layout=q(!0,{},e),this.layout.permissions=e.permissions,Promise.resolve())},updateChart:function(e,t,r){var n,i,o=null!==(n=null===(i=this.environment.appLayout)||void 0===i?void 0:i.qLocaleInfo)&&void 0!==n?n:{},a=this._dataPaths.map((function(t){return{type:"q",key:t,config:{localeInfo:o},data:ye(e,t.replace(/\//g,"."))}}));this.colorService&&a.push.apply(a,C(this.colorService.getData())),this.chartInstance.update({data:a,settings:t,partialData:r});this.picassoElement.setAttribute("data-state",2)},destroy:function(){this._destroyed=!0,this.off(),this.chartInstance.destroy()},getViewState:function(){return{}},isLassoDisabled:function(){return!0},setSnapshotData:function(e){e.snapshotData||(e.snapshotData={}),e.snapshotData.content={chartData:{},size:{w:this.$element.width(),h:this.$element.height()}}},getDisclaimerAttributes:function(e){return{data:e}}}),Ot={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Nt=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Lt=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Tt=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Rt=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Pt=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Ft=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,_t=Math.floor,Vt=Math.round,Ht=Xe.extend({init:function(){var e,t,r,n,i,o,a,s,l,u,c,p,d=0,f=0,m=0,h=1;if(this._invalid=!1,arguments[0]instanceof Ht)d=arguments[0]._r,f=arguments[0]._g,m=arguments[0]._b,h=arguments[0]._a,this._invalid=arguments[0]._invalid;else if(arguments.length<3)if("string"==typeof arguments[0])if(c=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p=arguments[0]))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10);else if(c=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))d=parseInt(c[1],10),f=parseInt(c[2],10),m=parseInt(c[3],10),h=parseFloat(c[4]);else if(c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(p))d=parseInt(c[1],16),f=parseInt(c[2],16),m=parseInt(c[3],16),h=1;else if(c=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(p))d=parseInt(c[1]+c[1],16),f=parseInt(c[2]+c[2],16),m=parseInt(c[3]+c[3],16),h=1;else if(c=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m),h=1}else if(c=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),n=parseFloat(c[5]),h=parseFloat(c[7]),t=(t/=100)<0?0:t>1?1:t,a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(n=(n/=100)<0?0:n>1?1:n)<=.5?2*n*t:(2-2*n)*t)*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=n-.5*o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m)}else if(c=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(e=parseFloat(c[1]),t=parseFloat(c[3]),i=parseFloat(c[5]),a=(e=(e%=360)<0?0:e>360?360:e)/60,s=(o=(i=(i/=100)<0?0:i>1?1:i)*(t=(t/=100)<0?0:t>1?1:t))*(1-Math.abs(a%2-1)),l=[],a=Math.floor(a)){case 0:l=[o,s,0];break;case 1:l=[s,o,0];break;case 2:l=[0,o,s];break;case 3:l=[0,s,o];break;case 4:l=[s,0,o];break;case 5:l=[o,0,s];break;default:l=[0,0,0]}u=i-o,d=l[0]+u,f=l[1]+u,m=l[2]+u,d=Vt(255*d),f=Vt(255*f),m=Vt(255*m),h=1}else Ot[p.toLowerCase()]?(r=p.toLowerCase(),d=Ot[r].r,f=Ot[r].g,m=Ot[r].b,h="number"==typeof Ot[r].a?Ot[r].a:1):this._invalid=!0;else"number"==typeof arguments[0]&&arguments[0]>=0&&"argb"===arguments[1]?(h=(4278190080&arguments[0])>>>24,h/=255,d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):"number"==typeof arguments[0]&&arguments[0]>=0?(d=(16711680&arguments[0])>>16,f=(65280&arguments[0])>>8,m=255&arguments[0]):this._invalid=!0;else arguments.length>=3?(d=arguments[0],f=arguments[1],m=arguments[2],h=arguments.length>=4?arguments[3]:1):this._invalid=!0;Number.isNaN(+d+f+m+h)&&(this._invalid=!0),this._r=_t(d),this._g=_t(f),this._b=_t(m),this._a=h,this._spaces={}},isInvalid:function(){return this._invalid},setAlpha:function(e){this._a=e,this._spaces={}},getAlpha:function(){return this._a},toRGB:function(){return this._spaces.rgb||(this._spaces.rgb=Ht.toRGB(this)),this._spaces.rgb},toRGBA:function(){return this._spaces.rgba||(this._spaces.rgba=Ht.toRGBA(this)),this._spaces.rgba},toString:function(){return this._spaces.rgb||(this._spaces.rgb=Ht.toRGB(this)),this._spaces.rgb},toHex:function(){return this._spaces.hex||(this._spaces.hex=Ht.toHex(this)),this._spaces.hex},toHSL:function(e){return this._spaces.hsl||(this._spaces.hsl=Ht.toHSL(this,e)),this._spaces.hsl},toHSLA:function(e){return this._spaces.hsla||(this._spaces.hsla=Ht.toHSLA(this,e)),this._spaces.hsla},toHSV:function(){var e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")},toHSVComponents:function(){return this._spaces.hsvComp||(this._spaces.hsvComp=Ht.toHSVComponents(this)),this._spaces.hsvComp},toNumber:function(){return this._spaces.num||(this._spaces.num=Ht.toNumber(this)),this._spaces.num},isDark:function(){return this.isInvalid()||this.getLuminance()<125},getLuminance:function(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi},shiftLuminance:function(e){var t=this.toHSLA(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),n=parseFloat(r[1]),i=parseFloat(r[3]),o=parseFloat(r[5]),a=parseFloat(r[7]);return o+=e,o=Math.max(0,Math.min(o,100)),"hsla(".concat(n,",").concat(i,",").concat(o,",").concat(a,")")},isEqual:function(e){return e instanceof Ht||(e=new Ht(e)),this._r===e._r&&this._g===e._g&&this._b===e._b},blend:function(e,t){var r=_t(this._r+(e._r-this._r)*t),n=_t(this._g+(e._g-this._g)*t),i=_t(this._b+(e._b-this._b)*t),o=_t(this._a+(e._a-this._a)*t);return"rgba(".concat([r,n,i,o].join(","),")")},createShiftedColor:function(e){(void 0===e||Number.isNaN(+e))&&(e=1);var t=this.getLuminance(),r=this._g<126?1:1+this._g/512,n=this.shiftLuminance(20*(t*r<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Ht(n)}});Ht.toRGB=function(e){if(e instanceof Ht)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Ht.toNumber(e));var t=(65280&e)>>8,r=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(r,")")},Ht.toRGBA=function(e,t){if(e instanceof Ht)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Ht.toNumber(e));var r=(65280&e)>>8,n=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(r,",").concat(n,",").concat(void 0!==t?t:e._a,")")},Ht.toHex=function(e){var t,r,n;return e instanceof Ht?(t=e._r.toString(16),r=e._g.toString(16),n=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""))):("string"==typeof e&&(e=Ht.toNumber(e)),t=((16711680&e)>>16).toString(16),r=((65280&e)>>8).toString(16),n=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n))},Ht.toHSL=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Ht(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=Math.max(a,s,l),c=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(u+c)/2,u===c)r=0,o=0;else{switch(i=u-c,r=n>.5?i/(2-u-c):i/(u+c),u){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsl(".concat(360*o,",").concat(100*r,",").concat(100*n,")")},Ht.toHSLA=function(e,t){var r,n,i,o=0;"string"==typeof e&&(e=new Ht(e));var a=e._r/255,s=e._g/255,l=e._b/255,u=e._a,c=Math.max(a,s,l),p=Math.min(a,s,l);if(n=t?.21*a+.72*s+.07*l:(c+p)/2,c===p)r=0,o=0;else{switch(i=c-p,r=n>.5?i/(2-c-p):i/(c+p),c){case a:o=(s-l)/i+(s<l?6:0);break;case s:o=(l-a)/i+2;break;case l:o=(a-s)/i+4}o/=6}return"hsla(".concat(360*o,",").concat(100*r,",").concat(100*n,",").concat(u,")")},Ht.toHSVComponents=function(e){var t,r,n=0;"string"==typeof e&&(e=new Ht(e));var i=e._r/255,o=e._g/255,a=e._b/255,s=Math.max(i,o,a),l=Math.min(i,o,a),u=s;if(s===l)t=0,n=0;else{switch(t=0===(r=s-l)?0:r/u,s){case i:n=(o-a)/r+(o<a?6:0);break;case o:n=(a-i)/r+2;break;case a:n=(i-o)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*u}},Ht.toNumber=function(){if(1===arguments.length&&arguments[0]instanceof Ht)return(arguments[0]._r<<16)+(arguments[0]._g<<8)+arguments[0]._b;var e,t,r=0,n=0,i=0;return 1===arguments.length&&"string"==typeof arguments[0]&&((e=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(t=arguments[0]))?(r=parseInt(e[1],10),n=parseInt(e[2],10),i=parseInt(e[3],10)):(e=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(t))?(r=parseInt(e[1],16),n=parseInt(e[2],16),i=parseInt(e[3],16)):(e=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(t))&&(r=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),i=parseInt(e[3]+e[3],16))),(r<<16)+(n<<8)+i},Ht.blend=function(e,t,r){var n=(16711680&(e=Ht.toNumber(e)))>>16,i=(65280&e)>>8,o=255&e;return(n+(((16711680&(t=Ht.toNumber(t)))>>16)-n)*r<<16)+(i+(((65280&t)>>8)-i)*r<<8)+(o+((255&t)-o)*r)},Ht.getBlend=function(e,t,r){var n=e._r+(t._r-e._r)*r,i=e._g+(t._g-e._g)*r,o=e._b+(t._b-e._b)*r,a=e._a+(t._a-e._a)*r;return new Ht(n,i,o,a)},Ht.isCSSColor=function(e){return!(arguments.length>1||"string"!=typeof e)&&(Nt.test(e)||Lt.test(e)||Tt.test(e)||Rt.test(e)||Pt.test(e)||Ft.test(e)||Ot[e.toLowerCase()])},Ht.getBestContrast=function(e,t,r){var n=e.getLuminance();return Math.abs(n-t.getLuminance())>Math.abs(n-r.getLuminance())?t:r},Ht.getContrast=function(e,t){if(e&&t){var r=e.getLuminance()/100,n=t.getLuminance()/100;return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}},Ht.isDark=function(){var e={getLuminance:Ht.prototype.getLuminance,isInvalid:Ht.prototype.isInvalid};return Ht.prototype.init.apply(e,[].slice.call(arguments)),Ht.prototype.isDark.call(e)},Ht.useDarkLabel=function(e,t){return e._a>.5?!e.isDark():!t};var zt={TRANSPARENT_BLACK:"rgba( 0,0,0,0.2 )",TRANSPARENT_WHITE:"rgba( 255,255,255,0.7 )",LIGHT_GREY:"#ccc",DARK_GREY:"#666",BLACK:"#000",WHITE:"#fff",getInverse:function(e){var t=new Ht(e);return 0===t.getAlpha()?this.BLACK:t.isDark()?this.WHITE:this.BLACK},getContrastingGrey:function(e){var t=new Ht(e);return 0===t.getAlpha()?this.DARK_GREY:Ht.getBestContrast(t,new Ht(zt.LIGHT_GREY),new Ht(zt.DARK_GREY))},getBestContrast:function(e,t,r){return Ht.getBestContrast(new Ht(e),new Ht(t),new Ht(r))},getContrastingTransparent:function(e){var t=new Ht(e);return 0===t.getAlpha()||"none"===e?this.TRANSPARENT_BLACK:t.isDark()?this.TRANSPARENT_WHITE:this.TRANSPARENT_BLACK}},Bt=".scrollHandler";function Ut(e,t,r,n,i){if(!e||!t||!r)throw Error("Scroll-handler: Missing input");this._chartInstance=e,this._$chartElement=t,this._getSlicedDataFn=r,this._on=!1,this._itemSize=30,this.options={direction:"vertical"},this._onScrollCallback=n,this._legendKey=i}function Wt(){var e=("horizontal"===this.options.direction?this._$chartElement.width():this._$chartElement.height())||0,t=Math.floor(e/this.getItemSize());this._scrollViewSizeInItem=Math.max(t,1)}function Kt(e){var t,r,n,i,o=(t=e.originalEvent,r=0,n=0,i=0,t.wheelDelta&&(r=t.wheelDelta/60),t.detail&&(r=-t.detail/3),i=r,void 0!==t.axis&&t.axis===t.HORIZONTAL_AXIS&&(i=0,n=-1*r),void 0!==t.wheelDeltaY&&(i=t.wheelDeltaY/60),void 0!==t.wheelDeltaX&&(n=-1*t.wheelDeltaX/60),{delta:r,deltaX:n,deltaY:i,x:t.pageX,y:t.pageY});if(!function(e,t,r,n){return!(!n||!r.componentsFromPoint(t).some((function(e){return e.settings.key===n}))||(r.component(n).emit(t.delta>0?"prev":"next"),e.preventDefault(),0))}(e,o,this._chartInstance,this._legendKey)&&!this._disabled&&this.getScrollApi()&&(e.preventDefault(),o.delta)){var a=o.delta<0?3:-3;this._scrollApi.move(a)}}function Gt(){if(this._disabled||this._sizeChanged)this._sizeChanged=!1;else{var e=this;this.getViewData().then((function(t){e._on&&!e._disabled&&e._onScrollCallback&&e._onScrollCallback(t,void 0,!0)})).catch((function(e){}))}}Ut.prototype.getScrollApi=function(){this._scrollApi||(this._scrollApi=this._chartInstance.scroll("dimension"));return this._scrollApi},Ut.prototype.setDisabled=function(e){this._disabled=e},Ut.prototype.getDisabled=function(){return this._disabled},Ut.prototype.setItemSize=function(e){this._itemSize!==e&&(this._itemSize=e,Wt.call(this))},Ut.prototype.getItemSize=function(){return this._itemSize},Ut.prototype.getScrollViewSizeInItem=function(){this._scrollViewSizeInItem||Wt.call(this);return this._scrollViewSizeInItem},Ut.prototype.on=function(){if(this._on)return;this.getScrollApi()&&(this._scrollApi.removeAllListeners(),this._scrollApi.on("update",Gt.bind(this)));this._$chartElement.on("mousewheel".concat(Bt," DOMMouseScroll").concat(Bt),Kt.bind(this)),this._$chartElement.on("touchstart".concat(Bt),(function(e){e.preventDefault()})),this._on=!0},Ut.prototype.isOn=function(){return this._on},Ut.prototype.off=function(){if(!this._on)return;this.getScrollApi()&&this._scrollApi.removeAllListeners();this._$chartElement.off(Bt),this._on=!1},Ut.prototype.updateViewState=function(e){Wt.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem,max:e})},Ut.prototype.onResize=function(){this._sizeChanged=!0,Wt.call(this),this.getScrollApi()&&this._scrollApi.update({viewSize:this._scrollViewSizeInItem})},Ut.prototype.isDataSizeChanged=function(e,t){return Math.min(this.getScrollViewSizeInItem(),t)!==e},Ut.prototype.resetScroll=function(){this.getScrollApi()&&this._scrollApi.moveTo(0)},Ut.prototype.getViewData=function(){var e=0,t=0;if(this.getScrollApi()){var r=this._scrollApi.getState();e=Math.round(r.start),t=r.viewSize}return this._getSlicedDataFn(e,t)},Ut.prototype.setOptions=function(e){this.options.direction!==e.direction&&(this._scrollViewSizeInItem=void 0);this.options=e},Ut.prototype.getScrollState=function(){return this.getScrollApi().getState().start},Ut.prototype.setScrollState=function(e){this.getScrollApi().moveTo(e)};var $t={isOnComponentForRange:function(e,t,r){return!!e&&!!r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return-1!==t.indexOf(e.settings.key)}))[0]},isOnComponentForLasso:function(e,t,r){return e&&r.chart.componentsFromPoint({x:e.center.x,y:e.center.y}).filter((function(e){return e.settings.key===t.keys.componentKey}))[0]},isOnComponentForNavBtn:function(e,t,r){return r.chart.componentsFromPoint(e.center).some((function(e){return e.settings.key===t}))}};var Yt={callLassoGesture:function(e,t,r){return{type:"Pan",options:{direction:x.DIRECTION_ALL,threshold:1,enable:function(n,i){if(e.lassoing)return t.isSelectionEnabled();var o,a=$t.isOnComponentForLasso(i,r,this);return t.isSelectionEnabled()&&i&&((o=r.handlers).selectionHandler.lassoState()&&!o.selectionHandler.allFieldsLocked()||e.lassoing)&&a},event:"lasso"},recognizeWith:r.handlers.scrollHandler?"drag":null,events:{lassostart:function(n){$t.isOnComponentForLasso(n,r,this)&&(t.switchTo("lasso",this.chart,n),e.lassoing=!0,r.handlers.selectionHandler.pauseEngineCalls(r.keys.lassoBrushKey),n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoStart",n))},lassomove:function(r){e.lassoing&&(r.clientX=r.pointers[0].clientX,r.clientY=r.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoMove",r))},lassoend:function(n){e.lassoing&&(n.clientX=n.pointers[0].clientX,n.clientY=n.pointers[0].clientY,t.doEmit(this.chart,"lasso","lassoEnd",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!0),e.lassoing=!1)},lassocancel:function(n){e.lassoing=!1,t.doEmit(this.chart,"lasso","lassoCancel",n),r.handlers.selectionHandler.resumeEngineCalls(r.keys.lassoBrushKey,!1)}}}}};var Jt={callMeasureRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_HORIZONTAL:x.DIRECTION_VERTICAL,event:"measurerange",enable:function(i,o){if(!r.rangeSelStatus.isOpenMea)return!1;if(e.measureSelecting)return t.isSelectionEnabled();var a="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.measureSelecting=t.isSelectionEnabled()&&!!o&&!!s,e.measureSelecting&&!!r.keys.measureRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{measurerangestart:function(i){var o="measurerange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.measureSelecting=!0,t.switchTo("measurerange",this.chart,i),t.doEmit(this.chart,"rangeMeasure","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.measureRangeBrushKey))},measurerangemove:function(r){e.measureSelecting&&t.doEmit(this.chart,"rangeMeasure","rangeMove",r)},measurerangeend:function(n){e.measureSelecting&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!0),t.doEmit(this.chart,"rangeMeasure","rangeEnd",n),e.measureSelecting=!1)},measurerangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.measureRangeBrushKey,!1),e.measureSelecting=!1}}}}};function Xt(e,t){return"x-axis"===e?"horizontal"===t?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL:"horizontal"===t?x.DIRECTION_HORIZONTAL:x.DIRECTION_VERTICAL}var Qt={callAreaRangeGesture:function(e,t,r,n){var i=r.keys.dimRangeBrushKey?"majorrange":"measurerange";return{type:"Pan",options:{direction:Xt(n,r.isHorizontal),event:"arearange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.minoring)return t.isSelectionEnabled();var a="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.minoring=t.isSelectionEnabled()&&!!o&&!!s,e.minoring}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{arearangestart:function(i){var o="arearange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.minoring=!0,t.switchTo("arearange",this.chart,i),t.doEmit(this.chart,"rangeMinor","areaStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.areaBrushKey))},arearangemove:function(n){e.minoring&&(this.chart.brush(r.keys.areaBrushKey).clear(),t.doEmit(this.chart,"rangeMinor","areaMove",n))},arearangeend:function(n){e.minoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!0),t.doEmit(this.chart,"rangeMinor","areaEnd",n),e.minoring=!1)},arearangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.areaBrushKey,!1),e.minoring=!1}}}}};var Zt={callDimensionRangeGesture:function(e,t,r,n){var i=r.keys.measureRangeBrushKey?"measurerange":"arearange";return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL,event:"majorrange",enable:function(i,o){if(!r.rangeSelStatus.isOpenDim)return!1;if(e.majoring)return t.isSelectionEnabled();var a="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n],s=$t.isOnComponentForRange(o,a,this);return e.majoring=t.isSelectionEnabled()&&!!o&&!!s,e.majoring&&!!r.keys.dimRangeBrushKey}},requireFailure:"lasso ".concat(i),recognizeWith:r.handlers.scrollHandler?"drag":null,events:{majorrangestart:function(i){var o="majorrange"===r.active.gesture?[n,r.keys.componentKey]:[n];$t.isOnComponentForRange(i,o,this)&&(e.majoring=!0,t.switchTo("majorrange",this.chart,i),t.doEmit(this.chart,"rangeDim","rangeStart",i),r.handlers.selectionHandler.pauseEngineCalls(r.keys.dimRangeBrushKey))},majorrangemove:function(r){e.majoring&&t.doEmit(this.chart,"rangeDim","rangeMove",r)},majorrangeend:function(n){e.majoring&&(r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!0),t.doEmit(this.chart,"rangeDim","rangeEnd",n),e.majoring=!1)},majorrangecancel:function(){r.handlers.selectionHandler.resumeEngineCalls(r.keys.dimRangeBrushKey,!1),e.majoring=!1}}}}};var er={callDragGesture:function(e,t,r,n,i){var o={};return{type:"Pan",options:{direction:r.isHorizontal?x.DIRECTION_VERTICAL:x.DIRECTION_HORIZONTAL,event:"drag",enable:function(n,i){return e.dragging?t.isNavigationEnabled():(e.dragging=t.isNavigationEnabled()&&!!i&&!!this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((function(e){return e.settings.key===r.keys.componentKey}))[0],e.dragging)}},requireFailure:n?"lasso ".concat(t.getBrushConfig()):"",events:{dragstart:function(e){o={x:e.deltaX,y:e.deltaY};var t=-(r.isHorizontal?e.deltaY:e.deltaX)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(t=-t),r.handlers.scrollHandler.getScrollApi().move(t)},dragmove:function(t){if(e.dragging){var n=-(r.isHorizontal?t.deltaY-o.y:t.deltaX-o.x)/r.handlers.scrollHandler.getItemSize();!r.isHorizontal&&i&&(n=-n),r.handlers.scrollHandler.getScrollApi().move(n),o={x:t.deltaX,y:t.deltaY}}},dragend:function(){e.dragging&&(e.dragging=!1)},dragcancel:function(){e.dragging=!1}}}}};var tr={callNavBtnGesture:function(e,t){return{type:"Tap",options:{event:"navBtnTap",enable:function(r,n){return!(!n||!e())&&$t.isOnComponentForNavBtn(n,t,this)}},events:{navBtnTap:function(e){this.chart.componentsFromPoint(e.center).forEach((function(t){var r=e.target,n=r?r.getAttribute("data-action"):"";if(n)return t.emit(n)}))}}}}};var rr={create:function(e,t,r,n,i){var o={};t=t||"vertical";var a=n.lassoBrushKey||"select",s=n.dimRangeBrushKey||null,l=n.measureRangeBrushKey||null,u=n.areaBrushKey||null,c=n.legendBrushKey||null,p=!!e.selectionHandler&&e.selectionHandler.isOn(),d={dragging:!1,lassoing:!1,majoring:!1,minoring:!1,measureSelecting:!1},f={gesture:"",type:""},m="horizontal"===t,h=m?"y-axis":"x-axis",g=m?"x-axis":"y-axis";function b(e,t,r){if(f.gesture!==e){var n=a,i=t||f.chart;switch(f.gesture){case"majorrange":y(i,"rangeDim","rangeClear",r),n=s;break;case"measurerange":y(i,"rangeMeasure","rangeClear",r),n=l;break;case"arearange":y(i,"rangeMinor","areaClear",r),n=u}f.gesture=e;var o="range"===e?"range":"item";f.type&&f.type!==o&&i.brush(n).clear(),f.chart=t,f.type=o}}function y(e,t,r,n){if(e){var i=e.component(t);i&&i.emit(r,n)}}var v=[],x={isSelectionEnabled:function(){return e.selectionHandler&&e.selectionHandler.isOn()},isNavigationEnabled:function(){return e.scrollHandler&&e.scrollHandler.isOn()},doEmit:y,switchTo:b,getBrushConfig:function(){return s?l?"majorrange measurerange":"majorrange arearange":"measurerange arearange"}},q={handlers:e,keys:n,isHorizontal:m,active:f,rangeSelStatus:i};function D(){b("none"),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}return p&&((v=[{type:"Tap",options:{event:"rangeClearTap"},events:{rangeClearTap:function(e){b("none",this.chart,e),d.majoring=!1,d.measureSelecting=!1,d.minoring=!1}}}]).unshift(tr.callNavBtnGesture(x.isNavigationEnabled,c)),v.push(Yt.callLassoGesture(d,x,q)),s?l?(v.push(Zt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Jt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"})):(v.push(Zt.callDimensionRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(s,{id:"rangeDim",clear:"rangeClear"}),v.push(Qt.callAreaRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"})):(v.push(Jt.callMeasureRangeGesture(d,x,q,g)),e.selectionHandler.addComponent(l,{id:"rangeMeasure",clear:"rangeClear"}),v.push(Qt.callAreaRangeGesture(d,x,q,h)),e.selectionHandler.addComponent(u,{id:"rangeMinor",clear:"areaClear"}))),e.scrollHandler&&(v.push(er.callDragGesture(d,x,q,p,r)),e.scrollHandler.getScrollApi().on("update",D)),o.gestures=v,o.destroy=function(){e.scrollHandler&&e.scrollHandler.getScrollApi().removeListener("update",D)},o}};function nr(e,t,r,n,i){var o=!1;n=n||"tooltip",r=r||["self"];var a=e.brush(n),s={};function l(){o&&e.component(i).emit("hide");o=!1}return s.isOpen=function(){return o},s.closeTooltip=l,s.update=function(){var s=a.brushes(),u=e.getAffectedShapes(n,"and",r,t);s.length>=1?(o=!0,function(t){o=!0;var r={nodes:t};e.component(i).emit("show",{},r)}(u)):l()},s.toggleInterceptor=function(e){if(r.length>1){var t={},n=[];return e.forEach((function(e){t[e.key]||(t[e.key]={}),t[e.key][e.value]||(t[e.key][e.value]=!0,n.push(e))})),n}return e},s}var ir=function(){return nr.apply(void 0,arguments)},or={formatMeasureValue:function(e,t){if(e.raw().isCustomFormatted)return e.formatter()(t.value.qText);var r=void 0!==t.value.qNum?t.value.qNum:t.value.qValue;return e.formatter()(r)}};var ar=function(e){return function(t){var r=t.h,n=t.data,i=t.style,o=function(e,t){for(var r=e.chartInstance.dataset(e.dataPath),n=[],i=t.length-5,o=Math.min(5,t.length),a=function(i){var o=t[i],a={rows:[]};if(e.labelData){for(var s=[],l=e.labelData,u=!1,c=0;c<l.length;c++){var p=o.data[l[c]].value;if(-2===p.qElemNo||-2===p.qElemNumber){u=!0;break}s.push(o.data[l[c]].value.qText)}if(u)return{v:void 0};a.header=e.headerResolver(s),a.rows=e.measureRows.map((function(t){var n=o.data;return e.rowResolver(r.field(n[t].source.field),n[t],n)})).filter((function(e){return!!e}));var d=function(e,t){var r,n,i,o=t.data.color,a=null===(r=e.colorService)||void 0===r||null===(n=r.getSettings)||void 0===n?void 0:n.call(r);if(!a||"color"===a.type||!o||!a.fieldType)return;var s=[];e.data.forEach((function(e){var r=t.data[e];r&&s.push(r.value)}));var l=function(e){for(var t=-1,r=0;r<e.length;r++)-3===e[r]&&(t=r);return t}(s),u=e.translator,c=a.label,p=null===(i=t.attrs)||void 0===i?void 0:i.fill,d=-1!==l?u.get("properties.dimensionLimits.others"):o.label;return{color:p,label:c,value:d}}(e,o);d&&a.rows.unshift(d),n.push(a)}},s=0;s<o;s++){var l=a(s);if("object"===S(l))return l.v}i>0&&(n.numberInExcess=i);return n.rowCount=n[0]?n.length*n[0].rows.length:0,n}(e,n),a={h:r,style:i,rtl:"rtl"===e.direction,translator:e.translator};return e.renderer(a,o)}};var sr="#".concat("dist-flow-tooltip");function lr(){if(!document.querySelector(sr)){var e=document.createElement("div");e.id="dist-flow-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function ur(e){var t=e.key,r=void 0===t?"tooltip":t,n=e.rtl,i=e.fontFamily,o=e.filter;return{show:!0,key:r,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){lr()},beforeUpdate:function(){lr()},destroyed:function(){var e;(e=document.querySelector(sr))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(sr)},content:e.content,filter:o,extract:function(e){return e.node},direction:n?"rtl":"ltr",placement:"bounds"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:i,"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}var cr=lt.detectTextDirection;var pr={tooltipKey:"tooltip",data:[""],contexts:["tooltip"],headerResolver:function(e){return e.join(", ")},rowResolver:function(e,t){return{value:or.formatMeasureValue(e,t),label:e.title()}},direction:"ltr",renderer:function(e,t){var r=e.h,n=e.style,i=e.translator,o=e.rtl,a=[],s=o?"right":"left";if(t.forEach((function(e){if(e.header){var t=M(M({},n.cell),{},{textAlign:s,fontWeight:"bold",direction:cr(e.header)});a.push(r("tr",null,r("td",{style:t,colSpan:2},e.header)))}e.rows.forEach((function(e){var t=e.value;if(e.color){var i={display:"inline-block",width:10,height:10,"background-color":e.color,margin:"0 8px"},l=r("div",{style:i});t=o?[e.value,l]:[l,e.value]}var u=o?[":",e.label]:[e.label,":"],c=M(M({},n.cell),{},{textAlign:s,direction:cr(e.label)}),p=M(M({},n.cell),{},{textAlign:o?"left":"right",direction:cr(e.value)});a.push(r("tr",null,r("td",{style:c},u),r("td",{style:p},t)))}))})),t.numberInExcess){var l=i.get("Object.ChartTooltip.NMore",t.numberInExcess),u=M(M({},n.cell),{},{textAlign:s,direction:cr(l)});a.push(r("tr",null,r("td",{style:u,colSpan:2},l)))}return a}};function dr(e,t,r){if(!e)throw Error("Tooltips-handler: Missing input");var n={},i=!1,o={};function a(e){e.listeners.update=function(t,r){e.action.update(t,r,e)},e.listeners.end=function(){e.action.closeTooltip()},e.brush.on(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.on("end",e.listeners.end),e.brush.intercept("set-values",e.action.toggleInterceptor)}function s(){Object.keys(n).forEach((function(e){l(n[e])}))}function l(e){e.brush.removeListener(e.treatAsDesktop?"update":"set-values",e.listeners.update),e.brush.removeListener("end",e.listeners.end),e.brush.removeInterceptor("set-values",e.action.toggleInterceptor)}function u(){Object.keys(n).forEach((function(e){n[e].action.closeTooltip()}))}function c(){for(var e in u(),n)n[e].brush.clear()}return o.setUp=function(t){var o=q(!0,{},pr,t);if(!o.componentKey)throw Error("Tooltips-handler.setUp: Missing required input");n[o.contexts[0]]&&i&&l(n[o.contexts[0]]);var s=function(e,t){return{brush:t.brush(e.contexts[0]),action:ir(t,e.componentKey,e.data,e.contexts[0],e.tooltipKey),listeners:{},chartInstance:t,dataPath:e.dataPath,renderer:e.renderer,data:e.data,headerResolver:e.headerResolver,rowResolver:e.rowResolver,colorService:e.colorService,attrDimPath:e.attrDimPath,measureRows:e.measureRows,labelData:e.labelData,filterShapes:e.filterShapes,direction:e.environment.options.direction,theme:e.environment.theme,translator:e.environment.translator,treatAsDesktop:"touch"!==e.environment.deviceType}}(o,e);n[o.contexts[0]]=s,i&&a(s);var u,c=ur({key:o.tooltipKey,rtl:"rtl"===s.direction,fontFamily:s.theme.getStyle(r,"tooltip","fontFamily"),filter:(u=s.filterShapes,function(e){return u?u(e):function(e){var t=[];return e.forEach((function(e){-1===t.indexOf(e)&&"container"!==e.type&&t.push(e)})),t}(e)}),content:ar(s,o.dataPath)});return o.chartBuilder.getSettings().components.push(c),{trigger:{on:s.treatAsDesktop?"over":"tap",action:"set",contexts:o.contexts,data:o.data,globalPropagation:"stop"},consume:o.contexts.map((function(e){return{context:e}})),component:c}},o.tearDown=function(){i&&s(),n=[]},o.closeTooltip=u,o.isOn=function(){return i},o.on=function(){i||(i=!0,Object.keys(n).forEach((function(e){a(n[e])})),t&&t.on("mouseleave",c))},o.off=function(){i&&(i=!1,s(),t&&t.off("mouseleave",c),u())},o}var fr=function(e,t,r){return dr(e,t,r)};function mr(e){return(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11}function hr(e){if(!e)return{latin:0,cjk:0};var t=e.match(/[\u4E00-\u9FFF]/g),r=e.match(/[\u3040-\u309F]/g),n=e.match(/[\u30A0-\u30FF]/g),i=(t=t?t.length:0)+(r=r?r.length:0)+(n=n?n.length:0);return{latin:e.length-i,cjk:i}}function gr(e,t){var r={latin:0,cjk:0};void 0===t?e.forEach((function(e){var t=hr(e.qText);r.latin+=t.latin,r.cjk+=t.cjk})):e.forEach((function(e){var n=hr(e[t].qText);r.latin+=n.latin,r.cjk+=n.cjk}));var n=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/n,r.cjkRatio=r.cjk/n,r}function br(e,t,r){return e*(e<=24?t:r)}var yr={endsWith:function(e,t){return-1!==e.indexOf(t,e.length-t.length)},startsWith:function(e,t){return 0===e.indexOf(t)},contains:function(e,t){if(!e)throw new Error("Haystack is undefined.");if(!t)throw new Error("Needle is undefined.");return-1!==e.indexOf(t)},stringWidthOverMWidth:mr,getCharacterRatios:hr,getTotalCharacterRatios:gr,getAdjustedMaxGlyphCount:function(e,t,r){var n=gr(t,r),i=n.latinRatio*e,o=n.cjkRatio*e;return Math.ceil(mr(i)+1.0909090909090908*o)},estimateLatinLabelWidth:br,estimateLabelWidth:function(e,t,r,n,i){return e*r+br(t,n,i)}};var vr={generateHyperCube:function(e,t){var r=e.qHyperCube.qMeasureInfo,n=e.qHyperCube.qDataPages[0].qMatrix,i=r.length;if(i){for(var o,a,s=Ke.getColorForPositiveValue(e,t),l=Ke.getColorForNegativeValue(e,t),u=Ke.getColorForSubtotal(e,t),c=function(e){return"".concat(e)},p=[],d=0,f=0,m=-Number.MAX_VALUE,h=Number.MAX_VALUE,g=-Number.MAX_VALUE,b=Number.MAX_VALUE,y=0,v=0;v<i;v++)a=Number.isNaN(+n[0][v].qNum)?0:n[0][v].qNum,r[v].valueType!==Ke.valueTypes.SUBTOTAL?(o=(d=f)<(f+=a*(r[v].valueType===Ke.valueTypes.INVERSE?-1:1))?s:l,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:o},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}]),r[v].subtotal&&r[v].subtotal.enable&&p.push([{qText:r[v].subtotal.label||"",qElemNumber:y++},{qText:u},{qNum:0},{qNum:f},{qNum:f,qText:c(f)}])):(d=0,f=a,p.push([{qText:r[v].qFallbackTitle,qElemNumber:y++},{qText:u},{qNum:d},{qNum:f},{qNum:f-d,qText:n[0][v].qText}])),m=Math.max(m,d),h=Math.min(h,d),g=Math.max(g,f),b=Math.min(b,f);var x=function(e){return e.qHyperCube.qMeasureInfo[0].qNumFormat}(e),q=e.qHyperCube.qMeasureInfo[0].qIsAutoFormat,D=e.qDef.isCustomFormatted,M={qHyperCube:{qMode:"S",qDataPages:[{qArea:{qTop:0,qLeft:0,qWidth:5,qHeight:p.length},qMatrix:p}],qDimensionInfo:[{qStateCounts:{}},{qStateCounts:{}}],qMeasureInfo:[{qMin:h,qMax:m,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D},{qMin:b,qMax:g,qNumFormat:x,qIsAutoFormat:q,isCustomFormatted:D}]}};e.generatedMatrix=p,e.generated=M}},generateSlicedHyperCube:function(e,t,r){e.generated.qHyperCube.qDataPages=[{qArea:{qTop:t,qLeft:0,qWidth:5,qHeight:r},qMatrix:e.generatedMatrix.slice(t,t+r)}]},getGeneratedDimensionPath:function(e){return"qDimensionInfo/".concat(e)},getGeneratedMeasurePath:function(e){return"qMeasureInfo/".concat(e)}};function xr(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var qr,Dr,Mr=(1===(qr=xr).length&&(Dr=qr,qr=function(e,t){return xr(Dr(e),t)}),{left:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;qr(e[i],t)<0?r=i+1:n=i}return r},right:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;qr(e[i],t)>0?n=i:r=i+1}return r}}).right,Sr=Math.sqrt(50),Er=Math.sqrt(10),wr=Math.sqrt(2);function Ar(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return i>=0?(o>=Sr?10:o>=Er?5:o>=wr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Sr?10:o>=Er?5:o>=wr?2:1)}function jr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Cr(){}function kr(e,t){var r=new Cr;if(e instanceof Cr)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var n,i=-1,o=e.length;if(null==t)for(;++i<o;)r.set(i,e[i]);else for(;++i<o;)r.set(t(n=e[i],i,e),n)}else if(e)for(var a in e)r.set(a,e[a]);return r}function Ir(){}Cr.prototype=kr.prototype={constructor:Cr,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Or=kr.prototype;Ir.prototype={constructor:Ir,has:Or.has,add:function(e){return this["$"+(e+="")]=e,this},remove:Or.remove,clear:Or.clear,values:Or.keys,size:Or.size,empty:Or.empty,each:Or.each};var Nr=Array.prototype,Lr=Nr.map,Tr=Nr.slice;function Rr(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Pr(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Fr(){}var _r=1/.7,Vr="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Br=/^#([0-9a-f]{3,8})$/,Ur=new RegExp("^rgb\\("+[Vr,Vr,Vr]+"\\)$"),Wr=new RegExp("^rgb\\("+[zr,zr,zr]+"\\)$"),Kr=new RegExp("^rgba\\("+[Vr,Vr,Vr,Hr]+"\\)$"),Gr=new RegExp("^rgba\\("+[zr,zr,zr,Hr]+"\\)$"),$r=new RegExp("^hsl\\("+[Hr,zr,zr]+"\\)$"),Yr=new RegExp("^hsla\\("+[Hr,zr,zr,Hr]+"\\)$"),Jr={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 Xr(){return this.rgb().formatHex()}function Qr(){return this.rgb().formatRgb()}function Zr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Br.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?en(t):3===r?new on(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?tn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?tn(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=Ur.exec(e))?new on(t[1],t[2],t[3],1):(t=Wr.exec(e))?new on(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Kr.exec(e))?tn(t[1],t[2],t[3],t[4]):(t=Gr.exec(e))?tn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$r.exec(e))?un(t[1],t[2]/100,t[3]/100,1):(t=Yr.exec(e))?un(t[1],t[2]/100,t[3]/100,t[4]):Jr.hasOwnProperty(e)?en(Jr[e]):"transparent"===e?new on(NaN,NaN,NaN,0):null}function en(e){return new on(e>>16&255,e>>8&255,255&e,1)}function tn(e,t,r,n){return n<=0&&(e=t=r=NaN),new on(e,t,r,n)}function rn(e){return e instanceof Fr||(e=Zr(e)),e?new on((e=e.rgb()).r,e.g,e.b,e.opacity):new on}function nn(e,t,r,n){return 1===arguments.length?rn(e):new on(e,t,r,null==n?1:n)}function on(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function an(){return"#"+ln(this.r)+ln(this.g)+ln(this.b)}function sn(){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+")")}function ln(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function un(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pn(e,t,r,n)}function cn(e){if(e instanceof pn)return new pn(e.h,e.s,e.l,e.opacity);if(e instanceof Fr||(e=Zr(e)),!e)return new pn;if(e instanceof pn)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new pn(a,s,l,e.opacity)}function pn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function dn(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function fn(e){return function(){return e}}function mn(e){return 1==(e=+e)?hn:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):fn(isNaN(t)?r:t)}}function hn(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):fn(isNaN(e)?t:e)}Rr(Fr,Zr,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Xr,formatHex:Xr,formatHsl:function(){return cn(this).formatHsl()},formatRgb:Qr,toString:Qr}),Rr(on,nn,Pr(Fr,{brighter:function(e){return e=null==e?_r:Math.pow(_r,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new on(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:an,formatHex:an,formatRgb:sn,toString:sn})),Rr(pn,(function(e,t,r,n){return 1===arguments.length?cn(e):new pn(e,t,r,null==n?1:n)}),Pr(Fr,{brighter:function(e){return e=null==e?_r:Math.pow(_r,e),new pn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new pn(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new on(dn(e>=240?e-240:e+120,i,n),dn(e,i,n),dn(e<120?e+240:e-120,i,n),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},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var gn=function e(t){var r=mn(t);function n(e,t){var n=r((e=nn(e)).r,(t=nn(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=hn(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function bn(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function yn(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=En(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function vn(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function qn(e,t){var r,n={},i={};for(r in null!==e&&"object"===S(e)||(e={}),null!==t&&"object"===S(t)||(t={}),t)r in e?n[r]=En(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var Dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mn=new RegExp(Dn.source,"g");function Sn(e,t){var r,n,i,o=Dn.lastIndex=Mn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(r=Dn.exec(e))&&(n=Mn.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(n=n[0])?s[a]?s[a]+=n:s[++a]=n:(s[++a]=null,l.push({i:a,x:xn(r,n)})),o=Mn.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join("")})}function En(e,t){var r,n,i=S(t);return null==t||"boolean"===i?fn(t):("number"===i?xn:"string"===i?(r=Zr(t))?(t=r,gn):Sn:t instanceof Zr?gn:t instanceof Date?vn:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?yn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qn:xn:bn))(e,t)}function wn(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function An(e){return+e}var jn=[0,1];function Cn(e){return e}function kn(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function In(e){var t,r=e[0],n=e[e.length-1];return r>n&&(t=r,r=n,n=t),function(e){return Math.max(r,Math.min(n,e))}}function On(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=kn(i,n),o=r(a,o)):(n=kn(n,i),o=r(o,a)),function(e){return o(n(e))}}function Nn(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=kn(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=Mr(e,t,1,n)-1;return o[r](i[r](t))}}function Ln(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tn(e,t){return function(){var e,t,r,n,i,o,a=jn,s=jn,l=En,u=Cn;function c(){return n=Math.min(a.length,s.length)>2?Nn:On,i=o=null,p}function p(t){return isNaN(t=+t)?r:(i||(i=n(a.map(e),s,l)))(e(u(t)))}return p.invert=function(r){return u(t((o||(o=n(s,a.map(e),xn)))(r)))},p.domain=function(e){return arguments.length?(a=Lr.call(e,An),u===Cn||(u=In(a)),c()):a.slice()},p.range=function(e){return arguments.length?(s=Tr.call(e),c()):s.slice()},p.rangeRound=function(e){return s=Tr.call(e),l=wn,c()},p.clamp=function(e){return arguments.length?(u=e?In(a):Cn,p):u!==Cn},p.interpolate=function(e){return arguments.length?(l=e,c()):l},p.unknown=function(e){return arguments.length?(r=e,p):r},function(r,n){return e=r,t=n,c()}}()(e,t)}function Rn(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Pn(e){return(e=Rn(Math.abs(e)))?e[1]:NaN}var Fn,_n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vn(e){if(!(t=_n.exec(e)))throw new Error("invalid format: "+e);var t;return new Hn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Hn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function zn(e,t){var r=Rn(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Vn.prototype=Hn.prototype,Hn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Bn={"%":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.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return zn(100*e,t)},r:zn,s:function(e,t){var r=Rn(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(Fn=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Rn(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Un(e){return e}var Wn,Kn,Gn,$n=Array.prototype.map,Yn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Jn(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Un:(t=$n.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>n));)s=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?Un:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}($n.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function p(e){var t=(e=Vn(e)).fill,r=e.align,p=e.sign,d=e.symbol,f=e.zero,m=e.width,h=e.comma,g=e.precision,b=e.trim,y=e.type;"n"===y?(h=!0,y="g"):Bn[y]||(void 0===g&&(g=12),b=!0,y="g"),(f||"0"===t&&"="===r)&&(f=!0,t="0",r="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===d?o:/[%p]/.test(y)?l:"",q=Bn[y],D=/[defgprs%]/.test(y);function M(e){var i,o,l,d=v,M=x;if("c"===y)M=q(e)+M,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:q(Math.abs(e),g),b&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==p&&(S=!1),d=(S?"("===p?p:u:"-"===p||"("===p?"":p)+d,M=("s"===y?Yn[8+Fn/3]:"")+M+(S&&"("===p?")":""),D)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){M=(46===l?a+e.slice(i+1):e.slice(i))+M,e=e.slice(0,i);break}}h&&!f&&(e=n(e,1/0));var E=d.length+e.length+M.length,w=E<m?new Array(m-E+1).join(t):"";switch(h&&f&&(e=n(w+e,w.length?m-M.length:1/0),w=""),r){case"<":e=d+e+M+w;break;case"=":e=d+w+e+M;break;case"^":e=w.slice(0,E=w.length>>1)+d+e+M+w.slice(E);break;default:e=w+d+e+M}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return e+""},M}return{format:p,formatPrefix:function(e,t){var r=p(((e=Vn(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(Pn(t)/3))),i=Math.pow(10,-n),o=Yn[8+n/3];return function(e){return r(i*e)+o}}}}function Xn(e,t,r,n){var i,o=function(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=Sr?i*=10:o>=Er?i*=5:o>=wr&&(i*=2),t<e?-i:i}(e,t,r);switch((n=Vn(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pn(t)/3)))-Pn(Math.abs(e)))}(o,a))||(n.precision=i),Gn(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pn(t)-Pn(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Pn(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Kn(n)}function Qn(e){var t=e.domain;return e.ticks=function(e){var r=t();return function(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)==(t=+t)&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=Ar(e,t,r))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return n&&o.reverse(),o}(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Xn(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(n=s,s=l,l=n,n=o,o=a,a=n),(n=Ar(s,l,r))>0?n=Ar(s=Math.floor(s/n)*n,l=Math.ceil(l/n)*n,r):n<0&&(n=Ar(s=Math.ceil(s*n)/n,l=Math.floor(l*n)/n,r)),n>0?(i[o]=Math.floor(s/n)*n,i[a]=Math.ceil(l/n)*n,t(i)):n<0&&(i[o]=Math.ceil(s*n)/n,i[a]=Math.floor(l*n)/n,t(i)),e},e}function Zn(){var e=Tn(Cn,Cn);return e.copy=function(){return Ln(e,Zn())},jr.apply(e,arguments),Qn(e)}Wn=Jn({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Kn=Wn.format,Gn=Wn.formatPrefix;var ei={getMinorTicks:function(e){for(var t=e.majorTicks,r=e.minorTickCount,n=[],i=0;i<t.length-1;i++)for(var o=t[i],a=(t[i+1]-o)/(r+1),s=1;s<=r;s++)n.push(o+a*s);return n},adjustTicks:function(e){var t=e.ticks,r=e.majorTicks,n=e.minorTicks,i=e.autoMinMax,o=e.minMax,a=e.min,s=e.max,l=n[0]-r[0],u=r[0]-a;u>l&&t.unshift({value:r[0]-l,isMinor:!0});var c=s-r[r.length-1];return c>l&&t.push({value:r[r.length-1]+l,isMinor:!0}),i||(("min"===o||"minMax"===o)&&u>0&&t.unshift({value:a,isMinor:!1}),("max"===o||"minMax"===o)&&c>0&&t.push({value:s,isMinor:!1})),t},getTicks:function(e){var t=e.layout,r=e.height,n=t.measureAxis,i=n.autoMinMax,o=n.minMax,a=n.spacing,s=Math.min.apply(Math,C(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMin})))),l=Math.max.apply(Math,C(t.generated.qHyperCube.qMeasureInfo.map((function(e){return e.qMax}))));if(!i)switch(o){case"min":s=t.measureAxis.min;break;case"max":l=t.measureAxis.max;break;case"minMax":var u=t.measureAxis;s=u.min,l=u.max}var c=100*a,p=Math.max(1,Math.round(r/c)),d=Zn().domain([s,l]).ticks(p),f=ei.getMinorTicks({majorTicks:d,minorTickCount:1}),m=[].concat(C(d.map((function(e){return{value:e,isMinor:!1}}))),C(f.map((function(e){return{value:e,isMinor:!0}})))).sort((function(e,t){return e.value-t.value}));return ei.adjustTicks({ticks:m,majorTicks:d,minorTicks:f,autoMinMax:i,minMax:o,min:s,max:l})}},ti=Ke.chartID;function ri(e){this._scrollHandler.setDisabled(!!e)}function ni(e){var t=-Number.MAX_VALUE;return e.qHyperCube.qMeasureInfo.forEach((function(e){t=Math.max(t,e.qFallbackTitle.length),e.valueType!==Ke.valueTypes.SUBTOTAL&&e.subtotal&&e.subtotal.enable&&(t=Math.max(t,e.subtotal.label?e.subtotal.label.length:0))})),Math.min(20,Math.max(0,t))}function ii(e){return{settings:{labels:{mode:e.dimensionAxis.label,maxGlyphCount:Math.ceil(yr.stringWidthOverMWidth(ni(e))),maxLengthPx:this.picassoElement.getBoundingClientRect().height/4}}}}function oi(e){var t=e.data.measure,r=e.dataset(t.source.key).field(t.source.field);return or.formatMeasureValue(r,t)}function ai(e){var t=e.getStyle(ti,"value.color","default"),r=e.getStyle(ti,"value.color","dark"),n=e.getStyle(ti,"value.color","light");return{settings:{sources:[{strategy:{settings:{direction:function(e){return e.data&&e.data.end.value>e.data.start.value?"up":"down"},labels:[{placements:[{fill:t},{fill:function(e){return function(e,t,r){return zt.getBestContrast(e,t,r)}(e.data.boxColor.value,r,n)}},{position:"opposite",fill:t,justify:0}],label:oi}]}}}]}}}function si(e,t){return{viewSize:t,max:e.generatedMatrix.length}}var li=It.extend("WaterfallChart",{namespace:".waterfallchart",chartID:ti,init:function(e){var t=e.picasso,r=e.environment,n=e.$element;this._super(t,n,r,null,null),this._tooltipHandler=fr(this.chartInstance,n,ti),this._scrollHandler=new Ut(this.chartInstance,n,this.getSlicedData.bind(this),this.updateChart.bind(this)),this._scrollHandler.setOptions({direction:"horizontal"}),this.setDataPaths(["generated/qHyperCube"])},updateConstraints:function(e){var t=!e.active,r=!e.passive;this._scrollHandler[t?"on":"off"](),this._tooltipHandler[r?"on":"off"]()},off:function(){this._scrollHandler.off(),this._tooltipHandler.off()},createChartSettings:function(e){var t=this,r=this.isRtl(),n=this.environment.theme,i=!!e.snapshotData,o=St.create({chartID:ti,theme:n,isRtl:r}),a=this.picassoElement.clientWidth,s=this.picassoElement.clientHeight,l={};l.box=this._tooltipHandler.setUp({chartBuilder:o,environment:this.environment,data:[""],contexts:["boxTip"],componentKey:"box-marker",headerResolver:function(){},rowResolver:function(e,t,r){var n=r.boxColor.value;return{value:or.formatMeasureValue(e,t),label:r.tooltip.value.qText,color:n}},labelData:["tooltip"],measureRows:["measure"]});var u={scrollHandler:this._scrollHandler,selectionHandler:null};this._dependentActions&&this._dependentActions.destroy(),this._dependentActions=rr.create(u,"vertical",r,{componentKey:"box-marker"}),o.addPreset("dimension-measure-chart",{isRtl:r,orientation:"vertical",theme:n,gridlines:e.gridlines,includeDimensionAxis:!0,dimensionAxisProperties:e.dimensionAxis,dimensionAxisSettings:ii.call(this,e),dimensionSource:vr.getGeneratedDimensionPath(0),dimensionScaleSettings:{component:{maxPxStep:function(){return s/4}}},includeMeasureAxis:!0,measureAxisProperties:e.measureAxis,measureSource:[vr.getGeneratedMeasurePath(0),vr.getGeneratedMeasurePath(1)],measureScaleSettings:{component:{expand:0,include:[0],ticks:{values:function(){return ei.getTicks({layout:e,height:s})}}}},hasNavigation:!i,isNavigationEnabledFn:function(){return t._scrollHandler.isOn()},scrollSettings:si(e,this._scrollHandler.getScrollViewSizeInItem()),refLines:e.refLine&&e.refLine.refLines,brushActions:this._dependentActions.gestures}),o.addComponent("box-marker",function(e,t){var r=e?[e.box.trigger]:[],n=e?e.box.consume:[];return{data:{extract:{key:"qHyperCube",field:vr.getGeneratedDimensionPath(0),props:{start:{field:vr.getGeneratedMeasurePath(0)},end:{field:vr.getGeneratedMeasurePath(1)},measure:{field:vr.getGeneratedMeasurePath(2),reduce:"first",value:function(e){return e}},boxColor:{field:vr.getGeneratedDimensionPath(1),value:function(e){return e.qText}},isCustomFormatted:!!t.qDef.isCustomFormatted,tooltip:{value:function(e){return e}}}}},settings:{major:{scale:"dimension"},minor:{scale:"measure"},orientation:"",box:{width:.7,maxWidthPx:4e3,fill:function(e){return e.datum.boxColor.value},strokeWidth:0}},brush:{trigger:r,consume:n}}}(l,e)),o.addComponent("point-marker",function(e,t){var r=t.getStyle(ti,"shape.bridge","stroke");return{data:{extract:{key:"qHyperCube",field:vr.getGeneratedDimensionPath(0),props:{x:{},y:{field:vr.getGeneratedMeasurePath(1)}}}},settings:{x:{scale:"dimension",ref:"x",fn:function(t){return e?t.scale(t.datum.value):t.scale(t.datum.value)+t.scale.bandwidth()}},y:{scale:"measure"},sizeLimits:{maxPx:2e4,maxRelExtent:1e4,minRelDiscrete:0,maxRelDiscrete:1},shape:"line",stroke:r,size:1-.7,strokeDasharray:"4 4",fill:"none",strokeWidth:function(e,t){return t===e.data.items.length-1?0:2}}}}(r,n)),e.legend&&!e.legend.show||o.addComponent("categorical-legend",function(e,t){var r=e.theme,n=e.translator,i=Ke.getColorForPositiveValue(t,r),o=Ke.getColorForNegativeValue(t,r),a=Ke.getColorForSubtotal(t,r);return{displayOrder:200,minimumLayoutMode:"MEDIUM",prioOrder:0,scale:{type:"categorical-color",data:[n.get("waterfall.legend.positiveValue.label"),n.get("waterfall.legend.negativeValue.label"),n.get("waterfall.legend.subtotal.label")],range:[i,o,a]},style:{title:{show:!1}}}}(this.environment,e),{dock:e.legend?e.legend.dock:"auto",isRtl:r,chartWidth:a,chartHeight:s}),e.dataPoint.showLabels&&o.addComponent("labels",ai(n));var c=o.getSettings();return this.addSnapshotChartSettings(c,e),c},updateData:function(e){var t=this.environment,r=t.theme,n=t.options,i=this;return this._super(e).then((function(){if(i._destroyed)return Promise.reject();var t,o;if(!!e.snapshotData){var a=i.layout.generated.qHyperCube.qDataPages[0].qArea;t=a.qTop,o=a.qHeight,vr.generateHyperCube(i.layout,r)}else{vr.generateHyperCube(i.layout,r),ri.call(i,!0);var s=n.viewState;s?(i._scrollHandler.updateViewState(i.layout.generatedMatrix.length),i._scrollHandler.setScrollState(s.scroll),t=s.scroll):(i._scrollHandler.resetScroll(),t=0),o=i._scrollHandler.getScrollViewSizeInItem()}vr.generateSlicedHyperCube(i.layout,t,o)}))},resize:function(){this._scrollHandler.onResize(),this._super()},paint:function(){var e=!!this.layout.snapshotData;e||this.environment.options.viewState||ri.call(this,!1),this._tooltipHandler.closeTooltip();var t=this.layout.generated.qHyperCube.qDataPages[0].qMatrix.length,r=this.layout.generatedMatrix.length;if(!e&&this._scrollHandler.isDataSizeChanged(t,r)){var n=this._super,i=this;return this._scrollHandler.getViewData().finally((function(){return n.call(i)}))}return this._super()},getSlicedData:function(e,t){return vr.generateSlicedHyperCube(this.layout,e,t),Promise.resolve(this.layout)},setSnapshotData:function(e){this._super(e),e.generated=this.layout.generated,e.generatedMatrix=this.layout.generatedMatrix},getViewState:function(){return{scroll:this._scrollHandler.getScrollState()}}});function ui(q){!function(e){if(e&&e.get&&e.add){var t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(O).forEach((function(t){e.add(O[t])}))}}(q.translator);var D=function(){var e=b();return e.renderer.prio(["canvas"]),e.use(y),e.use(v(x)),e.use(N),e.component("disclaimer",L),e}();return{qae:z(q),ext:Ye(q),component:function(){var b,y,v,x,q,M,S,E=d(),A=(b=i(),y=o(),v=a(),x=t(),q=s(),M=l(),u((function(){return{app:b,appLayout:y,deviceType:v,options:x,theme:q,translator:M}}),[b,y,x.direction,x.freeResize,M.language(),q.name(),v])),C=f(),k=r(),I=j(m(),2),O=I[0],N=I[1];h((function(){var e=g(E),t=new li({picasso:D,environment:A,$element:e});return N(t),function(){t.destroy()}}),[]),function(){var e=j(n.apply(void 0,arguments),2)[1];if(e)throw e}(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return");case 2:return O.updateEnvironment(A),O.updateConstraints(k),e.next=6,O.updateData(C);case 6:return e.next=8,O.paint();case 8:case"end":return e.stop()}}),e)}))),[C,O,A]),function(i){var o=e(),a=t(),s=r(),l=j(n(w(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}return e.abrupt("return");case 2:return i.updateConstraints(s),i.options=a,e.next=6,i.resize();case 6:case"end":return e.stop()}}),e)}))),[o.width,o.height]),2)[1];if(l)throw l}(O),S=O,c((function(e){if(S)return S.setSnapshotData(e)})),p((function(){return{getViewState:function(){if(S)return S.getViewState()}}}),[S])}}}export{ui as default};
|
|
400
975
|
//# sourceMappingURL=index.js.map
|