@holistics/cli-core 2.5.20 → 2.6.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/dist/commands.js +659 -599
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -24038,7 +24038,7 @@ __export(exports_utils, {
|
|
|
24038
24038
|
origin: () => origin
|
|
24039
24039
|
});
|
|
24040
24040
|
|
|
24041
|
-
// ../../node_modules/.pnpm/@holistics+aml@9.
|
|
24041
|
+
// ../../node_modules/.pnpm/@holistics+aml@9.11.0/node_modules/@holistics/aml/dist/aml.es.js
|
|
24042
24042
|
var exports_aml_es = {};
|
|
24043
24043
|
__export(exports_aml_es, {
|
|
24044
24044
|
AmlList: () => lt,
|
|
@@ -24097,7 +24097,7 @@ __export(exports_aml_es, {
|
|
|
24097
24097
|
uniqDiagnostics: () => yi
|
|
24098
24098
|
});
|
|
24099
24099
|
// package.json
|
|
24100
|
-
var version = "2.
|
|
24100
|
+
var version = "2.6.1";
|
|
24101
24101
|
|
|
24102
24102
|
// ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/lib/error.js
|
|
24103
24103
|
class CommanderError extends Error {
|
|
@@ -42933,7 +42933,7 @@ var import_fast_glob = __toESM(require_out4(), 1);
|
|
|
42933
42933
|
import fs12 from "fs";
|
|
42934
42934
|
import path8 from "path";
|
|
42935
42935
|
|
|
42936
|
-
// ../../node_modules/.pnpm/@holistics+aml@9.
|
|
42936
|
+
// ../../node_modules/.pnpm/@holistics+aml@9.11.0/node_modules/@holistics/aml/dist/structuredReconstructor-u96sJ0gj.mjs
|
|
42937
42937
|
var b = {
|
|
42938
42938
|
globalModuleName: "::",
|
|
42939
42939
|
languageExtension: "aml"
|
|
@@ -42983,8 +42983,8 @@ class g {
|
|
|
42983
42983
|
}
|
|
42984
42984
|
}
|
|
42985
42985
|
|
|
42986
|
-
// ../../node_modules/.pnpm/@holistics+aml@9.
|
|
42987
|
-
var ud = "9.
|
|
42986
|
+
// ../../node_modules/.pnpm/@holistics+aml@9.11.0/node_modules/@holistics/aml/dist/aml.es.js
|
|
42987
|
+
var ud = "9.11.0";
|
|
42988
42988
|
var Ql = typeof global == "object" && global && global.Object === Object && global;
|
|
42989
42989
|
var pd = typeof self == "object" && self && self.Object === Object && self;
|
|
42990
42990
|
var en = Ql || pd || Function("return this")();
|
|
@@ -62131,6 +62131,8 @@ Type DataTable (elem_name_as: 'uname') {
|
|
|
62131
62131
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62132
62132
|
conditions(optional): List[String]
|
|
62133
62133
|
having_conditions(optional): List[String]
|
|
62134
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62135
|
+
use_having(optional): Boolean
|
|
62134
62136
|
filter_groups(optional): List[FilterGroup]
|
|
62135
62137
|
filter(multiple: true): VizFilter
|
|
62136
62138
|
fields: List[VizField]
|
|
@@ -62166,6 +62168,8 @@ Type PivotTable (elem_name_as: 'uname') {
|
|
|
62166
62168
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62167
62169
|
conditions(optional): List[String]
|
|
62168
62170
|
having_conditions(optional): List[String]
|
|
62171
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62172
|
+
use_having(optional): Boolean
|
|
62169
62173
|
filter_groups(optional): List[FilterGroup]
|
|
62170
62174
|
filter(multiple: true): VizFilter
|
|
62171
62175
|
rows(optional): List[VizField]
|
|
@@ -62219,6 +62223,8 @@ Type CombinationChart (elem_name_as: 'uname') {
|
|
|
62219
62223
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62220
62224
|
conditions(optional): List[String]
|
|
62221
62225
|
having_conditions(optional): List[String]
|
|
62226
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62227
|
+
use_having(optional): Boolean
|
|
62222
62228
|
filter_groups(optional): List[FilterGroup]
|
|
62223
62229
|
filter(multiple: true): VizFilter
|
|
62224
62230
|
x_axis(optional): VizField
|
|
@@ -62281,6 +62287,8 @@ Type LineChart (elem_name_as: 'uname') {
|
|
|
62281
62287
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62282
62288
|
conditions(optional): List[String]
|
|
62283
62289
|
having_conditions(optional): List[String]
|
|
62290
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62291
|
+
use_having(optional): Boolean
|
|
62284
62292
|
filter_groups(optional): List[FilterGroup]
|
|
62285
62293
|
filter(multiple: true): VizFilter
|
|
62286
62294
|
x_axis(optional): VizField
|
|
@@ -62342,6 +62350,8 @@ Type AreaChart (elem_name_as: 'uname') {
|
|
|
62342
62350
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62343
62351
|
conditions(optional): List[String]
|
|
62344
62352
|
having_conditions(optional): List[String]
|
|
62353
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62354
|
+
use_having(optional): Boolean
|
|
62345
62355
|
filter_groups(optional): List[FilterGroup]
|
|
62346
62356
|
filter(multiple: true): VizFilter
|
|
62347
62357
|
x_axis(optional): VizField
|
|
@@ -62403,6 +62413,8 @@ Type ColumnChart (elem_name_as: 'uname') {
|
|
|
62403
62413
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62404
62414
|
conditions(optional): List[String]
|
|
62405
62415
|
having_conditions(optional): List[String]
|
|
62416
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62417
|
+
use_having(optional): Boolean
|
|
62406
62418
|
filter_groups(optional): List[FilterGroup]
|
|
62407
62419
|
filter(multiple: true): VizFilter
|
|
62408
62420
|
x_axis(optional): VizField
|
|
@@ -62462,6 +62474,8 @@ Type BarChart (elem_name_as: 'uname') {
|
|
|
62462
62474
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62463
62475
|
conditions(optional): List[String]
|
|
62464
62476
|
having_conditions(optional): List[String]
|
|
62477
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62478
|
+
use_having(optional): Boolean
|
|
62465
62479
|
filter_groups(optional): List[FilterGroup]
|
|
62466
62480
|
filter(multiple: true): VizFilter
|
|
62467
62481
|
x_axis(optional): VizField
|
|
@@ -62528,6 +62542,8 @@ Type PieChart (elem_name_as: 'uname') {
|
|
|
62528
62542
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62529
62543
|
conditions(optional): List[String]
|
|
62530
62544
|
having_conditions(optional): List[String]
|
|
62545
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62546
|
+
use_having(optional): Boolean
|
|
62531
62547
|
filter_groups(optional): List[FilterGroup]
|
|
62532
62548
|
filter(multiple: true): VizFilter
|
|
62533
62549
|
legend(optional): VizField
|
|
@@ -62570,6 +62586,8 @@ Type PyramidChart {
|
|
|
62570
62586
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62571
62587
|
conditions(optional): List[String]
|
|
62572
62588
|
having_conditions(optional): List[String]
|
|
62589
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62590
|
+
use_having(optional): Boolean
|
|
62573
62591
|
filter_groups(optional): List[FilterGroup]
|
|
62574
62592
|
filter(multiple: true): VizFilter
|
|
62575
62593
|
legend(optional): VizField
|
|
@@ -62611,6 +62629,8 @@ Type FunnelChart (elem_name_as: 'uname') {
|
|
|
62611
62629
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62612
62630
|
conditions(optional): List[String]
|
|
62613
62631
|
having_conditions(optional): List[String]
|
|
62632
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62633
|
+
use_having(optional): Boolean
|
|
62614
62634
|
filter_groups(optional): List[FilterGroup]
|
|
62615
62635
|
filter(multiple: true): VizFilter
|
|
62616
62636
|
legend(optional): VizField
|
|
@@ -62653,6 +62673,8 @@ Type BubbleChart (elem_name_as: 'uname') {
|
|
|
62653
62673
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62654
62674
|
conditions(optional): List[String]
|
|
62655
62675
|
having_conditions(optional): List[String]
|
|
62676
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62677
|
+
use_having(optional): Boolean
|
|
62656
62678
|
filter_groups(optional): List[FilterGroup]
|
|
62657
62679
|
filter(multiple: true): VizFilter
|
|
62658
62680
|
x_col: VizField
|
|
@@ -62673,6 +62695,8 @@ Type ScatterChart (elem_name_as: 'uname') {
|
|
|
62673
62695
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62674
62696
|
conditions(optional): List[String]
|
|
62675
62697
|
having_conditions(optional): List[String]
|
|
62698
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62699
|
+
use_having(optional): Boolean
|
|
62676
62700
|
filter_groups(optional): List[FilterGroup]
|
|
62677
62701
|
filter(multiple: true): VizFilter
|
|
62678
62702
|
x_col: VizField
|
|
@@ -62692,6 +62716,8 @@ Type RetentionHeatmap (elem_name_as: 'uname') {
|
|
|
62692
62716
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62693
62717
|
conditions(optional): List[String]
|
|
62694
62718
|
having_conditions(optional): List[String]
|
|
62719
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62720
|
+
use_having(optional): Boolean
|
|
62695
62721
|
filter_groups(optional): List[FilterGroup]
|
|
62696
62722
|
filter(multiple: true): VizFilter
|
|
62697
62723
|
cohort: VizField
|
|
@@ -62714,6 +62740,8 @@ Type ConversionFunnel (elem_name_as: 'uname') {
|
|
|
62714
62740
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62715
62741
|
conditions(optional): List[String]
|
|
62716
62742
|
having_conditions(optional): List[String]
|
|
62743
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62744
|
+
use_having(optional): Boolean
|
|
62717
62745
|
filter_groups(optional): List[FilterGroup]
|
|
62718
62746
|
filter(multiple: true): VizFilter
|
|
62719
62747
|
breakdown_by(optional): VizField
|
|
@@ -62753,6 +62781,8 @@ Type MetricSheet (elem_name_as: 'uname') {
|
|
|
62753
62781
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62754
62782
|
conditions(optional): List[String]
|
|
62755
62783
|
having_conditions(optional): List[String]
|
|
62784
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62785
|
+
use_having(optional): Boolean
|
|
62756
62786
|
filter_groups(optional): List[FilterGroup]
|
|
62757
62787
|
filter(multiple: true): VizFilter
|
|
62758
62788
|
date_field: VizField
|
|
@@ -62792,6 +62822,8 @@ Type MetricKpi (elem_name_as: 'uname') {
|
|
|
62792
62822
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62793
62823
|
conditions(optional): List[String]
|
|
62794
62824
|
having_conditions(optional): List[String]
|
|
62825
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62826
|
+
use_having(optional): Boolean
|
|
62795
62827
|
filter_groups(optional): List[FilterGroup]
|
|
62796
62828
|
filter(multiple: true): VizFilter
|
|
62797
62829
|
value: VizField
|
|
@@ -62828,6 +62860,8 @@ Type RadarChart (elem_name_as: 'uname') {
|
|
|
62828
62860
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62829
62861
|
conditions(optional): List[String]
|
|
62830
62862
|
having_conditions(optional): List[String]
|
|
62863
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62864
|
+
use_having(optional): Boolean
|
|
62831
62865
|
filter_groups(optional): List[FilterGroup]
|
|
62832
62866
|
filter(multiple: true): VizFilter
|
|
62833
62867
|
label(optional): String
|
|
@@ -62857,6 +62891,8 @@ Type WordCloud (elem_name_as: 'uname') {
|
|
|
62857
62891
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62858
62892
|
conditions(optional): List[String]
|
|
62859
62893
|
having_conditions(optional): List[String]
|
|
62894
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62895
|
+
use_having(optional): Boolean
|
|
62860
62896
|
filter_groups(optional): List[FilterGroup]
|
|
62861
62897
|
filter(multiple: true): VizFilter
|
|
62862
62898
|
words: VizField
|
|
@@ -62873,6 +62909,8 @@ Type GaugeChart (elem_name_as: 'uname') {
|
|
|
62873
62909
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62874
62910
|
conditions(optional): List[String]
|
|
62875
62911
|
having_conditions(optional): List[String]
|
|
62912
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62913
|
+
use_having(optional): Boolean
|
|
62876
62914
|
filter_groups(optional): List[FilterGroup]
|
|
62877
62915
|
filter(multiple: true): VizFilter
|
|
62878
62916
|
value: VizField
|
|
@@ -62897,6 +62935,8 @@ Type Heatmap (elem_name_as: 'uname') {
|
|
|
62897
62935
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62898
62936
|
conditions(optional): List[String]
|
|
62899
62937
|
having_conditions(optional): List[String]
|
|
62938
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62939
|
+
use_having(optional): Boolean
|
|
62900
62940
|
filter_groups(optional): List[FilterGroup]
|
|
62901
62941
|
filter(multiple: true): VizFilter
|
|
62902
62942
|
lat: VizField
|
|
@@ -62941,6 +62981,8 @@ Type PointMap (elem_name_as: 'uname') {
|
|
|
62941
62981
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
62942
62982
|
conditions(optional): List[String]
|
|
62943
62983
|
having_conditions(optional): List[String]
|
|
62984
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
62985
|
+
use_having(optional): Boolean
|
|
62944
62986
|
filter_groups(optional): List[FilterGroup]
|
|
62945
62987
|
filter(multiple: true): VizFilter
|
|
62946
62988
|
lat: VizField
|
|
@@ -63002,6 +63044,8 @@ Type FilledMap (elem_name_as: 'uname') {
|
|
|
63002
63044
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
63003
63045
|
conditions(optional): List[String]
|
|
63004
63046
|
having_conditions(optional): List[String]
|
|
63047
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
63048
|
+
use_having(optional): Boolean
|
|
63005
63049
|
filter_groups(optional): List[FilterGroup]
|
|
63006
63050
|
filter(multiple: true): VizFilter
|
|
63007
63051
|
location(multiple: true, unique_elem_name: false) {
|
|
@@ -63069,6 +63113,8 @@ Type CustomChart {
|
|
|
63069
63113
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
63070
63114
|
conditions(optional): List[String]
|
|
63071
63115
|
having_conditions(optional): List[String]
|
|
63116
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
63117
|
+
use_having(optional): Boolean
|
|
63072
63118
|
filter_groups(optional): List[FilterGroup]
|
|
63073
63119
|
filter(multiple: true): VizFilter
|
|
63074
63120
|
field (elem_name_as: 'uname', body_as: 'val', multiple: true, unique_elem_name: true) : VizField
|
|
@@ -63085,6 +63131,8 @@ Type MarkdownViz (elem_name_as: 'uname') {
|
|
|
63085
63131
|
calculation(elem_name_as: 'uname', multiple: true, unique_elem_name: true): VizCalculation
|
|
63086
63132
|
conditions(optional): List[String]
|
|
63087
63133
|
having_conditions(optional): List[String]
|
|
63134
|
+
@doc Where a filter on a measure goes. true: in having, which keeps the groups whose measure passes. Unset or false: in filters on the measure alias, which drops result rows after aggregation. Note that this only has an effect when having is not enabled by default for your workspace. It will be deprecated in a future release. ;;
|
|
63135
|
+
use_having(optional): Boolean
|
|
63088
63136
|
filter_groups(optional): List[FilterGroup]
|
|
63089
63137
|
filter(multiple: true): VizFilter
|
|
63090
63138
|
rows(optional): List[VizField]
|
|
@@ -64725,7 +64773,7 @@ function Ou2(e, t) {
|
|
|
64725
64773
|
if (e.__type__ === "MovingCalculationField") {
|
|
64726
64774
|
let n = e.order || "row";
|
|
64727
64775
|
Array.isArray(e.order) && (n = e.order.map(({ field: a, transformation: s }) => {
|
|
64728
|
-
const { path_hash: c, custom_label: l, transformation: u } =
|
|
64776
|
+
const { path_hash: c, custom_label: l, transformation: u } = W2({ ref: a, transformation: s }, t, {
|
|
64729
64777
|
allowDimension: true,
|
|
64730
64778
|
allowMeasure: false,
|
|
64731
64779
|
fallbackUname: `moving_calc_order_${a.model}_${a.field}`
|
|
@@ -64747,7 +64795,7 @@ function Ou2(e, t) {
|
|
|
64747
64795
|
};
|
|
64748
64796
|
}
|
|
64749
64797
|
if (e.__type__ === "PeriodOverPeriodComparison") {
|
|
64750
|
-
const { time_dimension: n } = e, { path_hash: o } =
|
|
64798
|
+
const { time_dimension: n } = e, { path_hash: o } = W2({ ref: n }, t, {
|
|
64751
64799
|
allowDimension: true,
|
|
64752
64800
|
allowMeasure: false,
|
|
64753
64801
|
fallbackUname: `pop_${n.model}_${n.field}`
|
|
@@ -64762,7 +64810,7 @@ function Ou2(e, t) {
|
|
|
64762
64810
|
return Array.isArray(e.of_all) ? {
|
|
64763
64811
|
type: "percentage",
|
|
64764
64812
|
of_all: e.of_all.map(({ field: o, transformation: i }) => {
|
|
64765
|
-
const { path_hash: r2, custom_label: a } =
|
|
64813
|
+
const { path_hash: r2, custom_label: a } = W2(o, t, {
|
|
64766
64814
|
allowDimension: true,
|
|
64767
64815
|
allowMeasure: false,
|
|
64768
64816
|
fallbackUname: `pot_custom_grain_${o.model}_${o.field}`
|
|
@@ -64785,7 +64833,7 @@ function _y2(e, t, { targetFieldUname: n }) {
|
|
|
64785
64833
|
type: r.GoToUrlAction,
|
|
64786
64834
|
label: i.label,
|
|
64787
64835
|
url: {
|
|
64788
|
-
...
|
|
64836
|
+
...W2(i.url, t, {
|
|
64789
64837
|
fallbackUname: `!action_${o}_url`,
|
|
64790
64838
|
allowDimension: false,
|
|
64791
64839
|
allowMeasure: true
|
|
@@ -64859,7 +64907,7 @@ function by2(e, t) {
|
|
|
64859
64907
|
uuid: n
|
|
64860
64908
|
};
|
|
64861
64909
|
}
|
|
64862
|
-
function
|
|
64910
|
+
function W2(e, t, {
|
|
64863
64911
|
allowDimension: n,
|
|
64864
64912
|
allowMeasure: o,
|
|
64865
64913
|
fallbackUname: i,
|
|
@@ -65364,7 +65412,7 @@ var Dy2 = (e) => {
|
|
|
65364
65412
|
};
|
|
65365
65413
|
var Fy2 = (e, t, n) => {
|
|
65366
65414
|
let o;
|
|
65367
|
-
if (e.key ? o = n.find((l) => l.uuid === e.key) : e.ref && (o =
|
|
65415
|
+
if (e.key ? o = n.find((l) => l.uuid === e.key) : e.ref && (o = W2({ ref: e.ref, aggregation: e.aggregation }, t, {
|
|
65368
65416
|
allowDimension: true,
|
|
65369
65417
|
allowMeasure: true,
|
|
65370
65418
|
fallbackUname: "!conditional_format"
|
|
@@ -65430,20 +65478,20 @@ function Ly2() {
|
|
|
65430
65478
|
return ba2 = e, ba2;
|
|
65431
65479
|
}
|
|
65432
65480
|
var wa;
|
|
65433
|
-
var
|
|
65481
|
+
var Uu2;
|
|
65434
65482
|
function cc2() {
|
|
65435
|
-
if (
|
|
65483
|
+
if (Uu2)
|
|
65436
65484
|
return wa;
|
|
65437
|
-
|
|
65485
|
+
Uu2 = 1;
|
|
65438
65486
|
var e = Ly2(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
65439
65487
|
return wa = n, wa;
|
|
65440
65488
|
}
|
|
65441
65489
|
var va;
|
|
65442
|
-
var
|
|
65490
|
+
var ju2;
|
|
65443
65491
|
function uc2() {
|
|
65444
|
-
if (
|
|
65492
|
+
if (ju2)
|
|
65445
65493
|
return va;
|
|
65446
|
-
|
|
65494
|
+
ju2 = 1;
|
|
65447
65495
|
var e = cc2(), t = e.Symbol;
|
|
65448
65496
|
return va = t, va;
|
|
65449
65497
|
}
|
|
@@ -65478,11 +65526,11 @@ function My2() {
|
|
|
65478
65526
|
return xa2 = n, xa2;
|
|
65479
65527
|
}
|
|
65480
65528
|
var Ca2;
|
|
65481
|
-
var
|
|
65529
|
+
var Wu2;
|
|
65482
65530
|
function Dh2() {
|
|
65483
|
-
if (
|
|
65531
|
+
if (Wu2)
|
|
65484
65532
|
return Ca2;
|
|
65485
|
-
|
|
65533
|
+
Wu2 = 1;
|
|
65486
65534
|
var e = uc2(), t = Ny2(), n = My2(), o = "[object Null]", i = "[object Undefined]", r2 = e ? e.toStringTag : undefined;
|
|
65487
65535
|
function a(s) {
|
|
65488
65536
|
return s == null ? s === undefined ? i : o : r2 && (r2 in Object(s)) ? t(s) : n(s);
|
|
@@ -65490,11 +65538,11 @@ function Dh2() {
|
|
|
65490
65538
|
return Ca2 = a, Ca2;
|
|
65491
65539
|
}
|
|
65492
65540
|
var Sa2;
|
|
65493
|
-
var
|
|
65541
|
+
var Qu2;
|
|
65494
65542
|
function Ry2() {
|
|
65495
|
-
if (
|
|
65543
|
+
if (Qu2)
|
|
65496
65544
|
return Sa2;
|
|
65497
|
-
|
|
65545
|
+
Qu2 = 1;
|
|
65498
65546
|
function e(t) {
|
|
65499
65547
|
return t != null && typeof t == "object";
|
|
65500
65548
|
}
|
|
@@ -65580,7 +65628,7 @@ function Gy2() {
|
|
|
65580
65628
|
}
|
|
65581
65629
|
var Fa2;
|
|
65582
65630
|
var td2;
|
|
65583
|
-
function
|
|
65631
|
+
function Uy2() {
|
|
65584
65632
|
if (td2)
|
|
65585
65633
|
return Fa2;
|
|
65586
65634
|
td2 = 1;
|
|
@@ -65600,11 +65648,11 @@ function jy2() {
|
|
|
65600
65648
|
}
|
|
65601
65649
|
var $a2;
|
|
65602
65650
|
var nd2;
|
|
65603
|
-
function
|
|
65651
|
+
function jy2() {
|
|
65604
65652
|
if (nd2)
|
|
65605
65653
|
return $a2;
|
|
65606
65654
|
nd2 = 1;
|
|
65607
|
-
var e = zy2(), t = Gy2(), n = Fh2(), o =
|
|
65655
|
+
var e = zy2(), t = Gy2(), n = Fh2(), o = Uy2(), i = /[\\^$.*+?()[\]{}|]/g, r2 = /^\[object .+?Constructor\]$/, a = Function.prototype, s = Object.prototype, c = a.toString, l = s.hasOwnProperty, u = RegExp("^" + c.call(l).replace(i, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
65608
65656
|
function d2(h) {
|
|
65609
65657
|
if (!n(h) || t(h))
|
|
65610
65658
|
return false;
|
|
@@ -65630,7 +65678,7 @@ function $h2() {
|
|
|
65630
65678
|
if (id2)
|
|
65631
65679
|
return Na2;
|
|
65632
65680
|
id2 = 1;
|
|
65633
|
-
var e =
|
|
65681
|
+
var e = jy2(), t = Ky2();
|
|
65634
65682
|
function n(o, i) {
|
|
65635
65683
|
var r2 = t(o, i);
|
|
65636
65684
|
return e(r2) ? r2 : undefined;
|
|
@@ -65639,7 +65687,7 @@ function $h2() {
|
|
|
65639
65687
|
}
|
|
65640
65688
|
var Ma2;
|
|
65641
65689
|
var rd2;
|
|
65642
|
-
function
|
|
65690
|
+
function Ur2() {
|
|
65643
65691
|
if (rd2)
|
|
65644
65692
|
return Ma2;
|
|
65645
65693
|
rd2 = 1;
|
|
@@ -65652,7 +65700,7 @@ function Hy2() {
|
|
|
65652
65700
|
if (ad2)
|
|
65653
65701
|
return Ra2;
|
|
65654
65702
|
ad2 = 1;
|
|
65655
|
-
var e =
|
|
65703
|
+
var e = Ur2();
|
|
65656
65704
|
function t() {
|
|
65657
65705
|
this.__data__ = e ? e(null) : {}, this.size = 0;
|
|
65658
65706
|
}
|
|
@@ -65660,7 +65708,7 @@ function Hy2() {
|
|
|
65660
65708
|
}
|
|
65661
65709
|
var Oa2;
|
|
65662
65710
|
var sd2;
|
|
65663
|
-
function
|
|
65711
|
+
function Wy2() {
|
|
65664
65712
|
if (sd2)
|
|
65665
65713
|
return Oa2;
|
|
65666
65714
|
sd2 = 1;
|
|
@@ -65672,11 +65720,11 @@ function Qy2() {
|
|
|
65672
65720
|
}
|
|
65673
65721
|
var za2;
|
|
65674
65722
|
var ld;
|
|
65675
|
-
function
|
|
65723
|
+
function Qy2() {
|
|
65676
65724
|
if (ld)
|
|
65677
65725
|
return za2;
|
|
65678
65726
|
ld = 1;
|
|
65679
|
-
var e =
|
|
65727
|
+
var e = Ur2(), t = "__lodash_hash_undefined__", n = Object.prototype, o = n.hasOwnProperty;
|
|
65680
65728
|
function i(r2) {
|
|
65681
65729
|
var a = this.__data__;
|
|
65682
65730
|
if (e) {
|
|
@@ -65693,7 +65741,7 @@ function qy2() {
|
|
|
65693
65741
|
if (cd2)
|
|
65694
65742
|
return Va2;
|
|
65695
65743
|
cd2 = 1;
|
|
65696
|
-
var e =
|
|
65744
|
+
var e = Ur2(), t = Object.prototype, n = t.hasOwnProperty;
|
|
65697
65745
|
function o(i) {
|
|
65698
65746
|
var r2 = this.__data__;
|
|
65699
65747
|
return e ? r2[i] !== undefined : n.call(r2, i);
|
|
@@ -65706,20 +65754,20 @@ function Yy2() {
|
|
|
65706
65754
|
if (ud2)
|
|
65707
65755
|
return Ga2;
|
|
65708
65756
|
ud2 = 1;
|
|
65709
|
-
var e =
|
|
65757
|
+
var e = Ur2(), t = "__lodash_hash_undefined__";
|
|
65710
65758
|
function n(o, i) {
|
|
65711
65759
|
var r2 = this.__data__;
|
|
65712
65760
|
return this.size += this.has(o) ? 0 : 1, r2[o] = e && i === undefined ? t : i, this;
|
|
65713
65761
|
}
|
|
65714
65762
|
return Ga2 = n, Ga2;
|
|
65715
65763
|
}
|
|
65716
|
-
var
|
|
65764
|
+
var Ua2;
|
|
65717
65765
|
var dd2;
|
|
65718
65766
|
function Jy2() {
|
|
65719
65767
|
if (dd2)
|
|
65720
|
-
return
|
|
65768
|
+
return Ua2;
|
|
65721
65769
|
dd2 = 1;
|
|
65722
|
-
var e = Hy2(), t =
|
|
65770
|
+
var e = Hy2(), t = Wy2(), n = Qy2(), o = qy2(), i = Yy2();
|
|
65723
65771
|
function r2(a) {
|
|
65724
65772
|
var s = -1, c = a == null ? 0 : a.length;
|
|
65725
65773
|
for (this.clear();++s < c; ) {
|
|
@@ -65727,18 +65775,18 @@ function Jy2() {
|
|
|
65727
65775
|
this.set(l[0], l[1]);
|
|
65728
65776
|
}
|
|
65729
65777
|
}
|
|
65730
|
-
return r2.prototype.clear = e, r2.prototype.delete = t, r2.prototype.get = n, r2.prototype.has = o, r2.prototype.set = i,
|
|
65778
|
+
return r2.prototype.clear = e, r2.prototype.delete = t, r2.prototype.get = n, r2.prototype.has = o, r2.prototype.set = i, Ua2 = r2, Ua2;
|
|
65731
65779
|
}
|
|
65732
|
-
var
|
|
65780
|
+
var ja2;
|
|
65733
65781
|
var pd2;
|
|
65734
65782
|
function Zy2() {
|
|
65735
65783
|
if (pd2)
|
|
65736
|
-
return
|
|
65784
|
+
return ja2;
|
|
65737
65785
|
pd2 = 1;
|
|
65738
65786
|
function e() {
|
|
65739
65787
|
this.__data__ = [], this.size = 0;
|
|
65740
65788
|
}
|
|
65741
|
-
return
|
|
65789
|
+
return ja2 = e, ja2;
|
|
65742
65790
|
}
|
|
65743
65791
|
var Ka2;
|
|
65744
65792
|
var md2;
|
|
@@ -65753,7 +65801,7 @@ function Xy2() {
|
|
|
65753
65801
|
}
|
|
65754
65802
|
var Ha2;
|
|
65755
65803
|
var hd2;
|
|
65756
|
-
function
|
|
65804
|
+
function jr3() {
|
|
65757
65805
|
if (hd2)
|
|
65758
65806
|
return Ha2;
|
|
65759
65807
|
hd2 = 1;
|
|
@@ -65766,13 +65814,13 @@ function Ur2() {
|
|
|
65766
65814
|
}
|
|
65767
65815
|
return Ha2 = t, Ha2;
|
|
65768
65816
|
}
|
|
65769
|
-
var
|
|
65817
|
+
var Wa2;
|
|
65770
65818
|
var fd2;
|
|
65771
65819
|
function eb2() {
|
|
65772
65820
|
if (fd2)
|
|
65773
|
-
return
|
|
65821
|
+
return Wa2;
|
|
65774
65822
|
fd2 = 1;
|
|
65775
|
-
var e =
|
|
65823
|
+
var e = jr3(), t = Array.prototype, n = t.splice;
|
|
65776
65824
|
function o(i) {
|
|
65777
65825
|
var r2 = this.__data__, a = e(r2, i);
|
|
65778
65826
|
if (a < 0)
|
|
@@ -65780,20 +65828,20 @@ function eb2() {
|
|
|
65780
65828
|
var s = r2.length - 1;
|
|
65781
65829
|
return a == s ? r2.pop() : n.call(r2, a, 1), --this.size, true;
|
|
65782
65830
|
}
|
|
65783
|
-
return
|
|
65831
|
+
return Wa2 = o, Wa2;
|
|
65784
65832
|
}
|
|
65785
|
-
var
|
|
65833
|
+
var Qa2;
|
|
65786
65834
|
var gd2;
|
|
65787
65835
|
function tb2() {
|
|
65788
65836
|
if (gd2)
|
|
65789
|
-
return
|
|
65837
|
+
return Qa2;
|
|
65790
65838
|
gd2 = 1;
|
|
65791
|
-
var e =
|
|
65839
|
+
var e = jr3();
|
|
65792
65840
|
function t(n) {
|
|
65793
65841
|
var o = this.__data__, i = e(o, n);
|
|
65794
65842
|
return i < 0 ? undefined : o[i][1];
|
|
65795
65843
|
}
|
|
65796
|
-
return
|
|
65844
|
+
return Qa2 = t, Qa2;
|
|
65797
65845
|
}
|
|
65798
65846
|
var qa2;
|
|
65799
65847
|
var Ad2;
|
|
@@ -65801,7 +65849,7 @@ function nb2() {
|
|
|
65801
65849
|
if (Ad2)
|
|
65802
65850
|
return qa2;
|
|
65803
65851
|
Ad2 = 1;
|
|
65804
|
-
var e =
|
|
65852
|
+
var e = jr3();
|
|
65805
65853
|
function t(n) {
|
|
65806
65854
|
return e(this.__data__, n) > -1;
|
|
65807
65855
|
}
|
|
@@ -65813,7 +65861,7 @@ function ob2() {
|
|
|
65813
65861
|
if (_d2)
|
|
65814
65862
|
return Ya2;
|
|
65815
65863
|
_d2 = 1;
|
|
65816
|
-
var e =
|
|
65864
|
+
var e = jr3();
|
|
65817
65865
|
function t(n, o) {
|
|
65818
65866
|
var i = this.__data__, r2 = e(i, n);
|
|
65819
65867
|
return r2 < 0 ? (++this.size, i.push([n, o])) : i[r2][1] = o, this;
|
|
@@ -66123,7 +66171,7 @@ function Sb2(e) {
|
|
|
66123
66171
|
};
|
|
66124
66172
|
}
|
|
66125
66173
|
function Si2(e, t) {
|
|
66126
|
-
const n =
|
|
66174
|
+
const n = W2(e.field, t, { allowDimension: true, allowMeasure: true, fallbackUname: "!pop" }), o = xb2(e, "show_growth_rate", Cb2);
|
|
66127
66175
|
if (e.value) {
|
|
66128
66176
|
if (e.value.__type__ === "RelativePopValue") {
|
|
66129
66177
|
const { offset: s, period: c } = Od2(e.value);
|
|
@@ -66248,7 +66296,7 @@ function Tb2(e, t) {
|
|
|
66248
66296
|
const n = new Ce3;
|
|
66249
66297
|
if (!Array.isArray(e.fields))
|
|
66250
66298
|
throw new Error("Expect an array of fields");
|
|
66251
|
-
const o = e.fields.map((a, s) =>
|
|
66299
|
+
const o = e.fields.map((a, s) => W2(a, t, {
|
|
66252
66300
|
allowDimension: true,
|
|
66253
66301
|
allowMeasure: true,
|
|
66254
66302
|
fallbackUname: `!fields[${s}]`,
|
|
@@ -66372,20 +66420,20 @@ function Db2(e) {
|
|
|
66372
66420
|
}
|
|
66373
66421
|
function Fb2(e, t) {
|
|
66374
66422
|
const n = new Ce3, { rows: o, columns: i, values: r2 } = e, a = {
|
|
66375
|
-
rows: (o || []).map((u, d2) =>
|
|
66423
|
+
rows: (o || []).map((u, d2) => W2(u, t, {
|
|
66376
66424
|
allowDimension: true,
|
|
66377
66425
|
allowMeasure: false,
|
|
66378
66426
|
fallbackUname: `!rows[${d2}]`,
|
|
66379
66427
|
unameValidator: n,
|
|
66380
66428
|
allowHiddenField: true
|
|
66381
66429
|
})),
|
|
66382
|
-
columns: (i || []).map((u, d2) =>
|
|
66430
|
+
columns: (i || []).map((u, d2) => W2(u, t, {
|
|
66383
66431
|
allowDimension: true,
|
|
66384
66432
|
allowMeasure: false,
|
|
66385
66433
|
fallbackUname: `!columns[${d2}]`,
|
|
66386
66434
|
unameValidator: n
|
|
66387
66435
|
})),
|
|
66388
|
-
values: (r2 || []).map((u, d2) =>
|
|
66436
|
+
values: (r2 || []).map((u, d2) => W2(u, t, {
|
|
66389
66437
|
allowDimension: false,
|
|
66390
66438
|
allowMeasure: true,
|
|
66391
66439
|
fallbackUname: `!values[${d2}]`,
|
|
@@ -66417,7 +66465,7 @@ function Fb2(e, t) {
|
|
|
66417
66465
|
settings: c
|
|
66418
66466
|
};
|
|
66419
66467
|
}
|
|
66420
|
-
var Ei2 = (e, t, n, { allowCustomLegend: o = false } = {}) => e.map((i, r2) =>
|
|
66468
|
+
var Ei2 = (e, t, n, { allowCustomLegend: o = false } = {}) => e.map((i, r2) => W2(i.field, t, {
|
|
66421
66469
|
allowDimension: false,
|
|
66422
66470
|
allowMeasure: true,
|
|
66423
66471
|
fallbackUname: `!tooltip[${r2}]`,
|
|
@@ -66472,7 +66520,7 @@ var mc2 = {
|
|
|
66472
66520
|
"seq-viridis": -8,
|
|
66473
66521
|
"seq-magma": -9
|
|
66474
66522
|
};
|
|
66475
|
-
function
|
|
66523
|
+
function Wr3(e) {
|
|
66476
66524
|
return typeof e == "number" ? { palette_id: e, palette: undefined } : typeof e == "string" ? { palette_id: mc2[e], palette: undefined } : typeof e == "object" ? { palette_id: undefined, palette: pc2(e) } : { palette_id: undefined, palette: undefined };
|
|
66477
66525
|
}
|
|
66478
66526
|
var hc2 = "left";
|
|
@@ -66531,12 +66579,12 @@ function Vb2(e, t) {
|
|
|
66531
66579
|
others: {},
|
|
66532
66580
|
misc: {}
|
|
66533
66581
|
};
|
|
66534
|
-
if (n && (l.x_axis =
|
|
66582
|
+
if (n && (l.x_axis = W2(n, t, {
|
|
66535
66583
|
allowDimension: true,
|
|
66536
66584
|
allowMeasure: false,
|
|
66537
66585
|
fallbackUname: "!x_axis",
|
|
66538
66586
|
unameValidator: s
|
|
66539
|
-
}), typeof n == "object" && n.label && (u.x_axis.title = n.label)), o && (l.series =
|
|
66587
|
+
}), typeof n == "object" && n.label && (u.x_axis.title = n.label)), o && (l.series = W2(o, t, {
|
|
66540
66588
|
allowDimension: true,
|
|
66541
66589
|
allowMeasure: false,
|
|
66542
66590
|
fallbackUname: "!legend",
|
|
@@ -66552,19 +66600,19 @@ function Vb2(e, t) {
|
|
|
66552
66600
|
};
|
|
66553
66601
|
f.forEach((v, A) => {
|
|
66554
66602
|
const { field: C, settings: B = {} } = v, P = {
|
|
66555
|
-
...
|
|
66603
|
+
...W2(C, t, {
|
|
66556
66604
|
allowDimension: false,
|
|
66557
66605
|
allowMeasure: true,
|
|
66558
66606
|
allowCustomLegend: true,
|
|
66559
66607
|
fallbackUname: `!y_axis[${m2}].series[${A}]`,
|
|
66560
66608
|
unameValidator: s
|
|
66561
66609
|
})
|
|
66562
|
-
}, y2 = zb2(v), { seriesStyle: k, seriesInterpolation: D } = Gd2(v.settings, c, y2), { palette_id: T2, palette:
|
|
66610
|
+
}, y2 = zb2(v), { seriesStyle: k, seriesInterpolation: D } = Gd2(v.settings, c, y2), { palette_id: T2, palette: j } = Wr3(B.color_palette);
|
|
66563
66611
|
P.series_settings = {
|
|
66564
66612
|
series_type: y2,
|
|
66565
66613
|
color: B.color || "auto",
|
|
66566
66614
|
palette_id: T2,
|
|
66567
|
-
...
|
|
66615
|
+
...j !== undefined ? { palette: j } : {},
|
|
66568
66616
|
...k && D ? { series_style: k, series_interpolation: D } : {},
|
|
66569
66617
|
series_hash: (B.point || []).reduce((V, Y) => {
|
|
66570
66618
|
const K2 = Gd2(Y, c, y2);
|
|
@@ -66632,20 +66680,20 @@ function Gb2(e, t) {
|
|
|
66632
66680
|
},
|
|
66633
66681
|
aggregate_awareness: gt3(a.aggregate_awareness)
|
|
66634
66682
|
};
|
|
66635
|
-
o && (s.series =
|
|
66683
|
+
o && (s.series = W2(o, t, {
|
|
66636
66684
|
allowDimension: true,
|
|
66637
66685
|
allowMeasure: false,
|
|
66638
66686
|
fallbackUname: "!legend",
|
|
66639
66687
|
unameValidator: n
|
|
66640
66688
|
})), r2 && r2.length > 0 && (s.tooltips = Ei2(r2, t, n)), i.forEach((d2, h) => {
|
|
66641
66689
|
const { field: m2, settings: f = {} } = d2, g3 = {
|
|
66642
|
-
...
|
|
66690
|
+
...W2(m2, t, {
|
|
66643
66691
|
allowDimension: false,
|
|
66644
66692
|
allowMeasure: true,
|
|
66645
66693
|
fallbackUname: `!series[${h}]`,
|
|
66646
66694
|
unameValidator: n
|
|
66647
66695
|
})
|
|
66648
|
-
}, { palette_id: w2, palette: x } =
|
|
66696
|
+
}, { palette_id: w2, palette: x } = Wr3(f.color_palette);
|
|
66649
66697
|
g3.series_settings = {
|
|
66650
66698
|
color: f.color,
|
|
66651
66699
|
palette_id: w2,
|
|
@@ -66736,7 +66784,7 @@ function _c2(e, t) {
|
|
|
66736
66784
|
field: r2
|
|
66737
66785
|
};
|
|
66738
66786
|
}
|
|
66739
|
-
function
|
|
66787
|
+
function jh2(e, t) {
|
|
66740
66788
|
if (!e.path_hash.model_id && e.aggregation === "custom") {
|
|
66741
66789
|
if (t && t !== "custom")
|
|
66742
66790
|
throw new Error(`Cannot set aggregation (${t}) for a custom measure (${e.path_hash.field_name})`);
|
|
@@ -66744,12 +66792,12 @@ function Uh2(e, t) {
|
|
|
66744
66792
|
}
|
|
66745
66793
|
return t;
|
|
66746
66794
|
}
|
|
66747
|
-
function
|
|
66795
|
+
function Ub2(e, t) {
|
|
66748
66796
|
const { field: n } = _c2(e, t);
|
|
66749
66797
|
return zt3(n.type);
|
|
66750
66798
|
}
|
|
66751
|
-
function
|
|
66752
|
-
return e.type === "field" ?
|
|
66799
|
+
function jb2(e, t) {
|
|
66800
|
+
return e.type === "field" ? Ub2(e.source, t) : gc2[e.type];
|
|
66753
66801
|
}
|
|
66754
66802
|
function Kb2(e, t) {
|
|
66755
66803
|
if (e.type !== "field" || !e.source)
|
|
@@ -66779,7 +66827,7 @@ function Hb2(e, t) {
|
|
|
66779
66827
|
};
|
|
66780
66828
|
}
|
|
66781
66829
|
}
|
|
66782
|
-
function
|
|
66830
|
+
function Wb2({
|
|
66783
66831
|
modifier: e,
|
|
66784
66832
|
options: t,
|
|
66785
66833
|
extraData: n,
|
|
@@ -66801,7 +66849,7 @@ function Qb2({
|
|
|
66801
66849
|
throw new Error("Must provide `rank_by` option when using TOP/BOTTOM operator.");
|
|
66802
66850
|
if (import_lodash.isEmpty(t.rank_by?.field))
|
|
66803
66851
|
throw new Error("Option `rank_by.field` must refer to a valid data model field.");
|
|
66804
|
-
const { field: i, logic: r2, aggregation: a } = t.rank_by, s =
|
|
66852
|
+
const { field: i, logic: r2, aggregation: a } = t.rank_by, s = W2(i, n, {
|
|
66805
66853
|
allowDimension: true,
|
|
66806
66854
|
allowMeasure: true,
|
|
66807
66855
|
fallbackUname: "filter"
|
|
@@ -66809,10 +66857,10 @@ function Qb2({
|
|
|
66809
66857
|
return {
|
|
66810
66858
|
...s.path_hash,
|
|
66811
66859
|
logic: r2,
|
|
66812
|
-
aggregation:
|
|
66860
|
+
aggregation: jh2(s, a)
|
|
66813
66861
|
};
|
|
66814
66862
|
}
|
|
66815
|
-
function
|
|
66863
|
+
function Qb2(e, t) {
|
|
66816
66864
|
if (["top", "bottom"].includes(e) && !t)
|
|
66817
66865
|
throw new Error(`\`${e}\` is not allowed to use in \`FilterBlock\``);
|
|
66818
66866
|
return e;
|
|
@@ -66823,9 +66871,9 @@ function qb2(e) {
|
|
|
66823
66871
|
function Kh2(e, t, n) {
|
|
66824
66872
|
if (e)
|
|
66825
66873
|
return {
|
|
66826
|
-
operator:
|
|
66874
|
+
operator: Qb2(e.operator, n),
|
|
66827
66875
|
values: qb2(e.value),
|
|
66828
|
-
modifier:
|
|
66876
|
+
modifier: Wb2({
|
|
66829
66877
|
modifier: e.modifier,
|
|
66830
66878
|
operator: e.operator,
|
|
66831
66879
|
extraData: t,
|
|
@@ -66838,7 +66886,7 @@ function Yb2(e, t) {
|
|
|
66838
66886
|
if (e.type === "field" && e.source?.__type__ !== "FieldFilterSource")
|
|
66839
66887
|
throw new Error("Expect a FieldFilterSource source for 'field' filter");
|
|
66840
66888
|
return {
|
|
66841
|
-
filter_type:
|
|
66889
|
+
filter_type: jb2(e, t),
|
|
66842
66890
|
label: e.label || "",
|
|
66843
66891
|
filter_source: Kb2(e, t),
|
|
66844
66892
|
default_condition: Kh2(e.default),
|
|
@@ -66849,10 +66897,10 @@ function Hh2(e, t) {
|
|
|
66849
66897
|
const {
|
|
66850
66898
|
field: n,
|
|
66851
66899
|
aggregation: o
|
|
66852
|
-
} = e, i =
|
|
66900
|
+
} = e, i = W2(n, t, { allowDimension: true, allowMeasure: true, fallbackUname: "!filter" });
|
|
66853
66901
|
return {
|
|
66854
66902
|
path_hash: i.path_hash,
|
|
66855
|
-
aggregation:
|
|
66903
|
+
aggregation: jh2(i, o),
|
|
66856
66904
|
...Kh2(e, t, i)
|
|
66857
66905
|
};
|
|
66858
66906
|
}
|
|
@@ -66863,22 +66911,22 @@ function Jb2(e, t) {
|
|
|
66863
66911
|
cohort_duration: r2,
|
|
66864
66912
|
cohort_value: a
|
|
66865
66913
|
} = e, s = {};
|
|
66866
|
-
i && (s.cohort_size =
|
|
66914
|
+
i && (s.cohort_size = W2(i, t, {
|
|
66867
66915
|
allowDimension: true,
|
|
66868
66916
|
allowMeasure: false,
|
|
66869
66917
|
fallbackUname: "!cohort_size",
|
|
66870
66918
|
unameValidator: n
|
|
66871
|
-
})), s.cohort_value =
|
|
66919
|
+
})), s.cohort_value = W2(a, t, {
|
|
66872
66920
|
allowDimension: true,
|
|
66873
66921
|
allowMeasure: true,
|
|
66874
66922
|
fallbackUname: "!cohort_value",
|
|
66875
66923
|
unameValidator: n
|
|
66876
|
-
}), s.cohort_duration =
|
|
66924
|
+
}), s.cohort_duration = W2(r2, t, {
|
|
66877
66925
|
allowDimension: true,
|
|
66878
66926
|
allowMeasure: false,
|
|
66879
66927
|
fallbackUname: "!cohort_duration",
|
|
66880
66928
|
unameValidator: n
|
|
66881
|
-
}), s.cohort =
|
|
66929
|
+
}), s.cohort = W2(o, t, {
|
|
66882
66930
|
allowDimension: true,
|
|
66883
66931
|
allowMeasure: false,
|
|
66884
66932
|
fallbackUname: "!cohort",
|
|
@@ -66905,27 +66953,27 @@ function Zb2(e, t) {
|
|
|
66905
66953
|
label_col: c,
|
|
66906
66954
|
tooltips: l
|
|
66907
66955
|
} = e, u = {};
|
|
66908
|
-
return u.x_col =
|
|
66956
|
+
return u.x_col = W2(i, t, {
|
|
66909
66957
|
allowDimension: true,
|
|
66910
66958
|
allowMeasure: true,
|
|
66911
66959
|
fallbackUname: "!x_col",
|
|
66912
66960
|
unameValidator: o
|
|
66913
|
-
}), u.y_col =
|
|
66961
|
+
}), u.y_col = W2(r2, t, {
|
|
66914
66962
|
allowDimension: true,
|
|
66915
66963
|
allowMeasure: true,
|
|
66916
66964
|
fallbackUname: "!y_col",
|
|
66917
66965
|
unameValidator: o
|
|
66918
|
-
}), n === "BubbleChart" && (u.z_col =
|
|
66966
|
+
}), n === "BubbleChart" && (u.z_col = W2(a, t, {
|
|
66919
66967
|
allowDimension: true,
|
|
66920
66968
|
allowMeasure: true,
|
|
66921
66969
|
fallbackUname: "!z_col",
|
|
66922
66970
|
unameValidator: o
|
|
66923
|
-
})), s && (u.group_col =
|
|
66971
|
+
})), s && (u.group_col = W2(s, t, {
|
|
66924
66972
|
allowDimension: true,
|
|
66925
66973
|
allowMeasure: false,
|
|
66926
66974
|
fallbackUname: "!group_col",
|
|
66927
66975
|
unameValidator: o
|
|
66928
|
-
})), c && (u.label_col =
|
|
66976
|
+
})), c && (u.label_col = W2(c, t, {
|
|
66929
66977
|
allowDimension: true,
|
|
66930
66978
|
allowMeasure: false,
|
|
66931
66979
|
fallbackUname: "!label_col",
|
|
@@ -66951,12 +66999,12 @@ function ew2(e, t) {
|
|
|
66951
66999
|
columns: []
|
|
66952
67000
|
}
|
|
66953
67001
|
};
|
|
66954
|
-
e.breakdown_by && (o.x_axis =
|
|
67002
|
+
e.breakdown_by && (o.x_axis = W2(e.breakdown_by, t, {
|
|
66955
67003
|
allowDimension: true,
|
|
66956
67004
|
allowMeasure: false,
|
|
66957
67005
|
fallbackUname: "!breakdown_by",
|
|
66958
67006
|
unameValidator: n
|
|
66959
|
-
})), o.y_axis.columns = e.values.map((s, c) =>
|
|
67007
|
+
})), o.y_axis.columns = e.values.map((s, c) => W2(s, t, {
|
|
66960
67008
|
allowDimension: true,
|
|
66961
67009
|
allowMeasure: true,
|
|
66962
67010
|
fallbackUname: `!values[${c}]`,
|
|
@@ -66981,17 +67029,17 @@ function ew2(e, t) {
|
|
|
66981
67029
|
settings: r2
|
|
66982
67030
|
};
|
|
66983
67031
|
}
|
|
66984
|
-
var
|
|
66985
|
-
var
|
|
67032
|
+
var Qt2 = 0;
|
|
67033
|
+
var Wn3 = "column";
|
|
66986
67034
|
var mi2 = 4;
|
|
66987
|
-
var
|
|
67035
|
+
var Qn3 = "#B4E0EC";
|
|
66988
67036
|
var qn3 = "#000";
|
|
66989
67037
|
function tw2(e, t) {
|
|
66990
67038
|
const n = new Ce3, o = String(e.__type__), r2 = {
|
|
66991
67039
|
max_column: import_lodash.get(e, "settings.max_column", mi2),
|
|
66992
67040
|
customization: [],
|
|
66993
67041
|
aggregate_awareness: gt3(e.settings?.aggregate_awareness)
|
|
66994
|
-
}, a = [], s =
|
|
67042
|
+
}, a = [], s = W2(e.date_field, t, {
|
|
66995
67043
|
allowDimension: true,
|
|
66996
67044
|
allowMeasure: true,
|
|
66997
67045
|
fallbackUname: "!date_field",
|
|
@@ -67000,9 +67048,9 @@ function tw2(e, t) {
|
|
|
67000
67048
|
if (!Array.isArray(e.rows) || !e.rows.length)
|
|
67001
67049
|
throw new Error(`${o}: Please select at least one series field`);
|
|
67002
67050
|
return e.rows.forEach((c, l) => {
|
|
67003
|
-
const u = String(c.__type__), d2 = `!rows[${l}]`, h = import_lodash.get(c, "settings.indent",
|
|
67051
|
+
const u = String(c.__type__), d2 = `!rows[${l}]`, h = import_lodash.get(c, "settings.indent", Qt2);
|
|
67004
67052
|
if (u === "MetricSeries") {
|
|
67005
|
-
const m2 = import_lodash.get(c, "settings.mark_type",
|
|
67053
|
+
const m2 = import_lodash.get(c, "settings.mark_type", Wn3), f = W2(c.field, t, {
|
|
67006
67054
|
allowDimension: true,
|
|
67007
67055
|
allowMeasure: true,
|
|
67008
67056
|
fallbackUname: d2,
|
|
@@ -67014,7 +67062,7 @@ function tw2(e, t) {
|
|
|
67014
67062
|
chartType: m2
|
|
67015
67063
|
});
|
|
67016
67064
|
} else {
|
|
67017
|
-
const m2 = import_lodash.get(c, "settings.text_color", qn3), f = import_lodash.get(c, "settings.background_color",
|
|
67065
|
+
const m2 = import_lodash.get(c, "settings.text_color", qn3), f = import_lodash.get(c, "settings.background_color", Qn3);
|
|
67018
67066
|
a.push({
|
|
67019
67067
|
uuid: d2,
|
|
67020
67068
|
value: c.label,
|
|
@@ -67041,12 +67089,12 @@ var oe2 = 2;
|
|
|
67041
67089
|
var Ze3 = 3;
|
|
67042
67090
|
var Le2 = 4;
|
|
67043
67091
|
var tn2 = 5;
|
|
67044
|
-
var
|
|
67092
|
+
var Qr3 = 6;
|
|
67045
67093
|
var pt3 = 7;
|
|
67046
67094
|
var Ct3 = 8;
|
|
67047
67095
|
var fe3 = 9;
|
|
67048
67096
|
var ee2 = 10;
|
|
67049
|
-
var
|
|
67097
|
+
var Ue3 = 11;
|
|
67050
67098
|
var he2 = 12;
|
|
67051
67099
|
var Ke3 = 13;
|
|
67052
67100
|
var Ti2 = 14;
|
|
@@ -67054,7 +67102,7 @@ var St3 = 15;
|
|
|
67054
67102
|
var ht3 = 16;
|
|
67055
67103
|
var ft3 = 17;
|
|
67056
67104
|
var Tt3 = 18;
|
|
67057
|
-
var
|
|
67105
|
+
var jt3 = 19;
|
|
67058
67106
|
var Jt2 = 20;
|
|
67059
67107
|
var ve3 = 21;
|
|
67060
67108
|
var Z2 = 22;
|
|
@@ -67083,7 +67131,7 @@ function rw2(e) {
|
|
|
67083
67131
|
function br2(e) {
|
|
67084
67132
|
return iw2(e) || rw2(e) || e === 95;
|
|
67085
67133
|
}
|
|
67086
|
-
function
|
|
67134
|
+
function Wh2(e) {
|
|
67087
67135
|
return br2(e) || at3(e) || e === 45;
|
|
67088
67136
|
}
|
|
67089
67137
|
function aw2(e) {
|
|
@@ -67104,7 +67152,7 @@ function ar2(e, t, n) {
|
|
|
67104
67152
|
function As2(e, t, n) {
|
|
67105
67153
|
return e === 43 || e === 45 ? at3(t) ? 2 : t === 46 && at3(n) ? 3 : 0 : e === 46 ? at3(t) ? 2 : 0 : at3(e) ? 1 : 0;
|
|
67106
67154
|
}
|
|
67107
|
-
function
|
|
67155
|
+
function Qh2(e) {
|
|
67108
67156
|
return e === 65279 || e === 65534 ? 1 : 0;
|
|
67109
67157
|
}
|
|
67110
67158
|
var wl2 = new Array(128);
|
|
@@ -67163,10 +67211,10 @@ function Bo2(e, t) {
|
|
|
67163
67211
|
}
|
|
67164
67212
|
return t;
|
|
67165
67213
|
}
|
|
67166
|
-
function
|
|
67214
|
+
function Ui2(e, t) {
|
|
67167
67215
|
for (;t < e.length; t++) {
|
|
67168
67216
|
const n = e.charCodeAt(t);
|
|
67169
|
-
if (!
|
|
67217
|
+
if (!Wh2(n)) {
|
|
67170
67218
|
if (dn3(n, xo2(e, t + 1))) {
|
|
67171
67219
|
t = Bo2(e, t) - 1;
|
|
67172
67220
|
continue;
|
|
@@ -67233,15 +67281,15 @@ var cw2 = 16 * 1024;
|
|
|
67233
67281
|
function vr3(e = null, t) {
|
|
67234
67282
|
return e === null || e.length < t ? new Uint32Array(Math.max(t + 1024, cw2)) : e;
|
|
67235
67283
|
}
|
|
67236
|
-
var
|
|
67284
|
+
var Ud2 = 10;
|
|
67237
67285
|
var uw2 = 12;
|
|
67238
|
-
var
|
|
67286
|
+
var jd2 = 13;
|
|
67239
67287
|
function Kd2(e) {
|
|
67240
|
-
const t = e.source, n = t.length, o = t.length > 0 ?
|
|
67288
|
+
const t = e.source, n = t.length, o = t.length > 0 ? Qh2(t.charCodeAt(0)) : 0, i = vr3(e.lines, n), r2 = vr3(e.columns, n);
|
|
67241
67289
|
let { startLine: a, startColumn: s } = e;
|
|
67242
67290
|
for (let c = o;c < n; c++) {
|
|
67243
67291
|
const l = t.charCodeAt(c);
|
|
67244
|
-
i[c] = a, r2[c] = s++, (l ===
|
|
67292
|
+
i[c] = a, r2[c] = s++, (l === Ud2 || l === jd2 || l === uw2) && (l === jd2 && c + 1 < n && t.charCodeAt(c + 1) === Ud2 && (c++, i[c] = a, r2[c] = s), a++, s = 1);
|
|
67245
67293
|
}
|
|
67246
67294
|
i[n] = a, r2[n] = s, e.lines = i, e.columns = r2, e.computed = true;
|
|
67247
67295
|
}
|
|
@@ -67282,7 +67330,7 @@ var rn2 = 24;
|
|
|
67282
67330
|
var eo2 = new Uint8Array(32);
|
|
67283
67331
|
eo2[oe2] = Z2;
|
|
67284
67332
|
eo2[ve3] = Z2;
|
|
67285
|
-
eo2[
|
|
67333
|
+
eo2[jt3] = Jt2;
|
|
67286
67334
|
eo2[ct3] = Vt2;
|
|
67287
67335
|
function Hd2(e) {
|
|
67288
67336
|
return eo2[e] !== 0;
|
|
@@ -67408,18 +67456,18 @@ function Yr3(e, t) {
|
|
|
67408
67456
|
}
|
|
67409
67457
|
function o() {
|
|
67410
67458
|
if (l = qr2(e, l), ar2(n(l), n(l + 1), n(l + 2))) {
|
|
67411
|
-
u = he2, l =
|
|
67459
|
+
u = he2, l = Ui2(e, l);
|
|
67412
67460
|
return;
|
|
67413
67461
|
}
|
|
67414
67462
|
if (n(l) === 37) {
|
|
67415
|
-
u =
|
|
67463
|
+
u = Ue3, l++;
|
|
67416
67464
|
return;
|
|
67417
67465
|
}
|
|
67418
67466
|
u = ee2;
|
|
67419
67467
|
}
|
|
67420
67468
|
function i() {
|
|
67421
67469
|
const d2 = l;
|
|
67422
|
-
if (l =
|
|
67470
|
+
if (l = Ui2(e, l), hi2(e, d2, l, "url") && n(l) === 40) {
|
|
67423
67471
|
if (l = Gi2(e, l + 1), n(l) === 34 || n(l) === 39) {
|
|
67424
67472
|
u = oe2, l = d2 + 4;
|
|
67425
67473
|
return;
|
|
@@ -67442,7 +67490,7 @@ function Yr3(e, t) {
|
|
|
67442
67490
|
return;
|
|
67443
67491
|
case sr2:
|
|
67444
67492
|
if (wr3(h)) {
|
|
67445
|
-
l += vl2(e, l, h), u =
|
|
67493
|
+
l += vl2(e, l, h), u = Qr3;
|
|
67446
67494
|
return;
|
|
67447
67495
|
}
|
|
67448
67496
|
break;
|
|
@@ -67487,7 +67535,7 @@ function Yr3(e, t) {
|
|
|
67487
67535
|
}
|
|
67488
67536
|
e = String(e || "");
|
|
67489
67537
|
const s = e.length;
|
|
67490
|
-
let c =
|
|
67538
|
+
let c = Qh2(n(0)), l = c, u;
|
|
67491
67539
|
for (;l < s; ) {
|
|
67492
67540
|
const d2 = e.charCodeAt(l);
|
|
67493
67541
|
switch (_s2(d2)) {
|
|
@@ -67498,7 +67546,7 @@ function Yr3(e, t) {
|
|
|
67498
67546
|
r2();
|
|
67499
67547
|
break;
|
|
67500
67548
|
case 35:
|
|
67501
|
-
|
|
67549
|
+
Wh2(n(l + 1)) || dn3(n(l + 1), n(l + 2)) ? (u = Le2, l = Ui2(e, l + 1)) : (u = fe3, l++);
|
|
67502
67550
|
break;
|
|
67503
67551
|
case 39:
|
|
67504
67552
|
r2();
|
|
@@ -67534,10 +67582,10 @@ function Yr3(e, t) {
|
|
|
67534
67582
|
n(l + 1) === 33 && n(l + 2) === 45 && n(l + 3) === 45 ? (u = Ti2, l = l + 4) : (u = fe3, l++);
|
|
67535
67583
|
break;
|
|
67536
67584
|
case 64:
|
|
67537
|
-
ar2(n(l + 1), n(l + 2), n(l + 3)) ? (u = Ze3, l =
|
|
67585
|
+
ar2(n(l + 1), n(l + 2), n(l + 3)) ? (u = Ze3, l = Ui2(e, l + 1)) : (u = fe3, l++);
|
|
67538
67586
|
break;
|
|
67539
67587
|
case 91:
|
|
67540
|
-
u =
|
|
67588
|
+
u = jt3, l++;
|
|
67541
67589
|
break;
|
|
67542
67590
|
case 92:
|
|
67543
67591
|
dn3(d2, n(l + 1)) ? i() : (u = fe3, l++);
|
|
@@ -67788,8 +67836,8 @@ function Jr3(e, t) {
|
|
|
67788
67836
|
});
|
|
67789
67837
|
}
|
|
67790
67838
|
var ws2 = 100;
|
|
67791
|
-
var
|
|
67792
|
-
var
|
|
67839
|
+
var Wd2 = 60;
|
|
67840
|
+
var Qd2 = " ";
|
|
67793
67841
|
function qd2({ source: e, line: t, column: n, baseLine: o, baseColumn: i }, r2) {
|
|
67794
67842
|
function a(f, g3) {
|
|
67795
67843
|
return l.slice(f, g3).map((w2, x) => String(f + x + 1).padStart(h) + " |" + w2).join(`
|
|
@@ -67798,9 +67846,9 @@ function qd2({ source: e, line: t, column: n, baseLine: o, baseColumn: i }, r2)
|
|
|
67798
67846
|
const s = `
|
|
67799
67847
|
`.repeat(Math.max(o - 1, 0)), c = " ".repeat(Math.max(i - 1, 0)), l = (s + c + e).split(/\r\n?|\n|\f/), u = Math.max(1, t - r2) - 1, d2 = Math.min(t + r2, l.length + 1), h = Math.max(4, String(d2).length) + 1;
|
|
67800
67848
|
let m2 = 0;
|
|
67801
|
-
n += (
|
|
67849
|
+
n += (Qd2.length - 1) * (l[t - 1].substr(0, n - 1).match(/\t/g) || []).length, n > ws2 && (m2 = n - Wd2 + 3, n = Wd2 - 2);
|
|
67802
67850
|
for (let f = u;f <= d2; f++)
|
|
67803
|
-
f >= 0 && f < l.length && (l[f] = l[f].replace(/\t/g,
|
|
67851
|
+
f >= 0 && f < l.length && (l[f] = l[f].replace(/\t/g, Qd2), l[f] = (m2 > 0 && l[f].length > m2 ? "…" : "") + l[f].substr(m2, ws2 - 2) + (l[f].length > m2 + ws2 - 1 ? "…" : ""));
|
|
67804
67852
|
return [
|
|
67805
67853
|
a(u, t),
|
|
67806
67854
|
new Array(n + h + 2).join("-") + "^",
|
|
@@ -67979,7 +68027,7 @@ function _w2(e) {
|
|
|
67979
68027
|
case Le2:
|
|
67980
68028
|
this.isDelim(fw2) && (this.next(), h++, d2 = "Name is expected");
|
|
67981
68029
|
break;
|
|
67982
|
-
case
|
|
68030
|
+
case Ue3:
|
|
67983
68031
|
this.tokenType === ee2 && (h = this.tokenEnd, d2 = "Percent sign is expected");
|
|
67984
68032
|
break;
|
|
67985
68033
|
}
|
|
@@ -68027,7 +68075,7 @@ function _w2(e) {
|
|
|
68027
68075
|
});
|
|
68028
68076
|
}
|
|
68029
68077
|
var xs2 = {};
|
|
68030
|
-
var
|
|
68078
|
+
var ji2 = {};
|
|
68031
68079
|
var Ki2 = {};
|
|
68032
68080
|
var ep2;
|
|
68033
68081
|
function yw2() {
|
|
@@ -68047,7 +68095,7 @@ function yw2() {
|
|
|
68047
68095
|
var tp2;
|
|
68048
68096
|
function bw2() {
|
|
68049
68097
|
if (tp2)
|
|
68050
|
-
return
|
|
68098
|
+
return ji2;
|
|
68051
68099
|
tp2 = 1;
|
|
68052
68100
|
var e = yw2(), t = 5, n = 1 << t, o = n - 1, i = n;
|
|
68053
68101
|
function r2(s) {
|
|
@@ -68057,13 +68105,13 @@ function bw2() {
|
|
|
68057
68105
|
var c = (s & 1) === 1, l = s >> 1;
|
|
68058
68106
|
return c ? -l : l;
|
|
68059
68107
|
}
|
|
68060
|
-
return
|
|
68108
|
+
return ji2.encode = function(c) {
|
|
68061
68109
|
var l = "", u, d2 = r2(c);
|
|
68062
68110
|
do
|
|
68063
68111
|
u = d2 & o, d2 >>>= t, d2 > 0 && (u |= i), l += e.encode(u);
|
|
68064
68112
|
while (d2 > 0);
|
|
68065
68113
|
return l;
|
|
68066
|
-
},
|
|
68114
|
+
}, ji2.decode = function(c, l, u) {
|
|
68067
68115
|
var d2 = c.length, h = 0, m2 = 0, f, g3;
|
|
68068
68116
|
do {
|
|
68069
68117
|
if (l >= d2)
|
|
@@ -68073,7 +68121,7 @@ function bw2() {
|
|
|
68073
68121
|
f = !!(g3 & i), g3 &= o, h = h + (g3 << m2), m2 += t;
|
|
68074
68122
|
} while (f);
|
|
68075
68123
|
u.value = a(h), u.rest = l;
|
|
68076
|
-
},
|
|
68124
|
+
}, ji2;
|
|
68077
68125
|
}
|
|
68078
68126
|
var Cs2 = {};
|
|
68079
68127
|
var np2;
|
|
@@ -68110,8 +68158,8 @@ function vc2() {
|
|
|
68110
68158
|
return function(D) {
|
|
68111
68159
|
for (var T2 = 0;T2 < k.length; T2++)
|
|
68112
68160
|
if (k[T2].input === D) {
|
|
68113
|
-
var
|
|
68114
|
-
return k[0] = k[T2], k[T2] =
|
|
68161
|
+
var j = k[0];
|
|
68162
|
+
return k[0] = k[T2], k[T2] = j, k[0].result;
|
|
68115
68163
|
}
|
|
68116
68164
|
var V = y2(D);
|
|
68117
68165
|
return k.unshift({
|
|
@@ -68127,16 +68175,16 @@ function vc2() {
|
|
|
68127
68175
|
return k;
|
|
68128
68176
|
D = T2.path;
|
|
68129
68177
|
}
|
|
68130
|
-
for (var
|
|
68178
|
+
for (var j = e.isAbsolute(D), V = [], Y = 0, K2 = 0;; )
|
|
68131
68179
|
if (Y = K2, K2 = D.indexOf("/", Y), K2 === -1) {
|
|
68132
68180
|
V.push(D.slice(Y));
|
|
68133
68181
|
break;
|
|
68134
68182
|
} else
|
|
68135
68183
|
for (V.push(D.slice(Y, K2));K2 < D.length && D[K2] === "/"; )
|
|
68136
68184
|
K2++;
|
|
68137
|
-
for (var J,
|
|
68138
|
-
J = V[K2], J === "." ? V.splice(K2, 1) : J === ".." ?
|
|
68139
|
-
return D = V.join("/"), D === "" && (D =
|
|
68185
|
+
for (var J, Q = 0, K2 = V.length - 1;K2 >= 0; K2--)
|
|
68186
|
+
J = V[K2], J === "." ? V.splice(K2, 1) : J === ".." ? Q++ : Q > 0 && (J === "" ? (V.splice(K2 + 1, Q), Q = 0) : (V.splice(K2, 2), Q--));
|
|
68187
|
+
return D = V.join("/"), D === "" && (D = j ? "/" : "."), T2 ? (T2.path = D, r2(T2)) : D;
|
|
68140
68188
|
});
|
|
68141
68189
|
e.normalize = c;
|
|
68142
68190
|
function l(y2, k) {
|
|
@@ -68148,8 +68196,8 @@ function vc2() {
|
|
|
68148
68196
|
return k;
|
|
68149
68197
|
if (T2 && !T2.host && !T2.path)
|
|
68150
68198
|
return T2.host = k, r2(T2);
|
|
68151
|
-
var
|
|
68152
|
-
return T2 ? (T2.path =
|
|
68199
|
+
var j = k.charAt(0) === "/" ? k : c(y2.replace(/\/+$/, "") + "/" + k);
|
|
68200
|
+
return T2 ? (T2.path = j, r2(T2)) : j;
|
|
68153
68201
|
}
|
|
68154
68202
|
e.join = l, e.isAbsolute = function(y2) {
|
|
68155
68203
|
return y2.charAt(0) === "/" || n.test(y2);
|
|
@@ -68229,8 +68277,8 @@ function vc2() {
|
|
|
68229
68277
|
if (!T2)
|
|
68230
68278
|
throw new Error("sourceMapURL could not be parsed");
|
|
68231
68279
|
if (T2.path) {
|
|
68232
|
-
var
|
|
68233
|
-
|
|
68280
|
+
var j = T2.path.lastIndexOf("/");
|
|
68281
|
+
j >= 0 && (T2.path = T2.path.substring(0, j + 1));
|
|
68234
68282
|
}
|
|
68235
68283
|
k = l(r2(T2), k);
|
|
68236
68284
|
}
|
|
@@ -68486,7 +68534,7 @@ var Xh2 = [
|
|
|
68486
68534
|
[L2, Ct3],
|
|
68487
68535
|
[L2, "-"],
|
|
68488
68536
|
[L2, ee2],
|
|
68489
|
-
[L2,
|
|
68537
|
+
[L2, Ue3],
|
|
68490
68538
|
[L2, he2],
|
|
68491
68539
|
[L2, St3],
|
|
68492
68540
|
[L2, ve3],
|
|
@@ -68496,7 +68544,7 @@ var Xh2 = [
|
|
|
68496
68544
|
[Ze3, Ct3],
|
|
68497
68545
|
[Ze3, "-"],
|
|
68498
68546
|
[Ze3, ee2],
|
|
68499
|
-
[Ze3,
|
|
68547
|
+
[Ze3, Ue3],
|
|
68500
68548
|
[Ze3, he2],
|
|
68501
68549
|
[Ze3, St3],
|
|
68502
68550
|
[Le2, L2],
|
|
@@ -68505,7 +68553,7 @@ var Xh2 = [
|
|
|
68505
68553
|
[Le2, Ct3],
|
|
68506
68554
|
[Le2, "-"],
|
|
68507
68555
|
[Le2, ee2],
|
|
68508
|
-
[Le2,
|
|
68556
|
+
[Le2, Ue3],
|
|
68509
68557
|
[Le2, he2],
|
|
68510
68558
|
[Le2, St3],
|
|
68511
68559
|
[he2, L2],
|
|
@@ -68514,7 +68562,7 @@ var Xh2 = [
|
|
|
68514
68562
|
[he2, Ct3],
|
|
68515
68563
|
[he2, "-"],
|
|
68516
68564
|
[he2, ee2],
|
|
68517
|
-
[he2,
|
|
68565
|
+
[he2, Ue3],
|
|
68518
68566
|
[he2, he2],
|
|
68519
68567
|
[he2, St3],
|
|
68520
68568
|
["#", L2],
|
|
@@ -68523,7 +68571,7 @@ var Xh2 = [
|
|
|
68523
68571
|
["#", Ct3],
|
|
68524
68572
|
["#", "-"],
|
|
68525
68573
|
["#", ee2],
|
|
68526
|
-
["#",
|
|
68574
|
+
["#", Ue3],
|
|
68527
68575
|
["#", he2],
|
|
68528
68576
|
["#", St3],
|
|
68529
68577
|
["-", L2],
|
|
@@ -68532,7 +68580,7 @@ var Xh2 = [
|
|
|
68532
68580
|
["-", Ct3],
|
|
68533
68581
|
["-", "-"],
|
|
68534
68582
|
["-", ee2],
|
|
68535
|
-
["-",
|
|
68583
|
+
["-", Ue3],
|
|
68536
68584
|
["-", he2],
|
|
68537
68585
|
["-", St3],
|
|
68538
68586
|
[ee2, L2],
|
|
@@ -68540,7 +68588,7 @@ var Xh2 = [
|
|
|
68540
68588
|
[ee2, pt3],
|
|
68541
68589
|
[ee2, Ct3],
|
|
68542
68590
|
[ee2, ee2],
|
|
68543
|
-
[ee2,
|
|
68591
|
+
[ee2, Ue3],
|
|
68544
68592
|
[ee2, he2],
|
|
68545
68593
|
[ee2, "%"],
|
|
68546
68594
|
[ee2, St3],
|
|
@@ -68551,10 +68599,10 @@ var Xh2 = [
|
|
|
68551
68599
|
["@", "-"],
|
|
68552
68600
|
["@", St3],
|
|
68553
68601
|
[".", ee2],
|
|
68554
|
-
[".",
|
|
68602
|
+
[".", Ue3],
|
|
68555
68603
|
[".", he2],
|
|
68556
68604
|
["+", ee2],
|
|
68557
|
-
["+",
|
|
68605
|
+
["+", Ue3],
|
|
68558
68606
|
["+", he2],
|
|
68559
68607
|
["/", "*"]
|
|
68560
68608
|
];
|
|
@@ -68565,13 +68613,13 @@ var Tw2 = Xh2.concat([
|
|
|
68565
68613
|
[Ze3, ve3],
|
|
68566
68614
|
[Ze3, tn2],
|
|
68567
68615
|
[Ze3, ht3],
|
|
68568
|
-
[
|
|
68569
|
-
[
|
|
68570
|
-
[
|
|
68571
|
-
[
|
|
68616
|
+
[Ue3, Ue3],
|
|
68617
|
+
[Ue3, he2],
|
|
68618
|
+
[Ue3, oe2],
|
|
68619
|
+
[Ue3, "-"],
|
|
68572
68620
|
[Z2, L2],
|
|
68573
68621
|
[Z2, oe2],
|
|
68574
|
-
[Z2,
|
|
68622
|
+
[Z2, Ue3],
|
|
68575
68623
|
[Z2, he2],
|
|
68576
68624
|
[Z2, Le2],
|
|
68577
68625
|
[Z2, "-"]
|
|
@@ -68899,7 +68947,7 @@ var Yo2 = function(e, t) {
|
|
|
68899
68947
|
const n = Jr3("SyntaxReferenceError", e + (t ? " `" + t + "`" : ""));
|
|
68900
68948
|
return n.reference = t, n;
|
|
68901
68949
|
};
|
|
68902
|
-
var
|
|
68950
|
+
var Uw2 = function(e, t, n, o) {
|
|
68903
68951
|
const i = Jr3("SyntaxMatchError", e), {
|
|
68904
68952
|
css: r2,
|
|
68905
68953
|
mismatchOffset: a,
|
|
@@ -68916,10 +68964,10 @@ var jw2 = function(e, t, n, o) {
|
|
|
68916
68964
|
end: l
|
|
68917
68965
|
}, i;
|
|
68918
68966
|
};
|
|
68919
|
-
var
|
|
68967
|
+
var Wi2 = /* @__PURE__ */ new Map;
|
|
68920
68968
|
var fo2 = /* @__PURE__ */ new Map;
|
|
68921
68969
|
var xr3 = 45;
|
|
68922
|
-
var Bs2 =
|
|
68970
|
+
var Bs2 = jw2;
|
|
68923
68971
|
var mp2 = Kw2;
|
|
68924
68972
|
function Cc2(e, t) {
|
|
68925
68973
|
return t = t || 0, e.length - t >= 2 && e.charCodeAt(t) === xr3 && e.charCodeAt(t + 1) === xr3;
|
|
@@ -68932,11 +68980,11 @@ function nf2(e, t) {
|
|
|
68932
68980
|
}
|
|
68933
68981
|
return "";
|
|
68934
68982
|
}
|
|
68935
|
-
function
|
|
68936
|
-
if (
|
|
68937
|
-
return
|
|
68983
|
+
function jw2(e) {
|
|
68984
|
+
if (Wi2.has(e))
|
|
68985
|
+
return Wi2.get(e);
|
|
68938
68986
|
const t = e.toLowerCase();
|
|
68939
|
-
let n =
|
|
68987
|
+
let n = Wi2.get(t);
|
|
68940
68988
|
if (n === undefined) {
|
|
68941
68989
|
const o = Cc2(t, 0), i = o ? "" : nf2(t, 0);
|
|
68942
68990
|
n = Object.freeze({
|
|
@@ -68947,7 +68995,7 @@ function Uw2(e) {
|
|
|
68947
68995
|
custom: o
|
|
68948
68996
|
});
|
|
68949
68997
|
}
|
|
68950
|
-
return
|
|
68998
|
+
return Wi2.set(e, n), n;
|
|
68951
68999
|
}
|
|
68952
69000
|
function Kw2(e) {
|
|
68953
69001
|
if (fo2.has(e))
|
|
@@ -69020,7 +69068,7 @@ function Ps2(e, t, n) {
|
|
|
69020
69068
|
}
|
|
69021
69069
|
return xn3(e, o ? 0 : 1, o, i);
|
|
69022
69070
|
}
|
|
69023
|
-
function
|
|
69071
|
+
function Ww2(e, t) {
|
|
69024
69072
|
let n = 0;
|
|
69025
69073
|
if (!e)
|
|
69026
69074
|
return 0;
|
|
@@ -69056,7 +69104,7 @@ function Qw2(e, t) {
|
|
|
69056
69104
|
}
|
|
69057
69105
|
return 0;
|
|
69058
69106
|
}
|
|
69059
|
-
var
|
|
69107
|
+
var Qw2 = 43;
|
|
69060
69108
|
var of2 = 45;
|
|
69061
69109
|
var rf2 = 63;
|
|
69062
69110
|
var qw2 = 117;
|
|
@@ -69077,7 +69125,7 @@ function ei2(e, t, n) {
|
|
|
69077
69125
|
}
|
|
69078
69126
|
return o;
|
|
69079
69127
|
}
|
|
69080
|
-
function
|
|
69128
|
+
function Qi2(e, t, n) {
|
|
69081
69129
|
if (!e)
|
|
69082
69130
|
return 0;
|
|
69083
69131
|
for (;xl2(n(t), rf2); ) {
|
|
@@ -69091,19 +69139,19 @@ function Jw2(e, t) {
|
|
|
69091
69139
|
let n = 0;
|
|
69092
69140
|
if (e === null || e.type !== L2 || !Co2(e.value, 0, qw2) || (e = t(++n), e === null))
|
|
69093
69141
|
return 0;
|
|
69094
|
-
if (xl2(e,
|
|
69095
|
-
return e = t(++n), e === null ? 0 : e.type === L2 ?
|
|
69142
|
+
if (xl2(e, Qw2))
|
|
69143
|
+
return e = t(++n), e === null ? 0 : e.type === L2 ? Qi2(ei2(e, 0, true), ++n, t) : xl2(e, rf2) ? Qi2(1, ++n, t) : 0;
|
|
69096
69144
|
if (e.type === ee2) {
|
|
69097
69145
|
const o = ei2(e, 1, true);
|
|
69098
|
-
return o === 0 ? 0 : (e = t(++n), e === null ? n : e.type === he2 || e.type === ee2 ? !Yw2(e, of2) || !ei2(e, 1, false) ? 0 : n + 1 :
|
|
69146
|
+
return o === 0 ? 0 : (e = t(++n), e === null ? n : e.type === he2 || e.type === ee2 ? !Yw2(e, of2) || !ei2(e, 1, false) ? 0 : n + 1 : Qi2(o, n, t));
|
|
69099
69147
|
}
|
|
69100
|
-
return e.type === he2 ?
|
|
69148
|
+
return e.type === he2 ? Qi2(ei2(e, 1, true), ++n, t) : 0;
|
|
69101
69149
|
}
|
|
69102
69150
|
var Zw2 = ["calc(", "-moz-calc(", "-webkit-calc("];
|
|
69103
69151
|
var Ec2 = /* @__PURE__ */ new Map([
|
|
69104
69152
|
[oe2, Z2],
|
|
69105
69153
|
[ve3, Z2],
|
|
69106
|
-
[
|
|
69154
|
+
[jt3, Jt2],
|
|
69107
69155
|
[ct3, Vt2]
|
|
69108
69156
|
]);
|
|
69109
69157
|
function Yt2(e, t) {
|
|
@@ -69146,7 +69194,7 @@ function Xw2(e, t) {
|
|
|
69146
69194
|
break;
|
|
69147
69195
|
case oe2:
|
|
69148
69196
|
case ve3:
|
|
69149
|
-
case
|
|
69197
|
+
case jt3:
|
|
69150
69198
|
case ct3:
|
|
69151
69199
|
o.push(n), n = Ec2.get(e.type);
|
|
69152
69200
|
break;
|
|
@@ -69198,7 +69246,7 @@ function iv2(e, t) {
|
|
|
69198
69246
|
e:
|
|
69199
69247
|
do {
|
|
69200
69248
|
switch (e.type) {
|
|
69201
|
-
case
|
|
69249
|
+
case Qr3:
|
|
69202
69250
|
case Ct3:
|
|
69203
69251
|
break e;
|
|
69204
69252
|
case Vt2:
|
|
@@ -69218,7 +69266,7 @@ function iv2(e, t) {
|
|
|
69218
69266
|
break;
|
|
69219
69267
|
case oe2:
|
|
69220
69268
|
case ve3:
|
|
69221
|
-
case
|
|
69269
|
+
case jt3:
|
|
69222
69270
|
case ct3:
|
|
69223
69271
|
o.push(n), n = Ec2.get(e.type);
|
|
69224
69272
|
break;
|
|
@@ -69234,7 +69282,7 @@ function rv2(e, t) {
|
|
|
69234
69282
|
e:
|
|
69235
69283
|
do {
|
|
69236
69284
|
switch (e.type) {
|
|
69237
|
-
case
|
|
69285
|
+
case Qr3:
|
|
69238
69286
|
case Ct3:
|
|
69239
69287
|
break e;
|
|
69240
69288
|
case Vt2:
|
|
@@ -69246,7 +69294,7 @@ function rv2(e, t) {
|
|
|
69246
69294
|
break;
|
|
69247
69295
|
case oe2:
|
|
69248
69296
|
case ve3:
|
|
69249
|
-
case
|
|
69297
|
+
case jt3:
|
|
69250
69298
|
case ct3:
|
|
69251
69299
|
o.push(n), n = Ec2.get(e.type);
|
|
69252
69300
|
break;
|
|
@@ -69269,7 +69317,7 @@ function gn3(e) {
|
|
|
69269
69317
|
};
|
|
69270
69318
|
}
|
|
69271
69319
|
function av2(e, t, n) {
|
|
69272
|
-
return e === null || e.type !==
|
|
69320
|
+
return e === null || e.type !== Ue3 || Zr3(n, e.value, e.value.length - 1) ? 0 : 1;
|
|
69273
69321
|
}
|
|
69274
69322
|
function uf2(e) {
|
|
69275
69323
|
return typeof e != "function" && (e = function() {
|
|
@@ -69299,12 +69347,12 @@ var cv2 = {
|
|
|
69299
69347
|
"at-keyword-token": $e3(Ze3),
|
|
69300
69348
|
"hash-token": $e3(Le2),
|
|
69301
69349
|
"string-token": $e3(tn2),
|
|
69302
|
-
"bad-string-token": $e3(
|
|
69350
|
+
"bad-string-token": $e3(Qr3),
|
|
69303
69351
|
"url-token": $e3(pt3),
|
|
69304
69352
|
"bad-url-token": $e3(Ct3),
|
|
69305
69353
|
"delim-token": $e3(fe3),
|
|
69306
69354
|
"number-token": $e3(ee2),
|
|
69307
|
-
"percentage-token": $e3(
|
|
69355
|
+
"percentage-token": $e3(Ue3),
|
|
69308
69356
|
"dimension-token": $e3(he2),
|
|
69309
69357
|
"whitespace-token": $e3(Ke3),
|
|
69310
69358
|
"CDO-token": $e3(Ti2),
|
|
@@ -69312,7 +69360,7 @@ var cv2 = {
|
|
|
69312
69360
|
"colon-token": $e3(ht3),
|
|
69313
69361
|
"semicolon-token": $e3(ft3),
|
|
69314
69362
|
"comma-token": $e3(Tt3),
|
|
69315
|
-
"[-token": $e3(
|
|
69363
|
+
"[-token": $e3(jt3),
|
|
69316
69364
|
"]-token": $e3(Jt2),
|
|
69317
69365
|
"(-token": $e3(ve3),
|
|
69318
69366
|
")-token": $e3(Z2),
|
|
@@ -69331,7 +69379,7 @@ var uv2 = {
|
|
|
69331
69379
|
"custom-property-name": tv2,
|
|
69332
69380
|
"hex-color": nv2,
|
|
69333
69381
|
"id-selector": ov2,
|
|
69334
|
-
"an-plus-b":
|
|
69382
|
+
"an-plus-b": Ww2,
|
|
69335
69383
|
urange: Jw2,
|
|
69336
69384
|
"declaration-value": iv2,
|
|
69337
69385
|
"any-value": rv2
|
|
@@ -69760,7 +69808,7 @@ var ti2 = function() {};
|
|
|
69760
69808
|
function kp2(e) {
|
|
69761
69809
|
return typeof e == "function" ? e : ti2;
|
|
69762
69810
|
}
|
|
69763
|
-
function
|
|
69811
|
+
function Uv2(e, t, n) {
|
|
69764
69812
|
function o(a) {
|
|
69765
69813
|
switch (i.call(n, a), a.type) {
|
|
69766
69814
|
case "Group":
|
|
@@ -69789,7 +69837,7 @@ function jv2(e, t, n) {
|
|
|
69789
69837
|
throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");
|
|
69790
69838
|
o(e);
|
|
69791
69839
|
}
|
|
69792
|
-
var
|
|
69840
|
+
var jv2 = {
|
|
69793
69841
|
decorator(e) {
|
|
69794
69842
|
const t = [];
|
|
69795
69843
|
let n = null;
|
|
@@ -69821,13 +69869,13 @@ function Kv2(e) {
|
|
|
69821
69869
|
})), t;
|
|
69822
69870
|
}
|
|
69823
69871
|
function Hv2(e, t) {
|
|
69824
|
-
return typeof e == "string" ? Kv2(e) : t.generate(e,
|
|
69872
|
+
return typeof e == "string" ? Kv2(e) : t.generate(e, jv2);
|
|
69825
69873
|
}
|
|
69826
69874
|
var we3 = { type: "Match" };
|
|
69827
69875
|
var Pe2 = { type: "Mismatch" };
|
|
69828
69876
|
var Fc2 = { type: "DisallowEmpty" };
|
|
69829
|
-
var
|
|
69830
|
-
var
|
|
69877
|
+
var Wv2 = 40;
|
|
69878
|
+
var Qv2 = 41;
|
|
69831
69879
|
function dt3(e, t, n) {
|
|
69832
69880
|
return t === we3 && n === Pe2 || e === we3 && t === we3 && n === we3 ? e : (e.type === "If" && e.else === Pe2 && t === we3 && (t = e.then, e = e.match), {
|
|
69833
69881
|
type: "If",
|
|
@@ -69837,7 +69885,7 @@ function dt3(e, t, n) {
|
|
|
69837
69885
|
});
|
|
69838
69886
|
}
|
|
69839
69887
|
function ff2(e) {
|
|
69840
|
-
return e.length > 2 && e.charCodeAt(e.length - 2) ===
|
|
69888
|
+
return e.length > 2 && e.charCodeAt(e.length - 2) === Wv2 && e.charCodeAt(e.length - 1) === Qv2;
|
|
69841
69889
|
}
|
|
69842
69890
|
function xp2(e) {
|
|
69843
69891
|
return e.type === "Keyword" || e.type === "AtKeyword" || e.type === "Function" || e.type === "Type" && ff2(e.name);
|
|
@@ -70071,7 +70119,7 @@ function tk2(e) {
|
|
|
70071
70119
|
return e.type !== fe3 ? false : e.value !== "?";
|
|
70072
70120
|
}
|
|
70073
70121
|
function Tp2(e) {
|
|
70074
|
-
return e === null ? true : e.type === Tt3 || e.type === oe2 || e.type === ve3 || e.type ===
|
|
70122
|
+
return e === null ? true : e.type === Tt3 || e.type === oe2 || e.type === ve3 || e.type === jt3 || e.type === ct3 || tk2(e);
|
|
70075
70123
|
}
|
|
70076
70124
|
function Bp2(e) {
|
|
70077
70125
|
return e === null ? true : e.type === Z2 || e.type === Jt2 || e.type === Vt2 || e.type === fe3 && e.value === "/";
|
|
@@ -70553,7 +70601,7 @@ function Ht3(e, t, n) {
|
|
|
70553
70601
|
function Ao2(e, t, n, o) {
|
|
70554
70602
|
const i = Hv2(n, e.syntax);
|
|
70555
70603
|
let r2;
|
|
70556
|
-
return dk2(i) ? Ht3(null, new Error("Matching for a tree with var() is not supported")) : (o && (r2 = Ip2(i, e.cssWideKeywordsSyntax, e)), (!o || !r2.match) && (r2 = Ip2(i, t.match, e), !r2.match) ? Ht3(null, new
|
|
70604
|
+
return dk2(i) ? Ht3(null, new Error("Matching for a tree with var() is not supported")) : (o && (r2 = Ip2(i, e.cssWideKeywordsSyntax, e)), (!o || !r2.match) && (r2 = Ip2(i, t.match, e), !r2.match) ? Ht3(null, new Uw2(r2.reason, t.syntax, n, r2), r2.iterations) : Ht3(r2.match, null, r2.iterations));
|
|
70557
70605
|
}
|
|
70558
70606
|
|
|
70559
70607
|
class Fp2 {
|
|
@@ -70737,7 +70785,7 @@ class Fp2 {
|
|
|
70737
70785
|
function n(c, l, u, d2) {
|
|
70738
70786
|
if (u.has(l))
|
|
70739
70787
|
return u.get(l);
|
|
70740
|
-
u.set(l, false), d2.syntax !== null &&
|
|
70788
|
+
u.set(l, false), d2.syntax !== null && Uv2(d2.syntax, function(h) {
|
|
70741
70789
|
if (h.type !== "Type" && h.type !== "Property")
|
|
70742
70790
|
return;
|
|
70743
70791
|
const m2 = h.type === "Type" ? c.types : c.properties, f = h.type === "Type" ? i : r2;
|
|
@@ -72399,7 +72447,7 @@ var Mk2 = {
|
|
|
72399
72447
|
function Sf2() {
|
|
72400
72448
|
const e = this.tokenStart;
|
|
72401
72449
|
let t, n = null, o = null, i = null;
|
|
72402
|
-
return this.eat(
|
|
72450
|
+
return this.eat(jt3), this.skipSC(), t = $k2.call(this), this.skipSC(), this.tokenType !== Jt2 && (this.tokenType !== L2 && (n = Lk2.call(this), this.skipSC(), o = this.tokenType === tn2 ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === L2 && (i = this.consume(L2), this.skipSC())), this.eat(Jt2), {
|
|
72403
72451
|
type: "AttributeSelector",
|
|
72404
72452
|
loc: this.getLocation(e, this.tokenStart),
|
|
72405
72453
|
name: t,
|
|
@@ -72435,8 +72483,8 @@ function Vk2() {
|
|
|
72435
72483
|
return this.tokenType === ft3 && this.next(), e;
|
|
72436
72484
|
}
|
|
72437
72485
|
var Gk2 = "Block";
|
|
72438
|
-
var
|
|
72439
|
-
var
|
|
72486
|
+
var Uk2 = "block";
|
|
72487
|
+
var jk2 = {
|
|
72440
72488
|
children: [[
|
|
72441
72489
|
"Atrule",
|
|
72442
72490
|
"Rule",
|
|
@@ -72478,17 +72526,17 @@ var Hk2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72478
72526
|
generate: Kk2,
|
|
72479
72527
|
name: Gk2,
|
|
72480
72528
|
parse: Tf2,
|
|
72481
|
-
structure:
|
|
72482
|
-
walkContext:
|
|
72529
|
+
structure: jk2,
|
|
72530
|
+
walkContext: Uk2
|
|
72483
72531
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72484
|
-
var
|
|
72485
|
-
var
|
|
72532
|
+
var Wk2 = "Brackets";
|
|
72533
|
+
var Qk2 = {
|
|
72486
72534
|
children: [[]]
|
|
72487
72535
|
};
|
|
72488
72536
|
function Bf2(e, t) {
|
|
72489
72537
|
const n = this.tokenStart;
|
|
72490
72538
|
let o = null;
|
|
72491
|
-
return this.eat(
|
|
72539
|
+
return this.eat(jt3), o = e.call(this, t), this.eof || this.eat(Jt2), {
|
|
72492
72540
|
type: "Brackets",
|
|
72493
72541
|
loc: this.getLocation(n, this.tokenStart),
|
|
72494
72542
|
children: o
|
|
@@ -72500,9 +72548,9 @@ function qk2(e) {
|
|
|
72500
72548
|
var Yk2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72501
72549
|
__proto__: null,
|
|
72502
72550
|
generate: qk2,
|
|
72503
|
-
name:
|
|
72551
|
+
name: Wk2,
|
|
72504
72552
|
parse: Bf2,
|
|
72505
|
-
structure:
|
|
72553
|
+
structure: Qk2
|
|
72506
72554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72507
72555
|
var Jk2 = "CDC";
|
|
72508
72556
|
var Zk2 = [];
|
|
@@ -72779,7 +72827,7 @@ function Gx() {
|
|
|
72779
72827
|
const e = this.consume(L2);
|
|
72780
72828
|
return e === "important" ? true : e;
|
|
72781
72829
|
}
|
|
72782
|
-
var
|
|
72830
|
+
var Ux = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72783
72831
|
__proto__: null,
|
|
72784
72832
|
generate: zx,
|
|
72785
72833
|
name: Mx2,
|
|
@@ -72787,7 +72835,7 @@ var jx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
72787
72835
|
structure: Ox2,
|
|
72788
72836
|
walkContext: Rx2
|
|
72789
72837
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
72790
|
-
var
|
|
72838
|
+
var jx = 38;
|
|
72791
72839
|
function Ms2() {
|
|
72792
72840
|
return this.Raw(this.consumeUntilSemicolonIncluded, true);
|
|
72793
72841
|
}
|
|
@@ -72812,7 +72860,7 @@ function Rf2() {
|
|
|
72812
72860
|
e.push(this.parseWithFallback(this.Atrule.bind(this, true), Ms2));
|
|
72813
72861
|
break;
|
|
72814
72862
|
default:
|
|
72815
|
-
this.isDelim(
|
|
72863
|
+
this.isDelim(jx) ? e.push(this.parseWithFallback(this.Rule, Ms2)) : e.push(this.parseWithFallback(this.Declaration, Ms2));
|
|
72816
72864
|
}
|
|
72817
72865
|
return {
|
|
72818
72866
|
type: "DeclarationList",
|
|
@@ -72820,14 +72868,14 @@ function Rf2() {
|
|
|
72820
72868
|
children: e
|
|
72821
72869
|
};
|
|
72822
72870
|
}
|
|
72823
|
-
function
|
|
72871
|
+
function Wx(e) {
|
|
72824
72872
|
this.children(e, (t) => {
|
|
72825
72873
|
t.type === "Declaration" && this.token(ft3, ";");
|
|
72826
72874
|
});
|
|
72827
72875
|
}
|
|
72828
|
-
var
|
|
72876
|
+
var Qx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72829
72877
|
__proto__: null,
|
|
72830
|
-
generate:
|
|
72878
|
+
generate: Wx,
|
|
72831
72879
|
name: Kx,
|
|
72832
72880
|
parse: Rf2,
|
|
72833
72881
|
structure: Hx
|
|
@@ -72971,7 +73019,7 @@ function Rs2() {
|
|
|
72971
73019
|
this.error("Number, dimension, ratio or identifier is expected");
|
|
72972
73020
|
}
|
|
72973
73021
|
}
|
|
72974
|
-
function
|
|
73022
|
+
function Up2(e) {
|
|
72975
73023
|
if (this.skipSC(), this.isDelim(cC) || this.isDelim(uC)) {
|
|
72976
73024
|
const t = this.source[this.tokenStart];
|
|
72977
73025
|
return this.next(), this.isDelim(Gp2) ? (this.next(), t + "=") : t;
|
|
@@ -72983,9 +73031,9 @@ function jp2(e) {
|
|
|
72983
73031
|
function Gf2(e = "unknown") {
|
|
72984
73032
|
const t = this.tokenStart;
|
|
72985
73033
|
this.skipSC(), this.eat(ve3);
|
|
72986
|
-
const n = Rs2.call(this), o =
|
|
73034
|
+
const n = Rs2.call(this), o = Up2.call(this, n.type === "Identifier"), i = Rs2.call(this);
|
|
72987
73035
|
let r2 = null, a = null;
|
|
72988
|
-
return this.lookupNonWSType(0) !== Z2 && (r2 =
|
|
73036
|
+
return this.lookupNonWSType(0) !== Z2 && (r2 = Up2.call(this), a = Rs2.call(this)), this.skipSC(), this.eat(Z2), {
|
|
72989
73037
|
type: "FeatureRange",
|
|
72990
73038
|
loc: this.getLocation(t, this.tokenStart),
|
|
72991
73039
|
kind: e,
|
|
@@ -73012,7 +73060,7 @@ var AC2 = {
|
|
|
73012
73060
|
name: String,
|
|
73013
73061
|
children: [[]]
|
|
73014
73062
|
};
|
|
73015
|
-
function
|
|
73063
|
+
function Uf2(e, t) {
|
|
73016
73064
|
const n = this.tokenStart, o = this.consumeFunctionName(), i = o.toLowerCase();
|
|
73017
73065
|
let r2;
|
|
73018
73066
|
return r2 = t.hasOwnProperty(i) ? t[i].call(this, t) : e.call(this, t), this.eof || this.eat(Z2), {
|
|
@@ -73029,7 +73077,7 @@ var yC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73029
73077
|
__proto__: null,
|
|
73030
73078
|
generate: _C,
|
|
73031
73079
|
name: fC,
|
|
73032
|
-
parse:
|
|
73080
|
+
parse: Uf2,
|
|
73033
73081
|
structure: AC2,
|
|
73034
73082
|
walkContext: gC
|
|
73035
73083
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -73039,7 +73087,7 @@ var wC = {
|
|
|
73039
73087
|
function: [String, null],
|
|
73040
73088
|
children: [[]]
|
|
73041
73089
|
};
|
|
73042
|
-
function
|
|
73090
|
+
function jf2(e) {
|
|
73043
73091
|
const t = this.tokenStart;
|
|
73044
73092
|
let n = null;
|
|
73045
73093
|
this.tokenType === oe2 ? n = this.consumeFunctionName() : this.eat(ve3);
|
|
@@ -73062,7 +73110,7 @@ var kC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73062
73110
|
__proto__: null,
|
|
73063
73111
|
generate: vC,
|
|
73064
73112
|
name: bC,
|
|
73065
|
-
parse:
|
|
73113
|
+
parse: jf2,
|
|
73066
73114
|
structure: wC
|
|
73067
73115
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73068
73116
|
var xC = "XXX";
|
|
@@ -73114,7 +73162,7 @@ var FC = "IdSelector";
|
|
|
73114
73162
|
var $C = {
|
|
73115
73163
|
name: String
|
|
73116
73164
|
};
|
|
73117
|
-
function
|
|
73165
|
+
function Wf2() {
|
|
73118
73166
|
const e = this.tokenStart;
|
|
73119
73167
|
return this.eat(Le2), {
|
|
73120
73168
|
type: "IdSelector",
|
|
@@ -73129,7 +73177,7 @@ var NC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73129
73177
|
__proto__: null,
|
|
73130
73178
|
generate: LC,
|
|
73131
73179
|
name: FC,
|
|
73132
|
-
parse:
|
|
73180
|
+
parse: Wf2,
|
|
73133
73181
|
structure: $C
|
|
73134
73182
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73135
73183
|
var MC = 46;
|
|
@@ -73137,7 +73185,7 @@ var RC = "Layer";
|
|
|
73137
73185
|
var OC = {
|
|
73138
73186
|
name: String
|
|
73139
73187
|
};
|
|
73140
|
-
function
|
|
73188
|
+
function Qf2() {
|
|
73141
73189
|
let e = this.tokenStart, t = this.consume(L2);
|
|
73142
73190
|
for (;this.isDelim(MC); )
|
|
73143
73191
|
this.eat(fe3), t += "." + this.consume(L2);
|
|
@@ -73154,11 +73202,11 @@ var VC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73154
73202
|
__proto__: null,
|
|
73155
73203
|
generate: zC,
|
|
73156
73204
|
name: RC,
|
|
73157
|
-
parse:
|
|
73205
|
+
parse: Qf2,
|
|
73158
73206
|
structure: OC
|
|
73159
73207
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73160
73208
|
var GC = "LayerList";
|
|
73161
|
-
var
|
|
73209
|
+
var UC = {
|
|
73162
73210
|
children: [[
|
|
73163
73211
|
"Layer"
|
|
73164
73212
|
]]
|
|
@@ -73173,18 +73221,18 @@ function qf2() {
|
|
|
73173
73221
|
children: e
|
|
73174
73222
|
};
|
|
73175
73223
|
}
|
|
73176
|
-
function
|
|
73224
|
+
function jC(e) {
|
|
73177
73225
|
this.children(e, () => this.token(Tt3, ","));
|
|
73178
73226
|
}
|
|
73179
73227
|
var KC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73180
73228
|
__proto__: null,
|
|
73181
|
-
generate:
|
|
73229
|
+
generate: jC,
|
|
73182
73230
|
name: GC,
|
|
73183
73231
|
parse: qf2,
|
|
73184
|
-
structure:
|
|
73232
|
+
structure: UC
|
|
73185
73233
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73186
73234
|
var HC = "MediaQuery";
|
|
73187
|
-
var
|
|
73235
|
+
var WC = {
|
|
73188
73236
|
modifier: [String, null],
|
|
73189
73237
|
mediaType: [String, null],
|
|
73190
73238
|
condition: ["Condition", null]
|
|
@@ -73230,15 +73278,15 @@ function Yf2() {
|
|
|
73230
73278
|
condition: o
|
|
73231
73279
|
};
|
|
73232
73280
|
}
|
|
73233
|
-
function
|
|
73281
|
+
function QC(e) {
|
|
73234
73282
|
e.mediaType ? (e.modifier && this.token(L2, e.modifier), this.token(L2, e.mediaType), e.condition && (this.token(L2, "and"), this.node(e.condition))) : e.condition && this.node(e.condition);
|
|
73235
73283
|
}
|
|
73236
73284
|
var qC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73237
73285
|
__proto__: null,
|
|
73238
|
-
generate:
|
|
73286
|
+
generate: QC,
|
|
73239
73287
|
name: HC,
|
|
73240
73288
|
parse: Yf2,
|
|
73241
|
-
structure:
|
|
73289
|
+
structure: WC
|
|
73242
73290
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73243
73291
|
var YC = "MediaQueryList";
|
|
73244
73292
|
var JC = {
|
|
@@ -73386,11 +73434,11 @@ function og2() {
|
|
|
73386
73434
|
return {
|
|
73387
73435
|
type: "Percentage",
|
|
73388
73436
|
loc: this.getLocation(this.tokenStart, this.tokenEnd),
|
|
73389
|
-
value: this.consumeNumber(
|
|
73437
|
+
value: this.consumeNumber(Ue3)
|
|
73390
73438
|
};
|
|
73391
73439
|
}
|
|
73392
73440
|
function kS2(e) {
|
|
73393
|
-
this.token(
|
|
73441
|
+
this.token(Ue3, e.value + "%");
|
|
73394
73442
|
}
|
|
73395
73443
|
var xS2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73396
73444
|
__proto__: null,
|
|
@@ -73453,7 +73501,7 @@ var $S2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73453
73501
|
structure: DS2,
|
|
73454
73502
|
walkContext: PS2
|
|
73455
73503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73456
|
-
var
|
|
73504
|
+
var jp2 = 47;
|
|
73457
73505
|
function Kp2() {
|
|
73458
73506
|
switch (this.skipSC(), this.tokenType) {
|
|
73459
73507
|
case ee2:
|
|
@@ -73472,7 +73520,7 @@ var NS2 = {
|
|
|
73472
73520
|
function ag2() {
|
|
73473
73521
|
const e = this.tokenStart, t = Kp2.call(this);
|
|
73474
73522
|
let n = null;
|
|
73475
|
-
return this.skipSC(), this.isDelim(
|
|
73523
|
+
return this.skipSC(), this.isDelim(jp2) && (this.eatDelim(jp2), n = Kp2.call(this)), {
|
|
73476
73524
|
type: "Ratio",
|
|
73477
73525
|
loc: this.getLocation(e, this.tokenStart),
|
|
73478
73526
|
left: t,
|
|
@@ -73508,7 +73556,7 @@ function sg2(e, t) {
|
|
|
73508
73556
|
function GS2(e) {
|
|
73509
73557
|
this.tokenize(e.value);
|
|
73510
73558
|
}
|
|
73511
|
-
var
|
|
73559
|
+
var US2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73512
73560
|
__proto__: null,
|
|
73513
73561
|
generate: GS2,
|
|
73514
73562
|
name: zS2,
|
|
@@ -73518,35 +73566,35 @@ var jS2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73518
73566
|
function Hp2() {
|
|
73519
73567
|
return this.Raw(this.consumeUntilLeftCurlyBracket, true);
|
|
73520
73568
|
}
|
|
73521
|
-
function
|
|
73569
|
+
function jS2() {
|
|
73522
73570
|
const e = this.SelectorList();
|
|
73523
73571
|
return e.type !== "Raw" && this.eof === false && this.tokenType !== ct3 && this.error(), e;
|
|
73524
73572
|
}
|
|
73525
73573
|
var KS2 = "Rule";
|
|
73526
73574
|
var HS2 = "rule";
|
|
73527
|
-
var
|
|
73575
|
+
var WS2 = {
|
|
73528
73576
|
prelude: ["SelectorList", "Raw"],
|
|
73529
73577
|
block: ["Block"]
|
|
73530
73578
|
};
|
|
73531
73579
|
function lg2() {
|
|
73532
73580
|
const e = this.tokenIndex, t = this.tokenStart;
|
|
73533
73581
|
let n, o;
|
|
73534
|
-
return this.parseRulePrelude ? n = this.parseWithFallback(
|
|
73582
|
+
return this.parseRulePrelude ? n = this.parseWithFallback(jS2, Hp2) : n = Hp2.call(this, e), o = this.Block(true), {
|
|
73535
73583
|
type: "Rule",
|
|
73536
73584
|
loc: this.getLocation(t, this.tokenStart),
|
|
73537
73585
|
prelude: n,
|
|
73538
73586
|
block: o
|
|
73539
73587
|
};
|
|
73540
73588
|
}
|
|
73541
|
-
function
|
|
73589
|
+
function QS2(e) {
|
|
73542
73590
|
this.node(e.prelude), this.node(e.block);
|
|
73543
73591
|
}
|
|
73544
73592
|
var qS2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73545
73593
|
__proto__: null,
|
|
73546
|
-
generate:
|
|
73594
|
+
generate: QS2,
|
|
73547
73595
|
name: KS2,
|
|
73548
73596
|
parse: lg2,
|
|
73549
|
-
structure:
|
|
73597
|
+
structure: WS2,
|
|
73550
73598
|
walkContext: HS2
|
|
73551
73599
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73552
73600
|
var YS2 = "Scope";
|
|
@@ -73701,7 +73749,7 @@ var h02 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73701
73749
|
structure: p02
|
|
73702
73750
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73703
73751
|
var f02 = 33;
|
|
73704
|
-
function
|
|
73752
|
+
function Wp2() {
|
|
73705
73753
|
return this.Raw(null, false);
|
|
73706
73754
|
}
|
|
73707
73755
|
var g02 = "StyleSheet";
|
|
@@ -73738,10 +73786,10 @@ function fg2() {
|
|
|
73738
73786
|
n = this.CDC();
|
|
73739
73787
|
break;
|
|
73740
73788
|
case Ze3:
|
|
73741
|
-
n = this.parseWithFallback(this.Atrule,
|
|
73789
|
+
n = this.parseWithFallback(this.Atrule, Wp2);
|
|
73742
73790
|
break;
|
|
73743
73791
|
default:
|
|
73744
|
-
n = this.parseWithFallback(this.Rule,
|
|
73792
|
+
n = this.parseWithFallback(this.Rule, Wp2);
|
|
73745
73793
|
}
|
|
73746
73794
|
t.push(n);
|
|
73747
73795
|
}
|
|
@@ -73787,7 +73835,7 @@ var x02 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
73787
73835
|
structure: v02
|
|
73788
73836
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73789
73837
|
var C02 = 42;
|
|
73790
|
-
var
|
|
73838
|
+
var Qp2 = 124;
|
|
73791
73839
|
function Os() {
|
|
73792
73840
|
this.tokenType !== L2 && this.isDelim(C02) === false && this.error("Identifier or asterisk is expected"), this.next();
|
|
73793
73841
|
}
|
|
@@ -73797,7 +73845,7 @@ var E02 = {
|
|
|
73797
73845
|
};
|
|
73798
73846
|
function Ag2() {
|
|
73799
73847
|
const e = this.tokenStart;
|
|
73800
|
-
return this.isDelim(
|
|
73848
|
+
return this.isDelim(Qp2) ? (this.next(), Os.call(this)) : (Os.call(this), this.isDelim(Qp2) && (this.next(), Os.call(this))), {
|
|
73801
73849
|
type: "TypeSelector",
|
|
73802
73850
|
loc: this.getLocation(e, this.tokenStart),
|
|
73803
73851
|
name: this.substrToCursor(e)
|
|
@@ -73931,7 +73979,7 @@ function V02(e) {
|
|
|
73931
73979
|
return "url(" + t + ")";
|
|
73932
73980
|
}
|
|
73933
73981
|
var G02 = "Url";
|
|
73934
|
-
var
|
|
73982
|
+
var U02 = {
|
|
73935
73983
|
value: String
|
|
73936
73984
|
};
|
|
73937
73985
|
function vg2() {
|
|
@@ -73953,18 +74001,18 @@ function vg2() {
|
|
|
73953
74001
|
value: t
|
|
73954
74002
|
};
|
|
73955
74003
|
}
|
|
73956
|
-
function
|
|
74004
|
+
function j02(e) {
|
|
73957
74005
|
this.token(pt3, V02(e.value));
|
|
73958
74006
|
}
|
|
73959
74007
|
var K02 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73960
74008
|
__proto__: null,
|
|
73961
|
-
generate:
|
|
74009
|
+
generate: j02,
|
|
73962
74010
|
name: G02,
|
|
73963
74011
|
parse: vg2,
|
|
73964
|
-
structure:
|
|
74012
|
+
structure: U02
|
|
73965
74013
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73966
74014
|
var H02 = "Value";
|
|
73967
|
-
var
|
|
74015
|
+
var W02 = {
|
|
73968
74016
|
children: [[]]
|
|
73969
74017
|
};
|
|
73970
74018
|
function kg2() {
|
|
@@ -73975,15 +74023,15 @@ function kg2() {
|
|
|
73975
74023
|
children: t
|
|
73976
74024
|
};
|
|
73977
74025
|
}
|
|
73978
|
-
function
|
|
74026
|
+
function Q02(e) {
|
|
73979
74027
|
this.children(e);
|
|
73980
74028
|
}
|
|
73981
74029
|
var q02 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
73982
74030
|
__proto__: null,
|
|
73983
|
-
generate:
|
|
74031
|
+
generate: Q02,
|
|
73984
74032
|
name: H02,
|
|
73985
74033
|
parse: kg2,
|
|
73986
|
-
structure:
|
|
74034
|
+
structure: W02
|
|
73987
74035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
73988
74036
|
var Y02 = Object.freeze({
|
|
73989
74037
|
type: "WhiteSpace",
|
|
@@ -74021,8 +74069,8 @@ var Cg2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
74021
74069
|
Combinator: gx2,
|
|
74022
74070
|
Comment: vx2,
|
|
74023
74071
|
Condition: Tx2,
|
|
74024
|
-
Declaration:
|
|
74025
|
-
DeclarationList:
|
|
74072
|
+
Declaration: Ux,
|
|
74073
|
+
DeclarationList: Qx,
|
|
74026
74074
|
Dimension: Zx2,
|
|
74027
74075
|
Feature: oC,
|
|
74028
74076
|
FeatureFunction: lC,
|
|
@@ -74045,7 +74093,7 @@ var Cg2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
74045
74093
|
PseudoClassSelector: BS2,
|
|
74046
74094
|
PseudoElementSelector: $S2,
|
|
74047
74095
|
Ratio: RS2,
|
|
74048
|
-
Raw:
|
|
74096
|
+
Raw: US2,
|
|
74049
74097
|
Rule: qS2,
|
|
74050
74098
|
Scope: XS2,
|
|
74051
74099
|
Selector: o02,
|
|
@@ -74079,13 +74127,13 @@ function Sg2(e) {
|
|
|
74079
74127
|
return this.Operator();
|
|
74080
74128
|
case ve3:
|
|
74081
74129
|
return this.Parentheses(this.readSequence, e.recognizer);
|
|
74082
|
-
case
|
|
74130
|
+
case jt3:
|
|
74083
74131
|
return this.Brackets(this.readSequence, e.recognizer);
|
|
74084
74132
|
case tn2:
|
|
74085
74133
|
return this.String();
|
|
74086
74134
|
case he2:
|
|
74087
74135
|
return this.Dimension();
|
|
74088
|
-
case
|
|
74136
|
+
case Ue3:
|
|
74089
74137
|
return this.Percentage();
|
|
74090
74138
|
case ee2:
|
|
74091
74139
|
return this.Number();
|
|
@@ -74125,7 +74173,7 @@ function gE2(e, t) {
|
|
|
74125
74173
|
}
|
|
74126
74174
|
function AE2() {
|
|
74127
74175
|
switch (this.tokenType) {
|
|
74128
|
-
case
|
|
74176
|
+
case jt3:
|
|
74129
74177
|
return this.AttributeSelector();
|
|
74130
74178
|
case Le2:
|
|
74131
74179
|
return this.IdSelector();
|
|
@@ -74134,7 +74182,7 @@ function AE2() {
|
|
|
74134
74182
|
case L2:
|
|
74135
74183
|
return this.TypeSelector();
|
|
74136
74184
|
case ee2:
|
|
74137
|
-
case
|
|
74185
|
+
case Ue3:
|
|
74138
74186
|
return this.Percentage();
|
|
74139
74187
|
case he2:
|
|
74140
74188
|
this.charCodeAt(this.tokenStart) === Yp2 && this.error("Identifier is expected", this.tokenStart + 1);
|
|
@@ -74434,12 +74482,12 @@ var OE2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
74434
74482
|
Feature: zf2,
|
|
74435
74483
|
FeatureFunction: Vf2,
|
|
74436
74484
|
FeatureRange: Gf2,
|
|
74437
|
-
Function:
|
|
74438
|
-
GeneralEnclosed:
|
|
74485
|
+
Function: Uf2,
|
|
74486
|
+
GeneralEnclosed: jf2,
|
|
74439
74487
|
Hash: Kf2,
|
|
74440
|
-
IdSelector:
|
|
74488
|
+
IdSelector: Wf2,
|
|
74441
74489
|
Identifier: Hf2,
|
|
74442
|
-
Layer:
|
|
74490
|
+
Layer: Qf2,
|
|
74443
74491
|
LayerList: qf2,
|
|
74444
74492
|
MediaQuery: Yf2,
|
|
74445
74493
|
MediaQueryList: Jf2,
|
|
@@ -74516,20 +74564,20 @@ var GE2 = mk2({
|
|
|
74516
74564
|
});
|
|
74517
74565
|
var {
|
|
74518
74566
|
tokenize: RM,
|
|
74519
|
-
parse:
|
|
74520
|
-
generate:
|
|
74567
|
+
parse: UE2,
|
|
74568
|
+
generate: jE2,
|
|
74521
74569
|
lexer: OM,
|
|
74522
74570
|
createLexer: zM,
|
|
74523
74571
|
walk: KE2,
|
|
74524
74572
|
find: VM,
|
|
74525
74573
|
findLast: GM,
|
|
74526
|
-
findAll:
|
|
74527
|
-
toPlainObject:
|
|
74574
|
+
findAll: UM,
|
|
74575
|
+
toPlainObject: jM,
|
|
74528
74576
|
fromPlainObject: KM,
|
|
74529
74577
|
fork: HM
|
|
74530
74578
|
} = GE2;
|
|
74531
74579
|
function HE2(e, t) {
|
|
74532
|
-
const n =
|
|
74580
|
+
const n = UE2(e, { parseCustomProperty: false });
|
|
74533
74581
|
return KE2(n, {
|
|
74534
74582
|
visit: "Rule",
|
|
74535
74583
|
enter(o) {
|
|
@@ -74546,7 +74594,7 @@ function HE2(e, t) {
|
|
|
74546
74594
|
}
|
|
74547
74595
|
});
|
|
74548
74596
|
}
|
|
74549
|
-
}),
|
|
74597
|
+
}), jE2(n);
|
|
74550
74598
|
}
|
|
74551
74599
|
function Eg2(e) {
|
|
74552
74600
|
if (!import_lodash.isNil(e))
|
|
@@ -74555,7 +74603,7 @@ function Eg2(e) {
|
|
|
74555
74603
|
data: pc2(e.data)
|
|
74556
74604
|
}, import_lodash.isUndefined);
|
|
74557
74605
|
}
|
|
74558
|
-
function
|
|
74606
|
+
function WE2(e) {
|
|
74559
74607
|
try {
|
|
74560
74608
|
const t = new URL(e);
|
|
74561
74609
|
return t.protocol !== "https:" ? false : [".woff", ".woff2", ".ttf", ".otf", ".eot"].some((o) => t.pathname.endsWith(o));
|
|
@@ -74590,7 +74638,7 @@ function Lc2(e) {
|
|
|
74590
74638
|
};
|
|
74591
74639
|
}
|
|
74592
74640
|
}
|
|
74593
|
-
function
|
|
74641
|
+
function QE2(e) {
|
|
74594
74642
|
if (!import_lodash.isNil(e)) {
|
|
74595
74643
|
if (typeof e == "number" || typeof e == "string") {
|
|
74596
74644
|
const t = Dt3(e);
|
|
@@ -74613,7 +74661,7 @@ function WE2(e) {
|
|
|
74613
74661
|
function So2(e, t) {
|
|
74614
74662
|
if (!import_lodash.isNil(e)) {
|
|
74615
74663
|
if (e.font_family && e.font_source && t) {
|
|
74616
|
-
if (!
|
|
74664
|
+
if (!WE2(e.font_source))
|
|
74617
74665
|
throw new Error(`Dashboard theme: "${e.font_source}" is not a valid font source.`);
|
|
74618
74666
|
t[e.font_family] = e.font_source;
|
|
74619
74667
|
}
|
|
@@ -74654,7 +74702,7 @@ function Bg2(e) {
|
|
|
74654
74702
|
return import_lodash.omitBy({
|
|
74655
74703
|
_id: Me2(e.__fqn__),
|
|
74656
74704
|
border_width: Lc2(e.border_width),
|
|
74657
|
-
border_radius:
|
|
74705
|
+
border_radius: QE2(e.border_radius),
|
|
74658
74706
|
border_color: e.border_color,
|
|
74659
74707
|
border_style: e.border_style
|
|
74660
74708
|
}, import_lodash.isUndefined);
|
|
@@ -74732,7 +74780,7 @@ function YE2(e) {
|
|
|
74732
74780
|
};
|
|
74733
74781
|
return import_lodash.omitBy(b, (v) => !!(import_lodash.isUndefined(v) || v && typeof v == "object" && Object.keys(v).length === 0));
|
|
74734
74782
|
}
|
|
74735
|
-
function
|
|
74783
|
+
function Un3(e, t) {
|
|
74736
74784
|
if (!import_lodash.isNil(e))
|
|
74737
74785
|
return import_lodash.omitBy({
|
|
74738
74786
|
_id: Me2(e.__fqn__),
|
|
@@ -74821,7 +74869,7 @@ function Ll2(e) {
|
|
|
74821
74869
|
title: e.title,
|
|
74822
74870
|
background: Io2(e.background),
|
|
74823
74871
|
canvas: Ig2(e.canvas),
|
|
74824
|
-
block:
|
|
74872
|
+
block: Un3(e.block, t),
|
|
74825
74873
|
viz: Pg2(e.viz, t),
|
|
74826
74874
|
custom_css: ZE2(t, e.custom_css),
|
|
74827
74875
|
color: Eg2(e.color)
|
|
@@ -74842,7 +74890,7 @@ function XE2(e) {
|
|
|
74842
74890
|
var eT2 = "compare_by_percent";
|
|
74843
74891
|
var tT2 = eT2;
|
|
74844
74892
|
var nT2 = false;
|
|
74845
|
-
function
|
|
74893
|
+
function Us2(e) {
|
|
74846
74894
|
if (!e)
|
|
74847
74895
|
return;
|
|
74848
74896
|
const t = {};
|
|
@@ -74851,13 +74899,13 @@ function js(e) {
|
|
|
74851
74899
|
function oT2(e) {
|
|
74852
74900
|
const t = {};
|
|
74853
74901
|
import_lodash.isNil(e.alignment) || (t.alignment = e.alignment);
|
|
74854
|
-
const n =
|
|
74902
|
+
const n = Us2(e.label);
|
|
74855
74903
|
n && (t.label = n);
|
|
74856
|
-
const o =
|
|
74904
|
+
const o = Us2(e.metric_value);
|
|
74857
74905
|
o && (t.value = o);
|
|
74858
74906
|
const i = e.progress;
|
|
74859
74907
|
if (!import_lodash.isNil(i)) {
|
|
74860
|
-
const a = {}, s =
|
|
74908
|
+
const a = {}, s = Us2(i.text);
|
|
74861
74909
|
s && (a.text = s);
|
|
74862
74910
|
const c = i.bar?.color;
|
|
74863
74911
|
c && (a.indicator = { bg_color: c }), import_lodash.isEmpty(a) || (t.progress = a);
|
|
@@ -74879,12 +74927,12 @@ function iT2(e, t) {
|
|
|
74879
74927
|
const i = e.settings || {}, r2 = import_lodash.get(i, "display_mode", tT2);
|
|
74880
74928
|
let a = null;
|
|
74881
74929
|
const s = import_lodash.get(e, "compare_value", {}), c = {};
|
|
74882
|
-
c.metric_value =
|
|
74930
|
+
c.metric_value = W2(e.value, t, {
|
|
74883
74931
|
allowDimension: true,
|
|
74884
74932
|
allowMeasure: true,
|
|
74885
74933
|
fallbackUname: "!value",
|
|
74886
74934
|
unameValidator: n
|
|
74887
|
-
}), s.__type__ === "VizPopSettings" ? (o = "pop", a = Si2(s, t)) : (o = "field", import_lodash.isEmpty(s) || (c.metric_comparison_value =
|
|
74935
|
+
}), s.__type__ === "VizPopSettings" ? (o = "pop", a = Si2(s, t)) : (o = "field", import_lodash.isEmpty(s) || (c.metric_comparison_value = W2(s, t, {
|
|
74888
74936
|
allowDimension: true,
|
|
74889
74937
|
allowMeasure: true,
|
|
74890
74938
|
fallbackUname: "!compare_value",
|
|
@@ -74953,12 +75001,12 @@ function cT2(e, t) {
|
|
|
74953
75001
|
throw new Error(`${o}: Expect only one of x_axis or legend field`);
|
|
74954
75002
|
if (!e.x_axis && !e.legend)
|
|
74955
75003
|
throw new Error(`${o}: Expect at least one of x_axis or legend field`);
|
|
74956
|
-
e.x_axis && (f.x_axis =
|
|
75004
|
+
e.x_axis && (f.x_axis = W2(e.x_axis, t, {
|
|
74957
75005
|
allowDimension: true,
|
|
74958
75006
|
allowMeasure: false,
|
|
74959
75007
|
fallbackUname: "!x_axis",
|
|
74960
75008
|
unameValidator: n
|
|
74961
|
-
})), e.legend && (f.legend =
|
|
75009
|
+
})), e.legend && (f.legend = W2(e.legend, t, {
|
|
74962
75010
|
allowDimension: true,
|
|
74963
75011
|
allowMeasure: false,
|
|
74964
75012
|
fallbackUname: "!legend",
|
|
@@ -74969,7 +75017,7 @@ function cT2(e, t) {
|
|
|
74969
75017
|
throw new Error(`${o}: Expect at least one for y_axis field`);
|
|
74970
75018
|
const w2 = g3.map((x, b) => ({
|
|
74971
75019
|
color: x.color || Xp2,
|
|
74972
|
-
...
|
|
75020
|
+
...W2(x.field, t, {
|
|
74973
75021
|
allowDimension: true,
|
|
74974
75022
|
allowMeasure: true,
|
|
74975
75023
|
fallbackUname: `!y_axis[${b}]`,
|
|
@@ -74991,13 +75039,13 @@ function uT2(e, t) {
|
|
|
74991
75039
|
} = e;
|
|
74992
75040
|
return {
|
|
74993
75041
|
fields: {
|
|
74994
|
-
rows:
|
|
75042
|
+
rows: W2(o, t, {
|
|
74995
75043
|
allowDimension: true,
|
|
74996
75044
|
allowMeasure: false,
|
|
74997
75045
|
fallbackUname: "!words",
|
|
74998
75046
|
unameValidator: n
|
|
74999
75047
|
}),
|
|
75000
|
-
values:
|
|
75048
|
+
values: W2(i, t, {
|
|
75001
75049
|
allowDimension: true,
|
|
75002
75050
|
allowMeasure: true,
|
|
75003
75051
|
fallbackUname: "!weight",
|
|
@@ -75013,12 +75061,12 @@ function uT2(e, t) {
|
|
|
75013
75061
|
};
|
|
75014
75062
|
}
|
|
75015
75063
|
function dT2(e, t) {
|
|
75016
|
-
const n = new Ce3, o =
|
|
75064
|
+
const n = new Ce3, o = W2(e.value, t, {
|
|
75017
75065
|
allowDimension: true,
|
|
75018
75066
|
allowMeasure: true,
|
|
75019
75067
|
fallbackUname: "!value",
|
|
75020
75068
|
unameValidator: n
|
|
75021
|
-
}), i =
|
|
75069
|
+
}), i = W2(e.max_value, t, {
|
|
75022
75070
|
allowDimension: true,
|
|
75023
75071
|
allowMeasure: true,
|
|
75024
75072
|
fallbackUname: "!max_value",
|
|
@@ -75055,7 +75103,7 @@ var Fn3 = {
|
|
|
75055
75103
|
onemap_landlot: "OneMap LandLot"
|
|
75056
75104
|
};
|
|
75057
75105
|
var mn3 = "auto";
|
|
75058
|
-
var
|
|
75106
|
+
var js = "value";
|
|
75059
75107
|
var Ks2 = {
|
|
75060
75108
|
value: "number",
|
|
75061
75109
|
percentage: "percent"
|
|
@@ -75100,17 +75148,17 @@ var mT2 = (e) => {
|
|
|
75100
75148
|
style: import_lodash.get(t, "value_colors.style", Nc2),
|
|
75101
75149
|
steps: import_lodash.get(t, "value_colors.steps", Mc2),
|
|
75102
75150
|
min: {
|
|
75103
|
-
type: Ks2[import_lodash.get(t, "value_colors.min.type",
|
|
75151
|
+
type: Ks2[import_lodash.get(t, "value_colors.min.type", js)],
|
|
75104
75152
|
value: import_lodash.get(t, "value_colors.min.value"),
|
|
75105
75153
|
color: import_lodash.get(t, "value_colors.min.color")
|
|
75106
75154
|
},
|
|
75107
75155
|
mid: {
|
|
75108
|
-
type: Ks2[import_lodash.get(t, "value_colors.mid.type",
|
|
75156
|
+
type: Ks2[import_lodash.get(t, "value_colors.mid.type", js)],
|
|
75109
75157
|
value: import_lodash.get(t, "value_colors.mid.value"),
|
|
75110
75158
|
color: import_lodash.get(t, "value_colors.mid.color")
|
|
75111
75159
|
},
|
|
75112
75160
|
max: {
|
|
75113
|
-
type: Ks2[import_lodash.get(t, "value_colors.max.type",
|
|
75161
|
+
type: Ks2[import_lodash.get(t, "value_colors.max.type", js)],
|
|
75114
75162
|
value: import_lodash.get(t, "value_colors.max.value"),
|
|
75115
75163
|
color: import_lodash.get(t, "value_colors.max.color")
|
|
75116
75164
|
}
|
|
@@ -75122,7 +75170,7 @@ var mT2 = (e) => {
|
|
|
75122
75170
|
legend: yc2({
|
|
75123
75171
|
color: n.color,
|
|
75124
75172
|
colors: Object.fromEntries(o.map((i) => [i.value, i.color])),
|
|
75125
|
-
...
|
|
75173
|
+
...Wr3(n.color_palette)
|
|
75126
75174
|
})
|
|
75127
75175
|
};
|
|
75128
75176
|
}
|
|
@@ -75139,22 +75187,22 @@ function hT2(e, t) {
|
|
|
75139
75187
|
map_color: {},
|
|
75140
75188
|
map_settings: {}
|
|
75141
75189
|
};
|
|
75142
|
-
l.lng =
|
|
75190
|
+
l.lng = W2(i, t, {
|
|
75143
75191
|
allowDimension: true,
|
|
75144
75192
|
allowMeasure: false,
|
|
75145
75193
|
fallbackUname: "!lng",
|
|
75146
75194
|
unameValidator: n
|
|
75147
|
-
}), l.lat =
|
|
75195
|
+
}), l.lat = W2(r2, t, {
|
|
75148
75196
|
allowDimension: true,
|
|
75149
75197
|
allowMeasure: false,
|
|
75150
75198
|
fallbackUname: "!lat",
|
|
75151
75199
|
unameValidator: n
|
|
75152
|
-
}), a && (l.value =
|
|
75200
|
+
}), a && (l.value = W2(a, t, {
|
|
75153
75201
|
allowDimension: true,
|
|
75154
75202
|
allowMeasure: true,
|
|
75155
75203
|
fallbackUname: "!value",
|
|
75156
75204
|
unameValidator: n
|
|
75157
|
-
})), s && (l.legend =
|
|
75205
|
+
})), s && (l.legend = W2(s, t, {
|
|
75158
75206
|
allowDimension: true,
|
|
75159
75207
|
allowMeasure: true,
|
|
75160
75208
|
fallbackUname: "!legend",
|
|
@@ -75173,7 +75221,7 @@ function hT2(e, t) {
|
|
|
75173
75221
|
};
|
|
75174
75222
|
}
|
|
75175
75223
|
var Hs = "value";
|
|
75176
|
-
var
|
|
75224
|
+
var Ws2 = {
|
|
75177
75225
|
value: "number",
|
|
75178
75226
|
percentage: "percent"
|
|
75179
75227
|
};
|
|
@@ -75193,17 +75241,17 @@ var gT2 = (e) => ({
|
|
|
75193
75241
|
style: import_lodash.get(e, "value_colors.style", Rc2),
|
|
75194
75242
|
steps: import_lodash.get(e, "value_colors.steps", Oc2),
|
|
75195
75243
|
min: {
|
|
75196
|
-
type:
|
|
75244
|
+
type: Ws2[import_lodash.get(e, "value_colors.min.type", Hs)],
|
|
75197
75245
|
value: import_lodash.get(e, "value_colors.min.value"),
|
|
75198
75246
|
color: import_lodash.get(e, "value_colors.min.color")
|
|
75199
75247
|
},
|
|
75200
75248
|
mid: {
|
|
75201
|
-
type:
|
|
75249
|
+
type: Ws2[import_lodash.get(e, "value_colors.mid.type", Hs)],
|
|
75202
75250
|
value: import_lodash.get(e, "value_colors.mid.value"),
|
|
75203
75251
|
color: import_lodash.get(e, "value_colors.mid.color")
|
|
75204
75252
|
},
|
|
75205
75253
|
max: {
|
|
75206
|
-
type:
|
|
75254
|
+
type: Ws2[import_lodash.get(e, "value_colors.max.type", Hs)],
|
|
75207
75255
|
value: import_lodash.get(e, "value_colors.max.value"),
|
|
75208
75256
|
color: import_lodash.get(e, "value_colors.max.color")
|
|
75209
75257
|
}
|
|
@@ -75213,7 +75261,7 @@ var AT2 = (e, t = true) => {
|
|
|
75213
75261
|
const n = e[t ? "legend_colors" : "location_colors"] ?? {}, o = n.point ?? [], i = yc2({
|
|
75214
75262
|
color: n.color,
|
|
75215
75263
|
colors: Object.fromEntries(o.map((r2) => [r2.value, r2.color])),
|
|
75216
|
-
...
|
|
75264
|
+
...Wr3(n.color_palette)
|
|
75217
75265
|
});
|
|
75218
75266
|
return t ? { legend: i } : { location: i };
|
|
75219
75267
|
};
|
|
@@ -75228,7 +75276,7 @@ var bT2 = (e, t, n) => {
|
|
|
75228
75276
|
if (!i || !i?.length)
|
|
75229
75277
|
throw new Error(`${e.__type__}: ${o}: Please select at least one location field`);
|
|
75230
75278
|
return r2 = i.map((c, l) => {
|
|
75231
|
-
const u = import_lodash.get(c, "location_type", "none"), d2 =
|
|
75279
|
+
const u = import_lodash.get(c, "location_type", "none"), d2 = W2(c.field, t, {
|
|
75232
75280
|
allowDimension: true,
|
|
75233
75281
|
allowMeasure: true,
|
|
75234
75282
|
fallbackUname: `!location[${l}]`,
|
|
@@ -75252,12 +75300,12 @@ var wT2 = (e, t) => {
|
|
|
75252
75300
|
map_color: {},
|
|
75253
75301
|
map_settings: {}
|
|
75254
75302
|
};
|
|
75255
|
-
s.location = bT2(e, t, n), i && (s.value =
|
|
75303
|
+
s.location = bT2(e, t, n), i && (s.value = W2(i, t, {
|
|
75256
75304
|
allowDimension: true,
|
|
75257
75305
|
allowMeasure: true,
|
|
75258
75306
|
fallbackUname: "!value",
|
|
75259
75307
|
unameValidator: n
|
|
75260
|
-
})), r2 && (s.legend =
|
|
75308
|
+
})), r2 && (s.legend = W2(r2, t, {
|
|
75261
75309
|
allowDimension: true,
|
|
75262
75310
|
allowMeasure: true,
|
|
75263
75311
|
fallbackUname: "!legend",
|
|
@@ -75313,7 +75361,7 @@ function $g2(e) {
|
|
|
75313
75361
|
};
|
|
75314
75362
|
}
|
|
75315
75363
|
var vT2 = (e, t) => {
|
|
75316
|
-
const n = new Ce3, o = Object.values(e.field || {}).reduce((c, l) => (c[l.uname] =
|
|
75364
|
+
const n = new Ce3, o = Object.values(e.field || {}).reduce((c, l) => (c[l.uname] = W2(l.val, t, {
|
|
75317
75365
|
allowDimension: true,
|
|
75318
75366
|
allowMeasure: true,
|
|
75319
75367
|
fallbackUname: `!${l.uname}`,
|
|
@@ -75368,20 +75416,20 @@ function Lg2(e, t, n = 0) {
|
|
|
75368
75416
|
}
|
|
75369
75417
|
function xT2(e, t) {
|
|
75370
75418
|
const n = new Ce3, { rows: o, columns: i, values: r2 } = e, a = {
|
|
75371
|
-
rows: (o || []).map((u, d2) =>
|
|
75419
|
+
rows: (o || []).map((u, d2) => W2(u, t, {
|
|
75372
75420
|
allowDimension: true,
|
|
75373
75421
|
allowMeasure: false,
|
|
75374
75422
|
fallbackUname: `!rows[${d2}]`,
|
|
75375
75423
|
unameValidator: n,
|
|
75376
75424
|
allowHiddenField: true
|
|
75377
75425
|
})),
|
|
75378
|
-
columns: (i || []).map((u, d2) =>
|
|
75426
|
+
columns: (i || []).map((u, d2) => W2(u, t, {
|
|
75379
75427
|
allowDimension: true,
|
|
75380
75428
|
allowMeasure: false,
|
|
75381
75429
|
fallbackUname: `!columns[${d2}]`,
|
|
75382
75430
|
unameValidator: n
|
|
75383
75431
|
})),
|
|
75384
|
-
values: (r2 || []).map((u, d2) =>
|
|
75432
|
+
values: (r2 || []).map((u, d2) => W2(u, t, {
|
|
75385
75433
|
allowDimension: false,
|
|
75386
75434
|
allowMeasure: true,
|
|
75387
75435
|
fallbackUname: `!values[${d2}]`,
|
|
@@ -75428,7 +75476,8 @@ function CT2(e, t) {
|
|
|
75428
75476
|
amql: {
|
|
75429
75477
|
filters: l,
|
|
75430
75478
|
adhoc_fields: r2,
|
|
75431
|
-
conditions: [...u, ...d2]
|
|
75479
|
+
conditions: [...u, ...d2],
|
|
75480
|
+
...e.use_having !== undefined && { use_having: e.use_having }
|
|
75432
75481
|
},
|
|
75433
75482
|
filters: c,
|
|
75434
75483
|
...!import_lodash.isEmpty(h) && { context: h }
|
|
@@ -75625,7 +75674,7 @@ function _2(e) {
|
|
|
75625
75674
|
const n = t.triple || e.endsWith("'");
|
|
75626
75675
|
return t.newline ? n ? `'''${ot3(e, { sanitizeTemplateString: true }).replace(/'/g, "\\'")}'''` : `'''${ot3(e, { sanitizeTemplateString: true })}'''` : t.single ? t.double ? n ? `'${ot3(e, { sanitizeTemplateString: true }).replace(/'/g, "\\'")}'` : `'''${ot3(e, { sanitizeTemplateString: true })}'''` : `"${ot3(e, { sanitizeTemplateString: true })}"` : `'${ot3(e, { sanitizeTemplateString: true })}'`;
|
|
75627
75676
|
}
|
|
75628
|
-
function
|
|
75677
|
+
function U2(e, t) {
|
|
75629
75678
|
return t ? t.startsWith("{") ? `${e} ${t}` : `${e}: ${t}` : "";
|
|
75630
75679
|
}
|
|
75631
75680
|
function Og2(e, t, n, o) {
|
|
@@ -75692,14 +75741,14 @@ function Vg2(e, t) {
|
|
|
75692
75741
|
return t.isAvailableUname(i) && (n[o] = e[o]), n;
|
|
75693
75742
|
}, {});
|
|
75694
75743
|
}
|
|
75695
|
-
var
|
|
75744
|
+
var jc2 = [
|
|
75696
75745
|
"column_width.manual_widths",
|
|
75697
75746
|
"column_alignment",
|
|
75698
75747
|
"column_font_color",
|
|
75699
75748
|
"column_bg_color"
|
|
75700
75749
|
];
|
|
75701
75750
|
function Gg2(e) {
|
|
75702
|
-
return import_lodash.some(
|
|
75751
|
+
return import_lodash.some(jc2, (t) => {
|
|
75703
75752
|
const n = import_lodash.get(e, t);
|
|
75704
75753
|
return !import_lodash.isEmpty(n);
|
|
75705
75754
|
});
|
|
@@ -75707,7 +75756,7 @@ function Gg2(e) {
|
|
|
75707
75756
|
function rm2(e) {
|
|
75708
75757
|
return !import_lodash.isNil(e?.model_id);
|
|
75709
75758
|
}
|
|
75710
|
-
function
|
|
75759
|
+
function Qg2(e, t) {
|
|
75711
75760
|
const n = t.data_models.find((o) => o.id === e || o.name === e);
|
|
75712
75761
|
if (!n)
|
|
75713
75762
|
throw new Error(`Referencing to an invalid model (${e}) of dataset ${t.name}`);
|
|
@@ -75765,7 +75814,7 @@ function tB(e, t, n) {
|
|
|
75765
75814
|
const i = rm2(o) ? o.field : o, r2 = rm2(o) ? o.model_id : undefined, a = i.label ? `label: ${_2(i.label)}` : "", s = `formula: @${i.syntax} ${i.sql};;`, c = `calc_type: ${_2(i.aggregation_type ? "measure" : "dimension")}`, l = `data_type: ${_2(i.type)}`;
|
|
75766
75815
|
let u = "";
|
|
75767
75816
|
if (r2) {
|
|
75768
|
-
const g3 =
|
|
75817
|
+
const g3 = Qg2(r2, t);
|
|
75769
75818
|
u = `model: ${n?.datasetAsRef ? `${g3.name}` : `${_2(g3.name)}`}`;
|
|
75770
75819
|
}
|
|
75771
75820
|
let d2 = "";
|
|
@@ -75791,7 +75840,7 @@ function tB(e, t, n) {
|
|
|
75791
75840
|
function Gt3(e, t) {
|
|
75792
75841
|
if (import_lodash.isNil(e.model_id))
|
|
75793
75842
|
return e.is_metric ? `r(${t.name}.${e.field_name})` : `${_2(e.field_name)}`;
|
|
75794
|
-
const n =
|
|
75843
|
+
const n = Qg2(e.model_id, t), o = n.fields.find((i) => i.name === e.field_name);
|
|
75795
75844
|
return o ? o.defined_in_dataset ? `r(${t.name}, ${n.name}.${e.field_name})` : `r(${n.name}.${e.field_name})` : `ref(${_2(n.name)}, ${_2(e.field_name)})`;
|
|
75796
75845
|
}
|
|
75797
75846
|
function lm2(e, t) {
|
|
@@ -75897,10 +75946,10 @@ function q2(e, t, n) {
|
|
|
75897
75946
|
`)}
|
|
75898
75947
|
}`;
|
|
75899
75948
|
}
|
|
75900
|
-
const J = Gt3(o, t),
|
|
75949
|
+
const J = Gt3(o, t), Q = `ref: ${J}`, pe = [
|
|
75901
75950
|
g3,
|
|
75902
75951
|
w2,
|
|
75903
|
-
|
|
75952
|
+
Q,
|
|
75904
75953
|
b,
|
|
75905
75954
|
k,
|
|
75906
75955
|
P,
|
|
@@ -75909,17 +75958,17 @@ function q2(e, t, n) {
|
|
|
75909
75958
|
C,
|
|
75910
75959
|
B
|
|
75911
75960
|
].filter(Boolean);
|
|
75912
|
-
return pe.length === 1 && pe[0] ===
|
|
75961
|
+
return pe.length === 1 && pe[0] === Q ? J : (n && (n.refProp = Q), ` VizFieldFull {
|
|
75913
75962
|
${pe.join(`
|
|
75914
75963
|
`)}
|
|
75915
75964
|
}`);
|
|
75916
75965
|
}
|
|
75917
75966
|
if (!t.data_models.find((J) => J.id === o.model_id || J.name === o.model_id))
|
|
75918
75967
|
throw new Error(`Referencing to an invalid model (${o.model_id}) of dataset ${t.name}`);
|
|
75919
|
-
const T2 = Gt3(o, t),
|
|
75968
|
+
const T2 = Gt3(o, t), j = `ref: ${T2}`, V = a && a !== "custom" ? `aggregation: ${_2(a)}` : "", Y = s ? `transformation: ${_2(s)}` : "", K2 = [
|
|
75920
75969
|
g3,
|
|
75921
75970
|
w2,
|
|
75922
|
-
|
|
75971
|
+
j,
|
|
75923
75972
|
V,
|
|
75924
75973
|
Y,
|
|
75925
75974
|
b,
|
|
@@ -75930,7 +75979,7 @@ function q2(e, t, n) {
|
|
|
75930
75979
|
C,
|
|
75931
75980
|
B
|
|
75932
75981
|
].filter(Boolean);
|
|
75933
|
-
return K2.length === 1 && K2[0] ===
|
|
75982
|
+
return K2.length === 1 && K2[0] === j ? T2 : (n && (n.refProp = j, n.aggregationProp = V, n.transformationProp = Y), ` VizFieldFull {
|
|
75934
75983
|
${K2.join(`
|
|
75935
75984
|
`)}
|
|
75936
75985
|
}`);
|
|
@@ -76158,7 +76207,7 @@ function Xg2(e) {
|
|
|
76158
76207
|
const r2 = new Ce3, a = t.fields.table_fields || [];
|
|
76159
76208
|
if (a.forEach((s) => {
|
|
76160
76209
|
s.uuid && Ce3.isUserGeneratedUname(s.uuid) && r2.vizFieldUnames.add(s.uuid);
|
|
76161
|
-
}),
|
|
76210
|
+
}), jc2.forEach((s) => {
|
|
76162
76211
|
const c = import_lodash.get(n, s);
|
|
76163
76212
|
c && (dr3(a, c, r2), import_lodash.set(t.settings.misc, s, Vg2(c, r2)));
|
|
76164
76213
|
}), t.settings?.conditional_formatting) {
|
|
@@ -76177,14 +76226,14 @@ function tA2() {
|
|
|
76177
76226
|
sources: [{ type: "AutoDrillthroughSource" }]
|
|
76178
76227
|
};
|
|
76179
76228
|
}
|
|
76180
|
-
function
|
|
76229
|
+
function Wc2(e) {
|
|
76181
76230
|
const t = new Ce3, n = import_lodash.cloneDeep(e), o = import_lodash.get(n, "settings.misc", {}), i = import_lodash.get(n, "settings.sort", []);
|
|
76182
76231
|
if (!Gg2(o) && !n.settings?.conditional_formatting && !i.length)
|
|
76183
76232
|
return n;
|
|
76184
76233
|
const r2 = import_lodash.get(n, "fields.pivot_data.rows", []), a = import_lodash.get(n, "fields.pivot_data.columns", []), s = import_lodash.get(n, "fields.pivot_data.values", []);
|
|
76185
76234
|
if ([...r2, ...a, ...s].forEach((c) => {
|
|
76186
76235
|
c.uuid && Ce3.isUserGeneratedUname(c.uuid) && t.vizFieldUnames.add(c.uuid);
|
|
76187
|
-
}),
|
|
76236
|
+
}), jc2.forEach((c) => {
|
|
76188
76237
|
const l = import_lodash.get(o, c);
|
|
76189
76238
|
l && (dr3(r2, l, t), dr3(s, l, t), dr3(a, l, t), import_lodash.set(o, c, Vg2(l, t)));
|
|
76190
76239
|
}), n.settings?.conditional_formatting) {
|
|
@@ -76519,7 +76568,7 @@ function yA2(e, t, n) {
|
|
|
76519
76568
|
const B = o(C, ["VizBlock", "FilterBlock"], 'FilterInteraction "to" block');
|
|
76520
76569
|
if (B.type === "VizBlock") {
|
|
76521
76570
|
const {
|
|
76522
|
-
dataset:
|
|
76571
|
+
dataset: j,
|
|
76523
76572
|
model: V,
|
|
76524
76573
|
field: Y,
|
|
76525
76574
|
isMetric: K2
|
|
@@ -76528,7 +76577,7 @@ function yA2(e, t, n) {
|
|
|
76528
76577
|
from: m2.uname,
|
|
76529
76578
|
to: C,
|
|
76530
76579
|
field_path: _n3({
|
|
76531
|
-
data_set_id:
|
|
76580
|
+
data_set_id: j.id,
|
|
76532
76581
|
model_id: V?.id,
|
|
76533
76582
|
field_name: Y.name,
|
|
76534
76583
|
is_metric: K2
|
|
@@ -76918,7 +76967,7 @@ function Lt3(e) {
|
|
|
76918
76967
|
function Vo(e) {
|
|
76919
76968
|
return ea2(e);
|
|
76920
76969
|
}
|
|
76921
|
-
var
|
|
76970
|
+
var Ul2 = (e, t, n) => {
|
|
76922
76971
|
const o = vi2(t), i = {
|
|
76923
76972
|
name: e.name,
|
|
76924
76973
|
type: e.type,
|
|
@@ -76940,7 +76989,7 @@ var jl2 = (e, t, n) => {
|
|
|
76940
76989
|
};
|
|
76941
76990
|
return e.__decorators__?.tag?.length && (i.tags = oo2(e.__decorators__.tag)), i;
|
|
76942
76991
|
};
|
|
76943
|
-
var
|
|
76992
|
+
var jI2 = (e, t, n) => {
|
|
76944
76993
|
const o = vi2(t), i = {
|
|
76945
76994
|
name: e.name,
|
|
76946
76995
|
type: e.type,
|
|
@@ -76996,16 +77045,16 @@ var Zc2 = (e) => {
|
|
|
76996
77045
|
data_source_id: Gl2(e.data_source_name),
|
|
76997
77046
|
owner: e.owner ?? "",
|
|
76998
77047
|
dimensions: import_lodash.map(e.dimension, (o) => ({
|
|
76999
|
-
...
|
|
77048
|
+
...Ul2(o, e, "dimension")
|
|
77000
77049
|
})),
|
|
77001
77050
|
table_name: e.table_name ?? "",
|
|
77002
77051
|
query: e.query?.content ?? "",
|
|
77003
77052
|
data_source_name: Gl2(e.data_source_name),
|
|
77004
77053
|
relationship: [],
|
|
77005
77054
|
measures: import_lodash.map(e.measure, (o) => ({
|
|
77006
|
-
...
|
|
77055
|
+
...Ul2(o, e, "measure")
|
|
77007
77056
|
})),
|
|
77008
|
-
params: import_lodash.map(e.param, (o) =>
|
|
77057
|
+
params: import_lodash.map(e.param, (o) => jI2(o, e, "param")),
|
|
77009
77058
|
import_source: e.import_source,
|
|
77010
77059
|
amlBaseFqn: e.__baseFqn__
|
|
77011
77060
|
};
|
|
@@ -77133,7 +77182,7 @@ var aP = (e, t) => {
|
|
|
77133
77182
|
var Fi2 = (e) => {
|
|
77134
77183
|
const t = import_lodash.map(e.models, (l) => Zc2(l)), { relationships: n, joinConfigs: o } = nP(e.relationships, t), i = vi2(e);
|
|
77135
77184
|
import_lodash.forEach(e.dimension, (l) => {
|
|
77136
|
-
const u = vi2(l.model), d2 = t.find((m2) => m2.name === u), h =
|
|
77185
|
+
const u = vi2(l.model), d2 = t.find((m2) => m2.name === u), h = Ul2(l, l.model, "dimension");
|
|
77137
77186
|
d2?.dimensions.push({
|
|
77138
77187
|
...h,
|
|
77139
77188
|
defined_in_dataset: true
|
|
@@ -77237,7 +77286,7 @@ function fP(e, t) {
|
|
|
77237
77286
|
hide_controls: !!o.settings?.hide_controls,
|
|
77238
77287
|
drillthrough: SI2({ drillthrough: o.settings?.drillthrough, enable_drillthrough: o.settings?.enable_drillthrough, datasets: t })
|
|
77239
77288
|
},
|
|
77240
|
-
theme:
|
|
77289
|
+
theme: Un3(o.theme)
|
|
77241
77290
|
};
|
|
77242
77291
|
case "TextBlock":
|
|
77243
77292
|
return {
|
|
@@ -77247,7 +77296,7 @@ function fP(e, t) {
|
|
|
77247
77296
|
settings: {
|
|
77248
77297
|
hide_controls: !!o.settings?.hide_controls
|
|
77249
77298
|
},
|
|
77250
|
-
theme:
|
|
77299
|
+
theme: Un3(o.theme),
|
|
77251
77300
|
...r2
|
|
77252
77301
|
};
|
|
77253
77302
|
case "VizBlock":
|
|
@@ -77261,7 +77310,7 @@ function fP(e, t) {
|
|
|
77261
77310
|
hide_label: !!o.settings?.hide_label,
|
|
77262
77311
|
hide_controls: !!o.settings?.hide_controls
|
|
77263
77312
|
},
|
|
77264
|
-
theme:
|
|
77313
|
+
theme: Un3(o.theme),
|
|
77265
77314
|
...r2
|
|
77266
77315
|
};
|
|
77267
77316
|
case "PopBlock":
|
|
@@ -77278,7 +77327,7 @@ function fP(e, t) {
|
|
|
77278
77327
|
hide_label: !!o.settings?.hide_label,
|
|
77279
77328
|
hide_controls: !!o.settings?.hide_controls
|
|
77280
77329
|
},
|
|
77281
|
-
theme:
|
|
77330
|
+
theme: Un3(o.theme)
|
|
77282
77331
|
};
|
|
77283
77332
|
case "DateDrillBlock":
|
|
77284
77333
|
return {
|
|
@@ -77294,7 +77343,7 @@ function fP(e, t) {
|
|
|
77294
77343
|
hide_label: !!o.settings?.hide_label,
|
|
77295
77344
|
hide_controls: !!o.settings?.hide_controls
|
|
77296
77345
|
},
|
|
77297
|
-
theme:
|
|
77346
|
+
theme: Un3(o.theme)
|
|
77298
77347
|
};
|
|
77299
77348
|
case "AiBlock":
|
|
77300
77349
|
return {
|
|
@@ -77306,7 +77355,7 @@ function fP(e, t) {
|
|
|
77306
77355
|
hide_label: !!o.settings?.hide_label,
|
|
77307
77356
|
hide_controls: !!o.settings?.hide_controls
|
|
77308
77357
|
},
|
|
77309
|
-
theme:
|
|
77358
|
+
theme: Un3(o.theme)
|
|
77310
77359
|
};
|
|
77311
77360
|
default: {
|
|
77312
77361
|
const a = i;
|
|
@@ -77321,7 +77370,7 @@ function fP(e, t) {
|
|
|
77321
77370
|
};
|
|
77322
77371
|
}
|
|
77323
77372
|
}
|
|
77324
|
-
var
|
|
77373
|
+
var jl2 = [
|
|
77325
77374
|
"VizBlock",
|
|
77326
77375
|
"TextBlock",
|
|
77327
77376
|
"FilterBlock",
|
|
@@ -77393,10 +77442,10 @@ function _P(e) {
|
|
|
77393
77442
|
return false;
|
|
77394
77443
|
if (n.funcType) {
|
|
77395
77444
|
const { returnType: i } = n.funcType;
|
|
77396
|
-
return !!i &&
|
|
77445
|
+
return !!i && jl2.includes(i);
|
|
77397
77446
|
}
|
|
77398
77447
|
const o = t.__type__ ?? t.def?.__type__;
|
|
77399
|
-
return !!o &&
|
|
77448
|
+
return !!o && jl2.includes(o);
|
|
77400
77449
|
}
|
|
77401
77450
|
function yP(e) {
|
|
77402
77451
|
const { value: t, fqn: n } = e, o = Me2(n) ?? e.name.replace(/::/g, "."), i = t.__decorators__.template, {
|
|
@@ -77459,7 +77508,7 @@ function eu2(e, t) {
|
|
|
77459
77508
|
throw new Error(`Dashboard "${n}": ${o.message}`);
|
|
77460
77509
|
}
|
|
77461
77510
|
}
|
|
77462
|
-
function
|
|
77511
|
+
function QP(e) {
|
|
77463
77512
|
return typeof e != "object" || e === null ? false : ri2.some((t) => (t in e));
|
|
77464
77513
|
}
|
|
77465
77514
|
function Cm2(e) {
|
|
@@ -77474,7 +77523,7 @@ function qP(e) {
|
|
|
77474
77523
|
}
|
|
77475
77524
|
function YP(e, t) {
|
|
77476
77525
|
const n = [];
|
|
77477
|
-
return t.label && n.push(`label: ${_2(t.label)}`), n.push(`type: ${_2(t.type)}`), t.sort && n.push(
|
|
77526
|
+
return t.label && n.push(`label: ${_2(t.label)}`), n.push(`type: ${_2(t.type)}`), t.sort && n.push(U2("sort", qP(t.sort))), t.dataType && n.push(`data_type: ${_2(t.dataType)}`), `field ${e} {
|
|
77478
77527
|
${n.join(`
|
|
77479
77528
|
`)}
|
|
77480
77529
|
}`;
|
|
@@ -78404,7 +78453,7 @@ class tu2 extends OA2 {
|
|
|
78404
78453
|
}
|
|
78405
78454
|
}
|
|
78406
78455
|
|
|
78407
|
-
class
|
|
78456
|
+
class Wl2 extends tu2 {
|
|
78408
78457
|
constructor() {
|
|
78409
78458
|
super(...arguments), this.type = xe2.Text;
|
|
78410
78459
|
}
|
|
@@ -78459,7 +78508,7 @@ class GA extends nu2 {
|
|
|
78459
78508
|
}
|
|
78460
78509
|
}
|
|
78461
78510
|
|
|
78462
|
-
class
|
|
78511
|
+
class Ql2 extends nu2 {
|
|
78463
78512
|
constructor() {
|
|
78464
78513
|
super(...arguments), this.type = xe2.Root;
|
|
78465
78514
|
}
|
|
@@ -78468,7 +78517,7 @@ class Wl2 extends nu2 {
|
|
|
78468
78517
|
}
|
|
78469
78518
|
}
|
|
78470
78519
|
|
|
78471
|
-
class
|
|
78520
|
+
class UA extends nu2 {
|
|
78472
78521
|
constructor(t, n, o = [], i = t === "script" ? xe2.Script : t === "style" ? xe2.Style : xe2.Tag) {
|
|
78473
78522
|
super(o), this.name = t, this.attribs = n, this.type = i;
|
|
78474
78523
|
}
|
|
@@ -78493,7 +78542,7 @@ class jA extends nu2 {
|
|
|
78493
78542
|
});
|
|
78494
78543
|
}
|
|
78495
78544
|
}
|
|
78496
|
-
function
|
|
78545
|
+
function jA(e) {
|
|
78497
78546
|
return _D(e);
|
|
78498
78547
|
}
|
|
78499
78548
|
function yD(e) {
|
|
@@ -78517,17 +78566,17 @@ function xD(e) {
|
|
|
78517
78566
|
function KA(e, t = false) {
|
|
78518
78567
|
let n;
|
|
78519
78568
|
if (bD(e))
|
|
78520
|
-
n = new
|
|
78569
|
+
n = new Wl2(e.data);
|
|
78521
78570
|
else if (wD(e))
|
|
78522
78571
|
n = new zA(e.data);
|
|
78523
|
-
else if (
|
|
78524
|
-
const o = t ? nl2(e.children) : [], i = new
|
|
78572
|
+
else if (jA(e)) {
|
|
78573
|
+
const o = t ? nl2(e.children) : [], i = new UA(e.name, { ...e.attribs }, o);
|
|
78525
78574
|
o.forEach((r2) => r2.parent = i), e.namespace != null && (i.namespace = e.namespace), e["x-attribsNamespace"] && (i["x-attribsNamespace"] = { ...e["x-attribsNamespace"] }), e["x-attribsPrefix"] && (i["x-attribsPrefix"] = { ...e["x-attribsPrefix"] }), n = i;
|
|
78526
78575
|
} else if (yD(e)) {
|
|
78527
78576
|
const o = t ? nl2(e.children) : [], i = new GA(o);
|
|
78528
78577
|
o.forEach((r2) => r2.parent = i), n = i;
|
|
78529
78578
|
} else if (kD(e)) {
|
|
78530
|
-
const o = t ? nl2(e.children) : [], i = new
|
|
78579
|
+
const o = t ? nl2(e.children) : [], i = new Ql2(o);
|
|
78531
78580
|
o.forEach((r2) => r2.parent = i), e["x-mode"] && (i["x-mode"] = e["x-mode"]), n = i;
|
|
78532
78581
|
} else if (vD(e)) {
|
|
78533
78582
|
const o = new VA(e.name, e.data);
|
|
@@ -78550,13 +78599,13 @@ var Fm2 = {
|
|
|
78550
78599
|
|
|
78551
78600
|
class CD {
|
|
78552
78601
|
constructor(t, n, o) {
|
|
78553
|
-
this.dom = [], this.root = new
|
|
78602
|
+
this.dom = [], this.root = new Ql2(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof n == "function" && (o = n, n = Fm2), typeof t == "object" && (n = t, t = undefined), this.callback = t ?? null, this.options = n ?? Fm2, this.elementCB = o ?? null;
|
|
78554
78603
|
}
|
|
78555
78604
|
onparserinit(t) {
|
|
78556
78605
|
this.parser = t;
|
|
78557
78606
|
}
|
|
78558
78607
|
onreset() {
|
|
78559
|
-
this.dom = [], this.root = new
|
|
78608
|
+
this.dom = [], this.root = new Ql2(this.dom), this.done = false, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
|
|
78560
78609
|
}
|
|
78561
78610
|
onend() {
|
|
78562
78611
|
this.done || (this.done = true, this.parser = null, this.handleCallback(null));
|
|
@@ -78570,7 +78619,7 @@ class CD {
|
|
|
78570
78619
|
this.options.withEndIndices && (t.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(t);
|
|
78571
78620
|
}
|
|
78572
78621
|
onopentag(t, n) {
|
|
78573
|
-
const o = this.options.xmlMode ? xe2.Tag : undefined, i = new
|
|
78622
|
+
const o = this.options.xmlMode ? xe2.Tag : undefined, i = new UA(t, n, undefined, o);
|
|
78574
78623
|
this.addNode(i), this.tagStack.push(i);
|
|
78575
78624
|
}
|
|
78576
78625
|
ontext(t) {
|
|
@@ -78578,7 +78627,7 @@ class CD {
|
|
|
78578
78627
|
if (n && n.type === xe2.Text)
|
|
78579
78628
|
n.data += t, this.options.withEndIndices && (n.endIndex = this.parser.endIndex);
|
|
78580
78629
|
else {
|
|
78581
|
-
const o = new
|
|
78630
|
+
const o = new Wl2(t);
|
|
78582
78631
|
this.addNode(o), this.lastNode = o;
|
|
78583
78632
|
}
|
|
78584
78633
|
}
|
|
@@ -78594,7 +78643,7 @@ class CD {
|
|
|
78594
78643
|
this.lastNode = null;
|
|
78595
78644
|
}
|
|
78596
78645
|
oncdatastart() {
|
|
78597
|
-
const t = new
|
|
78646
|
+
const t = new Wl2(""), n = new GA([t]);
|
|
78598
78647
|
this.addNode(n), t.parent = n, this.lastNode = t;
|
|
78599
78648
|
}
|
|
78600
78649
|
oncdataend() {
|
|
@@ -78625,7 +78674,7 @@ function SD(e, t) {
|
|
|
78625
78674
|
continue;
|
|
78626
78675
|
}
|
|
78627
78676
|
const r2 = o[0][i[0]++];
|
|
78628
|
-
|
|
78677
|
+
jA(r2) && e(r2) && n.push(r2), xD(r2) && r2.children.length > 0 && (i.unshift(0), o.unshift(r2.children));
|
|
78629
78678
|
}
|
|
78630
78679
|
}
|
|
78631
78680
|
function ED(e, t) {
|
|
@@ -78712,13 +78761,13 @@ function OD(e, t) {
|
|
|
78712
78761
|
${HA(e, t)}
|
|
78713
78762
|
}`;
|
|
78714
78763
|
}
|
|
78715
|
-
function
|
|
78764
|
+
function WA(e, t, n = 0) {
|
|
78716
78765
|
if (n > 2)
|
|
78717
78766
|
return;
|
|
78718
78767
|
const { link: o, conditions: i } = e;
|
|
78719
78768
|
if (!i.length)
|
|
78720
78769
|
return;
|
|
78721
|
-
const r2 = i.map((s) => mA2(s) ?
|
|
78770
|
+
const r2 = i.map((s) => mA2(s) ? WA(s, t, n + 1) : OD(s, t)).filter(Boolean);
|
|
78722
78771
|
return ` ${o === "and" ? "AndFilters" : "OrFilters"} {
|
|
78723
78772
|
filters: [
|
|
78724
78773
|
${r2.join(`,
|
|
@@ -78729,7 +78778,7 @@ function QA(e, t, n = 0) {
|
|
|
78729
78778
|
function zD(e, t) {
|
|
78730
78779
|
if (!e || !e.length)
|
|
78731
78780
|
return;
|
|
78732
|
-
const n = e.map((o) =>
|
|
78781
|
+
const n = e.map((o) => WA(o, t)).filter(Boolean);
|
|
78733
78782
|
if (n.length)
|
|
78734
78783
|
return ` [
|
|
78735
78784
|
${n.join(`,
|
|
@@ -78746,12 +78795,12 @@ function $m2(e) {
|
|
|
78746
78795
|
`)}
|
|
78747
78796
|
]`;
|
|
78748
78797
|
}
|
|
78749
|
-
function
|
|
78798
|
+
function Ut2(e) {
|
|
78750
78799
|
const t = Number(e?.misc?.row_limit) || pi2;
|
|
78751
78800
|
if (t !== pi2 && t > 0)
|
|
78752
78801
|
return t;
|
|
78753
78802
|
}
|
|
78754
|
-
function
|
|
78803
|
+
function QA(e) {
|
|
78755
78804
|
const t = e?.misc?.wrap_text?.wrap_header_text, n = e?.misc?.wrap_text?.wrap_cell_text, o = e?.misc?.row_height;
|
|
78756
78805
|
if (t !== undefined || n !== undefined) {
|
|
78757
78806
|
const r2 = [];
|
|
@@ -78825,7 +78874,7 @@ function _t3(e) {
|
|
|
78825
78874
|
}
|
|
78826
78875
|
function GD(e, t) {
|
|
78827
78876
|
const n = Xg2(e), o = n.fields.table_fields || [], i = !!import_lodash.get(n, "settings.aggregation.show_average"), r2 = !!import_lodash.get(n, "settings.aggregation.show_total"), a = import_lodash.get(n, "settings.misc.pagination_size", $t2), s = !!import_lodash.get(n, "settings.misc.show_row_number"), c = import_lodash.get(n, "settings.sort", []), l = import_lodash.get(n, "settings.conditional_formatting", []), u = import_lodash.get(n, "settings.pop_settings"), d2 = !!import_lodash.get(n, "settings.others.include_empty_children_rows"), h = import_lodash.get(n, "settings.misc.column_width.manual_widths", {}), m2 = import_lodash.get(n, "settings.misc.column_freeze"), f = import_lodash.get(n, "settings.misc.single_cell_display"), g3 = import_lodash.get(n, "settings.misc.column_alignment"), w2 = import_lodash.get(n, "settings.misc.column_font_color"), x = import_lodash.get(n, "settings.misc.column_bg_color"), b = ` fields: [${o.map((me) => q2(me, t)).join(`,
|
|
78828
|
-
`)}]`, v = i ? `show_average_row: ${i}` : "", A = r2 ? `show_sum_row: ${r2}` : "", C = a !== undefined && a !== $t2 ? `pagination_size: ${a}` : "", B =
|
|
78877
|
+
`)}]`, v = i ? `show_average_row: ${i}` : "", A = r2 ? `show_sum_row: ${r2}` : "", C = a !== undefined && a !== $t2 ? `pagination_size: ${a}` : "", B = QA(n.settings), P = s ? `show_row_number: ${s}` : "", y2 = d2 ? `show_row_with_no_data: ${d2}` : "", D = Do2(c) ? `sorts: ${Do2(c)}` : "", T2 = Yg2(l, t), j = T2 ? `conditional_formats: ${T2}` : "", V = u ? $i2(u, t) : undefined, Y = V ? `pop ${V}` : "", K2 = Ut2(n.settings), J = K2 ? `row_limit: ${K2}` : "", Q = At3(n.settings.aggregate_awareness), pe = import_lodash.isNil(m2) ? "" : `frozen_columns: ${m2}`, Oe = !import_lodash.isNil(f) && f !== Eb2.large ? `single_cell_display: '${f}'` : "", ne = Og2(g3, x, w2, h), be = zg2(ne), ce = _t3([
|
|
78829
78878
|
v,
|
|
78830
78879
|
A,
|
|
78831
78880
|
C,
|
|
@@ -78833,10 +78882,10 @@ function GD(e, t) {
|
|
|
78833
78882
|
P,
|
|
78834
78883
|
y2,
|
|
78835
78884
|
D,
|
|
78836
|
-
|
|
78885
|
+
j,
|
|
78837
78886
|
Y,
|
|
78838
78887
|
J,
|
|
78839
|
-
|
|
78888
|
+
Q,
|
|
78840
78889
|
pe,
|
|
78841
78890
|
Oe,
|
|
78842
78891
|
be
|
|
@@ -78847,15 +78896,15 @@ function GD(e, t) {
|
|
|
78847
78896
|
].filter(Boolean).join(`
|
|
78848
78897
|
`);
|
|
78849
78898
|
}
|
|
78850
|
-
var
|
|
78851
|
-
var
|
|
78899
|
+
var UD = "columns";
|
|
78900
|
+
var jD = "last";
|
|
78852
78901
|
function KD(e) {
|
|
78853
78902
|
if (!e || !Object.keys(e).length)
|
|
78854
78903
|
return;
|
|
78855
78904
|
let t;
|
|
78856
|
-
e.placement && e.placement !==
|
|
78905
|
+
e.placement && e.placement !== UD && (t = `placement: ${_2(e.placement)}`);
|
|
78857
78906
|
let n;
|
|
78858
|
-
!import_lodash.isNil(e.order) && e.order !==
|
|
78907
|
+
!import_lodash.isNil(e.order) && e.order !== jD && (n = `order: ${typeof e.order == "number" ? e.order : `${_2(e.order)}`}`);
|
|
78859
78908
|
const o = [
|
|
78860
78909
|
t,
|
|
78861
78910
|
n
|
|
@@ -78871,7 +78920,7 @@ function HD(e) {
|
|
|
78871
78920
|
if (t)
|
|
78872
78921
|
return `value_labels_position ${t}`;
|
|
78873
78922
|
}
|
|
78874
|
-
function
|
|
78923
|
+
function WD(e) {
|
|
78875
78924
|
const { enabled: t, smart_suggestions_enabled: n } = e || {}, r2 = [
|
|
78876
78925
|
t === false ? "enabled: false" : "",
|
|
78877
78926
|
n === false ? "smart_suggestions_enabled: false" : ""
|
|
@@ -78882,13 +78931,13 @@ function QD(e) {
|
|
|
78882
78931
|
}` : "";
|
|
78883
78932
|
}
|
|
78884
78933
|
function io2(e) {
|
|
78885
|
-
const { view_underlying_data: t, breakdown: n } = e, i = t?.enabled === false ? "view_underlying_data { enabled: false }" : "", r2 =
|
|
78934
|
+
const { view_underlying_data: t, breakdown: n } = e, i = t?.enabled === false ? "view_underlying_data { enabled: false }" : "", r2 = WD(n), a = [i, r2].filter(Boolean).join(`
|
|
78886
78935
|
`);
|
|
78887
78936
|
return a ? ` analysis_interactions {
|
|
78888
78937
|
${a}
|
|
78889
78938
|
}` : "";
|
|
78890
78939
|
}
|
|
78891
|
-
function
|
|
78940
|
+
function QD(e, t) {
|
|
78892
78941
|
return e.map((n) => {
|
|
78893
78942
|
const { metric: o, views: i } = n, r2 = i.map((a) => {
|
|
78894
78943
|
const s = a.fields.map((c) => Gt3(c, t)).join(`,
|
|
@@ -78909,7 +78958,7 @@ function WD(e, t) {
|
|
|
78909
78958
|
`);
|
|
78910
78959
|
}
|
|
78911
78960
|
function qD(e, t) {
|
|
78912
|
-
const { metric_views: n } = e || {}, o = n ?
|
|
78961
|
+
const { metric_views: n } = e || {}, o = n ? QD(n, t) : "";
|
|
78913
78962
|
return o ? `underlying_data {
|
|
78914
78963
|
${o}
|
|
78915
78964
|
}` : "";
|
|
@@ -78942,12 +78991,12 @@ function ZD(e, t) {
|
|
|
78942
78991
|
}` : "";
|
|
78943
78992
|
}
|
|
78944
78993
|
function XD(e, t) {
|
|
78945
|
-
const n =
|
|
78994
|
+
const n = Wc2(e), { rows: o = [], columns: i = [], values: r2 = [] } = import_lodash.get(n, "fields.pivot_data", {}), a = import_lodash.get(n, "settings.misc.pagination_size", $t2), s = !!import_lodash.get(n, "settings.misc.convert_null_to_zero"), c = !!import_lodash.get(n, "settings.others.include_empty_children_rows"), l = !!import_lodash.get(n, "settings.others.row_total"), u = !!import_lodash.get(n, "settings.others.column_total"), d2 = !!import_lodash.get(n, "settings.others.sub_total"), h = import_lodash.get(n, "settings.sort"), m2 = import_lodash.get(n, "settings.conditional_formatting", []), f = import_lodash.get(n, "settings.pop_settings"), g3 = !!import_lodash.get(n, "settings.misc.freeze_rows", true), w2 = import_lodash.get(n, "settings.misc.column_width.manual_widths", {}), x = import_lodash.get(n, "settings.misc.column_freeze"), b = import_lodash.get(n, "settings.misc.column_alignment"), v = import_lodash.get(n, "settings.misc.column_font_color"), A = import_lodash.get(n, "settings.misc.column_bg_color"), C = o.length ? `rows: [${o.map((E) => q2(E, t))}]` : "", B = i.length ? `columns: [${i.map((E) => q2(E, t))}]` : "", P = r2.length ? `values: [${r2.map((E) => q2(E, t))}]` : "", y2 = QA(n.settings), k = a !== undefined && a !== $t2 ? `pagination_size: ${a}` : "", D = s ? `empty_cell_as_zero: ${s}` : "", T2 = c ? `show_row_with_no_data: ${c}` : "", j = l ? `show_row_total: ${l}` : "", V = u ? `show_column_total: ${u}` : "", Y = d2 ? `show_sub_total: ${d2}` : "", K2 = Yg2(m2, t), J = K2 ? `conditional_formats: ${K2}` : "", pe = Do2(h) ? `sorts: ${Do2(h)}` : "", Oe = f ? $i2(f, t) : undefined, ne = Oe ? `pop ${Oe}` : "", be = Ut2(n.settings), ce = be ? `row_limit: ${be}` : "", et = g3 ? "" : `freeze_rows: ${g3}`, me = At3(n.settings.aggregate_awareness), Re = import_lodash.isNil(x) ? "" : `frozen_columns: ${x}`, qe = HD(n?.settings?.misc?.value_labels_position), G = Og2(b, A, v, w2), S = zg2(G), Ae = n.settings.analysis_interactions ? io2(n.settings.analysis_interactions) : "", He = _t3([
|
|
78946
78995
|
y2,
|
|
78947
78996
|
k,
|
|
78948
78997
|
D,
|
|
78949
78998
|
T2,
|
|
78950
|
-
|
|
78999
|
+
j,
|
|
78951
79000
|
V,
|
|
78952
79001
|
Y,
|
|
78953
79002
|
J,
|
|
@@ -78995,7 +79044,7 @@ function ta3(e) {
|
|
|
78995
79044
|
const t = [];
|
|
78996
79045
|
e.title && t.push(`title: ${_2(e.title)}`);
|
|
78997
79046
|
const n = nF(e.categorical);
|
|
78998
|
-
if (n && t.push(
|
|
79047
|
+
if (n && t.push(U2("categorical", n)), t.length !== 0)
|
|
78999
79048
|
return `{
|
|
79000
79049
|
${t.join(`
|
|
79001
79050
|
`)}
|
|
@@ -79024,7 +79073,7 @@ function na2(e) {
|
|
|
79024
79073
|
if (typeof t == "object") {
|
|
79025
79074
|
const o = ta3(t);
|
|
79026
79075
|
if (o)
|
|
79027
|
-
return
|
|
79076
|
+
return U2("color_palette", o);
|
|
79028
79077
|
}
|
|
79029
79078
|
}
|
|
79030
79079
|
return import_lodash.isNil(n) ? "" : `color_palette: ${qA(n)}`;
|
|
@@ -79042,10 +79091,10 @@ function iF(e) {
|
|
|
79042
79091
|
return n === "trend" || n === "reference" || n === "moving" && !!o;
|
|
79043
79092
|
}
|
|
79044
79093
|
function rF(e, t) {
|
|
79045
|
-
const { x_axis: n, series: o } = e.fields, i = import_lodash.get(e, "fields.y_axes", []), r2 = import_lodash.get(e, "settings.y_axes", []), a = import_lodash.get(e, "fields.tooltips", []), s = !!import_lodash.get(e, "settings.legend.enabled"), c = import_lodash.get(e, "settings.legend.alignment", "bottom"), l = !!import_lodash.get(e, "settings.others.always_display_points"), u = !!import_lodash.get(e, "settings.others.include_empty_children_rows"), d2 = !!import_lodash.get(e, "settings.others.connect_discontinuous_points", true), h = import_lodash.get(e, "settings.pop_settings"), m2 = import_lodash.get(e, "settings.sort"), f = import_lodash.get(e, "settings.x_axis.title"), g3 = import_lodash.get(e, "settings.x_axis.show_null_datetime"), w2 = l && ["line_chart", "area_chart", "combination_chart"].includes(e.viz_type) ? `show_data_points: ${l}` : "", x = !d2 && ["line_chart", "area_chart", "combination_chart"].includes(e.viz_type) ? `connect_discontinuous_points: ${d2}` : "", b = u ? `show_rows_with_no_data: ${u}` : "", v =
|
|
79094
|
+
const { x_axis: n, series: o } = e.fields, i = import_lodash.get(e, "fields.y_axes", []), r2 = import_lodash.get(e, "settings.y_axes", []), a = import_lodash.get(e, "fields.tooltips", []), s = !!import_lodash.get(e, "settings.legend.enabled"), c = import_lodash.get(e, "settings.legend.alignment", "bottom"), l = !!import_lodash.get(e, "settings.others.always_display_points"), u = !!import_lodash.get(e, "settings.others.include_empty_children_rows"), d2 = !!import_lodash.get(e, "settings.others.connect_discontinuous_points", true), h = import_lodash.get(e, "settings.pop_settings"), m2 = import_lodash.get(e, "settings.sort"), f = import_lodash.get(e, "settings.x_axis.title"), g3 = import_lodash.get(e, "settings.x_axis.show_null_datetime"), w2 = l && ["line_chart", "area_chart", "combination_chart"].includes(e.viz_type) ? `show_data_points: ${l}` : "", x = !d2 && ["line_chart", "area_chart", "combination_chart"].includes(e.viz_type) ? `connect_discontinuous_points: ${d2}` : "", b = u ? `show_rows_with_no_data: ${u}` : "", v = Ut2(e.settings), A = v ? `row_limit: ${v}` : "", C = Zg2(m2) || "";
|
|
79046
79095
|
let B = "";
|
|
79047
79096
|
s ? c !== "bottom" && (B = `legend_label: ${_2(c)}`) : B = "legend_label: 'hidden'";
|
|
79048
|
-
const P = f ? `x_axis_label: ${_2(f)}` : "", y2 = g3 !== undefined ? `x_axis_show_null_datetime: ${g3}` : "", k = h ? $i2(h, t) : undefined, D = k ? `pop ${k}` : "", T2 = At3(e.settings.aggregate_awareness),
|
|
79097
|
+
const P = f ? `x_axis_label: ${_2(f)}` : "", y2 = g3 !== undefined ? `x_axis_show_null_datetime: ${g3}` : "", k = h ? $i2(h, t) : undefined, D = k ? `pop ${k}` : "", T2 = At3(e.settings.aggregate_awareness), j = e.settings.analysis_interactions ? io2(e.settings.analysis_interactions) : "", V = _t3([
|
|
79049
79098
|
w2,
|
|
79050
79099
|
x,
|
|
79051
79100
|
b,
|
|
@@ -79056,7 +79105,7 @@ function rF(e, t) {
|
|
|
79056
79105
|
y2,
|
|
79057
79106
|
D,
|
|
79058
79107
|
T2,
|
|
79059
|
-
|
|
79108
|
+
j
|
|
79060
79109
|
]), Y = ae3(n) ? ` x_axis: ${q2({
|
|
79061
79110
|
...n,
|
|
79062
79111
|
label: import_lodash.get(e, "settings.x_axis.title")
|
|
@@ -79064,7 +79113,7 @@ function rF(e, t) {
|
|
|
79064
79113
|
const ce = r2[be] || {}, et = ne.columns || [];
|
|
79065
79114
|
if (et.length === 0)
|
|
79066
79115
|
return "";
|
|
79067
|
-
const me = !!ce.show_stack_total, Re = !!ce.reversed_stack, qe = !!ce.show_group_total, G = !!ce.group_long_tail, S = Number(ce.maximum_groups), Ae = ce.others_group_color, He = !!ce.show_data_label,
|
|
79116
|
+
const me = !!ce.show_stack_total, Re = !!ce.reversed_stack, qe = !!ce.show_group_total, G = !!ce.group_long_tail, S = Number(ce.maximum_groups), Ae = ce.others_group_color, He = !!ce.show_data_label, We = !!ce.show_series_percentage, E = !!ce.stack_series, I = ce.stack_type, xt = $n3(ce.min), Te = $n3(ce.max), Qe = !!ce.hidden, ze = ce.align !== undefined && ce.align !== hc2 ? `alignment: ${_2(ce.align)}` : "", Bt = ce.scale_type !== undefined && ce.scale_type !== fc2 ? `scale: ${_2(ce.scale_type)}` : "", fn = xt !== undefined ? `axis_min: ${xt}` : "", Rn = Te !== undefined ? `axis_max: ${Te}` : "", lo = me ? `show_stack_total: ${me}` : "", nn = Re ? `reverse_stack: ${Re}` : "", le = qe ? `show_total_in_tooltip: ${qe}` : "", On = G && S ? `group_values_into: ${S}` : "", ma = On && Ae && Ae !== "auto" ? `others_group_color: ${_2(Ae)}` : "", R = He ? `show_data_label_by: ${_2(We ? "percentage" : "value")}` : "", Fe = E ? `stack_series_by: ${_2(I === "percent" ? "percentage" : "value")}` : "", M = Qe ? `hidden: ${Qe}` : "", se2 = [
|
|
79068
79117
|
ze,
|
|
79069
79118
|
Bt,
|
|
79070
79119
|
fn,
|
|
@@ -79126,7 +79175,7 @@ function rF(e, t) {
|
|
|
79126
79175
|
${It}
|
|
79127
79176
|
}` : "";
|
|
79128
79177
|
}).filter(Boolean).join(`
|
|
79129
|
-
`) : "",
|
|
79178
|
+
`) : "", Q = No2(a, t), pe = Q ? `tooltips: ${Q}` : "";
|
|
79130
79179
|
return [
|
|
79131
79180
|
Y,
|
|
79132
79181
|
K2,
|
|
@@ -79137,12 +79186,12 @@ function rF(e, t) {
|
|
|
79137
79186
|
`);
|
|
79138
79187
|
}
|
|
79139
79188
|
function aF(e, t) {
|
|
79140
|
-
const n = e.fields.series, o = import_lodash.get(e, "fields.y_axis.columns", []), i = import_lodash.get(e, "fields.tooltips", []), r2 = !!import_lodash.get(e, "settings.donut_chart.show_donut"), a = !!import_lodash.get(e, "settings.legend.enabled"), s = import_lodash.get(e, "settings.legend.alignment", "bottom"), c = !!import_lodash.get(e, "settings.other.show_label"), l = import_lodash.get(e, "settings.other.label_position"), u = !!import_lodash.get(e, "settings.other.show_percentage"), d2 = !!import_lodash.get(e, "settings.other.show_stack_total"), h = !!import_lodash.get(e, "settings.other.group_long_tail"), m2 = Number(import_lodash.get(e, "settings.other.maximum_groups")), f = import_lodash.get(e, "settings.other.others_group_color"), g3 = import_lodash.get(e, "settings.sort"), w2 = r2 ? `display_as_donut: ${r2}` : "", x = d2 ? `show_total: ${d2}` : "", b =
|
|
79189
|
+
const n = e.fields.series, o = import_lodash.get(e, "fields.y_axis.columns", []), i = import_lodash.get(e, "fields.tooltips", []), r2 = !!import_lodash.get(e, "settings.donut_chart.show_donut"), a = !!import_lodash.get(e, "settings.legend.enabled"), s = import_lodash.get(e, "settings.legend.alignment", "bottom"), c = !!import_lodash.get(e, "settings.other.show_label"), l = import_lodash.get(e, "settings.other.label_position"), u = !!import_lodash.get(e, "settings.other.show_percentage"), d2 = !!import_lodash.get(e, "settings.other.show_stack_total"), h = !!import_lodash.get(e, "settings.other.group_long_tail"), m2 = Number(import_lodash.get(e, "settings.other.maximum_groups")), f = import_lodash.get(e, "settings.other.others_group_color"), g3 = import_lodash.get(e, "settings.sort"), w2 = r2 ? `display_as_donut: ${r2}` : "", x = d2 ? `show_total: ${d2}` : "", b = Ut2(e.settings), v = b ? `row_limit: ${b}` : "";
|
|
79141
79190
|
let A = "";
|
|
79142
79191
|
!import_lodash.isNil(g3) && !import_lodash.isEmpty(g3.option) && (g3.option.type === "pie" ? A = `sort: ${_2(g3.isAscending ? "asc" : "desc")}` : A = Zg2(g3) || "");
|
|
79143
79192
|
let C = "";
|
|
79144
79193
|
a ? s !== "bottom" && (C = `legend_label: ${_2(s)}`) : C = "legend_label: 'hidden'";
|
|
79145
|
-
const B = c ? "show_data_label: true" : "", P = l ? `data_label_position: ${_2(l)}` : "", y2 = u ? "show_percentage: true" : "", k = h && m2 ? `group_values_into: ${m2}` : "", D = k && f && f !== "auto" ? `others_group_color: ${_2(f)}` : "", T2 = At3(e.settings.aggregate_awareness),
|
|
79194
|
+
const B = c ? "show_data_label: true" : "", P = l ? `data_label_position: ${_2(l)}` : "", y2 = u ? "show_percentage: true" : "", k = h && m2 ? `group_values_into: ${m2}` : "", D = k && f && f !== "auto" ? `others_group_color: ${_2(f)}` : "", T2 = At3(e.settings.aggregate_awareness), j = e.settings.analysis_interactions ? io2(e.settings.analysis_interactions) : "", V = _t3([
|
|
79146
79195
|
w2,
|
|
79147
79196
|
x,
|
|
79148
79197
|
v,
|
|
@@ -79154,18 +79203,18 @@ function aF(e, t) {
|
|
|
79154
79203
|
D,
|
|
79155
79204
|
P,
|
|
79156
79205
|
T2,
|
|
79157
|
-
|
|
79158
|
-
]), Y = ae3(n) ? `legend: ${q2(n, t)}` : "", K2 = No2(i, t), J = K2 ? `tooltips: ${K2}` : "",
|
|
79206
|
+
j
|
|
79207
|
+
]), Y = ae3(n) ? `legend: ${q2(n, t)}` : "", K2 = No2(i, t), J = K2 ? `tooltips: ${K2}` : "", Q = o.map((Oe) => {
|
|
79159
79208
|
const ne = Oe.series_settings || {}, be = ne.color && ne.color !== "auto" ? ne.color : Oe.color, ce = be !== undefined && be !== "auto" ? `color: ${_2(be)}` : "", et = na2(ne);
|
|
79160
79209
|
let me = "";
|
|
79161
79210
|
typeof ne.series_hash == "object" && !import_lodash.isEmpty(ne.series_hash) && (me = Object.entries(ne.series_hash).map(([S, Ae]) => {
|
|
79162
|
-
const He = `value: ${_2(S)}`,
|
|
79211
|
+
const He = `value: ${_2(S)}`, We = Ae.color !== undefined && Ae.color !== "auto" ? `color: ${_2(Ae.color)}` : "", E = Ae.hidden === true ? `hidden: ${Ae.hidden}` : "", I = [
|
|
79163
79212
|
He,
|
|
79164
|
-
|
|
79213
|
+
We,
|
|
79165
79214
|
E
|
|
79166
79215
|
].filter(Boolean).join(`
|
|
79167
79216
|
`);
|
|
79168
|
-
return !
|
|
79217
|
+
return !We && !E || !I ? "" : ` point {
|
|
79169
79218
|
${I}
|
|
79170
79219
|
}`;
|
|
79171
79220
|
}).filter(Boolean).join(`
|
|
@@ -79189,7 +79238,7 @@ function aF(e, t) {
|
|
|
79189
79238
|
`);
|
|
79190
79239
|
return [
|
|
79191
79240
|
Y,
|
|
79192
|
-
|
|
79241
|
+
Q,
|
|
79193
79242
|
J,
|
|
79194
79243
|
V
|
|
79195
79244
|
].filter(Boolean).join(`
|
|
@@ -79205,7 +79254,7 @@ function sF(e, t) {
|
|
|
79205
79254
|
tooltips: s
|
|
79206
79255
|
} = e.fields;
|
|
79207
79256
|
if (e.viz_type === "scatter_chart") {
|
|
79208
|
-
const A = ae3(n) ? `x_col: ${q2(n, t)}` : "", C = ae3(o) ? `y_col: ${q2(o, t)}` : "", B = ae3(r2) ? `group_col: ${q2(r2, t)}` : "", P = ae3(a) ? `label_col: ${q2(a, t)}` : "", y2 = s && Array.isArray(s) ? No2(s, t) : undefined, k = y2 ? `tooltips: ${y2}` : "", D =
|
|
79257
|
+
const A = ae3(n) ? `x_col: ${q2(n, t)}` : "", C = ae3(o) ? `y_col: ${q2(o, t)}` : "", B = ae3(r2) ? `group_col: ${q2(r2, t)}` : "", P = ae3(a) ? `label_col: ${q2(a, t)}` : "", y2 = s && Array.isArray(s) ? No2(s, t) : undefined, k = y2 ? `tooltips: ${y2}` : "", D = Ut2(e.settings), T2 = D ? ` settings {
|
|
79209
79258
|
row_limit: ${D}
|
|
79210
79259
|
}` : "";
|
|
79211
79260
|
return [
|
|
@@ -79218,7 +79267,7 @@ function sF(e, t) {
|
|
|
79218
79267
|
].filter(Boolean).join(`
|
|
79219
79268
|
`);
|
|
79220
79269
|
}
|
|
79221
|
-
const c = ae3(n) ? `x_col: ${q2(n, t)}` : "", l = ae3(o) ? `y_col: ${q2(o, t)}` : "", u = ae3(i) ? `z_col: ${q2(i, t)}` : "", d2 = ae3(r2) ? `group_col: ${q2(r2, t)}` : "", h = ae3(a) ? `label_col: ${q2(a, t)}` : "", m2 = s && Array.isArray(s) ? No2(s, t) : undefined, f = m2 ? `tooltips: ${m2}` : "", g3 =
|
|
79270
|
+
const c = ae3(n) ? `x_col: ${q2(n, t)}` : "", l = ae3(o) ? `y_col: ${q2(o, t)}` : "", u = ae3(i) ? `z_col: ${q2(i, t)}` : "", d2 = ae3(r2) ? `group_col: ${q2(r2, t)}` : "", h = ae3(a) ? `label_col: ${q2(a, t)}` : "", m2 = s && Array.isArray(s) ? No2(s, t) : undefined, f = m2 ? `tooltips: ${m2}` : "", g3 = Ut2(e.settings), w2 = g3 ? `row_limit: ${g3}` : "", x = At3(e.settings.aggregate_awareness), b = _t3([
|
|
79222
79271
|
w2,
|
|
79223
79272
|
x
|
|
79224
79273
|
]);
|
|
@@ -79252,7 +79301,7 @@ function cF(e, t) {
|
|
|
79252
79301
|
const n = e.fields.x_axis, o = import_lodash.get(e, "fields.y_axis.columns", []), i = import_lodash.get(e, "settings.colors", {}), r2 = import_lodash.get(e, "settings.breakdown", {}), a = ae3(n) ? `breakdown_by: ${q2(n, t)}` : "", s = `values: [
|
|
79253
79302
|
${o.map((b) => q2(b, t)).join(`,
|
|
79254
79303
|
`)}
|
|
79255
|
-
]`, c = i.circle_color !== undefined && i.circle_color !== "auto" ? `circle_color: ${_2(i.circle_color)}` : "", l = i.columns_color !== undefined && i.columns_color !== "auto" ? `columns_color: ${_2(i.columns_color)}` : "", u = r2.show_table ? `show_table: ${r2.show_table}` : "", d2 = r2.show_title ? `show_label: ${r2.show_title}` : "", h =
|
|
79304
|
+
]`, c = i.circle_color !== undefined && i.circle_color !== "auto" ? `circle_color: ${_2(i.circle_color)}` : "", l = i.columns_color !== undefined && i.columns_color !== "auto" ? `columns_color: ${_2(i.columns_color)}` : "", u = r2.show_table ? `show_table: ${r2.show_table}` : "", d2 = r2.show_title ? `show_label: ${r2.show_title}` : "", h = Ut2(e.settings), m2 = h ? `row_limit: ${h}` : "", f = At3(e.settings.aggregate_awareness), g3 = e.settings.analysis_interactions ? io2(e.settings.analysis_interactions) : "", w2 = _t3([
|
|
79256
79305
|
c,
|
|
79257
79306
|
l,
|
|
79258
79307
|
u,
|
|
@@ -79269,22 +79318,22 @@ function cF(e, t) {
|
|
|
79269
79318
|
`);
|
|
79270
79319
|
}
|
|
79271
79320
|
function uF(e, t) {
|
|
79272
|
-
const n = t.find((d2) => d2.uuid === e), o = import_lodash.get(n, "indent",
|
|
79321
|
+
const n = t.find((d2) => d2.uuid === e), o = import_lodash.get(n, "indent", Qt2);
|
|
79273
79322
|
if (!!!import_lodash.get(n, "rowType")) {
|
|
79274
|
-
const d2 = import_lodash.get(n, "chartType",
|
|
79275
|
-
if (o ===
|
|
79323
|
+
const d2 = import_lodash.get(n, "chartType", Wn3);
|
|
79324
|
+
if (o === Qt2 && d2 === Wn3)
|
|
79276
79325
|
return;
|
|
79277
|
-
const h = o !== undefined && o !==
|
|
79326
|
+
const h = o !== undefined && o !== Qt2 ? `indent: ${o}` : "", m2 = d2 !== undefined && d2 !== Wn3 ? `mark_type: ${_2(d2)}` : "";
|
|
79278
79327
|
return [
|
|
79279
79328
|
h,
|
|
79280
79329
|
m2
|
|
79281
79330
|
].filter(Boolean).join(`
|
|
79282
79331
|
`);
|
|
79283
79332
|
}
|
|
79284
|
-
const r2 = import_lodash.get(n, "backgroundColor",
|
|
79285
|
-
if (o ===
|
|
79333
|
+
const r2 = import_lodash.get(n, "backgroundColor", Qn3), a = import_lodash.get(n, "textColor", qn3);
|
|
79334
|
+
if (o === Qt2 && r2 === Qn3 && a === qn3)
|
|
79286
79335
|
return;
|
|
79287
|
-
const s = o !== undefined && o !==
|
|
79336
|
+
const s = o !== undefined && o !== Qt2 ? `indent: ${o}` : "", c = r2 !== undefined && r2 !== Qn3 ? `background_color: ${_2(r2)}` : "", l = a !== undefined && a !== qn3 ? `text_color: ${_2(a)}` : "";
|
|
79288
79337
|
return [
|
|
79289
79338
|
s,
|
|
79290
79339
|
c,
|
|
@@ -79354,7 +79403,7 @@ function mF(e, t) {
|
|
|
79354
79403
|
`);
|
|
79355
79404
|
}
|
|
79356
79405
|
function hF(e, t) {
|
|
79357
|
-
const n = import_lodash.get(e, "fields.rows"), o = import_lodash.get(e, "fields.values"), i = ae3(n) ? `words: ${q2(n, t)}` : "", r2 = ae3(o) ? `weight: ${q2(o, t)}` : "", a =
|
|
79406
|
+
const n = import_lodash.get(e, "fields.rows"), o = import_lodash.get(e, "fields.values"), i = ae3(n) ? `words: ${q2(n, t)}` : "", r2 = ae3(o) ? `weight: ${q2(o, t)}` : "", a = Ut2(e.settings), s = a ? `row_limit: ${a}` : "", c = At3(e.settings.aggregate_awareness), l = _t3([
|
|
79358
79407
|
s,
|
|
79359
79408
|
c
|
|
79360
79409
|
]);
|
|
@@ -79366,7 +79415,7 @@ function hF(e, t) {
|
|
|
79366
79415
|
`);
|
|
79367
79416
|
}
|
|
79368
79417
|
function fF(e, t) {
|
|
79369
|
-
const n = import_lodash.get(e, "settings.solid_gauge.title"), o = import_lodash.get(e, "settings.solid_gauge.suffix"), i = import_lodash.get(e, "fields.metric_value"), r2 = import_lodash.get(e, "fields.metric_comparison_value"), a = ae3(i) ? `value: ${q2(i, t)}` : "", s = ae3(r2) ? `max_value: ${q2(r2, t)}` : "", c = n ? `label: ${_2(n)}` : "", l = o ? `suffix: ${_2(o)}` : "", u =
|
|
79418
|
+
const n = import_lodash.get(e, "settings.solid_gauge.title"), o = import_lodash.get(e, "settings.solid_gauge.suffix"), i = import_lodash.get(e, "fields.metric_value"), r2 = import_lodash.get(e, "fields.metric_comparison_value"), a = ae3(i) ? `value: ${q2(i, t)}` : "", s = ae3(r2) ? `max_value: ${q2(r2, t)}` : "", c = n ? `label: ${_2(n)}` : "", l = o ? `suffix: ${_2(o)}` : "", u = Ut2(e.settings), d2 = u ? `row_limit: ${u}` : "", h = At3(e.settings.aggregate_awareness), m2 = e.settings.analysis_interactions ? io2(e.settings.analysis_interactions) : "", f = _t3([
|
|
79370
79419
|
c,
|
|
79371
79420
|
l,
|
|
79372
79421
|
d2,
|
|
@@ -79393,8 +79442,8 @@ function gF(e, t) {
|
|
|
79393
79442
|
} = e.fields, i = import_lodash.get(e, "fields.y_axis.columns", []), r2 = import_lodash.get(e, "settings.x_axis.title"), a = import_lodash.get(e, "settings.legend.enabled", true), s = import_lodash.get(e, "settings.legend.alignment", ol2);
|
|
79394
79443
|
let c;
|
|
79395
79444
|
a ? c = s || ol2 : c = "hidden";
|
|
79396
|
-
const l = $n3(import_lodash.get(e, "settings.y_axis.min")), u = $n3(import_lodash.get(e, "settings.y_axis.max")), d2 = import_lodash.get(e, "settings.y_axis.grid_line", Om2), h = import_lodash.get(e, "settings.y_axis.series_type", zm2), m2 = import_lodash.get(e, "settings.y_axis.show_data_label", Vm2), f = import_lodash.get(e, "settings.y_axis.show_marker", Gm2), g3 = import_lodash.get(e, "settings.sort.isAscending"), w2 = r2 ? `label: ${_2(r2)}` : "", x = ae3(n) ? `x_axis: ${q2(n, t)}` : "", b = ae3(o) ? `legend: ${q2(o, t)}` : "", v = i.map((
|
|
79397
|
-
const pe = import_lodash.get(
|
|
79445
|
+
const l = $n3(import_lodash.get(e, "settings.y_axis.min")), u = $n3(import_lodash.get(e, "settings.y_axis.max")), d2 = import_lodash.get(e, "settings.y_axis.grid_line", Om2), h = import_lodash.get(e, "settings.y_axis.series_type", zm2), m2 = import_lodash.get(e, "settings.y_axis.show_data_label", Vm2), f = import_lodash.get(e, "settings.y_axis.show_marker", Gm2), g3 = import_lodash.get(e, "settings.sort.isAscending"), w2 = r2 ? `label: ${_2(r2)}` : "", x = ae3(n) ? `x_axis: ${q2(n, t)}` : "", b = ae3(o) ? `legend: ${q2(o, t)}` : "", v = i.map((Q) => {
|
|
79446
|
+
const pe = import_lodash.get(Q, "series_settings.color", import_lodash.get(Q, "color", Rm2)), Oe = ae3(Q) ? `field: ${q2(Q, t)}` : "", ne = pe && pe !== Rm2 ? `color: ${_2(pe)}` : "", be = [
|
|
79398
79447
|
Oe,
|
|
79399
79448
|
ne
|
|
79400
79449
|
].filter(Boolean).join(`
|
|
@@ -79403,7 +79452,7 @@ function gF(e, t) {
|
|
|
79403
79452
|
${be}
|
|
79404
79453
|
}` : "";
|
|
79405
79454
|
}).filter(Boolean).join(`
|
|
79406
|
-
`), A = c && c !== ol2 ? `legend_label: ${_2(c)}` : "", C = import_lodash.isNil(l) ? "" : `y_axis_min: ${l}`, B = import_lodash.isNil(u) ? "" : `y_axis_max: ${u}`, P = d2 !== undefined && d2 !== Om2 ? `grid_line: ${_2(d2)}` : "", y2 = h !== undefined && h !== zm2 ? `series_type: ${_2(h)}` : "", k = m2 !== undefined && m2 !== Vm2 ? `show_data_label: ${m2}` : "", D = f !== undefined && f !== Gm2 ? `show_marker: ${f}` : "", T2 = import_lodash.isNil(g3) ? "" : `sort: ${_2(g3 ? "asc" : "desc")}`,
|
|
79455
|
+
`), A = c && c !== ol2 ? `legend_label: ${_2(c)}` : "", C = import_lodash.isNil(l) ? "" : `y_axis_min: ${l}`, B = import_lodash.isNil(u) ? "" : `y_axis_max: ${u}`, P = d2 !== undefined && d2 !== Om2 ? `grid_line: ${_2(d2)}` : "", y2 = h !== undefined && h !== zm2 ? `series_type: ${_2(h)}` : "", k = m2 !== undefined && m2 !== Vm2 ? `show_data_label: ${m2}` : "", D = f !== undefined && f !== Gm2 ? `show_marker: ${f}` : "", T2 = import_lodash.isNil(g3) ? "" : `sort: ${_2(g3 ? "asc" : "desc")}`, j = Ut2(e.settings), V = j ? `row_limit: ${j}` : "", Y = At3(e.settings.aggregate_awareness), K2 = _t3([
|
|
79407
79456
|
A,
|
|
79408
79457
|
C,
|
|
79409
79458
|
B,
|
|
@@ -79485,10 +79534,10 @@ var bF = (e) => {
|
|
|
79485
79534
|
].filter(Boolean).join(`
|
|
79486
79535
|
`), k = y2 ? ` mid {
|
|
79487
79536
|
${y2}
|
|
79488
|
-
}` : "", D = i !== undefined && i !== il2 ? `type: ${_2(rl2)}` : "", T2 = c ? `value: ${c}` : "",
|
|
79537
|
+
}` : "", D = i !== undefined && i !== il2 ? `type: ${_2(rl2)}` : "", T2 = c ? `value: ${c}` : "", j = `color: ${_2(d2)}`, V = [
|
|
79489
79538
|
D,
|
|
79490
79539
|
T2,
|
|
79491
|
-
|
|
79540
|
+
j
|
|
79492
79541
|
].filter(Boolean).join(`
|
|
79493
79542
|
`), Y = V ? ` max {
|
|
79494
79543
|
${V}
|
|
@@ -79515,7 +79564,7 @@ var wF = (e) => {
|
|
|
79515
79564
|
}).filter(Boolean).join(`
|
|
79516
79565
|
`);
|
|
79517
79566
|
return [
|
|
79518
|
-
|
|
79567
|
+
U2("color", t && _2(t)),
|
|
79519
79568
|
na2(e),
|
|
79520
79569
|
o
|
|
79521
79570
|
].filter(Boolean).join(`
|
|
@@ -79594,7 +79643,7 @@ var TF = (e) => {
|
|
|
79594
79643
|
k,
|
|
79595
79644
|
D
|
|
79596
79645
|
].filter(Boolean).join(`
|
|
79597
|
-
`),
|
|
79646
|
+
`), j = T2 ? ` max {
|
|
79598
79647
|
${T2}
|
|
79599
79648
|
}` : "";
|
|
79600
79649
|
return [
|
|
@@ -79602,13 +79651,13 @@ var TF = (e) => {
|
|
|
79602
79651
|
m2,
|
|
79603
79652
|
b,
|
|
79604
79653
|
P,
|
|
79605
|
-
|
|
79654
|
+
j
|
|
79606
79655
|
].filter(Boolean).join(`
|
|
79607
79656
|
`);
|
|
79608
79657
|
}
|
|
79609
79658
|
return "";
|
|
79610
79659
|
};
|
|
79611
|
-
var
|
|
79660
|
+
var Um2 = (e) => {
|
|
79612
79661
|
if (e) {
|
|
79613
79662
|
const t = import_lodash.get(e, "color"), n = import_lodash.get(e, "colors", {}), o = Object.keys(n).map((a) => {
|
|
79614
79663
|
const s = `value: ${_2(a)}`, c = n[a] ? `color: ${_2(n[a])}` : "";
|
|
@@ -79619,7 +79668,7 @@ var jm2 = (e) => {
|
|
|
79619
79668
|
}).filter(Boolean).join(`
|
|
79620
79669
|
`);
|
|
79621
79670
|
return [
|
|
79622
|
-
|
|
79671
|
+
U2("color", t && _2(t)),
|
|
79623
79672
|
na2(e),
|
|
79624
79673
|
o
|
|
79625
79674
|
].filter(Boolean).join(`
|
|
@@ -79668,9 +79717,9 @@ function PF(e, t) {
|
|
|
79668
79717
|
const l = import_lodash.get(e, "settings.map_color.value"), u = import_lodash.get(e, "settings.map_color.location"), d2 = import_lodash.get(e, "settings.map_color.legend"), h = TF(l), m2 = h ? ` value_colors {
|
|
79669
79718
|
${h}
|
|
79670
79719
|
}` : "", f = d2 ? ` legend_colors {
|
|
79671
|
-
${
|
|
79720
|
+
${Um2(d2)}
|
|
79672
79721
|
}` : "", g3 = u ? ` location_colors {
|
|
79673
|
-
${
|
|
79722
|
+
${Um2(u)}
|
|
79674
79723
|
}` : "", w2 = At3(e.settings.aggregate_awareness), x = _t3([
|
|
79675
79724
|
EF(e),
|
|
79676
79725
|
m2,
|
|
@@ -79692,7 +79741,7 @@ function DF(e, t) {
|
|
|
79692
79741
|
let i;
|
|
79693
79742
|
o ? i = `custom_chart: ${nD(o)}` : typeof n == "string" ? i = `custom_chart: ${n}` : i = `custom_chart_id: ${n}`;
|
|
79694
79743
|
const r2 = import_lodash.compact(Object.entries(e.fields).map(([h, m2]) => ae3(m2) ? `field ${h}: ${q2(m2, t)}` : "")).join(`
|
|
79695
|
-
`), a =
|
|
79744
|
+
`), a = Ut2(e.settings), s = a ? `row_limit: ${a}` : "", c = At3(e.settings._holistics_reserved_?.aggregate_awareness), l = import_lodash.compact(Object.entries(e.settings).map(([h, m2]) => {
|
|
79696
79745
|
if (h === "misc" || h === "_holistics_reserved_" || import_lodash.isNil(m2))
|
|
79697
79746
|
return "";
|
|
79698
79747
|
let f = "Number";
|
|
@@ -79718,7 +79767,7 @@ function iu2(e) {
|
|
|
79718
79767
|
const t = ta3(e.data);
|
|
79719
79768
|
if (t)
|
|
79720
79769
|
return `{
|
|
79721
|
-
${
|
|
79770
|
+
${U2("data", t)}
|
|
79722
79771
|
}`;
|
|
79723
79772
|
}
|
|
79724
79773
|
function Xe3(e) {
|
|
@@ -79792,9 +79841,9 @@ function JA(e) {
|
|
|
79792
79841
|
if (e._id)
|
|
79793
79842
|
return e._id;
|
|
79794
79843
|
const t = [], n = ru2(e.border_width);
|
|
79795
|
-
n && t.push(
|
|
79844
|
+
n && t.push(U2("border_width", n));
|
|
79796
79845
|
const o = FF(e.border_radius);
|
|
79797
|
-
if (o && t.push(
|
|
79846
|
+
if (o && t.push(U2("border_radius", o)), e.border_color && t.push(`border_color: ${_2(e.border_color)}`), e.border_style && t.push(`border_style: ${_2(e.border_style)}`), t.length !== 0)
|
|
79798
79847
|
return `{
|
|
79799
79848
|
${t.join(`
|
|
79800
79849
|
`)}
|
|
@@ -79806,15 +79855,15 @@ function Mn3(e) {
|
|
|
79806
79855
|
if (e._id)
|
|
79807
79856
|
return e._id;
|
|
79808
79857
|
const t = [], n = Eo2(e.label);
|
|
79809
|
-
n && t.push(
|
|
79858
|
+
n && t.push(U2("label", n));
|
|
79810
79859
|
const o = Eo2(e.text);
|
|
79811
|
-
o && t.push(
|
|
79860
|
+
o && t.push(U2("text", o));
|
|
79812
79861
|
const i = JA(e.border);
|
|
79813
|
-
i && t.push(
|
|
79862
|
+
i && t.push(U2("border", i));
|
|
79814
79863
|
const r2 = Mo2(e.background);
|
|
79815
|
-
r2 && t.push(
|
|
79864
|
+
r2 && t.push(U2("background", r2));
|
|
79816
79865
|
const a = ru2(e.padding);
|
|
79817
|
-
if (a && t.push(
|
|
79866
|
+
if (a && t.push(U2("padding", a)), e.shadow && t.push(`shadow: ${_2(e.shadow)}`), e.opacity !== undefined && t.push(`opacity: ${e.opacity}`), t.length !== 0)
|
|
79818
79867
|
return `{
|
|
79819
79868
|
${t.join(`
|
|
79820
79869
|
`)}
|
|
@@ -79826,9 +79875,9 @@ function au2(e) {
|
|
|
79826
79875
|
if (e._id)
|
|
79827
79876
|
return e._id;
|
|
79828
79877
|
const t = [], n = JA(e.border);
|
|
79829
|
-
n && t.push(
|
|
79878
|
+
n && t.push(U2("border", n));
|
|
79830
79879
|
const o = Mo2(e.background);
|
|
79831
|
-
if (o && t.push(
|
|
79880
|
+
if (o && t.push(U2("background", o)), e.shadow && t.push(`shadow: ${_2(e.shadow)}`), e.opacity !== undefined && t.push(`opacity: ${e.opacity}`), t.length !== 0)
|
|
79832
79881
|
return `{
|
|
79833
79882
|
${t.join(`
|
|
79834
79883
|
`)}
|
|
@@ -79842,7 +79891,7 @@ function $F(e) {
|
|
|
79842
79891
|
return `@css ${ot3(e.original, { sanitizeHeredocTermination: true, sanitizeTemplateString: true })};;`;
|
|
79843
79892
|
}
|
|
79844
79893
|
}
|
|
79845
|
-
var
|
|
79894
|
+
var jm2 = (e) => {
|
|
79846
79895
|
if (!e)
|
|
79847
79896
|
return;
|
|
79848
79897
|
if (e._id)
|
|
@@ -79866,11 +79915,11 @@ function LF(e) {
|
|
|
79866
79915
|
e.general?.font_size && `font_size: ${Xe3(e.general.font_size)}`,
|
|
79867
79916
|
e.general?.font_color && `font_color: ${_2(e.general.font_color)}`,
|
|
79868
79917
|
e.general?.font_family && `font_family: ${_2(e.general.font_family)}`,
|
|
79869
|
-
e.general?.cell_padding &&
|
|
79918
|
+
e.general?.cell_padding && U2("cell_padding", ru2(e.general.cell_padding)),
|
|
79870
79919
|
e.border?.border_color && `border_color: ${_2(e.border.border_color)}`,
|
|
79871
79920
|
e.border?.border_width && `border_width: ${Xe3(e.border.border_width)}`,
|
|
79872
79921
|
e.border?.grid_color && `grid_color: ${_2(e.border.grid_color)}`,
|
|
79873
|
-
e.border?.borders &&
|
|
79922
|
+
e.border?.borders && jm2(e.border.borders) && `borders ${jm2(e.border.borders)}`
|
|
79874
79923
|
],
|
|
79875
79924
|
header: [
|
|
79876
79925
|
e.header?.bg_color && `bg_color: ${_2(e.header.bg_color)}`,
|
|
@@ -79904,7 +79953,7 @@ function LF(e) {
|
|
|
79904
79953
|
};
|
|
79905
79954
|
Object.entries(n).forEach(([a, s]) => {
|
|
79906
79955
|
const c = s.filter(Boolean);
|
|
79907
|
-
c.length > 0 && t.push(
|
|
79956
|
+
c.length > 0 && t.push(U2(a, `{
|
|
79908
79957
|
${c.join(`
|
|
79909
79958
|
`)}
|
|
79910
79959
|
}`));
|
|
@@ -79923,10 +79972,10 @@ function LF(e) {
|
|
|
79923
79972
|
}, i = o(e.sparkline?.line), r2 = o(e.sparkline?.column);
|
|
79924
79973
|
if (i || r2) {
|
|
79925
79974
|
const a = [
|
|
79926
|
-
i &&
|
|
79927
|
-
r2 &&
|
|
79975
|
+
i && U2("line", i),
|
|
79976
|
+
r2 && U2("column", r2)
|
|
79928
79977
|
].filter(Boolean);
|
|
79929
|
-
t.push(
|
|
79978
|
+
t.push(U2("sparkline", `{
|
|
79930
79979
|
${a.join(`
|
|
79931
79980
|
`)}
|
|
79932
79981
|
}`));
|
|
@@ -79960,9 +80009,9 @@ function ll2(e) {
|
|
|
79960
80009
|
if (!e)
|
|
79961
80010
|
return;
|
|
79962
80011
|
const t = [], n = Eo2(oi(e.text, yo2.trendText));
|
|
79963
|
-
n && t.push(
|
|
80012
|
+
n && t.push(U2("text", n));
|
|
79964
80013
|
const o = Mo2(e.background);
|
|
79965
|
-
if (o && t.push(
|
|
80014
|
+
if (o && t.push(U2("background", o)), t.length !== 0)
|
|
79966
80015
|
return `{
|
|
79967
80016
|
${t.join(`
|
|
79968
80017
|
`)}
|
|
@@ -79976,26 +80025,26 @@ function NF(e) {
|
|
|
79976
80025
|
const t = [];
|
|
79977
80026
|
e.alignment && e.alignment !== yo2.alignment && t.push(`alignment: ${_2(e.alignment)}`);
|
|
79978
80027
|
const n = Eo2(oi(e.label, yo2.label));
|
|
79979
|
-
n && t.push(
|
|
80028
|
+
n && t.push(U2("label", n));
|
|
79980
80029
|
const o = Eo2(oi(e.value, yo2.value));
|
|
79981
|
-
if (o && t.push(
|
|
80030
|
+
if (o && t.push(U2("value", o)), e.progress) {
|
|
79982
80031
|
const i = [], r2 = Eo2(oi(e.progress.text, yo2.progressText));
|
|
79983
|
-
r2 && i.push(
|
|
80032
|
+
r2 && i.push(U2("text", r2));
|
|
79984
80033
|
const a = Mo2(oi(e.progress.indicator, yo2.progressIndicator));
|
|
79985
|
-
a && i.push(
|
|
80034
|
+
a && i.push(U2("indicator", a));
|
|
79986
80035
|
const s = Mo2(e.progress.track);
|
|
79987
|
-
s && i.push(
|
|
80036
|
+
s && i.push(U2("track", s)), i.length > 0 && t.push(U2("progress", `{
|
|
79988
80037
|
${i.join(`
|
|
79989
80038
|
`)}
|
|
79990
80039
|
}`));
|
|
79991
80040
|
}
|
|
79992
80041
|
if (e.trend) {
|
|
79993
80042
|
const i = [], r2 = ll2(e.trend.positive);
|
|
79994
|
-
r2 && i.push(
|
|
80043
|
+
r2 && i.push(U2("positive", r2));
|
|
79995
80044
|
const a = ll2(e.trend.negative);
|
|
79996
|
-
a && i.push(
|
|
80045
|
+
a && i.push(U2("negative", a));
|
|
79997
80046
|
const s = ll2(e.trend.neutral);
|
|
79998
|
-
s && i.push(
|
|
80047
|
+
s && i.push(U2("neutral", s)), i.length > 0 && t.push(U2("trend", `{
|
|
79999
80048
|
${i.join(`
|
|
80000
80049
|
`)}
|
|
80001
80050
|
}`));
|
|
@@ -80012,11 +80061,11 @@ function ZA(e) {
|
|
|
80012
80061
|
if (e._id)
|
|
80013
80062
|
return e._id;
|
|
80014
80063
|
const t = [], n = LF(e.table);
|
|
80015
|
-
n && t.push(
|
|
80064
|
+
n && t.push(U2("table", n));
|
|
80016
80065
|
const o = iu2(e.color);
|
|
80017
|
-
o && t.push(
|
|
80066
|
+
o && t.push(U2("color", o));
|
|
80018
80067
|
const i = NF(e.metric_kpi);
|
|
80019
|
-
if (i && t.push(
|
|
80068
|
+
if (i && t.push(U2("metric_kpi", i)), t.length !== 0)
|
|
80020
80069
|
return `{
|
|
80021
80070
|
${t.join(`
|
|
80022
80071
|
`)}
|
|
@@ -80030,17 +80079,17 @@ function ql2(e) {
|
|
|
80030
80079
|
const t = [];
|
|
80031
80080
|
e.title && t.push(`title: ${_2(e.title)}`);
|
|
80032
80081
|
const n = Mo2(e.background);
|
|
80033
|
-
n && t.push(
|
|
80082
|
+
n && t.push(U2("background", n));
|
|
80034
80083
|
const o = au2(e.canvas);
|
|
80035
|
-
o && t.push(
|
|
80084
|
+
o && t.push(U2("canvas", o));
|
|
80036
80085
|
const i = Mn3(e.block);
|
|
80037
|
-
i && t.push(
|
|
80086
|
+
i && t.push(U2("block", i));
|
|
80038
80087
|
const r2 = $F(e.custom_css);
|
|
80039
|
-
r2 && t.push(
|
|
80088
|
+
r2 && t.push(U2("custom_css", r2));
|
|
80040
80089
|
const a = ZA(e.viz);
|
|
80041
|
-
a && t.push(
|
|
80090
|
+
a && t.push(U2("viz", a));
|
|
80042
80091
|
const s = iu2(e.color);
|
|
80043
|
-
if (s && t.push(
|
|
80092
|
+
if (s && t.push(U2("color", s)), t.length !== 0)
|
|
80044
80093
|
return `{
|
|
80045
80094
|
${t.join(`
|
|
80046
80095
|
`)}
|
|
@@ -80049,13 +80098,13 @@ function ql2(e) {
|
|
|
80049
80098
|
function Li2(e) {
|
|
80050
80099
|
if (!e)
|
|
80051
80100
|
return;
|
|
80052
|
-
if (!
|
|
80101
|
+
if (!QP(e))
|
|
80053
80102
|
return ql2(e);
|
|
80054
80103
|
if (e._id)
|
|
80055
80104
|
return e._id;
|
|
80056
80105
|
const t = ri2.map((n) => {
|
|
80057
80106
|
const o = ql2(e[n]);
|
|
80058
|
-
return o ?
|
|
80107
|
+
return o ? U2(n, o) : undefined;
|
|
80059
80108
|
});
|
|
80060
80109
|
if (!t.some((n) => n === undefined))
|
|
80061
80110
|
return `DynamicPageTheme {
|
|
@@ -80071,7 +80120,7 @@ function MF(e) {
|
|
|
80071
80120
|
}` : "";
|
|
80072
80121
|
}
|
|
80073
80122
|
function RF(e, t) {
|
|
80074
|
-
const n =
|
|
80123
|
+
const n = Wc2(e), { rows: o = [], columns: i = [], values: r2 = [] } = import_lodash.get(n, "fields.pivot_data", {}), a = import_lodash.get(n, "settings.markdown_content") ?? "", s = import_lodash.get(n, "settings.misc.pagination_size", $t2), c = !!import_lodash.get(n, "settings.others.include_empty_children_rows"), l = !!import_lodash.get(n, "settings.others.row_total"), u = !!import_lodash.get(n, "settings.others.column_total"), d2 = !!import_lodash.get(n, "settings.others.sub_total"), h = import_lodash.get(n, "settings.sort"), m2 = import_lodash.get(n, "settings.pop_settings"), f = o.length ? `rows: [${o.map((J) => q2(J, t))}]` : "", g3 = i.length ? `columns: [${i.map((J) => q2(J, t))}]` : "", w2 = r2.length ? `values: [${r2.map((J) => q2(J, t))}]` : "", x = s !== undefined && s !== $t2 ? `pagination_size: ${s}` : "", b = c ? `show_row_with_no_data: ${c}` : "", v = l ? `show_row_total: ${l}` : "", A = u ? `show_column_total: ${u}` : "", C = d2 ? `show_sub_total: ${d2}` : "", P = Do2(h) ? `sorts: ${Do2(h)}` : "", y2 = m2 ? $i2(m2, t) : undefined, k = y2 ? `pop ${y2}` : "", D = Ut2(n.settings), T2 = D ? `row_limit: ${D}` : "", j = At3(n.settings.aggregate_awareness), V = n.settings.analysis_interactions ? io2(n.settings.analysis_interactions) : "", Y = _t3([
|
|
80075
80124
|
x,
|
|
80076
80125
|
b,
|
|
80077
80126
|
v,
|
|
@@ -80080,7 +80129,7 @@ function RF(e, t) {
|
|
|
80080
80129
|
P,
|
|
80081
80130
|
k,
|
|
80082
80131
|
T2,
|
|
80083
|
-
|
|
80132
|
+
j,
|
|
80084
80133
|
V
|
|
80085
80134
|
]);
|
|
80086
80135
|
return [
|
|
@@ -80096,13 +80145,14 @@ function su2(e, t, n) {
|
|
|
80096
80145
|
const o = t.find((A) => A.id === e.dataset_id || A.name === e.dataset_id);
|
|
80097
80146
|
if (!o)
|
|
80098
80147
|
throw new Error(`Referencing to an invalid dataset (id: ${e.dataset_id})`);
|
|
80099
|
-
const i = `dataset: ${n?.datasetAsRef ? `${o.name}` : `${_2(o.name)}`}`, r2 = FD(e.viz_setting, o, n), a = e.viz_setting.filters?.length ? RD(e.viz_setting.filters, o) : "", s = e.viz_setting.amql?.filters?.length ? zD(e.viz_setting.amql?.filters, o) : "", c = s ? `filter_groups: ${s}` : "", l = e.viz_setting.amql?.conditions ?? [], [u, d2] = import_lodash.partition(l, (A) => A.is_measure_condition), h = d2.length ? $m2(d2) : "", m2 = u.length ? $m2(u) : "", f = ZA(e.theme), g3 = f ?
|
|
80148
|
+
const i = `dataset: ${n?.datasetAsRef ? `${o.name}` : `${_2(o.name)}`}`, r2 = FD(e.viz_setting, o, n), a = e.viz_setting.filters?.length ? RD(e.viz_setting.filters, o) : "", s = e.viz_setting.amql?.filters?.length ? zD(e.viz_setting.amql?.filters, o) : "", c = s ? `filter_groups: ${s}` : "", l = e.viz_setting.amql?.conditions ?? [], [u, d2] = import_lodash.partition(l, (A) => A.is_measure_condition), h = d2.length ? $m2(d2) : "", m2 = u.length ? $m2(u) : "", f = ZA(e.theme), g3 = f ? U2("theme", f) : "", w2 = e.viz_setting.context?.analysis ? ZD(e.viz_setting.context.analysis, o) : "", x = MF([w2]), b = [
|
|
80100
80149
|
i,
|
|
80101
80150
|
r2,
|
|
80102
80151
|
a,
|
|
80103
80152
|
c,
|
|
80104
80153
|
h ? `conditions: ${h}` : "",
|
|
80105
80154
|
m2 ? `having_conditions: ${m2}` : "",
|
|
80155
|
+
typeof e.viz_setting.amql?.use_having == "boolean" ? `use_having: ${e.viz_setting.amql.use_having}` : "",
|
|
80106
80156
|
g3,
|
|
80107
80157
|
x
|
|
80108
80158
|
].filter((A) => A).join(`
|
|
@@ -80343,7 +80393,7 @@ function VF({
|
|
|
80343
80393
|
function GF(e) {
|
|
80344
80394
|
return Object.entries(Ac2).find(([, t]) => t === e)?.[0];
|
|
80345
80395
|
}
|
|
80346
|
-
function
|
|
80396
|
+
function UF(e) {
|
|
80347
80397
|
return Object.entries(gc2).find(([, t]) => t === e)?.[0];
|
|
80348
80398
|
}
|
|
80349
80399
|
function e_(e) {
|
|
@@ -80356,7 +80406,7 @@ function t_(e) {
|
|
|
80356
80406
|
if (!(!e || typeof e != "string"))
|
|
80357
80407
|
return `${_2(e)}`;
|
|
80358
80408
|
}
|
|
80359
|
-
function
|
|
80409
|
+
function jF({
|
|
80360
80410
|
options: e,
|
|
80361
80411
|
modifier: t,
|
|
80362
80412
|
operator: n,
|
|
@@ -80368,7 +80418,7 @@ function UF({
|
|
|
80368
80418
|
return "";
|
|
80369
80419
|
}
|
|
80370
80420
|
function KF(e, t) {
|
|
80371
|
-
const n = e.operator ? `operator: ${_2(e.operator)}` : "", o = `value: ${e_(e.values)}`, i = t_(e.modifier), r2 = i ? `modifier: ${i}` : "", a =
|
|
80421
|
+
const n = e.operator ? `operator: ${_2(e.operator)}` : "", o = `value: ${e_(e.values)}`, i = t_(e.modifier), r2 = i ? `modifier: ${i}` : "", a = jF({
|
|
80372
80422
|
options: e.options,
|
|
80373
80423
|
modifier: e.modifier,
|
|
80374
80424
|
operator: e.operator,
|
|
@@ -80390,7 +80440,7 @@ function Yl2(e, t, n) {
|
|
|
80390
80440
|
filter_source: i,
|
|
80391
80441
|
default_condition: r2,
|
|
80392
80442
|
input_type: a
|
|
80393
|
-
} = e, s = i.source_type === "DmFieldFilterSource" ? "field" :
|
|
80443
|
+
} = e, s = i.source_type === "DmFieldFilterSource" ? "field" : UF(o);
|
|
80394
80444
|
if (!s)
|
|
80395
80445
|
throw new Error(`Invalid filter type: ${o}`);
|
|
80396
80446
|
const c = `type: ${_2(s)}`;
|
|
@@ -80495,13 +80545,13 @@ function o_(e, t) {
|
|
|
80495
80545
|
}
|
|
80496
80546
|
return _2(import_lodash.isNil(t) ? "" : String(t));
|
|
80497
80547
|
}
|
|
80498
|
-
function
|
|
80548
|
+
function WF(e) {
|
|
80499
80549
|
return e == null ? "Unknown" : e?.__type__?.startsWith("Heredoc") ? `Heredoc['${e.name}']` : e?.__type__ === "Dataset" ? "Dataset" : e?.__type__ === "FieldRef" ? "VizFieldRef" : typeof e == "boolean" ? "Boolean" : typeof e == "number" ? "Number" : typeof e == "string" ? "String" : "Unknown";
|
|
80500
80550
|
}
|
|
80501
80551
|
function i_(e) {
|
|
80502
80552
|
if (e == null)
|
|
80503
80553
|
throw new Error("Unexpected undefined/null template argument");
|
|
80504
|
-
const t =
|
|
80554
|
+
const t = WF(e), n = $A(t, e);
|
|
80505
80555
|
return o_(t, n);
|
|
80506
80556
|
}
|
|
80507
80557
|
function Pr3(e, t) {
|
|
@@ -80524,7 +80574,7 @@ function Ot3(e) {
|
|
|
80524
80574
|
function Mi2(e, t, n) {
|
|
80525
80575
|
if (e.type === "ErrorBlock")
|
|
80526
80576
|
return;
|
|
80527
|
-
const o = "description" in e ? Lt3(e.description) : undefined, i = "theme" in e ? Mn3(e.theme) : undefined, r2 = i ?
|
|
80577
|
+
const o = "description" in e ? Lt3(e.description) : undefined, i = "theme" in e ? Mn3(e.theme) : undefined, r2 = i ? U2("theme", i) : undefined;
|
|
80528
80578
|
switch (e.type) {
|
|
80529
80579
|
case "VizBlock": {
|
|
80530
80580
|
const a = e.label ? `label: ${_2(e.label)}` : "", s = o ? `description: ${o}` : "", c = `viz: ${su2(e.viz, t, n)}`, l = Ot3(e.settings), u = l ? ` settings {
|
|
@@ -80673,7 +80723,7 @@ var c_ = (e) => {
|
|
|
80673
80723
|
var u_ = (e) => e && AA2.includes(e) && e !== Di2 ? `grid_size: ${e}` : "";
|
|
80674
80724
|
function d_(e) {
|
|
80675
80725
|
const t = e.label ? `label: ${_2(e.label)}` : "", n = l_(e.width), o = c_(e.height), i = u_(e.grid_size), r2 = e.auto_expand_vertically ? "auto_expand_vertically: true" : "", a = e.auto_expand_horizontally ? "auto_expand_horizontally: true" : "", s = Object.entries(e.blocks).map(([m2, f]) => ki2(m2, f)).filter(Boolean).join(`
|
|
80676
|
-
`), c = a_(e.mobile), l = au2(e.theme), u = l ?
|
|
80726
|
+
`), c = a_(e.mobile), l = au2(e.theme), u = l ? U2("theme", l) : undefined, d2 = s_(e.default_zoom);
|
|
80677
80727
|
return ` CanvasLayout {
|
|
80678
80728
|
${[
|
|
80679
80729
|
t,
|
|
@@ -80915,7 +80965,7 @@ function ca2({
|
|
|
80915
80965
|
}));
|
|
80916
80966
|
return [...s, ...u, ...c];
|
|
80917
80967
|
}
|
|
80918
|
-
function
|
|
80968
|
+
function je2({
|
|
80919
80969
|
amlPropName: e,
|
|
80920
80970
|
amlPropType: t,
|
|
80921
80971
|
propDiffToAml: n = ({ diff: r2 }) => r2.newValue,
|
|
@@ -80935,24 +80985,24 @@ function Ue3({
|
|
|
80935
80985
|
}
|
|
80936
80986
|
var Ri2 = ge2;
|
|
80937
80987
|
var ua2 = ge2;
|
|
80938
|
-
var
|
|
80988
|
+
var jo2 = ge2;
|
|
80939
80989
|
var Ko2 = ge2;
|
|
80940
80990
|
var Oi2 = ke3;
|
|
80941
80991
|
var da2 = ke3;
|
|
80942
80992
|
var Ho2 = ke3;
|
|
80943
|
-
var
|
|
80993
|
+
var Wo2 = ke3;
|
|
80944
80994
|
var aL = {
|
|
80945
80995
|
label: Ri2,
|
|
80946
80996
|
description: ua2,
|
|
80947
|
-
theme:
|
|
80997
|
+
theme: jo2,
|
|
80948
80998
|
settings: Ko2,
|
|
80949
80999
|
filter: ge2
|
|
80950
81000
|
};
|
|
80951
81001
|
var sL = {
|
|
80952
|
-
label:
|
|
80953
|
-
description:
|
|
81002
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81003
|
+
description: je2({ amlPropName: "description", amlPropType: "text" }),
|
|
80954
81004
|
theme({ diff: e, astPath: t }) {
|
|
80955
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81005
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
80956
81006
|
return [Ee3({
|
|
80957
81007
|
path: [...t, "theme"],
|
|
80958
81008
|
text: o
|
|
@@ -80986,21 +81036,21 @@ var lL = {
|
|
|
80986
81036
|
label: Oi2,
|
|
80987
81037
|
description: da2,
|
|
80988
81038
|
theme: Ho2,
|
|
80989
|
-
settings:
|
|
81039
|
+
settings: Wo2,
|
|
80990
81040
|
filter: ke3
|
|
80991
81041
|
};
|
|
80992
81042
|
var cL = {
|
|
80993
81043
|
label: Ri2,
|
|
80994
81044
|
description: ua2,
|
|
80995
|
-
theme:
|
|
81045
|
+
theme: jo2,
|
|
80996
81046
|
settings: Ko2,
|
|
80997
81047
|
viz: ge2
|
|
80998
81048
|
};
|
|
80999
81049
|
var uL = {
|
|
81000
|
-
label:
|
|
81001
|
-
description:
|
|
81050
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81051
|
+
description: je2({ amlPropName: "description", amlPropType: "text" }),
|
|
81002
81052
|
theme({ diff: e, astPath: t }) {
|
|
81003
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81053
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81004
81054
|
return [Ee3({
|
|
81005
81055
|
path: [...t, "theme"],
|
|
81006
81056
|
text: o
|
|
@@ -81029,17 +81079,17 @@ var dL = {
|
|
|
81029
81079
|
label: Oi2,
|
|
81030
81080
|
description: da2,
|
|
81031
81081
|
theme: Ho2,
|
|
81032
|
-
settings:
|
|
81082
|
+
settings: Wo2,
|
|
81033
81083
|
viz: ke3
|
|
81034
81084
|
};
|
|
81035
81085
|
var pL = {
|
|
81036
|
-
theme:
|
|
81086
|
+
theme: jo2,
|
|
81037
81087
|
settings: Ko2,
|
|
81038
81088
|
content: ge2
|
|
81039
81089
|
};
|
|
81040
81090
|
var mL = {
|
|
81041
81091
|
theme({ diff: e, astPath: t }) {
|
|
81042
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81092
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81043
81093
|
return [Ee3({
|
|
81044
81094
|
path: [...t, "theme"],
|
|
81045
81095
|
text: o
|
|
@@ -81054,7 +81104,7 @@ var mL = {
|
|
|
81054
81104
|
}` : undefined
|
|
81055
81105
|
})];
|
|
81056
81106
|
},
|
|
81057
|
-
content:
|
|
81107
|
+
content: je2({
|
|
81058
81108
|
amlPropName: "content",
|
|
81059
81109
|
propDiffToAml: ({ diff: e }) => `@md ${ot3(e.newValue || "", {
|
|
81060
81110
|
sanitizeHeredocTermination: true,
|
|
@@ -81064,21 +81114,21 @@ var mL = {
|
|
|
81064
81114
|
};
|
|
81065
81115
|
var hL = {
|
|
81066
81116
|
theme: Ho2,
|
|
81067
|
-
settings:
|
|
81117
|
+
settings: Wo2,
|
|
81068
81118
|
content: ke3
|
|
81069
81119
|
};
|
|
81070
81120
|
var fL = {
|
|
81071
81121
|
label: Ri2,
|
|
81072
81122
|
description: ua2,
|
|
81073
|
-
theme:
|
|
81123
|
+
theme: jo2,
|
|
81074
81124
|
settings: Ko2,
|
|
81075
81125
|
pop: ge2
|
|
81076
81126
|
};
|
|
81077
81127
|
var gL = {
|
|
81078
|
-
label:
|
|
81079
|
-
description:
|
|
81128
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81129
|
+
description: je2({ amlPropName: "description", amlPropType: "text" }),
|
|
81080
81130
|
theme({ diff: e, astPath: t }) {
|
|
81081
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81131
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81082
81132
|
return [Ee3({
|
|
81083
81133
|
path: [...t, "theme"],
|
|
81084
81134
|
text: o
|
|
@@ -81105,21 +81155,21 @@ var AL = {
|
|
|
81105
81155
|
label: Oi2,
|
|
81106
81156
|
description: da2,
|
|
81107
81157
|
theme: Ho2,
|
|
81108
|
-
settings:
|
|
81158
|
+
settings: Wo2,
|
|
81109
81159
|
pop: ke3
|
|
81110
81160
|
};
|
|
81111
81161
|
var _L = {
|
|
81112
81162
|
label: Ri2,
|
|
81113
81163
|
description: ua2,
|
|
81114
|
-
theme:
|
|
81164
|
+
theme: jo2,
|
|
81115
81165
|
settings: Ko2,
|
|
81116
81166
|
date_drill: ge2
|
|
81117
81167
|
};
|
|
81118
81168
|
var yL = {
|
|
81119
|
-
label:
|
|
81120
|
-
description:
|
|
81169
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81170
|
+
description: je2({ amlPropName: "description", amlPropType: "text" }),
|
|
81121
81171
|
theme({ diff: e, astPath: t }) {
|
|
81122
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81172
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81123
81173
|
return [Ee3({
|
|
81124
81174
|
path: [...t, "theme"],
|
|
81125
81175
|
text: o
|
|
@@ -81146,7 +81196,7 @@ var bL = {
|
|
|
81146
81196
|
label: Oi2,
|
|
81147
81197
|
description: da2,
|
|
81148
81198
|
theme: Ho2,
|
|
81149
|
-
settings:
|
|
81199
|
+
settings: Wo2,
|
|
81150
81200
|
date_drill: ke3
|
|
81151
81201
|
};
|
|
81152
81202
|
var wL = {
|
|
@@ -81157,11 +81207,11 @@ var vL = {
|
|
|
81157
81207
|
label: Ri2,
|
|
81158
81208
|
prompt: ge2,
|
|
81159
81209
|
settings: Ko2,
|
|
81160
|
-
theme:
|
|
81210
|
+
theme: jo2
|
|
81161
81211
|
};
|
|
81162
81212
|
var kL = {
|
|
81163
|
-
label:
|
|
81164
|
-
prompt:
|
|
81213
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81214
|
+
prompt: je2({
|
|
81165
81215
|
amlPropName: "prompt",
|
|
81166
81216
|
propDiffToAml: ({ diff: e }) => `@md ${ot3(e.newValue || "", wL)};;`
|
|
81167
81217
|
}),
|
|
@@ -81175,7 +81225,7 @@ var kL = {
|
|
|
81175
81225
|
})];
|
|
81176
81226
|
},
|
|
81177
81227
|
theme({ diff: e, astPath: t }) {
|
|
81178
|
-
const n = Mn3(e.newValue), o = n ?
|
|
81228
|
+
const n = Mn3(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81179
81229
|
return [Ee3({
|
|
81180
81230
|
path: [...t, "theme"],
|
|
81181
81231
|
text: o
|
|
@@ -81185,7 +81235,7 @@ var kL = {
|
|
|
81185
81235
|
var xL = {
|
|
81186
81236
|
label: Oi2,
|
|
81187
81237
|
prompt: ke3,
|
|
81188
|
-
settings:
|
|
81238
|
+
settings: Wo2,
|
|
81189
81239
|
theme: Ho2
|
|
81190
81240
|
};
|
|
81191
81241
|
var du2 = {
|
|
@@ -81272,7 +81322,7 @@ var eN = (e) => ("fieldsDiff" in e.diff) ? so2({
|
|
|
81272
81322
|
context: e.context,
|
|
81273
81323
|
astPath: [...e.astPath, "mobile"],
|
|
81274
81324
|
generator: {
|
|
81275
|
-
mode:
|
|
81325
|
+
mode: je2({ amlPropName: "mode", amlPropType: "text" }),
|
|
81276
81326
|
blocks: ({ diff: t, astPath: n, context: o }) => ca2({
|
|
81277
81327
|
diff: t,
|
|
81278
81328
|
astPath: [...n, "block"],
|
|
@@ -81289,14 +81339,14 @@ var eN = (e) => ("fieldsDiff" in e.diff) ? so2({
|
|
|
81289
81339
|
text: a_(e.diff.newValue)
|
|
81290
81340
|
})];
|
|
81291
81341
|
var tN = {
|
|
81292
|
-
label:
|
|
81293
|
-
width:
|
|
81342
|
+
label: je2({ amlPropName: "label", amlPropType: "text" }),
|
|
81343
|
+
width: je2({
|
|
81294
81344
|
amlPropName: "width",
|
|
81295
81345
|
amlPropType: "number",
|
|
81296
81346
|
propDiffToAml: ({ diff: e }) => l_(e.newValue),
|
|
81297
81347
|
prependPropName: false
|
|
81298
81348
|
}),
|
|
81299
|
-
height:
|
|
81349
|
+
height: je2({
|
|
81300
81350
|
amlPropName: "height",
|
|
81301
81351
|
amlPropType: "number",
|
|
81302
81352
|
propDiffToAml: ({ diff: e }) => c_(e.newValue),
|
|
@@ -81317,22 +81367,22 @@ var tN = {
|
|
|
81317
81367
|
});
|
|
81318
81368
|
},
|
|
81319
81369
|
theme({ diff: e, astPath: t }) {
|
|
81320
|
-
const n = au2(e.newValue), o = n ?
|
|
81370
|
+
const n = au2(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81321
81371
|
return [Ee3({
|
|
81322
81372
|
path: [...t, "theme"],
|
|
81323
81373
|
text: o
|
|
81324
81374
|
})];
|
|
81325
81375
|
},
|
|
81326
|
-
grid_size:
|
|
81376
|
+
grid_size: je2({
|
|
81327
81377
|
amlPropName: "grid_size",
|
|
81328
81378
|
amlPropType: "number",
|
|
81329
81379
|
propDiffToAml: ({ diff: e }) => u_(e.newValue),
|
|
81330
81380
|
prependPropName: false
|
|
81331
81381
|
}),
|
|
81332
|
-
auto_expand_vertically:
|
|
81333
|
-
auto_expand_horizontally:
|
|
81382
|
+
auto_expand_vertically: je2({ amlPropName: "auto_expand_vertically", amlPropType: "boolean" }),
|
|
81383
|
+
auto_expand_horizontally: je2({ amlPropName: "auto_expand_horizontally", amlPropType: "boolean" }),
|
|
81334
81384
|
mobile: eN,
|
|
81335
|
-
default_zoom:
|
|
81385
|
+
default_zoom: je2({
|
|
81336
81386
|
amlPropName: "default_zoom",
|
|
81337
81387
|
propDiffToAml: ({ diff: e }) => s_(e.newValue),
|
|
81338
81388
|
prependPropName: false
|
|
@@ -81353,7 +81403,7 @@ var nN = ({ diff: e, astPath: t, context: n }) => ("fieldsDiff" in e) ? k_({
|
|
|
81353
81403
|
text: `tab ${e.newValue.uname}: ${ro2(e.newValue)}`
|
|
81354
81404
|
})];
|
|
81355
81405
|
var oN = {
|
|
81356
|
-
label:
|
|
81406
|
+
label: je2({
|
|
81357
81407
|
amlPropName: "label",
|
|
81358
81408
|
amlPropType: "text",
|
|
81359
81409
|
propDiffToAml: ({ diff: e }) => e.newValue
|
|
@@ -81382,15 +81432,15 @@ var rN = ({ diff: e, astPath: t, context: n }) => ("fieldsDiff" in e) ? e.newVal
|
|
|
81382
81432
|
text: `view: ${ro2(e.newValue)}`
|
|
81383
81433
|
})];
|
|
81384
81434
|
var sN = {
|
|
81385
|
-
title:
|
|
81435
|
+
title: je2({
|
|
81386
81436
|
amlPropName: "title",
|
|
81387
81437
|
amlPropType: "text"
|
|
81388
81438
|
}),
|
|
81389
|
-
description:
|
|
81439
|
+
description: je2({
|
|
81390
81440
|
amlPropName: "description",
|
|
81391
81441
|
propDiffToAml: ({ diff: e }) => Lt3(e.newValue)
|
|
81392
81442
|
}),
|
|
81393
|
-
ai_context:
|
|
81443
|
+
ai_context: je2({
|
|
81394
81444
|
amlPropName: "ai_context",
|
|
81395
81445
|
propDiffToAml: ({ diff: e }) => Lt3(e.newValue)
|
|
81396
81446
|
}),
|
|
@@ -81407,7 +81457,7 @@ var sN = {
|
|
|
81407
81457
|
})];
|
|
81408
81458
|
},
|
|
81409
81459
|
theme: ({ diff: e, astPath: t }) => {
|
|
81410
|
-
const n = Li2(e.newValue), o = n ?
|
|
81460
|
+
const n = Li2(e.newValue), o = n ? U2("theme", n) : undefined;
|
|
81411
81461
|
return [Ee3({
|
|
81412
81462
|
path: [...t, "theme"],
|
|
81413
81463
|
text: o
|
|
@@ -81454,7 +81504,7 @@ var x_2 = (e, t) => {
|
|
|
81454
81504
|
if (e.body && e.body instanceof L)
|
|
81455
81505
|
return e.body.body.filter((n) => (n instanceof F || n instanceof $) && n.elementType.text() === t);
|
|
81456
81506
|
};
|
|
81457
|
-
var
|
|
81507
|
+
var jn3 = (e, t) => x_2(e, t)?.[0];
|
|
81458
81508
|
var xi2 = (e, t) => {
|
|
81459
81509
|
const n = e.symbol(t.id);
|
|
81460
81510
|
if (n.isErr())
|
|
@@ -81517,7 +81567,7 @@ var PN = (e, t) => {
|
|
|
81517
81567
|
}
|
|
81518
81568
|
if (!n)
|
|
81519
81569
|
return;
|
|
81520
|
-
const o =
|
|
81570
|
+
const o = jn3(n, "rel");
|
|
81521
81571
|
if (!o)
|
|
81522
81572
|
return;
|
|
81523
81573
|
let i;
|
|
@@ -81544,7 +81594,7 @@ var DN = (e, t, n) => {
|
|
|
81544
81594
|
return a.moduleId.createIdForObjectInScope("").replaceAll("::", ".") + o.slice(1).join(".");
|
|
81545
81595
|
};
|
|
81546
81596
|
var FN = (e, t, n) => {
|
|
81547
|
-
const o =
|
|
81597
|
+
const o = jn3(e, "model"), i = jn3(e, "field");
|
|
81548
81598
|
let r2, a = "", s;
|
|
81549
81599
|
if (o?.body instanceof Be && (r2 = o.body.text().slice(1, -1), a = DN(r2, t, n) || ""), i?.body instanceof Be && (s = i.body.text().slice(1, -1)), r2 && s)
|
|
81550
81600
|
return {
|
|
@@ -81579,10 +81629,10 @@ var LN = (e, t, n) => {
|
|
|
81579
81629
|
const r2 = e.specificType(i.id).unwrap();
|
|
81580
81630
|
if (!(("name" in r2) && r2.name === "Dataset"))
|
|
81581
81631
|
return n;
|
|
81582
|
-
const a = g.create(t.id.filepath), s = Pp(a, i.name, e.program).replace(/::/g, "."), c =
|
|
81632
|
+
const a = g.create(t.id.filepath), s = Pp(a, i.name, e.program).replace(/::/g, "."), c = jn3(t, "relationships");
|
|
81583
81633
|
if (!c)
|
|
81584
81634
|
return n;
|
|
81585
|
-
const l =
|
|
81635
|
+
const l = jn3(t, "models");
|
|
81586
81636
|
if (!l)
|
|
81587
81637
|
return n;
|
|
81588
81638
|
const u = x_2(t, "dimension") ?? [], d2 = IN(e, l, u), h = n === m.WrongKind ? [] : [...n];
|
|
@@ -81590,7 +81640,7 @@ var LN = (e, t, n) => {
|
|
|
81590
81640
|
const f = PN(e, m2);
|
|
81591
81641
|
if (!f)
|
|
81592
81642
|
return;
|
|
81593
|
-
const g3 =
|
|
81643
|
+
const g3 = jn3(f, "from");
|
|
81594
81644
|
if (!g3)
|
|
81595
81645
|
return;
|
|
81596
81646
|
const w2 = ah2({
|
|
@@ -81601,7 +81651,7 @@ var LN = (e, t, n) => {
|
|
|
81601
81651
|
db: e
|
|
81602
81652
|
});
|
|
81603
81653
|
w2 instanceof Re && h.push(w2);
|
|
81604
|
-
const x =
|
|
81654
|
+
const x = jn3(f, "to");
|
|
81605
81655
|
if (!x)
|
|
81606
81656
|
return;
|
|
81607
81657
|
const b = ah2({
|
|
@@ -81702,7 +81752,7 @@ var hu2 = (e, t) => {
|
|
|
81702
81752
|
const n = e.symbol(t.id).chain((i) => e.specificType(i.id));
|
|
81703
81753
|
return !(n.isErr() || n.unwrap()?.name !== "Dataset");
|
|
81704
81754
|
};
|
|
81705
|
-
var
|
|
81755
|
+
var UN = (e, t) => {
|
|
81706
81756
|
if (!(t instanceof $) || !(t.body instanceof L))
|
|
81707
81757
|
return false;
|
|
81708
81758
|
const n = e.symbol(t.id).chain((i) => e.specificType(i.id));
|
|
@@ -81721,7 +81771,7 @@ var yn3 = (e, t) => e.body instanceof L ? e.body.body.filter((o) => o instanceof
|
|
|
81721
81771
|
node: o
|
|
81722
81772
|
};
|
|
81723
81773
|
}) : [];
|
|
81724
|
-
var
|
|
81774
|
+
var jN = (e, t) => {
|
|
81725
81775
|
const n = e.symbol(t.id);
|
|
81726
81776
|
if (n.isErr())
|
|
81727
81777
|
return;
|
|
@@ -81733,7 +81783,7 @@ var KN = (e, t) => {
|
|
|
81733
81783
|
return [];
|
|
81734
81784
|
const n = [], o = /* @__PURE__ */ new Set;
|
|
81735
81785
|
return fu2(t).forEach((i) => {
|
|
81736
|
-
const r2 =
|
|
81786
|
+
const r2 = jN(e, i);
|
|
81737
81787
|
if (r2)
|
|
81738
81788
|
if (o.has(r2)) {
|
|
81739
81789
|
const a = pa2(t, i, `Duplicate model "${i.text()}".`);
|
|
@@ -81755,11 +81805,11 @@ function HN(e, t, n, o) {
|
|
|
81755
81805
|
const { returnVal: r2 } = o;
|
|
81756
81806
|
return RN(e, t, n, r2), zN(e, t, n, r2), o;
|
|
81757
81807
|
}
|
|
81758
|
-
var
|
|
81808
|
+
var WN = (e, t, n) => {
|
|
81759
81809
|
const o = n === m.WrongKind ? [] : [...n];
|
|
81760
81810
|
return o.push(...KN(e, t)), o;
|
|
81761
81811
|
};
|
|
81762
|
-
var
|
|
81812
|
+
var QN = {
|
|
81763
81813
|
name: "Dataset",
|
|
81764
81814
|
hooks: {
|
|
81765
81815
|
evaluate: {
|
|
@@ -81767,7 +81817,7 @@ var WN = {
|
|
|
81767
81817
|
strategy: mr.EXTEND_BUILTIN
|
|
81768
81818
|
},
|
|
81769
81819
|
typecheck: {
|
|
81770
|
-
handler:
|
|
81820
|
+
handler: WN,
|
|
81771
81821
|
strategy: mr.EXTEND_BUILTIN
|
|
81772
81822
|
}
|
|
81773
81823
|
}
|
|
@@ -81902,7 +81952,7 @@ var cM = (e) => {
|
|
|
81902
81952
|
};
|
|
81903
81953
|
var uM = (e, t, n) => {
|
|
81904
81954
|
const o = n === m.WrongKind ? [] : [...n];
|
|
81905
|
-
return
|
|
81955
|
+
return UN(e, t) && (o.push(...oM(t)), o.push(...cM(t))), o;
|
|
81906
81956
|
};
|
|
81907
81957
|
var dM = {
|
|
81908
81958
|
name: "CustomChartTemplateValidation",
|
|
@@ -83433,7 +83483,7 @@ var BM = (e, t = []) => {
|
|
|
83433
83483
|
}), TM(e).filter((i) => !o.has(i.toString()) && !EM.has(i.toString())).forEach((i) => e.deleteFile(i)), e;
|
|
83434
83484
|
};
|
|
83435
83485
|
var IM = (e, t = {}) => (t.userAttributes && BM(e, t.userAttributes), e);
|
|
83436
|
-
var x1 = (e, t = {}) => (e.setModuleRootPaths(EI2), e.options.childIdxForDynamicProp = true, e.registerCustomModule(EN), e.registerCustomModule(NN), e.registerCustomModule(
|
|
83486
|
+
var x1 = (e, t = {}) => (e.setModuleRootPaths(EI2), e.options.childIdxForDynamicProp = true, e.registerCustomModule(EN), e.registerCustomModule(NN), e.registerCustomModule(QN), e.registerCustomModule(tM), e.registerCustomModule(dM), e.registerCustomModule(mM), e.registerCustomModule(bM), e.registerCustomModule(KR.RefFunction), e.registerCustomModule(KR.RefCallExpression), e.registerCustomModule(KR.RefPropertyAccessExpression), Object.entries(oc2).forEach(([n, o]) => {
|
|
83437
83487
|
const i = g.create(`__H_definition__/${n}`);
|
|
83438
83488
|
e.setDefinitionAtPath(i, o);
|
|
83439
83489
|
}), e.addJsFunc("r", OR(e)), e.setMacro("rel", CM), e.setMacro("relationship", SM), e.addDecorator(qR.templateDecorator.default), Object.entries(gu2).forEach(([n, o]) => {
|
|
@@ -93571,11 +93621,11 @@ function NO2() {
|
|
|
93571
93621
|
return $h3 || ($h3 = 1, vu3 = hr$1()["__core-js_shared__"]), vu3;
|
|
93572
93622
|
}
|
|
93573
93623
|
var yu3;
|
|
93574
|
-
var
|
|
93624
|
+
var Uh2;
|
|
93575
93625
|
function MO2() {
|
|
93576
|
-
if (
|
|
93626
|
+
if (Uh2)
|
|
93577
93627
|
return yu3;
|
|
93578
|
-
|
|
93628
|
+
Uh2 = 1;
|
|
93579
93629
|
var e = NO2(), t = function() {
|
|
93580
93630
|
var t = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
|
|
93581
93631
|
return t ? "Symbol(src)_1." + t : "";
|
|
@@ -93688,11 +93738,11 @@ function FO2() {
|
|
|
93688
93738
|
return xu2 = r, xu2;
|
|
93689
93739
|
}
|
|
93690
93740
|
var Su3;
|
|
93691
|
-
var
|
|
93741
|
+
var jh3;
|
|
93692
93742
|
function _O2() {
|
|
93693
|
-
if (
|
|
93743
|
+
if (jh3)
|
|
93694
93744
|
return Su3;
|
|
93695
|
-
|
|
93745
|
+
jh3 = 1;
|
|
93696
93746
|
var e = pa$1(), t = Object.prototype.hasOwnProperty;
|
|
93697
93747
|
function n(n) {
|
|
93698
93748
|
var r = this.__data__;
|
|
@@ -94286,11 +94336,11 @@ function Jv3() {
|
|
|
94286
94336
|
return mo$1 = e, mo$1;
|
|
94287
94337
|
}
|
|
94288
94338
|
var vo$1;
|
|
94289
|
-
var
|
|
94339
|
+
var Wg2;
|
|
94290
94340
|
function lx3() {
|
|
94291
|
-
if (
|
|
94341
|
+
if (Wg2)
|
|
94292
94342
|
return vo$1;
|
|
94293
|
-
|
|
94343
|
+
Wg2 = 1;
|
|
94294
94344
|
var e = Qn$1(), t = xa$1(), n = Bt$1(), r = e ? e.isConcatSpreadable : undefined;
|
|
94295
94345
|
function i(e) {
|
|
94296
94346
|
return n(e) || t(e) || !!(r && e && e[r]);
|
|
@@ -94674,9 +94724,9 @@ function Sx3() {
|
|
|
94674
94724
|
return Io$1 = e, Io$1;
|
|
94675
94725
|
}
|
|
94676
94726
|
Yn$1.exports;
|
|
94677
|
-
var
|
|
94727
|
+
var Qg3;
|
|
94678
94728
|
function Ef4() {
|
|
94679
|
-
return
|
|
94729
|
+
return Qg3 || (Qg3 = 1, function(e, t) {
|
|
94680
94730
|
var n = hr$1(), r = Sx3(), i = t && !t.nodeType && t, a = i && e && !e.nodeType && e, s = a && a.exports === i ? n.Buffer : undefined;
|
|
94681
94731
|
e.exports = (s ? s.isBuffer : undefined) || r;
|
|
94682
94732
|
}(Yn$1, Yn$1.exports)), Yn$1.exports;
|
|
@@ -97549,14 +97599,14 @@ function Ff2(e, t, n, r, i, a, s) {
|
|
|
97549
97599
|
return s && (c.second = Or$1(s)), e && (c.weekday = e.length > 3 ? jy3.indexOf(e) + 1 : Zy3.indexOf(e) + 1), c;
|
|
97550
97600
|
}
|
|
97551
97601
|
var L22 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
|
|
97552
|
-
function
|
|
97602
|
+
function W22(e) {
|
|
97553
97603
|
let [, t, n, r, i, a, s, c, l, u, f, m] = e, _ = Ff2(t, i, r, n, a, s, c), S;
|
|
97554
97604
|
return S = l ? _22[l] : u ? 0 : ba$1(f, m), [_, new ut$1(S)];
|
|
97555
97605
|
}
|
|
97556
97606
|
function $22(e) {
|
|
97557
97607
|
return e.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
97558
97608
|
}
|
|
97559
|
-
var
|
|
97609
|
+
var U22 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/;
|
|
97560
97610
|
var G22 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/;
|
|
97561
97611
|
var k2 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
97562
97612
|
function Ov4(e) {
|
|
@@ -97579,12 +97629,12 @@ function K22(e) {
|
|
|
97579
97629
|
return Tn$1(e, [z2, i1], [Y2, V2], [q22, j22], [B2, Z22]);
|
|
97580
97630
|
}
|
|
97581
97631
|
function J2(e) {
|
|
97582
|
-
return Tn$1($22(e), [L22,
|
|
97632
|
+
return Tn$1($22(e), [L22, W22]);
|
|
97583
97633
|
}
|
|
97584
97634
|
function X22(e) {
|
|
97585
|
-
return Tn$1(e, [
|
|
97635
|
+
return Tn$1(e, [U22, Ov4], [G22, Ov4], [k2, H22]);
|
|
97586
97636
|
}
|
|
97587
|
-
function
|
|
97637
|
+
function Q2(e) {
|
|
97588
97638
|
return Tn$1(e, [b2, F22]);
|
|
97589
97639
|
}
|
|
97590
97640
|
var eD2 = pn$1(En$1);
|
|
@@ -97768,7 +97818,7 @@ var xe$1 = class e {
|
|
|
97768
97818
|
throw new rt$1(`Unknown duration argument ${t} of type ${typeof t}`);
|
|
97769
97819
|
}
|
|
97770
97820
|
static fromISO(t, n) {
|
|
97771
|
-
let [r] =
|
|
97821
|
+
let [r] = Q2(t);
|
|
97772
97822
|
return r ? e.fromObject(r, n) : e.invalid("unparsable", `the input "${t}" can't be parsed as ISO 8601`);
|
|
97773
97823
|
}
|
|
97774
97824
|
static fromISOTime(t, n) {
|
|
@@ -107296,9 +107346,9 @@ function exploreResultColumnReads(e, t) {
|
|
|
107296
107346
|
}
|
|
107297
107347
|
function transitiveDependencies(e, t) {
|
|
107298
107348
|
let n = /* @__PURE__ */ new Set, r = [...e.get(t) ?? []];
|
|
107299
|
-
for (;r.length
|
|
107300
|
-
let
|
|
107301
|
-
n.has(
|
|
107349
|
+
for (let t = 0;t < r.length; t++) {
|
|
107350
|
+
let i = r[t];
|
|
107351
|
+
n.has(i) || (n.add(i), r.push(...e.get(i) ?? []));
|
|
107302
107352
|
}
|
|
107303
107353
|
return n;
|
|
107304
107354
|
}
|
|
@@ -131156,7 +131206,7 @@ function checkProgram(e, t, { modelContext: n, programKind: r = "definition" } =
|
|
|
131156
131206
|
return checkedProgram(t, i, (e) => a?.at(e.loc));
|
|
131157
131207
|
}
|
|
131158
131208
|
let i = createV1Checker(e);
|
|
131159
|
-
return checkedProgram(t, i.getDiagnostics(t, n), (e) => {
|
|
131209
|
+
return checkedProgram(t, r === "condition" ? i.getDiagnosticsForCondition(t) : i.getDiagnostics(t, n), (e) => {
|
|
131160
131210
|
if (e.id !== undefined)
|
|
131161
131211
|
try {
|
|
131162
131212
|
return i.getTypeFromNodeId(e.id);
|
|
@@ -131185,6 +131235,9 @@ function getProgramDependencies(e, t) {
|
|
|
131185
131235
|
let r = new Set((e.adhocFields ?? []).map((e) => modelFieldRefAsKey(declaredFieldRef(e))));
|
|
131186
131236
|
return n.filter((t) => r.has(modelFieldRefAsKey(t)) || (import_lodash2.isEmpty(t.modelName) ? !!e.store.getMayBeMetric(t.fieldName) : !!e.store.getMayBeModelField(t)));
|
|
131187
131237
|
}
|
|
131238
|
+
function getProgramDependentModels(e, t) {
|
|
131239
|
+
return import_lodash2.uniq(getProgramDependencies(e, t).map((e) => e.modelName).filter((e) => !import_lodash2.isEmpty(e)));
|
|
131240
|
+
}
|
|
131188
131241
|
function checkAql(e) {
|
|
131189
131242
|
let { aql: t, aqlType: n, modelUname: r, useV2Compiler: i = false, allowAdhocSqlPassthroughFunctions: a = true } = e, s;
|
|
131190
131243
|
try {
|
|
@@ -149267,7 +149320,7 @@ function wo3(e, t) {
|
|
|
149267
149320
|
${D3(r.length === 1 ? r[0] : r.map((e) => T3(e)).join(` AND
|
|
149268
149321
|
`))}`;
|
|
149269
149322
|
}
|
|
149270
|
-
function
|
|
149323
|
+
function Uo2(e, t) {
|
|
149271
149324
|
let n = e.having ?? [];
|
|
149272
149325
|
if (!n.length)
|
|
149273
149326
|
return "";
|
|
@@ -149369,7 +149422,7 @@ function vo3(e, t) {
|
|
|
149369
149422
|
let n = t.toUpperCase();
|
|
149370
149423
|
return n === "ASC" || n === "DESC" ? `${e} ${n}` : n === "ASC NULLS FIRST" ? `${e} ASC` : n === "DESC NULLS LAST" ? `${e} DESC` : n === "DESC NULLS FIRST" ? `ISNULL(${e}) DESC, ${e} DESC` : n === "ASC NULLS LAST" ? `ISNULL(${e}) ASC, ${e} ASC` : `${e} ${t}`;
|
|
149371
149424
|
}
|
|
149372
|
-
var
|
|
149425
|
+
var Wo3 = /* @__PURE__ */ new Map([
|
|
149373
149426
|
[o.CAST_DB_TYPE, ([e, t]) => `CAST( ${e} AS ${Vo2(t.toString())} )`],
|
|
149374
149427
|
[o.IS, ([e, t]) => `${T3(e)} IS ${T3(t)}`],
|
|
149375
149428
|
[o.IS_NOT, ([e, t]) => `${T3(e)} IS NOT ${T3(t)}`],
|
|
@@ -149590,7 +149643,7 @@ ${D3(i.join(`,
|
|
|
149590
149643
|
`))}`;
|
|
149591
149644
|
};
|
|
149592
149645
|
var xo3 = (e, t) => Ln3(e, t);
|
|
149593
|
-
var
|
|
149646
|
+
var Qo2 = {
|
|
149594
149647
|
dataSource: "mysql",
|
|
149595
149648
|
col: g3("`"),
|
|
149596
149649
|
hTypeToDbType: ko3,
|
|
@@ -149601,7 +149654,7 @@ var Qo3 = {
|
|
|
149601
149654
|
fromClause: xo3,
|
|
149602
149655
|
orderByClause: Ko3,
|
|
149603
149656
|
datetimeFormat: "%Y-%m-%d %T.%f",
|
|
149604
|
-
operationOverrides:
|
|
149657
|
+
operationOverrides: Wo3,
|
|
149605
149658
|
transformers: Ho3
|
|
149606
149659
|
};
|
|
149607
149660
|
function zo2(e) {
|
|
@@ -149627,7 +149680,7 @@ function zo2(e) {
|
|
|
149627
149680
|
throw new d3(`Postgres SQL generator does not support data type: ${e}`);
|
|
149628
149681
|
}
|
|
149629
149682
|
}
|
|
149630
|
-
function
|
|
149683
|
+
function jo3(e, t) {
|
|
149631
149684
|
return [
|
|
149632
149685
|
G3,
|
|
149633
149686
|
F3,
|
|
@@ -149646,7 +149699,7 @@ var On3 = {
|
|
|
149646
149699
|
subtractionDateDiff: true,
|
|
149647
149700
|
datetimeFormat: "YYYY-MM-DD HH24:MI:SS.US",
|
|
149648
149701
|
operationOverrides: _e4,
|
|
149649
|
-
transformers:
|
|
149702
|
+
transformers: jo3
|
|
149650
149703
|
};
|
|
149651
149704
|
function Rt4(e) {
|
|
149652
149705
|
let t = _e4.get(e);
|
|
@@ -150873,7 +150926,7 @@ var bs3 = /* @__PURE__ */ new Map([
|
|
|
150873
150926
|
...$t4,
|
|
150874
150927
|
dataSource: "motherduck"
|
|
150875
150928
|
}],
|
|
150876
|
-
["mysql",
|
|
150929
|
+
["mysql", Qo2],
|
|
150877
150930
|
["oracledb", fs13],
|
|
150878
150931
|
["prestodb", ss3],
|
|
150879
150932
|
["redshift", cs3],
|
|
@@ -150940,7 +150993,7 @@ function Ft3(e, t, n) {
|
|
|
150940
150993
|
r,
|
|
150941
150994
|
wo3,
|
|
150942
150995
|
a,
|
|
150943
|
-
|
|
150996
|
+
Uo2,
|
|
150944
150997
|
s,
|
|
150945
150998
|
c,
|
|
150946
150999
|
l
|
|
@@ -151038,7 +151091,7 @@ function vs3(e, t, n, r) {
|
|
|
151038
151091
|
case "bqParsable":
|
|
151039
151092
|
return wt5(e, t, true);
|
|
151040
151093
|
case "indentation":
|
|
151041
|
-
return [
|
|
151094
|
+
return [Ws3(e, t), null];
|
|
151042
151095
|
case "tagToken":
|
|
151043
151096
|
return [ks3(e, t), null];
|
|
151044
151097
|
case "modelingRef":
|
|
@@ -151097,7 +151150,7 @@ function wt5(e, t, n) {
|
|
|
151097
151150
|
}
|
|
151098
151151
|
return [e.slice(t, i), r];
|
|
151099
151152
|
}
|
|
151100
|
-
function
|
|
151153
|
+
function Ws3(e, t) {
|
|
151101
151154
|
let n = t;
|
|
151102
151155
|
if (e[n] === `
|
|
151103
151156
|
`)
|
|
@@ -151181,7 +151234,7 @@ function Zs2(e, t) {
|
|
|
151181
151234
|
}
|
|
151182
151235
|
var Ks3 = /^\{\{\s*#(SOURCE|\w+(?:\.\w+)*)\.(.+?)\s*\}\}$/;
|
|
151183
151236
|
var xs3 = /^\{\{\s*(.+?)\s*\}\}$/;
|
|
151184
|
-
function
|
|
151237
|
+
function Qs2(e) {
|
|
151185
151238
|
let t = Ks3.exec(e);
|
|
151186
151239
|
if (t)
|
|
151187
151240
|
return {
|
|
@@ -151195,7 +151248,7 @@ function zs3(e, t) {
|
|
|
151195
151248
|
let n = Se4(e, t), r = [];
|
|
151196
151249
|
for (let e of n)
|
|
151197
151250
|
if (e.kind === "modelingRef") {
|
|
151198
|
-
let t =
|
|
151251
|
+
let t = Qs2(e.str);
|
|
151199
151252
|
r.push(t);
|
|
151200
151253
|
} else
|
|
151201
151254
|
r.push(e.str);
|
|
@@ -152587,12 +152640,16 @@ function convertToAmqlUserAttributes(userAttributes) {
|
|
|
152587
152640
|
return factories_exports.createUserAttribute(name, type, values);
|
|
152588
152641
|
});
|
|
152589
152642
|
}
|
|
152590
|
-
function checkAQLExpr(expr, datasetStore, modelContext,
|
|
152643
|
+
function checkAQLExpr(expr, datasetStore, modelContext, { userAttributes, useV2Compiler }, adhocFieldDeclaration = []) {
|
|
152591
152644
|
try {
|
|
152592
|
-
const
|
|
152593
|
-
|
|
152594
|
-
|
|
152595
|
-
|
|
152645
|
+
const { diagnostics } = checkProgram({
|
|
152646
|
+
store: datasetStore,
|
|
152647
|
+
adhocFields: adhocFieldDeclaration,
|
|
152648
|
+
userAttributes,
|
|
152649
|
+
checkFlags: CheckFlags.SkipCheckingRelationshipKey,
|
|
152650
|
+
useV2Compiler
|
|
152651
|
+
}, parse(expr), { modelContext });
|
|
152652
|
+
return diagnostics.map(({ code, message, severity }) => ({
|
|
152596
152653
|
code,
|
|
152597
152654
|
message,
|
|
152598
152655
|
severity
|
|
@@ -152601,7 +152658,7 @@ function checkAQLExpr(expr, datasetStore, modelContext, userAttribute = [], adho
|
|
|
152601
152658
|
return [errorToMessage(e)];
|
|
152602
152659
|
}
|
|
152603
152660
|
}
|
|
152604
|
-
function checkAllAQLInDataset(dataset,
|
|
152661
|
+
function checkAllAQLInDataset(dataset, options2) {
|
|
152605
152662
|
const datasetStore = new DatasetStore(dataset, dataset.dataSource, {
|
|
152606
152663
|
allowAmbiguousPaths: true
|
|
152607
152664
|
});
|
|
@@ -152610,7 +152667,7 @@ function checkAllAQLInDataset(dataset, userAttributes) {
|
|
|
152610
152667
|
const checkField = (field, modelContext) => {
|
|
152611
152668
|
if (field.syntax !== "aql" || typeof field.sql !== "string")
|
|
152612
152669
|
return;
|
|
152613
|
-
const diags = checkAQLExpr(field.sql, datasetStore, modelContext,
|
|
152670
|
+
const diags = checkAQLExpr(field.sql, datasetStore, modelContext, options2);
|
|
152614
152671
|
results.push(...diags.map((diag) => ({ ...diag, trace })));
|
|
152615
152672
|
};
|
|
152616
152673
|
dataset.metrics.forEach((metric) => {
|
|
@@ -152630,11 +152687,11 @@ function checkAllAQLInDataset(dataset, userAttributes) {
|
|
|
152630
152687
|
});
|
|
152631
152688
|
return results;
|
|
152632
152689
|
}
|
|
152633
|
-
function validateAQLInDatasetBinding(binding,
|
|
152690
|
+
function validateAQLInDatasetBinding(binding, options2) {
|
|
152634
152691
|
const visitedModel = new Set;
|
|
152635
152692
|
try {
|
|
152636
152693
|
const dataset = datasetFromAml(binding.rawValue, STUB_DATA_SOURCE_MAP);
|
|
152637
|
-
const messages = checkAllAQLInDataset(dataset,
|
|
152694
|
+
const messages = checkAllAQLInDataset(dataset, options2);
|
|
152638
152695
|
const result = messages.map((message) => messageToReport(message, binding, VALIDATOR_NAME));
|
|
152639
152696
|
dataset.models.forEach((model) => {
|
|
152640
152697
|
visitedModel.add(model.name);
|
|
@@ -152646,10 +152703,10 @@ function validateAQLInDatasetBinding(binding, userAttributes) {
|
|
|
152646
152703
|
return { result: [report], visitedModel };
|
|
152647
152704
|
}
|
|
152648
152705
|
}
|
|
152649
|
-
function validateAQLInModelBinding(binding,
|
|
152706
|
+
function validateAQLInModelBinding(binding, options2) {
|
|
152650
152707
|
try {
|
|
152651
152708
|
const dataset = createWrapperDatasetForModel(binding.rawValue, STUB_DATA_SOURCE);
|
|
152652
|
-
const messages = checkAllAQLInDataset(dataset,
|
|
152709
|
+
const messages = checkAllAQLInDataset(dataset, options2);
|
|
152653
152710
|
const result = messages.map((message) => messageToReport({ ...message, trace: message.trace?.slice(1) }, binding, VALIDATOR_NAME));
|
|
152654
152711
|
return result;
|
|
152655
152712
|
} catch (e) {
|
|
@@ -152675,7 +152732,7 @@ function normalizeAdhocFields(adhocDimensions, adhocMetrics) {
|
|
|
152675
152732
|
function toFieldDeclarationSource(f) {
|
|
152676
152733
|
return f.modelId ? `dimension ${fqnToDot(f.modelId)}.${f.name} = ${f.sql}` : `metric ${f.name} = ${f.sql}`;
|
|
152677
152734
|
}
|
|
152678
|
-
function checkAdhocAQLInDataset(adhocMetrics, adhocDimensions, dataset,
|
|
152735
|
+
function checkAdhocAQLInDataset(adhocMetrics, adhocDimensions, dataset, options2) {
|
|
152679
152736
|
const results = [];
|
|
152680
152737
|
const fields = normalizeAdhocFields(adhocDimensions, adhocMetrics);
|
|
152681
152738
|
const parsedDeclarationsMap = new Map;
|
|
@@ -152699,13 +152756,13 @@ function checkAdhocAQLInDataset(adhocMetrics, adhocDimensions, dataset, userAttr
|
|
|
152699
152756
|
const datasetStore = new DatasetStore(import_lodash3.cloneDeep(dataset), dataset.dataSource, {
|
|
152700
152757
|
allowAmbiguousPaths: true
|
|
152701
152758
|
});
|
|
152702
|
-
const diags = checkAQLExpr(target.sql, datasetStore, modelContext,
|
|
152759
|
+
const diags = checkAQLExpr(target.sql, datasetStore, modelContext, options2, declarations);
|
|
152703
152760
|
const trace = { kind: "Calculation", name: target.name };
|
|
152704
152761
|
results.push(...diags.map((diag) => ({ ...diag, trace: [trace] })));
|
|
152705
152762
|
});
|
|
152706
152763
|
return results;
|
|
152707
152764
|
}
|
|
152708
|
-
function checkAllAQLInDashboard(dashboard,
|
|
152765
|
+
function checkAllAQLInDashboard(dashboard, options2, datasetsByFqn) {
|
|
152709
152766
|
const vizBlocks = dashboard.blocks.filter((block) => block.type === "VizBlock");
|
|
152710
152767
|
const results = [];
|
|
152711
152768
|
vizBlocks.forEach((vizBlock) => {
|
|
@@ -152724,7 +152781,7 @@ function checkAllAQLInDashboard(dashboard, userAttributes, datasetsByFqn) {
|
|
|
152724
152781
|
trace.push({ kind: "Dataset", name: datasetId });
|
|
152725
152782
|
const dataset = datasetFromAml(amlObject, STUB_DATA_SOURCE_MAP);
|
|
152726
152783
|
trace.pop();
|
|
152727
|
-
const messages = checkAdhocAQLInDataset(adhocMetrics, adhocDimensions, dataset,
|
|
152784
|
+
const messages = checkAdhocAQLInDataset(adhocMetrics, adhocDimensions, dataset, options2);
|
|
152728
152785
|
results.push(...messages.map((message) => ({
|
|
152729
152786
|
...message,
|
|
152730
152787
|
trace: [...trace, ...message.trace ?? []]
|
|
@@ -152745,21 +152802,24 @@ var aqlTypecheckValidator = {
|
|
|
152745
152802
|
const { bindings, reports, option } = ctx;
|
|
152746
152803
|
const newReports = [];
|
|
152747
152804
|
consolePrint.log("Validating AQL");
|
|
152748
|
-
const
|
|
152805
|
+
const checkOptions = {
|
|
152806
|
+
userAttributes: convertToAmqlUserAttributes(option.userAttributes),
|
|
152807
|
+
useV2Compiler: option.useV2Compiler ?? false
|
|
152808
|
+
};
|
|
152749
152809
|
let checkedModels = new Set;
|
|
152750
152810
|
bindings.filter((b) => b.type === "Dataset").forEach((binding) => {
|
|
152751
|
-
const { result, visitedModel } = validateAQLInDatasetBinding(binding,
|
|
152811
|
+
const { result, visitedModel } = validateAQLInDatasetBinding(binding, checkOptions);
|
|
152752
152812
|
checkedModels = checkedModels.union(visitedModel);
|
|
152753
152813
|
newReports.push(...result);
|
|
152754
152814
|
});
|
|
152755
152815
|
bindings.filter((b) => b.type === "Model").filter((b) => !checkedModels.has(b.fqn)).forEach((binding) => {
|
|
152756
|
-
newReports.push(...validateAQLInModelBinding(binding,
|
|
152816
|
+
newReports.push(...validateAQLInModelBinding(binding, checkOptions));
|
|
152757
152817
|
});
|
|
152758
152818
|
const datasetsByFqn = new Map(bindings.filter((b) => b.type === "Dataset").map((b) => [b.fqn, b.rawValue]));
|
|
152759
152819
|
bindings.filter((b) => b.type === "Dashboard").forEach((binding) => {
|
|
152760
152820
|
if (binding.mapped === undefined)
|
|
152761
152821
|
return;
|
|
152762
|
-
const message = checkAllAQLInDashboard(binding.mapped,
|
|
152822
|
+
const message = checkAllAQLInDashboard(binding.mapped, checkOptions, datasetsByFqn);
|
|
152763
152823
|
newReports.push(...message.map((msg) => messageToReport(msg, binding, VALIDATOR_NAME)));
|
|
152764
152824
|
});
|
|
152765
152825
|
return { bindings, reports: [...reports, ...newReports], option };
|
|
@@ -153251,12 +153311,12 @@ var compile_default = command4;
|
|
|
153251
153311
|
|
|
153252
153312
|
// src/commands/aml/validate.ts
|
|
153253
153313
|
import * as path11 from "path";
|
|
153254
|
-
async function validate(paths, rootPath, userAttributes = [], validation = {}) {
|
|
153314
|
+
async function validate(paths, rootPath, userAttributes = [], validation = {}, useV2Compiler = false) {
|
|
153255
153315
|
await loadServerUserAttributes(userAttributes);
|
|
153256
153316
|
const resolvedRootPath = path11.resolve(rootPath ?? process.cwd());
|
|
153257
153317
|
const filePaths = await expandPaths(paths, resolvedRootPath);
|
|
153258
153318
|
compileAMLFiles(filePaths, { rootPath: resolvedRootPath, userAttributes });
|
|
153259
|
-
const reports = runValidators(getProgram(), filePaths, resolvedRootPath, { userAttributes }, validation);
|
|
153319
|
+
const reports = runValidators(getProgram(), filePaths, resolvedRootPath, { userAttributes, useV2Compiler }, validation);
|
|
153260
153320
|
if (reports.length > 0) {
|
|
153261
153321
|
consolePrint.log("Validation errors found in:");
|
|
153262
153322
|
consolePrint.log(formatReports(reports));
|
|
@@ -153272,10 +153332,10 @@ async function validate(paths, rootPath, userAttributes = [], validation = {}) {
|
|
|
153272
153332
|
}
|
|
153273
153333
|
}
|
|
153274
153334
|
var command5 = new Command("validate").description("Validate AML files for compilation errors without generating output.").argument("[files...]", "source files or globs to validate. Defaults to all files in the current working directory", ["."]).option("-r, --root-path <root-path>", "root path of the AML repo. Defaults to the current working directory.").option("-u, --user-attribute <spec>", "[Coming Soon] register a user attribute. Format: name:type, name:type=value, or name=value (built-in only). Repeatable. Type is one of: text, number, truefalse", collectUserAttribute).addOption(new Option("--skip [validators]", `comma-separated list of validators to skip. Bare --skip skips all. Omit to skip none. Available validators:
|
|
153275
|
-
${formatChecksHelp(VALIDATORS)}`).argParser(parseValidatorsOption).preset("all")).action(async (paths, opts) => {
|
|
153335
|
+
${formatChecksHelp(VALIDATORS)}`).argParser(parseValidatorsOption).preset("all")).option("--use-v2-compiler", "type-check AQL with the v2 compiler. Use it when the workspace compiles AQL with v2.").action(async (paths, opts) => {
|
|
153276
153336
|
await validate(paths, opts.rootPath, opts.userAttribute, {
|
|
153277
153337
|
skippedValidators: opts.skip
|
|
153278
|
-
});
|
|
153338
|
+
}, opts.useV2Compiler);
|
|
153279
153339
|
});
|
|
153280
153340
|
var validate_default = command5;
|
|
153281
153341
|
|
|
@@ -157917,7 +157977,7 @@ function wo4(e, t) {
|
|
|
157917
157977
|
return `WHERE
|
|
157918
157978
|
${D4(s)}`;
|
|
157919
157979
|
}
|
|
157920
|
-
function
|
|
157980
|
+
function Uo3(e, t) {
|
|
157921
157981
|
const n = e.having ?? [];
|
|
157922
157982
|
if (!n.length)
|
|
157923
157983
|
return "";
|
|
@@ -158011,7 +158071,7 @@ function vo4(e, t) {
|
|
|
158011
158071
|
const n = t.toUpperCase();
|
|
158012
158072
|
return n === "ASC" || n === "DESC" ? `${e} ${n}` : n === "ASC NULLS FIRST" ? `${e} ASC` : n === "DESC NULLS LAST" ? `${e} DESC` : n === "DESC NULLS FIRST" ? `ISNULL(${e}) DESC, ${e} DESC` : n === "ASC NULLS LAST" ? `ISNULL(${e}) ASC, ${e} ASC` : `${e} ${t}`;
|
|
158013
158073
|
}
|
|
158014
|
-
var
|
|
158074
|
+
var Wo4 = /* @__PURE__ */ new Map([
|
|
158015
158075
|
[o3.CAST_DB_TYPE, ([e, t]) => {
|
|
158016
158076
|
const n = Vo3(t.toString());
|
|
158017
158077
|
return `CAST( ${e} AS ${n} )`;
|
|
@@ -158221,7 +158281,7 @@ ${D4(s.join(`,
|
|
|
158221
158281
|
`))}`;
|
|
158222
158282
|
};
|
|
158223
158283
|
var xo4 = (e, t) => Ln4(e, t);
|
|
158224
|
-
var
|
|
158284
|
+
var Qo3 = {
|
|
158225
158285
|
dataSource: "mysql",
|
|
158226
158286
|
col: g4("`"),
|
|
158227
158287
|
hTypeToDbType: ko4,
|
|
@@ -158232,7 +158292,7 @@ var Qo4 = {
|
|
|
158232
158292
|
fromClause: xo4,
|
|
158233
158293
|
orderByClause: Ko4,
|
|
158234
158294
|
datetimeFormat: "%Y-%m-%d %T.%f",
|
|
158235
|
-
operationOverrides:
|
|
158295
|
+
operationOverrides: Wo4,
|
|
158236
158296
|
transformers: Ho4
|
|
158237
158297
|
};
|
|
158238
158298
|
function zo3(e) {
|
|
@@ -158258,7 +158318,7 @@ function zo3(e) {
|
|
|
158258
158318
|
throw new d4(`Postgres SQL generator does not support data type: ${e}`);
|
|
158259
158319
|
}
|
|
158260
158320
|
}
|
|
158261
|
-
function
|
|
158321
|
+
function jo4(e, t) {
|
|
158262
158322
|
return [G4, F4, q4, h3];
|
|
158263
158323
|
}
|
|
158264
158324
|
var On4 = {
|
|
@@ -158272,7 +158332,7 @@ var On4 = {
|
|
|
158272
158332
|
subtractionDateDiff: true,
|
|
158273
158333
|
datetimeFormat: "YYYY-MM-DD HH24:MI:SS.US",
|
|
158274
158334
|
operationOverrides: _e5,
|
|
158275
|
-
transformers:
|
|
158335
|
+
transformers: jo4
|
|
158276
158336
|
};
|
|
158277
158337
|
function Rt5(e) {
|
|
158278
158338
|
const t = _e5.get(e);
|
|
@@ -159391,7 +159451,7 @@ var bs4 = /* @__PURE__ */ new Map([
|
|
|
159391
159451
|
["databricks", Do4],
|
|
159392
159452
|
["duckdb", $t5],
|
|
159393
159453
|
["motherduck", { ...$t5, dataSource: "motherduck" }],
|
|
159394
|
-
["mysql",
|
|
159454
|
+
["mysql", Qo3],
|
|
159395
159455
|
["oracledb", fs19],
|
|
159396
159456
|
["prestodb", ss4],
|
|
159397
159457
|
["redshift", cs4],
|
|
@@ -159449,7 +159509,7 @@ function Ft4(e, t, n) {
|
|
|
159449
159509
|
r,
|
|
159450
159510
|
wo4,
|
|
159451
159511
|
a,
|
|
159452
|
-
|
|
159512
|
+
Uo3,
|
|
159453
159513
|
i,
|
|
159454
159514
|
l,
|
|
159455
159515
|
u
|
|
@@ -159536,7 +159596,7 @@ function vs4(e, t, n, r) {
|
|
|
159536
159596
|
case "bqParsable":
|
|
159537
159597
|
return wt6(e, t, true);
|
|
159538
159598
|
case "indentation":
|
|
159539
|
-
return [
|
|
159599
|
+
return [Ws4(e, t), null];
|
|
159540
159600
|
case "tagToken":
|
|
159541
159601
|
return [ks4(e, t), null];
|
|
159542
159602
|
case "modelingRef":
|
|
@@ -159599,7 +159659,7 @@ function wt6(e, t, n) {
|
|
|
159599
159659
|
}
|
|
159600
159660
|
return [e.slice(t, s), r];
|
|
159601
159661
|
}
|
|
159602
|
-
function
|
|
159662
|
+
function Ws4(e, t) {
|
|
159603
159663
|
let n = t;
|
|
159604
159664
|
if (e[n] === `
|
|
159605
159665
|
`)
|
|
@@ -159685,7 +159745,7 @@ function Zs3(e, t) {
|
|
|
159685
159745
|
}
|
|
159686
159746
|
var Ks4 = /^\{\{\s*#(SOURCE|\w+(?:\.\w+)*)\.(.+?)\s*\}\}$/;
|
|
159687
159747
|
var xs4 = /^\{\{\s*(.+?)\s*\}\}$/;
|
|
159688
|
-
function
|
|
159748
|
+
function Qs3(e) {
|
|
159689
159749
|
const t = Ks4.exec(e);
|
|
159690
159750
|
if (t)
|
|
159691
159751
|
return { modelName: t[1], fieldName: t[2] };
|
|
@@ -159696,7 +159756,7 @@ function zs4(e, t) {
|
|
|
159696
159756
|
const n = Se5(e, t), r = [];
|
|
159697
159757
|
for (const s of n)
|
|
159698
159758
|
if (s.kind === "modelingRef") {
|
|
159699
|
-
const a =
|
|
159759
|
+
const a = Qs3(s.str);
|
|
159700
159760
|
r.push(a);
|
|
159701
159761
|
} else
|
|
159702
159762
|
r.push(s.str);
|
|
@@ -161203,9 +161263,9 @@ function b5(e, n = I3) {
|
|
|
161203
161263
|
const t = e.charAt(1), o = n.short.get(t);
|
|
161204
161264
|
return [{ name: e, needsNext: o === true }];
|
|
161205
161265
|
}
|
|
161206
|
-
return
|
|
161266
|
+
return j3(e, n.short);
|
|
161207
161267
|
}
|
|
161208
|
-
function
|
|
161268
|
+
function j3(e, n) {
|
|
161209
161269
|
const t = e.slice(1).split(""), o = [];
|
|
161210
161270
|
for (let a = 0;a < t.length; a++) {
|
|
161211
161271
|
const s = t[a], r = n.get(s);
|
|
@@ -161945,21 +162005,21 @@ function _n6(t) {
|
|
|
161945
162005
|
}
|
|
161946
162006
|
var _t6;
|
|
161947
162007
|
var vn5 = ["-h"];
|
|
161948
|
-
var
|
|
162008
|
+
var j4 = /* @__PURE__ */ Symbol("grepQuery");
|
|
161949
162009
|
|
|
161950
162010
|
class En5 {
|
|
161951
162011
|
constructor() {
|
|
161952
162012
|
this[_t6] = [];
|
|
161953
162013
|
}
|
|
161954
|
-
*[(_t6 =
|
|
161955
|
-
for (const e of this[
|
|
162014
|
+
*[(_t6 = j4, Symbol.iterator)]() {
|
|
162015
|
+
for (const e of this[j4])
|
|
161956
162016
|
yield e;
|
|
161957
162017
|
}
|
|
161958
162018
|
and(...e) {
|
|
161959
|
-
return e.length && this[
|
|
162019
|
+
return e.length && this[j4].push("--and", "(", ...U3(e, "-e"), ")"), this;
|
|
161960
162020
|
}
|
|
161961
162021
|
param(...e) {
|
|
161962
|
-
return this[
|
|
162022
|
+
return this[j4].push(...U3(e, "-e")), this;
|
|
161963
162023
|
}
|
|
161964
162024
|
}
|
|
161965
162025
|
function Sn6(...t) {
|
|
@@ -163702,7 +163762,7 @@ function qs4(t) {
|
|
|
163702
163762
|
};
|
|
163703
163763
|
}
|
|
163704
163764
|
var $t6 = import_promise_deferred.deferred().promise;
|
|
163705
|
-
function
|
|
163765
|
+
function Ws5({
|
|
163706
163766
|
onClose: t = true,
|
|
163707
163767
|
onExit: e = 50
|
|
163708
163768
|
} = {}) {
|
|
@@ -163794,7 +163854,7 @@ function Ys3(t) {
|
|
|
163794
163854
|
return "UNKNOWN";
|
|
163795
163855
|
}
|
|
163796
163856
|
|
|
163797
|
-
class
|
|
163857
|
+
class Qs4 extends O6 {
|
|
163798
163858
|
constructor(e = "") {
|
|
163799
163859
|
const n = Ys3(e);
|
|
163800
163860
|
super(undefined, be5[n].solution?.replace("{message}", e) ?? e), this.reason = n;
|
|
@@ -163810,7 +163870,7 @@ function to5(t = false, e = Js4, n = Zs4) {
|
|
|
163810
163870
|
return (r, s) => !t && r || !e(s) ? r : n(s);
|
|
163811
163871
|
}
|
|
163812
163872
|
function eo5(t, e) {
|
|
163813
|
-
return t === 128 && e.startsWith("fatal:") ? new
|
|
163873
|
+
return t === 128 && e.startsWith("fatal:") ? new Qs4(e) : new O6(undefined, e);
|
|
163814
163874
|
}
|
|
163815
163875
|
function Mt5(t) {
|
|
163816
163876
|
return {
|
|
@@ -163965,7 +164025,7 @@ var wo5 = (t, e) => {
|
|
|
163965
164025
|
const n = new ro5, r = Ge5(t && (typeof t == "string" ? { baseDir: t } : t) || {}, e);
|
|
163966
164026
|
if (!Lt7(r.baseDir))
|
|
163967
164027
|
throw new Ae5(r, "Cannot use simple-git on a directory that does not exist");
|
|
163968
|
-
return Array.isArray(r.config) && n.add(qs4(r.config)), n.add(zs5(r.unsafe)), n.add(
|
|
164028
|
+
return Array.isArray(r.config) && n.add(qs4(r.config)), n.add(zs5(r.unsafe)), n.add(Ws5(r.completion)), r.abort && n.add(Is5(r.abort)), r.progress && n.add(so5(r.progress)), r.timeout && n.add(uo4(r.timeout)), r.spawnOptions && n.add(io5(r.spawnOptions)), n.add(ao4()), n.add(no4(r.input)), n.add(Mt5(to5(true))), r.errors && n.add(Mt5(r.errors)), Xs5(n, r.binary, r.unsafe?.allowUnsafeCustomBinary), n.add(Fs5(r.allowEnvironment ?? [], r.unsafe?.allowAbbreviatedOptions)), new f3(r, n);
|
|
163969
164029
|
};
|
|
163970
164030
|
|
|
163971
164031
|
// src/commands/code_sync/lib/git/git_utils.ts
|