@nebula.js/stardust 5.7.1 → 5.8.1
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/core/esm/dev.js +156 -80
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/core/package.json +3 -3
- package/dist/stardust.dev.js +463 -104
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +33 -0
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.8.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -6105,7 +6105,7 @@
|
|
|
6105
6105
|
/* Z+1 */
|
|
6106
6106
|
);
|
|
6107
6107
|
|
|
6108
|
-
var isDevelopment$
|
|
6108
|
+
var isDevelopment$3 = false;
|
|
6109
6109
|
|
|
6110
6110
|
/*
|
|
6111
6111
|
|
|
@@ -6187,7 +6187,7 @@
|
|
|
6187
6187
|
_this.tags.push(tag);
|
|
6188
6188
|
};
|
|
6189
6189
|
|
|
6190
|
-
this.isSpeedy = options.speedy === undefined ? !isDevelopment$
|
|
6190
|
+
this.isSpeedy = options.speedy === undefined ? !isDevelopment$3 : options.speedy;
|
|
6191
6191
|
this.tags = [];
|
|
6192
6192
|
this.ctr = 0;
|
|
6193
6193
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -7666,7 +7666,7 @@
|
|
|
7666
7666
|
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
7667
7667
|
}
|
|
7668
7668
|
|
|
7669
|
-
var unitlessKeys = {
|
|
7669
|
+
var unitlessKeys$1 = {
|
|
7670
7670
|
animationIterationCount: 1,
|
|
7671
7671
|
aspectRatio: 1,
|
|
7672
7672
|
borderImageOutset: 1,
|
|
@@ -7700,6 +7700,7 @@
|
|
|
7700
7700
|
opacity: 1,
|
|
7701
7701
|
order: 1,
|
|
7702
7702
|
orphans: 1,
|
|
7703
|
+
scale: 1,
|
|
7703
7704
|
tabSize: 1,
|
|
7704
7705
|
widows: 1,
|
|
7705
7706
|
zIndex: 1,
|
|
@@ -7716,34 +7717,34 @@
|
|
|
7716
7717
|
strokeWidth: 1
|
|
7717
7718
|
};
|
|
7718
7719
|
|
|
7719
|
-
var isDevelopment$
|
|
7720
|
+
var isDevelopment$2 = false;
|
|
7720
7721
|
|
|
7721
|
-
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
7722
|
-
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
7722
|
+
var hyphenateRegex$1 = /[A-Z]|^ms/g;
|
|
7723
|
+
var animationRegex$1 = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
7723
7724
|
|
|
7724
|
-
var isCustomProperty = function isCustomProperty(property) {
|
|
7725
|
+
var isCustomProperty$1 = function isCustomProperty(property) {
|
|
7725
7726
|
return property.charCodeAt(1) === 45;
|
|
7726
7727
|
};
|
|
7727
7728
|
|
|
7728
|
-
var isProcessableValue = function isProcessableValue(value) {
|
|
7729
|
+
var isProcessableValue$1 = function isProcessableValue(value) {
|
|
7729
7730
|
return value != null && typeof value !== 'boolean';
|
|
7730
7731
|
};
|
|
7731
7732
|
|
|
7732
|
-
var processStyleName = /* #__PURE__ */memoize$2(function (styleName) {
|
|
7733
|
-
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
|
|
7733
|
+
var processStyleName$1 = /* #__PURE__ */memoize$2(function (styleName) {
|
|
7734
|
+
return isCustomProperty$1(styleName) ? styleName : styleName.replace(hyphenateRegex$1, '-$&').toLowerCase();
|
|
7734
7735
|
});
|
|
7735
7736
|
|
|
7736
|
-
var processStyleValue = function processStyleValue(key, value) {
|
|
7737
|
+
var processStyleValue$1 = function processStyleValue(key, value) {
|
|
7737
7738
|
switch (key) {
|
|
7738
7739
|
case 'animation':
|
|
7739
7740
|
case 'animationName':
|
|
7740
7741
|
{
|
|
7741
7742
|
if (typeof value === 'string') {
|
|
7742
|
-
return value.replace(animationRegex, function (match, p1, p2) {
|
|
7743
|
-
cursor = {
|
|
7743
|
+
return value.replace(animationRegex$1, function (match, p1, p2) {
|
|
7744
|
+
cursor$1 = {
|
|
7744
7745
|
name: p1,
|
|
7745
7746
|
styles: p2,
|
|
7746
|
-
next: cursor
|
|
7747
|
+
next: cursor$1
|
|
7747
7748
|
};
|
|
7748
7749
|
return p1;
|
|
7749
7750
|
});
|
|
@@ -7751,16 +7752,16 @@
|
|
|
7751
7752
|
}
|
|
7752
7753
|
}
|
|
7753
7754
|
|
|
7754
|
-
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
|
|
7755
|
+
if (unitlessKeys$1[key] !== 1 && !isCustomProperty$1(key) && typeof value === 'number' && value !== 0) {
|
|
7755
7756
|
return value + 'px';
|
|
7756
7757
|
}
|
|
7757
7758
|
|
|
7758
7759
|
return value;
|
|
7759
7760
|
};
|
|
7760
7761
|
|
|
7761
|
-
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
7762
|
+
var noComponentSelectorMessage$1 = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
7762
7763
|
|
|
7763
|
-
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
7764
|
+
function handleInterpolation$1(mergedProps, registered, interpolation) {
|
|
7764
7765
|
if (interpolation == null) {
|
|
7765
7766
|
return '';
|
|
7766
7767
|
}
|
|
@@ -7783,10 +7784,10 @@
|
|
|
7783
7784
|
var keyframes = interpolation;
|
|
7784
7785
|
|
|
7785
7786
|
if (keyframes.anim === 1) {
|
|
7786
|
-
cursor = {
|
|
7787
|
+
cursor$1 = {
|
|
7787
7788
|
name: keyframes.name,
|
|
7788
7789
|
styles: keyframes.styles,
|
|
7789
|
-
next: cursor
|
|
7790
|
+
next: cursor$1
|
|
7790
7791
|
};
|
|
7791
7792
|
return keyframes.name;
|
|
7792
7793
|
}
|
|
@@ -7800,10 +7801,10 @@
|
|
|
7800
7801
|
// not the most efficient thing ever but this is a pretty rare case
|
|
7801
7802
|
// and there will be very few iterations of this generally
|
|
7802
7803
|
while (next !== undefined) {
|
|
7803
|
-
cursor = {
|
|
7804
|
+
cursor$1 = {
|
|
7804
7805
|
name: next.name,
|
|
7805
7806
|
styles: next.styles,
|
|
7806
|
-
next: cursor
|
|
7807
|
+
next: cursor$1
|
|
7807
7808
|
};
|
|
7808
7809
|
next = next.next;
|
|
7809
7810
|
}
|
|
@@ -7814,16 +7815,16 @@
|
|
|
7814
7815
|
return styles;
|
|
7815
7816
|
}
|
|
7816
7817
|
|
|
7817
|
-
return createStringFromObject(mergedProps, registered, interpolation);
|
|
7818
|
+
return createStringFromObject$1(mergedProps, registered, interpolation);
|
|
7818
7819
|
}
|
|
7819
7820
|
|
|
7820
7821
|
case 'function':
|
|
7821
7822
|
{
|
|
7822
7823
|
if (mergedProps !== undefined) {
|
|
7823
|
-
var previousCursor = cursor;
|
|
7824
|
+
var previousCursor = cursor$1;
|
|
7824
7825
|
var result = interpolation(mergedProps);
|
|
7825
|
-
cursor = previousCursor;
|
|
7826
|
-
return handleInterpolation(mergedProps, registered, result);
|
|
7826
|
+
cursor$1 = previousCursor;
|
|
7827
|
+
return handleInterpolation$1(mergedProps, registered, result);
|
|
7827
7828
|
}
|
|
7828
7829
|
|
|
7829
7830
|
break;
|
|
@@ -7841,12 +7842,12 @@
|
|
|
7841
7842
|
return cached !== undefined ? cached : asString;
|
|
7842
7843
|
}
|
|
7843
7844
|
|
|
7844
|
-
function createStringFromObject(mergedProps, registered, obj) {
|
|
7845
|
+
function createStringFromObject$1(mergedProps, registered, obj) {
|
|
7845
7846
|
var string = '';
|
|
7846
7847
|
|
|
7847
7848
|
if (Array.isArray(obj)) {
|
|
7848
7849
|
for (var i = 0; i < obj.length; i++) {
|
|
7849
|
-
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
7850
|
+
string += handleInterpolation$1(mergedProps, registered, obj[i]) + ";";
|
|
7850
7851
|
}
|
|
7851
7852
|
} else {
|
|
7852
7853
|
for (var key in obj) {
|
|
@@ -7857,28 +7858,28 @@
|
|
|
7857
7858
|
|
|
7858
7859
|
if (registered != null && registered[asString] !== undefined) {
|
|
7859
7860
|
string += key + "{" + registered[asString] + "}";
|
|
7860
|
-
} else if (isProcessableValue(asString)) {
|
|
7861
|
-
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
7861
|
+
} else if (isProcessableValue$1(asString)) {
|
|
7862
|
+
string += processStyleName$1(key) + ":" + processStyleValue$1(key, asString) + ";";
|
|
7862
7863
|
}
|
|
7863
7864
|
} else {
|
|
7864
|
-
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$
|
|
7865
|
-
throw new Error(noComponentSelectorMessage);
|
|
7865
|
+
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$2) {
|
|
7866
|
+
throw new Error(noComponentSelectorMessage$1);
|
|
7866
7867
|
}
|
|
7867
7868
|
|
|
7868
7869
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
7869
7870
|
for (var _i = 0; _i < value.length; _i++) {
|
|
7870
|
-
if (isProcessableValue(value[_i])) {
|
|
7871
|
-
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
7871
|
+
if (isProcessableValue$1(value[_i])) {
|
|
7872
|
+
string += processStyleName$1(key) + ":" + processStyleValue$1(key, value[_i]) + ";";
|
|
7872
7873
|
}
|
|
7873
7874
|
}
|
|
7874
7875
|
} else {
|
|
7875
|
-
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
7876
|
+
var interpolated = handleInterpolation$1(mergedProps, registered, value);
|
|
7876
7877
|
|
|
7877
7878
|
switch (key) {
|
|
7878
7879
|
case 'animation':
|
|
7879
7880
|
case 'animationName':
|
|
7880
7881
|
{
|
|
7881
|
-
string += processStyleName(key) + ":" + interpolated + ";";
|
|
7882
|
+
string += processStyleName$1(key) + ":" + interpolated + ";";
|
|
7882
7883
|
break;
|
|
7883
7884
|
}
|
|
7884
7885
|
|
|
@@ -7896,24 +7897,24 @@
|
|
|
7896
7897
|
return string;
|
|
7897
7898
|
}
|
|
7898
7899
|
|
|
7899
|
-
var labelPattern = /label:\s*([^\s
|
|
7900
|
+
var labelPattern$1 = /label:\s*([^\s;{]+)\s*(;|$)/g;
|
|
7900
7901
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
7901
7902
|
|
|
7902
7903
|
|
|
7903
|
-
var cursor;
|
|
7904
|
-
function serializeStyles(args, registered, mergedProps) {
|
|
7904
|
+
var cursor$1;
|
|
7905
|
+
function serializeStyles$1(args, registered, mergedProps) {
|
|
7905
7906
|
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
7906
7907
|
return args[0];
|
|
7907
7908
|
}
|
|
7908
7909
|
|
|
7909
7910
|
var stringMode = true;
|
|
7910
7911
|
var styles = '';
|
|
7911
|
-
cursor = undefined;
|
|
7912
|
+
cursor$1 = undefined;
|
|
7912
7913
|
var strings = args[0];
|
|
7913
7914
|
|
|
7914
7915
|
if (strings == null || strings.raw === undefined) {
|
|
7915
7916
|
stringMode = false;
|
|
7916
|
-
styles += handleInterpolation(mergedProps, registered, strings);
|
|
7917
|
+
styles += handleInterpolation$1(mergedProps, registered, strings);
|
|
7917
7918
|
} else {
|
|
7918
7919
|
var asTemplateStringsArr = strings;
|
|
7919
7920
|
|
|
@@ -7922,7 +7923,7 @@
|
|
|
7922
7923
|
|
|
7923
7924
|
|
|
7924
7925
|
for (var i = 1; i < args.length; i++) {
|
|
7925
|
-
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
7926
|
+
styles += handleInterpolation$1(mergedProps, registered, args[i]);
|
|
7926
7927
|
|
|
7927
7928
|
if (stringMode) {
|
|
7928
7929
|
var templateStringsArr = strings;
|
|
@@ -7932,11 +7933,11 @@
|
|
|
7932
7933
|
}
|
|
7933
7934
|
|
|
7934
7935
|
|
|
7935
|
-
labelPattern.lastIndex = 0;
|
|
7936
|
+
labelPattern$1.lastIndex = 0;
|
|
7936
7937
|
var identifierName = '';
|
|
7937
7938
|
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
7938
7939
|
|
|
7939
|
-
while ((match = labelPattern.exec(styles)) !== null) {
|
|
7940
|
+
while ((match = labelPattern$1.exec(styles)) !== null) {
|
|
7940
7941
|
identifierName += '-' + match[1];
|
|
7941
7942
|
}
|
|
7942
7943
|
|
|
@@ -7945,7 +7946,7 @@
|
|
|
7945
7946
|
return {
|
|
7946
7947
|
name: name,
|
|
7947
7948
|
styles: styles,
|
|
7948
|
-
next: cursor
|
|
7949
|
+
next: cursor$1
|
|
7949
7950
|
};
|
|
7950
7951
|
}
|
|
7951
7952
|
|
|
@@ -8040,7 +8041,7 @@
|
|
|
8040
8041
|
, cache) {
|
|
8041
8042
|
|
|
8042
8043
|
var styles = props.styles;
|
|
8043
|
-
var serialized = serializeStyles([styles], undefined, reactExports.useContext(ThemeContext$1));
|
|
8044
|
+
var serialized = serializeStyles$1([styles], undefined, reactExports.useContext(ThemeContext$1));
|
|
8044
8045
|
|
|
8045
8046
|
if (!isBrowser$2) {
|
|
8046
8047
|
var _ref;
|
|
@@ -8141,7 +8142,7 @@
|
|
|
8141
8142
|
args[_key] = arguments[_key];
|
|
8142
8143
|
}
|
|
8143
8144
|
|
|
8144
|
-
return serializeStyles(args);
|
|
8145
|
+
return serializeStyles$1(args);
|
|
8145
8146
|
}
|
|
8146
8147
|
|
|
8147
8148
|
/*
|
|
@@ -8168,6 +8169,289 @@
|
|
|
8168
8169
|
};
|
|
8169
8170
|
};
|
|
8170
8171
|
|
|
8172
|
+
var unitlessKeys = {
|
|
8173
|
+
animationIterationCount: 1,
|
|
8174
|
+
aspectRatio: 1,
|
|
8175
|
+
borderImageOutset: 1,
|
|
8176
|
+
borderImageSlice: 1,
|
|
8177
|
+
borderImageWidth: 1,
|
|
8178
|
+
boxFlex: 1,
|
|
8179
|
+
boxFlexGroup: 1,
|
|
8180
|
+
boxOrdinalGroup: 1,
|
|
8181
|
+
columnCount: 1,
|
|
8182
|
+
columns: 1,
|
|
8183
|
+
flex: 1,
|
|
8184
|
+
flexGrow: 1,
|
|
8185
|
+
flexPositive: 1,
|
|
8186
|
+
flexShrink: 1,
|
|
8187
|
+
flexNegative: 1,
|
|
8188
|
+
flexOrder: 1,
|
|
8189
|
+
gridRow: 1,
|
|
8190
|
+
gridRowEnd: 1,
|
|
8191
|
+
gridRowSpan: 1,
|
|
8192
|
+
gridRowStart: 1,
|
|
8193
|
+
gridColumn: 1,
|
|
8194
|
+
gridColumnEnd: 1,
|
|
8195
|
+
gridColumnSpan: 1,
|
|
8196
|
+
gridColumnStart: 1,
|
|
8197
|
+
msGridRow: 1,
|
|
8198
|
+
msGridRowSpan: 1,
|
|
8199
|
+
msGridColumn: 1,
|
|
8200
|
+
msGridColumnSpan: 1,
|
|
8201
|
+
fontWeight: 1,
|
|
8202
|
+
lineHeight: 1,
|
|
8203
|
+
opacity: 1,
|
|
8204
|
+
order: 1,
|
|
8205
|
+
orphans: 1,
|
|
8206
|
+
tabSize: 1,
|
|
8207
|
+
widows: 1,
|
|
8208
|
+
zIndex: 1,
|
|
8209
|
+
zoom: 1,
|
|
8210
|
+
WebkitLineClamp: 1,
|
|
8211
|
+
// SVG-related properties
|
|
8212
|
+
fillOpacity: 1,
|
|
8213
|
+
floodOpacity: 1,
|
|
8214
|
+
stopOpacity: 1,
|
|
8215
|
+
strokeDasharray: 1,
|
|
8216
|
+
strokeDashoffset: 1,
|
|
8217
|
+
strokeMiterlimit: 1,
|
|
8218
|
+
strokeOpacity: 1,
|
|
8219
|
+
strokeWidth: 1
|
|
8220
|
+
};
|
|
8221
|
+
|
|
8222
|
+
var isDevelopment$1 = false;
|
|
8223
|
+
|
|
8224
|
+
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
8225
|
+
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
8226
|
+
|
|
8227
|
+
var isCustomProperty = function isCustomProperty(property) {
|
|
8228
|
+
return property.charCodeAt(1) === 45;
|
|
8229
|
+
};
|
|
8230
|
+
|
|
8231
|
+
var isProcessableValue = function isProcessableValue(value) {
|
|
8232
|
+
return value != null && typeof value !== 'boolean';
|
|
8233
|
+
};
|
|
8234
|
+
|
|
8235
|
+
var processStyleName = /* #__PURE__ */memoize$2(function (styleName) {
|
|
8236
|
+
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
|
|
8237
|
+
});
|
|
8238
|
+
|
|
8239
|
+
var processStyleValue = function processStyleValue(key, value) {
|
|
8240
|
+
switch (key) {
|
|
8241
|
+
case 'animation':
|
|
8242
|
+
case 'animationName':
|
|
8243
|
+
{
|
|
8244
|
+
if (typeof value === 'string') {
|
|
8245
|
+
return value.replace(animationRegex, function (match, p1, p2) {
|
|
8246
|
+
cursor = {
|
|
8247
|
+
name: p1,
|
|
8248
|
+
styles: p2,
|
|
8249
|
+
next: cursor
|
|
8250
|
+
};
|
|
8251
|
+
return p1;
|
|
8252
|
+
});
|
|
8253
|
+
}
|
|
8254
|
+
}
|
|
8255
|
+
}
|
|
8256
|
+
|
|
8257
|
+
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
|
|
8258
|
+
return value + 'px';
|
|
8259
|
+
}
|
|
8260
|
+
|
|
8261
|
+
return value;
|
|
8262
|
+
};
|
|
8263
|
+
|
|
8264
|
+
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
8265
|
+
|
|
8266
|
+
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
8267
|
+
if (interpolation == null) {
|
|
8268
|
+
return '';
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
var componentSelector = interpolation;
|
|
8272
|
+
|
|
8273
|
+
if (componentSelector.__emotion_styles !== undefined) {
|
|
8274
|
+
|
|
8275
|
+
return componentSelector;
|
|
8276
|
+
}
|
|
8277
|
+
|
|
8278
|
+
switch (typeof interpolation) {
|
|
8279
|
+
case 'boolean':
|
|
8280
|
+
{
|
|
8281
|
+
return '';
|
|
8282
|
+
}
|
|
8283
|
+
|
|
8284
|
+
case 'object':
|
|
8285
|
+
{
|
|
8286
|
+
var keyframes = interpolation;
|
|
8287
|
+
|
|
8288
|
+
if (keyframes.anim === 1) {
|
|
8289
|
+
cursor = {
|
|
8290
|
+
name: keyframes.name,
|
|
8291
|
+
styles: keyframes.styles,
|
|
8292
|
+
next: cursor
|
|
8293
|
+
};
|
|
8294
|
+
return keyframes.name;
|
|
8295
|
+
}
|
|
8296
|
+
|
|
8297
|
+
var serializedStyles = interpolation;
|
|
8298
|
+
|
|
8299
|
+
if (serializedStyles.styles !== undefined) {
|
|
8300
|
+
var next = serializedStyles.next;
|
|
8301
|
+
|
|
8302
|
+
if (next !== undefined) {
|
|
8303
|
+
// not the most efficient thing ever but this is a pretty rare case
|
|
8304
|
+
// and there will be very few iterations of this generally
|
|
8305
|
+
while (next !== undefined) {
|
|
8306
|
+
cursor = {
|
|
8307
|
+
name: next.name,
|
|
8308
|
+
styles: next.styles,
|
|
8309
|
+
next: cursor
|
|
8310
|
+
};
|
|
8311
|
+
next = next.next;
|
|
8312
|
+
}
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
var styles = serializedStyles.styles + ";";
|
|
8316
|
+
|
|
8317
|
+
return styles;
|
|
8318
|
+
}
|
|
8319
|
+
|
|
8320
|
+
return createStringFromObject(mergedProps, registered, interpolation);
|
|
8321
|
+
}
|
|
8322
|
+
|
|
8323
|
+
case 'function':
|
|
8324
|
+
{
|
|
8325
|
+
if (mergedProps !== undefined) {
|
|
8326
|
+
var previousCursor = cursor;
|
|
8327
|
+
var result = interpolation(mergedProps);
|
|
8328
|
+
cursor = previousCursor;
|
|
8329
|
+
return handleInterpolation(mergedProps, registered, result);
|
|
8330
|
+
}
|
|
8331
|
+
|
|
8332
|
+
break;
|
|
8333
|
+
}
|
|
8334
|
+
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
8335
|
+
|
|
8336
|
+
|
|
8337
|
+
var asString = interpolation;
|
|
8338
|
+
|
|
8339
|
+
if (registered == null) {
|
|
8340
|
+
return asString;
|
|
8341
|
+
}
|
|
8342
|
+
|
|
8343
|
+
var cached = registered[asString];
|
|
8344
|
+
return cached !== undefined ? cached : asString;
|
|
8345
|
+
}
|
|
8346
|
+
|
|
8347
|
+
function createStringFromObject(mergedProps, registered, obj) {
|
|
8348
|
+
var string = '';
|
|
8349
|
+
|
|
8350
|
+
if (Array.isArray(obj)) {
|
|
8351
|
+
for (var i = 0; i < obj.length; i++) {
|
|
8352
|
+
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
8353
|
+
}
|
|
8354
|
+
} else {
|
|
8355
|
+
for (var key in obj) {
|
|
8356
|
+
var value = obj[key];
|
|
8357
|
+
|
|
8358
|
+
if (typeof value !== 'object') {
|
|
8359
|
+
var asString = value;
|
|
8360
|
+
|
|
8361
|
+
if (registered != null && registered[asString] !== undefined) {
|
|
8362
|
+
string += key + "{" + registered[asString] + "}";
|
|
8363
|
+
} else if (isProcessableValue(asString)) {
|
|
8364
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
8365
|
+
}
|
|
8366
|
+
} else {
|
|
8367
|
+
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$1) {
|
|
8368
|
+
throw new Error(noComponentSelectorMessage);
|
|
8369
|
+
}
|
|
8370
|
+
|
|
8371
|
+
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
8372
|
+
for (var _i = 0; _i < value.length; _i++) {
|
|
8373
|
+
if (isProcessableValue(value[_i])) {
|
|
8374
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
8375
|
+
}
|
|
8376
|
+
}
|
|
8377
|
+
} else {
|
|
8378
|
+
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
8379
|
+
|
|
8380
|
+
switch (key) {
|
|
8381
|
+
case 'animation':
|
|
8382
|
+
case 'animationName':
|
|
8383
|
+
{
|
|
8384
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
8385
|
+
break;
|
|
8386
|
+
}
|
|
8387
|
+
|
|
8388
|
+
default:
|
|
8389
|
+
{
|
|
8390
|
+
|
|
8391
|
+
string += key + "{" + interpolated + "}";
|
|
8392
|
+
}
|
|
8393
|
+
}
|
|
8394
|
+
}
|
|
8395
|
+
}
|
|
8396
|
+
}
|
|
8397
|
+
}
|
|
8398
|
+
|
|
8399
|
+
return string;
|
|
8400
|
+
}
|
|
8401
|
+
|
|
8402
|
+
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
8403
|
+
// keyframes are stored on the SerializedStyles object as a linked list
|
|
8404
|
+
|
|
8405
|
+
|
|
8406
|
+
var cursor;
|
|
8407
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
8408
|
+
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
8409
|
+
return args[0];
|
|
8410
|
+
}
|
|
8411
|
+
|
|
8412
|
+
var stringMode = true;
|
|
8413
|
+
var styles = '';
|
|
8414
|
+
cursor = undefined;
|
|
8415
|
+
var strings = args[0];
|
|
8416
|
+
|
|
8417
|
+
if (strings == null || strings.raw === undefined) {
|
|
8418
|
+
stringMode = false;
|
|
8419
|
+
styles += handleInterpolation(mergedProps, registered, strings);
|
|
8420
|
+
} else {
|
|
8421
|
+
var asTemplateStringsArr = strings;
|
|
8422
|
+
|
|
8423
|
+
styles += asTemplateStringsArr[0];
|
|
8424
|
+
} // we start at 1 since we've already handled the first arg
|
|
8425
|
+
|
|
8426
|
+
|
|
8427
|
+
for (var i = 1; i < args.length; i++) {
|
|
8428
|
+
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
8429
|
+
|
|
8430
|
+
if (stringMode) {
|
|
8431
|
+
var templateStringsArr = strings;
|
|
8432
|
+
|
|
8433
|
+
styles += templateStringsArr[i];
|
|
8434
|
+
}
|
|
8435
|
+
}
|
|
8436
|
+
|
|
8437
|
+
|
|
8438
|
+
labelPattern.lastIndex = 0;
|
|
8439
|
+
var identifierName = '';
|
|
8440
|
+
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
8441
|
+
|
|
8442
|
+
while ((match = labelPattern.exec(styles)) !== null) {
|
|
8443
|
+
identifierName += '-' + match[1];
|
|
8444
|
+
}
|
|
8445
|
+
|
|
8446
|
+
var name = murmur2(styles) + identifierName;
|
|
8447
|
+
|
|
8448
|
+
return {
|
|
8449
|
+
name: name,
|
|
8450
|
+
styles: styles,
|
|
8451
|
+
next: cursor
|
|
8452
|
+
};
|
|
8453
|
+
}
|
|
8454
|
+
|
|
8171
8455
|
/* import type {
|
|
8172
8456
|
ElementType,
|
|
8173
8457
|
StatelessFunctionalComponent,
|
|
@@ -15373,7 +15657,7 @@
|
|
|
15373
15657
|
return cache[key];
|
|
15374
15658
|
}
|
|
15375
15659
|
|
|
15376
|
-
const NEBULA_VERSION_HASH = "
|
|
15660
|
+
const NEBULA_VERSION_HASH = "c2a3";
|
|
15377
15661
|
ClassNameGenerator.configure(componentName => {
|
|
15378
15662
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
15379
15663
|
});
|
|
@@ -15605,7 +15889,7 @@
|
|
|
15605
15889
|
const appRef = React.createRef();
|
|
15606
15890
|
const element = document.createElement('div');
|
|
15607
15891
|
element.style.display = 'none';
|
|
15608
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
15892
|
+
element.setAttribute('data-nebulajs-version', "5.8.1");
|
|
15609
15893
|
element.setAttribute('data-app-id', app.id);
|
|
15610
15894
|
document.body.appendChild(element);
|
|
15611
15895
|
if (context) {
|
|
@@ -15614,7 +15898,7 @@
|
|
|
15614
15898
|
const modelStore = initializeStores$1(app.id);
|
|
15615
15899
|
const selectionStore = initializeStores(app.id);
|
|
15616
15900
|
const root = ReactDOM$1.createRoot(element);
|
|
15617
|
-
root.render(
|
|
15901
|
+
root.render(/*#__PURE__*/React.createElement(NebulaApp, {
|
|
15618
15902
|
ref: appRef,
|
|
15619
15903
|
initialContext: context,
|
|
15620
15904
|
renderCallback: resolveRender,
|
|
@@ -17165,7 +17449,6 @@
|
|
|
17165
17449
|
var popperOffsets = computeOffsets({
|
|
17166
17450
|
reference: referenceClientRect,
|
|
17167
17451
|
element: popperRect,
|
|
17168
|
-
strategy: 'absolute',
|
|
17169
17452
|
placement: placement
|
|
17170
17453
|
});
|
|
17171
17454
|
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
@@ -17493,7 +17776,6 @@
|
|
|
17493
17776
|
state.modifiersData[name] = computeOffsets({
|
|
17494
17777
|
reference: state.rects.reference,
|
|
17495
17778
|
element: state.rects.popper,
|
|
17496
|
-
strategy: 'absolute',
|
|
17497
17779
|
placement: state.placement
|
|
17498
17780
|
});
|
|
17499
17781
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -24456,7 +24738,7 @@
|
|
|
24456
24738
|
}
|
|
24457
24739
|
}]
|
|
24458
24740
|
});
|
|
24459
|
-
var Remove =
|
|
24741
|
+
var Remove = props => SvgIcon(remove(props));
|
|
24460
24742
|
|
|
24461
24743
|
const lock = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
24462
24744
|
shapes: [{
|
|
@@ -24466,7 +24748,7 @@
|
|
|
24466
24748
|
}
|
|
24467
24749
|
}]
|
|
24468
24750
|
});
|
|
24469
|
-
var Lock =
|
|
24751
|
+
var Lock = props => SvgIcon(lock(props));
|
|
24470
24752
|
|
|
24471
24753
|
const unlock = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
24472
24754
|
viewBox: '0 0 12 16',
|
|
@@ -24477,7 +24759,7 @@
|
|
|
24477
24759
|
}
|
|
24478
24760
|
}]
|
|
24479
24761
|
});
|
|
24480
|
-
var Unlock =
|
|
24762
|
+
var Unlock = props => SvgIcon(unlock(props));
|
|
24481
24763
|
|
|
24482
24764
|
function isRangeVisible(_ref) {
|
|
24483
24765
|
var lastRenderedStartIndex = _ref.lastRenderedStartIndex,
|
|
@@ -25126,7 +25408,7 @@
|
|
|
25126
25408
|
}
|
|
25127
25409
|
}]
|
|
25128
25410
|
});
|
|
25129
|
-
var Tick =
|
|
25411
|
+
var Tick = props => SvgIcon(tick(props));
|
|
25130
25412
|
|
|
25131
25413
|
/**
|
|
25132
25414
|
* @ignore
|
|
@@ -25378,6 +25660,9 @@
|
|
|
25378
25660
|
styles
|
|
25379
25661
|
} = _ref4;
|
|
25380
25662
|
const _styles$content = styles.content,
|
|
25663
|
+
{
|
|
25664
|
+
backgroundColor: _
|
|
25665
|
+
} = _styles$content,
|
|
25381
25666
|
contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$5);
|
|
25382
25667
|
const rowSelectionStyle = getRowSelectionStyle({
|
|
25383
25668
|
theme,
|
|
@@ -25923,7 +26208,6 @@
|
|
|
25923
26208
|
}
|
|
25924
26209
|
const width = getBarWidth({
|
|
25925
26210
|
qFrequency,
|
|
25926
|
-
checkboxes,
|
|
25927
26211
|
frequencyMax
|
|
25928
26212
|
});
|
|
25929
26213
|
return /*#__PURE__*/React.createElement(Box, {
|
|
@@ -29268,6 +29552,9 @@
|
|
|
29268
29552
|
postProcessPages,
|
|
29269
29553
|
listData
|
|
29270
29554
|
}),
|
|
29555
|
+
{
|
|
29556
|
+
isLoadingData
|
|
29557
|
+
} = _useItemsLoader,
|
|
29271
29558
|
itemsLoader = _objectWithoutProperties(_useItemsLoader, _excluded$4);
|
|
29272
29559
|
const {
|
|
29273
29560
|
getStoreValue,
|
|
@@ -29368,10 +29655,7 @@
|
|
|
29368
29655
|
pages,
|
|
29369
29656
|
minimumBatchSize,
|
|
29370
29657
|
count,
|
|
29371
|
-
calculatePagesHeight
|
|
29372
|
-
layoutOptions,
|
|
29373
|
-
model
|
|
29374
|
-
});
|
|
29658
|
+
calculatePagesHeight});
|
|
29375
29659
|
let freqIsAllowed = getFrequencyAllowed({
|
|
29376
29660
|
itemWidth: width,
|
|
29377
29661
|
layout,
|
|
@@ -29465,7 +29749,6 @@
|
|
|
29465
29749
|
} = getListBoxComponents({
|
|
29466
29750
|
direction,
|
|
29467
29751
|
layout,
|
|
29468
|
-
height,
|
|
29469
29752
|
width,
|
|
29470
29753
|
checkboxes,
|
|
29471
29754
|
deducedFrequencyMode,
|
|
@@ -29577,7 +29860,7 @@
|
|
|
29577
29860
|
}]
|
|
29578
29861
|
});
|
|
29579
29862
|
|
|
29580
|
-
var createListboxSelectionToolbar =
|
|
29863
|
+
var createListboxSelectionToolbar = _ref => {
|
|
29581
29864
|
let {
|
|
29582
29865
|
layout,
|
|
29583
29866
|
model,
|
|
@@ -29644,7 +29927,7 @@
|
|
|
29644
29927
|
model.selectListObjectExcluded(path);
|
|
29645
29928
|
}
|
|
29646
29929
|
}].filter(Boolean);
|
|
29647
|
-
}
|
|
29930
|
+
};
|
|
29648
29931
|
|
|
29649
29932
|
const more = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
29650
29933
|
shapes: [{
|
|
@@ -29731,7 +30014,7 @@
|
|
|
29731
30014
|
}
|
|
29732
30015
|
}]
|
|
29733
30016
|
});
|
|
29734
|
-
var Close =
|
|
30017
|
+
var Close = props => SvgIcon(close(props));
|
|
29735
30018
|
|
|
29736
30019
|
const clearSelections = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
29737
30020
|
shapes: [{
|
|
@@ -29741,7 +30024,7 @@
|
|
|
29741
30024
|
}
|
|
29742
30025
|
}]
|
|
29743
30026
|
});
|
|
29744
|
-
var ClearSelections =
|
|
30027
|
+
var ClearSelections = props => SvgIcon(clearSelections(props));
|
|
29745
30028
|
|
|
29746
30029
|
function useDefaultSelectionActions(_ref) {
|
|
29747
30030
|
let {
|
|
@@ -30216,7 +30499,7 @@
|
|
|
30216
30499
|
}
|
|
30217
30500
|
}]
|
|
30218
30501
|
});
|
|
30219
|
-
var SearchIcon =
|
|
30502
|
+
var SearchIcon = props => SvgIcon(search(props));
|
|
30220
30503
|
|
|
30221
30504
|
const MAX_SEARCH_LENGTH = 64000;
|
|
30222
30505
|
const TREE_PATH = '/qListObjectDef';
|
|
@@ -31064,14 +31347,14 @@
|
|
|
31064
31347
|
}
|
|
31065
31348
|
|
|
31066
31349
|
/*
|
|
31067
|
-
* qlik-chart-modules v0.
|
|
31350
|
+
* qlik-chart-modules v0.82.0
|
|
31068
31351
|
* Copyright (c) 2024 QlikTech International AB
|
|
31069
31352
|
* Released under the MIT license.
|
|
31070
31353
|
*/
|
|
31071
31354
|
|
|
31072
|
-
function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,c=n[0];(l=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(c))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(c))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(c))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={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}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,c,s,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)<=.5?2*c*o:(2-2*c)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=c-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)<=.5?2*c*o:(2-2*c)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=c-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=s-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=!0;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=!0;else n.length>=3?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=!0;return Number.isNaN(+g+y+b+x)&&(v.invalid=!0),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=c,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=Math.max(o,a,l),s=Math.min(o,a,l),u=(c+s)/2;if(c===s)t=0,r=0;else {switch(n=c-s,t=u>.5?n/(2-c-s):n/(c+s),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,",").concat(100*t,",").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=i.a,s=Math.max(o,a,l),u=Math.min(o,a,l),f=(s+u)/2;if(s===u)t=0,r=0;else {switch(n=s-u,t=f>.5?n/(2-s-u):n/(s+u),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,",").concat(100*t,",").concat(100*f,",").concat(c,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,c=Math.max(o,a,l),s=Math.min(o,a,l),u=c;if(c===s)t=0,r=0;else {switch(t=0===(n=c-s)?0:n/u,c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,",").concat(r,",").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(","),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,",").concat(i,",").concat(o,")")}function k(n,r){if(e(n))return "rgba(".concat([n.r,n.g,n.b,n.a].join(","),")");var i="string"==typeof n?t(n):n,o=(65280&i)>>8,a=255&i;return "rgba(".concat((16711680&i)>>16,",").concat(o,",").concat(a,",").concat(n.a,")")}var C=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function M(e){return .2126*C(e.r)+.7152*C(e.g)+.0722*C(e.b)}function S(){var e=v.apply(void 0,arguments);return e.invalid||M(e)<.5}function D(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(i,",").concat(o,",").concat(l,",").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return S(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(","),")")},getShiftedColor:function(e){var n=void 0===e||Number.isNaN(+e)?1:e,i=.299*t.r+.587*t.g+.114*t.b,o=t.g<126?1:1+t.g/512;return D(r(20*(i*o<220?.8+1/(i+1)*4:-(.8+i/255*1))*n))}}}function O(e,t){if(e&&t){var n=M(e),r=M(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function E(e,t){var n=D("#FFFFFF"),r=D(e),i=D(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=O(n,r),a=O(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var B,K;function re$1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ie=function(){if(K)return B;K=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return !1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return !1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return B=function e(){var t,n,r,c,s,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(c=l(t,n))&&(h&&c&&(o(c)||(s=i(c)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,c)})):void 0!==c&&a(f,{name:n,newValue:c}));return f},B}();re$1(ie);function fe(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function de(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pe(){}var he=1/.7,me="\\s*([+-]?\\d+)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),xe=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),qe=new RegExp(`^rgba\\(${me},${me},${me},${ve}\\)$`),we=new RegExp(`^rgba\\(${ge},${ge},${ge},${ve}\\)$`),ke=new RegExp(`^hsl\\(${ve},${ge},${ge}\\)$`),Ce=new RegExp(`^hsla\\(${ve},${ge},${ge},${ve}\\)$`),Me={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 Se(){return this.rgb().formatHex()}function De(){return this.rgb().formatRgb()}function Oe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ie(t):3===n?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(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=be.exec(e))?new Te(t[1],t[2],t[3],1):(t=xe.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qe.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=we.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ke.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Ce.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Me.hasOwnProperty(e)?Ie(Me[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function Ie(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function Ae(e){return e instanceof pe||(e=Oe(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function Ne(e,t,n,r){return 1===arguments.length?Ae(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Le(){return `#${He(this.r)}${He(this.g)}${He(this.b)}`}function Pe(){const e=je(this.opacity);return `${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function je(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function He(e){return ((e=Fe(e))<16?"0":"")+e.toString(16)}function ze(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ve(e,t,n,r)}function Re(e){if(e instanceof Ve)return new Ve(e.h,e.s,e.l,e.opacity);if(e instanceof pe||(e=Oe(e)),!e)return new Ve;if(e instanceof Ve)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new Ve(a,l,c,e.opacity)}function Ve(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function _e(e){return (e=(e||0)%360)<0?e+360:e}function Be(e){return Math.max(0,Math.min(1,e||0))}function Ke(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fe(pe,Oe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Se,formatHex:Se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Re(this).formatHsl()},formatRgb:De,toString:De}),fe(Te,Ne,de(pe,{brighter(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Fe(this.r),Fe(this.g),Fe(this.b),je(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatHex8:function(){return `#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),fe(Ve,(function(e,t,n,r){return 1===arguments.length?Re(e):new Ve(e,t,n,null==r?1:r)}),de(pe,{brighter(e){return e=null==e?he:Math.pow(he,e),new Ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Te(Ke(e>=240?e-240:e+120,i,r),Ke(e,i,r),Ke(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ve(_e(this.h),Be(this.s),Be(this.l),je(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=je(this.opacity);return `${1===e?"hsl(":"hsla("}${_e(this.h)}, ${100*Be(this.s)}%, ${100*Be(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,Ye=180/Math.PI,Ue=4/29,Ge=6/29,We=3*Ge*Ge;function Xe(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof it)return ot(e);e instanceof Te||(e=Ae(e));var t,n,r=tt(e.r),i=tt(e.g),o=tt(e.b),a=Je((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Je((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Je((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Ze(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ze(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Je(e){return e>.008856451679035631?Math.pow(e,1/3):e/We+Ue}function Qe(e){return e>Ge?e*e*e:We*(e-Ue)}function et(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function tt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e){if(e instanceof it)return new it(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Xe(e)),0===e.a&&0===e.b)return new it(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ye;return new it(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function rt(e,t,n,r){return 1===arguments.length?nt(e):new it(e,t,n,null==r?1:r)}function it(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function ot(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*$e;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fe(Ze,(function(e,t,n,r){return 1===arguments.length?Xe(e):new Ze(e,t,n,null==r?1:r)}),de(pe,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Te(et(3.1338561*(t=.96422*Qe(t))-1.6168667*(e=1*Qe(e))-.4906146*(n=.82521*Qe(n))),et(-.9787684*t+1.9161415*e+.033454*n),et(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fe(it,rt,de(pe,{brighter(e){return new it(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new it(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ot(this).rgb()}}));var at=e=>()=>e;function lt(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):at(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):at(isNaN(e)?t:e)}(function e(t){var n=lt(t);function r(e,t){var r=n((e=Ne(e)).r,(t=Ne(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Yt="center",Ut="bottom";[{key:"NoDataExist",alignment:Yt,condition:function(e){var t=e.layoutService;if(!t)return !1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Yt,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Yt,condition:function(e){var t=e.layoutService;if(!t)return !1;if(!t.meta.isContinuous)return !1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Yt},{key:"DataRangeIncludingZero",alignment:Ut},{key:"LimitedData",alignment:Ut},{key:"NegativeOrZeroValues",alignment:Ut}].reduce((function(e,t){return e[t.key]=t,e}),{});function Rn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function Vn(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Bn)):void 0===t&&(t=_n);for(var n,r,i,o,a,l=new Yn(e),c=[l];n=c.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new Yn(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore($n)}function _n(e){return e.children}function Bn(e){return Array.isArray(e)?e[1]:null}function Kn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function $n(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Yn(e){this.data=e,this.depth=this.height=0,this.parent=null;}Yn.prototype=Vn.prototype={constructor:Yn,count:function(){return this.eachAfter(Rn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],c=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++c,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return Vn(this).eachBefore(Kn)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var xr,qr;(xr=function(e){
|
|
31355
|
+
function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={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:0,g:0,b:0,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}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=!0;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=!0;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=!0;return Number.isNaN(+g+y+b+x)&&(v.invalid=!0),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(void 0,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return !1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return !1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),Se={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 De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(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=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return !1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return !1;if(!t.meta.isContinuous)return !1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kn)):void 0===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
|
|
31073
31356
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
31074
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,c,
|
|
31357
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,s,c,u,f,d=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),v=m.search(/[0-9\-\+#]/),g=d-v,y=e.substring(g,g+1),b=g+("."===y||","===y?1:0),x=v>0?e.substring(b,d):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",g=(f=t[0]).length%s,d=f.length,b=0;b<d;b++)m+=f.charAt(b),!((b-g+1)%s)&&b<d-s&&(m+=o);t[0]=m;}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x};},qr(wr={exports:{}},wr.exports),wr.exports);
|
|
31075
31358
|
|
|
31076
31359
|
const MULTI_REG = /,(?![^(]*\))/;
|
|
31077
31360
|
const SINGLE_REG = /\s(?![^(]*\))/;
|
|
@@ -31322,7 +31605,7 @@
|
|
|
31322
31605
|
const contrastState = "".concat(state, "Contrast");
|
|
31323
31606
|
// color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
|
|
31324
31607
|
const color = getColorPickerColor(componentSelectionColors[state]) || getSelectionThemeColor(state) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
|
|
31325
|
-
const contrastColor = useContrastTextColor ?
|
|
31608
|
+
const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
|
|
31326
31609
|
return {
|
|
31327
31610
|
[state]: color,
|
|
31328
31611
|
[contrastState]: contrastColor
|
|
@@ -31351,11 +31634,11 @@
|
|
|
31351
31634
|
}
|
|
31352
31635
|
function getSearchColor(getListboxStyle) {
|
|
31353
31636
|
const desiredTextColor = getListboxStyle('content', 'color');
|
|
31354
|
-
const color =
|
|
31637
|
+
const color = A('#fff', desiredTextColor);
|
|
31355
31638
|
return color;
|
|
31356
31639
|
}
|
|
31357
31640
|
function getSearchBGColor(bgCol, getListboxStyle) {
|
|
31358
|
-
const searchBgColorObj =
|
|
31641
|
+
const searchBgColorObj = O(getListboxStyle('', 'backgroundColor'));
|
|
31359
31642
|
searchBgColorObj.setAlpha(0.7);
|
|
31360
31643
|
return searchBgColorObj.isInvalid() ? bgCol : searchBgColorObj.getRGBA();
|
|
31361
31644
|
}
|
|
@@ -31820,7 +32103,7 @@
|
|
|
31820
32103
|
}
|
|
31821
32104
|
}]
|
|
31822
32105
|
});
|
|
31823
|
-
var DownArrow =
|
|
32106
|
+
var DownArrow = props => SvgIcon(downArrow(props));
|
|
31824
32107
|
|
|
31825
32108
|
const PREFIX$6 = 'MultiState';
|
|
31826
32109
|
const classes$6 = {
|
|
@@ -32268,7 +32551,7 @@
|
|
|
32268
32551
|
}
|
|
32269
32552
|
}]
|
|
32270
32553
|
});
|
|
32271
|
-
var SelectionsBack =
|
|
32554
|
+
var SelectionsBack = props => SvgIcon(selectionsBack(props));
|
|
32272
32555
|
|
|
32273
32556
|
const selectionsForward = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
32274
32557
|
shapes: [{
|
|
@@ -32278,7 +32561,7 @@
|
|
|
32278
32561
|
}
|
|
32279
32562
|
}]
|
|
32280
32563
|
});
|
|
32281
|
-
var SelectionsForward =
|
|
32564
|
+
var SelectionsForward = props => SvgIcon(selectionsForward(props));
|
|
32282
32565
|
|
|
32283
32566
|
const patchAlternateState = (currentSelectionsModel, currentSelectionsLayout, appLayout) => {
|
|
32284
32567
|
const states = [...(appLayout.qStateNames || [])].map(s => ({
|
|
@@ -32422,7 +32705,7 @@
|
|
|
32422
32705
|
element,
|
|
32423
32706
|
app
|
|
32424
32707
|
} = _ref2;
|
|
32425
|
-
return ReactDOM.createPortal(
|
|
32708
|
+
return ReactDOM.createPortal(/*#__PURE__*/React.createElement(AppSelections, {
|
|
32426
32709
|
app: app
|
|
32427
32710
|
}), element, uid());
|
|
32428
32711
|
}
|
|
@@ -33147,7 +33430,7 @@
|
|
|
33147
33430
|
}
|
|
33148
33431
|
}]
|
|
33149
33432
|
});
|
|
33150
|
-
var CyclicIcon =
|
|
33433
|
+
var CyclicIcon = props => SvgIcon(cyclic(props));
|
|
33151
33434
|
|
|
33152
33435
|
const drillDown = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
33153
33436
|
shapes: [{
|
|
@@ -33157,7 +33440,7 @@
|
|
|
33157
33440
|
}
|
|
33158
33441
|
}]
|
|
33159
33442
|
});
|
|
33160
|
-
var DrillDownIcon =
|
|
33443
|
+
var DrillDownIcon = props => SvgIcon(drillDown(props));
|
|
33161
33444
|
|
|
33162
33445
|
const reload = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
33163
33446
|
shapes: [{
|
|
@@ -33167,10 +33450,9 @@
|
|
|
33167
33450
|
}
|
|
33168
33451
|
}]
|
|
33169
33452
|
});
|
|
33170
|
-
var ReloadIcon =
|
|
33453
|
+
var ReloadIcon = props => SvgIcon(reload(props));
|
|
33171
33454
|
|
|
33172
33455
|
const dimensionTypes = {
|
|
33173
|
-
single: 'N',
|
|
33174
33456
|
drillDown: 'H',
|
|
33175
33457
|
cyclic: 'C'
|
|
33176
33458
|
};
|
|
@@ -33438,7 +33720,6 @@
|
|
|
33438
33720
|
isDetached: isPopover ? false : isToolbarDetached,
|
|
33439
33721
|
showToolbar,
|
|
33440
33722
|
containerRef,
|
|
33441
|
-
isPopover,
|
|
33442
33723
|
isLocked,
|
|
33443
33724
|
extraItems,
|
|
33444
33725
|
listboxSelectionToolbarItems,
|
|
@@ -33648,10 +33929,7 @@
|
|
|
33648
33929
|
keyboard,
|
|
33649
33930
|
hovering,
|
|
33650
33931
|
updateKeyScroll,
|
|
33651
|
-
containerRef,
|
|
33652
33932
|
currentScrollIndex,
|
|
33653
|
-
app,
|
|
33654
|
-
appSelections,
|
|
33655
33933
|
constraints,
|
|
33656
33934
|
isModal: isModalMode,
|
|
33657
33935
|
selections
|
|
@@ -34364,7 +34642,7 @@
|
|
|
34364
34642
|
renderedCallback,
|
|
34365
34643
|
flags
|
|
34366
34644
|
} = _ref2;
|
|
34367
|
-
return ReactDOM.createPortal(
|
|
34645
|
+
return ReactDOM.createPortal(/*#__PURE__*/React.createElement(ListBoxWrapper, {
|
|
34368
34646
|
app: app,
|
|
34369
34647
|
element: element,
|
|
34370
34648
|
fieldIdentifier: fieldIdentifier,
|
|
@@ -35632,7 +35910,7 @@
|
|
|
35632
35910
|
}
|
|
35633
35911
|
}]
|
|
35634
35912
|
});
|
|
35635
|
-
var WarningTriangle =
|
|
35913
|
+
var WarningTriangle = props => SvgIcon(warning(props));
|
|
35636
35914
|
|
|
35637
35915
|
/* eslint-disable react/no-array-index-key */
|
|
35638
35916
|
function DescriptionRow(_ref) {
|
|
@@ -36321,6 +36599,22 @@
|
|
|
36321
36599
|
return styling;
|
|
36322
36600
|
};
|
|
36323
36601
|
|
|
36602
|
+
/**
|
|
36603
|
+
* @class RenderError
|
|
36604
|
+
* @extends Error
|
|
36605
|
+
* @param {string} message
|
|
36606
|
+
* @param {Error} originalError
|
|
36607
|
+
* @property {Error} originalError
|
|
36608
|
+
*/
|
|
36609
|
+
|
|
36610
|
+
class RenderError extends Error {
|
|
36611
|
+
constructor(message, originalError) {
|
|
36612
|
+
super(message);
|
|
36613
|
+
this.originalError = originalError;
|
|
36614
|
+
this.name = 'RenderError';
|
|
36615
|
+
}
|
|
36616
|
+
}
|
|
36617
|
+
|
|
36324
36618
|
/**
|
|
36325
36619
|
* @interface
|
|
36326
36620
|
* @extends HTMLElement
|
|
@@ -36601,7 +36895,8 @@
|
|
|
36601
36895
|
dispatch({
|
|
36602
36896
|
type: 'ERROR',
|
|
36603
36897
|
error: {
|
|
36604
|
-
title: err.message
|
|
36898
|
+
title: err.message,
|
|
36899
|
+
errorObject: err
|
|
36605
36900
|
}
|
|
36606
36901
|
});
|
|
36607
36902
|
}
|
|
@@ -36618,7 +36913,8 @@
|
|
|
36618
36913
|
onMount,
|
|
36619
36914
|
currentId,
|
|
36620
36915
|
emitter,
|
|
36621
|
-
navigation
|
|
36916
|
+
navigation,
|
|
36917
|
+
onError
|
|
36622
36918
|
} = _ref6;
|
|
36623
36919
|
const {
|
|
36624
36920
|
app,
|
|
@@ -36841,6 +37137,10 @@
|
|
|
36841
37137
|
if (state.loading && !state.longRunningQuery) {
|
|
36842
37138
|
Content = /*#__PURE__*/React.createElement(LoadingSn, null);
|
|
36843
37139
|
} else if (state.error) {
|
|
37140
|
+
if (onError) {
|
|
37141
|
+
const e = state.error.errorObject ? state.error.errorObject : new RenderError(state.error.title);
|
|
37142
|
+
onError(e);
|
|
37143
|
+
}
|
|
36844
37144
|
Content = /*#__PURE__*/React.createElement(Error$1, state.error);
|
|
36845
37145
|
} else if (state.loaded) {
|
|
36846
37146
|
Content = /*#__PURE__*/React.createElement(Supernova, {
|
|
@@ -36925,14 +37225,15 @@
|
|
|
36925
37225
|
onMount,
|
|
36926
37226
|
emitter,
|
|
36927
37227
|
initialError,
|
|
36928
|
-
navigation
|
|
37228
|
+
navigation,
|
|
37229
|
+
onError
|
|
36929
37230
|
} = _ref;
|
|
36930
37231
|
const {
|
|
36931
37232
|
root
|
|
36932
37233
|
} = halo;
|
|
36933
37234
|
const cellRef = React.createRef();
|
|
36934
37235
|
const currentId = uid();
|
|
36935
|
-
const portal = ReactDOM.createPortal(
|
|
37236
|
+
const portal = ReactDOM.createPortal(/*#__PURE__*/React.createElement(Cell, {
|
|
36936
37237
|
ref: cellRef,
|
|
36937
37238
|
halo: halo,
|
|
36938
37239
|
model: model,
|
|
@@ -36942,7 +37243,8 @@
|
|
|
36942
37243
|
initialError: initialError,
|
|
36943
37244
|
onMount: onMount,
|
|
36944
37245
|
emitter: emitter,
|
|
36945
|
-
navigation: navigation
|
|
37246
|
+
navigation: navigation,
|
|
37247
|
+
onError: onError
|
|
36946
37248
|
}), element, currentId);
|
|
36947
37249
|
const unmount = () => {
|
|
36948
37250
|
root.remove(portal);
|
|
@@ -37817,6 +38119,42 @@
|
|
|
37817
38119
|
return h.value[1];
|
|
37818
38120
|
}
|
|
37819
38121
|
|
|
38122
|
+
/**
|
|
38123
|
+
* Reference object returned from useRef
|
|
38124
|
+
* @interface Ref
|
|
38125
|
+
* @template R
|
|
38126
|
+
* @property {R} current Current value
|
|
38127
|
+
*/
|
|
38128
|
+
|
|
38129
|
+
/**
|
|
38130
|
+
* Creates a reference to a value not needed for rendering
|
|
38131
|
+
*
|
|
38132
|
+
* While Nebula does not have a virtual DOM, it is still useful
|
|
38133
|
+
* to have a reference to an object that is retained across
|
|
38134
|
+
* renders and in it self does not trigger a render.
|
|
38135
|
+
* @entry
|
|
38136
|
+
* @template R
|
|
38137
|
+
* @param {R} initialValue - The initial value.
|
|
38138
|
+
* @returns {Ref<R>} An object with the current value
|
|
38139
|
+
* @example
|
|
38140
|
+
* import { useRef } from '@nebula.js/stardust';
|
|
38141
|
+
* // ...
|
|
38142
|
+
* // initiate with simple value
|
|
38143
|
+
* const timesRendered = useRef(0);
|
|
38144
|
+
*
|
|
38145
|
+
* useEffect(() => {
|
|
38146
|
+
* render(layout);
|
|
38147
|
+
* // increments the render counter, a useState would trigger another render
|
|
38148
|
+
* timesRendered.current += 1;
|
|
38149
|
+
* },[layout]);
|
|
38150
|
+
*
|
|
38151
|
+
*/
|
|
38152
|
+
function useRef(initialValue) {
|
|
38153
|
+
return useMemo(() => ({
|
|
38154
|
+
current: initialValue
|
|
38155
|
+
}), []);
|
|
38156
|
+
}
|
|
38157
|
+
|
|
37820
38158
|
/**
|
|
37821
38159
|
* Runs a callback function when a dependent changes.
|
|
37822
38160
|
*
|
|
@@ -39321,23 +39659,26 @@
|
|
|
39321
39659
|
halo,
|
|
39322
39660
|
navigation,
|
|
39323
39661
|
initialError,
|
|
39324
|
-
onDestroy = async () => {}
|
|
39662
|
+
onDestroy = async () => {},
|
|
39663
|
+
onRender = () => {},
|
|
39664
|
+
onError = () => {}
|
|
39325
39665
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
39326
39666
|
let unmountCell = noopi$1;
|
|
39327
39667
|
let cellRef = null;
|
|
39328
39668
|
let mountedReference = null;
|
|
39329
39669
|
let onMount = null;
|
|
39330
|
-
let
|
|
39670
|
+
let onRenderResolve = null;
|
|
39331
39671
|
let viewDataObjectId;
|
|
39332
39672
|
const mounted = new Promise(resolve => {
|
|
39333
39673
|
onMount = resolve;
|
|
39334
39674
|
});
|
|
39335
39675
|
const rendered = new Promise(resolve => {
|
|
39336
|
-
|
|
39676
|
+
onRenderResolve = resolve;
|
|
39337
39677
|
});
|
|
39338
39678
|
const createOnInitialRender = override => () => {
|
|
39339
|
-
override
|
|
39340
|
-
|
|
39679
|
+
override === null || override === void 0 || override(); // from options.onInitialRender
|
|
39680
|
+
onRenderResolve(); // internal promise in viz to wait for render
|
|
39681
|
+
onRender(); // from RenderConfig
|
|
39341
39682
|
};
|
|
39342
39683
|
let initialSnOptions = {};
|
|
39343
39684
|
let initialSnPlugins = [];
|
|
@@ -39562,7 +39903,8 @@
|
|
|
39562
39903
|
initialError,
|
|
39563
39904
|
onMount,
|
|
39564
39905
|
emitter,
|
|
39565
|
-
navigation
|
|
39906
|
+
navigation,
|
|
39907
|
+
onError
|
|
39566
39908
|
});
|
|
39567
39909
|
return mounted;
|
|
39568
39910
|
},
|
|
@@ -39659,12 +40001,18 @@
|
|
|
39659
40001
|
/* eslint no-underscore-dangle:0 */
|
|
39660
40002
|
async function init(model, optional, halo, navigation, initialError) {
|
|
39661
40003
|
let onDestroy = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : async () => {};
|
|
40004
|
+
const {
|
|
40005
|
+
onRender,
|
|
40006
|
+
onError
|
|
40007
|
+
} = optional;
|
|
39662
40008
|
const api = viz({
|
|
39663
40009
|
model,
|
|
39664
40010
|
halo,
|
|
39665
40011
|
navigation,
|
|
39666
40012
|
initialError,
|
|
39667
|
-
onDestroy
|
|
40013
|
+
onDestroy,
|
|
40014
|
+
onRender,
|
|
40015
|
+
onError
|
|
39668
40016
|
});
|
|
39669
40017
|
if (optional.options) {
|
|
39670
40018
|
api.__DO_NOT_USE__.options(optional.options);
|
|
@@ -39687,6 +40035,8 @@
|
|
|
39687
40035
|
* @description Configuration for rendering a visualisation, either creating or fetching an existing object.
|
|
39688
40036
|
* @property {HTMLElement} element Target html element to render in to
|
|
39689
40037
|
* @property {object=} options Options passed into the visualisation
|
|
40038
|
+
* @property {function=} onRender Callback function called after rendering successfully
|
|
40039
|
+
* @property {function(RenderError)=} onError Callback function called if an error occurs
|
|
39690
40040
|
* @property {Plugin[]} [plugins] plugins passed into the visualisation
|
|
39691
40041
|
* @property {string=} id For existing objects: Engine identifier of object to render
|
|
39692
40042
|
* @property {string=} type For creating objects: Type of visualisation to render
|
|
@@ -39725,7 +40075,9 @@
|
|
|
39725
40075
|
plugins,
|
|
39726
40076
|
element,
|
|
39727
40077
|
extendProperties,
|
|
39728
|
-
navigation
|
|
40078
|
+
navigation,
|
|
40079
|
+
onRender,
|
|
40080
|
+
onError
|
|
39729
40081
|
} = _ref;
|
|
39730
40082
|
let mergedProps = {};
|
|
39731
40083
|
const children = [];
|
|
@@ -39780,7 +40132,9 @@
|
|
|
39780
40132
|
return init(model, {
|
|
39781
40133
|
options,
|
|
39782
40134
|
plugins,
|
|
39783
|
-
element
|
|
40135
|
+
element,
|
|
40136
|
+
onRender,
|
|
40137
|
+
onError
|
|
39784
40138
|
}, halo, navigation, error, onDestroy);
|
|
39785
40139
|
}
|
|
39786
40140
|
|
|
@@ -40083,7 +40437,7 @@
|
|
|
40083
40437
|
const unmount = () => {
|
|
40084
40438
|
root.remove(portal);
|
|
40085
40439
|
};
|
|
40086
|
-
portal = ReactDOM.createPortal(
|
|
40440
|
+
portal = ReactDOM.createPortal(/*#__PURE__*/React.createElement(Sheet, {
|
|
40087
40441
|
ref: sheetRef,
|
|
40088
40442
|
halo: halo,
|
|
40089
40443
|
model: model,
|
|
@@ -40366,6 +40720,8 @@
|
|
|
40366
40720
|
options,
|
|
40367
40721
|
plugins,
|
|
40368
40722
|
element,
|
|
40723
|
+
onRender,
|
|
40724
|
+
onError,
|
|
40369
40725
|
navigation: inputNavigation
|
|
40370
40726
|
} = _ref;
|
|
40371
40727
|
const {
|
|
@@ -40391,7 +40747,9 @@
|
|
|
40391
40747
|
return init(model, {
|
|
40392
40748
|
options,
|
|
40393
40749
|
plugins,
|
|
40394
|
-
element
|
|
40750
|
+
element,
|
|
40751
|
+
onRender,
|
|
40752
|
+
onError
|
|
40395
40753
|
}, halo, navigation);
|
|
40396
40754
|
}
|
|
40397
40755
|
|
|
@@ -41782,7 +42140,7 @@
|
|
|
41782
42140
|
{
|
|
41783
42141
|
console.warn(e); // eslint-disable-line no-console
|
|
41784
42142
|
}
|
|
41785
|
-
throw new
|
|
42143
|
+
throw new RenderError("Failed to load visualization: '".concat(sKey, "'"), e);
|
|
41786
42144
|
});
|
|
41787
42145
|
}
|
|
41788
42146
|
return LOADED[key];
|
|
@@ -42954,6 +43312,7 @@
|
|
|
42954
43312
|
exports.usePlugins = usePlugins;
|
|
42955
43313
|
exports.usePromise = usePromise;
|
|
42956
43314
|
exports.useRect = useRect;
|
|
43315
|
+
exports.useRef = useRef;
|
|
42957
43316
|
exports.useRenderState = useRenderState;
|
|
42958
43317
|
exports.useSelections = useSelections;
|
|
42959
43318
|
exports.useStaleLayout = useStaleLayout;
|