@dhis2/expression-parser 1.1.7 → 1.1.9
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/expression-parser.js +99 -83
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +99 -83
- package/expression-parser.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/package.json +1 -1
package/expression-parser.mjs
CHANGED
|
@@ -417,7 +417,7 @@ function d2_concatenate(values) {
|
|
|
417
417
|
return joinToString(filterNotNull(values), '');
|
|
418
418
|
}
|
|
419
419
|
function d2_count(value) {
|
|
420
|
-
var tmp1_safe_receiver = value == null ? null : value.
|
|
420
|
+
var tmp1_safe_receiver = value == null ? null : value.c1c_1;
|
|
421
421
|
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o();
|
|
422
422
|
return tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs;
|
|
423
423
|
}
|
|
@@ -429,7 +429,7 @@ function d2_countIfValue(value, sample) {
|
|
|
429
429
|
var tmp$ret$0;
|
|
430
430
|
$l$block: {
|
|
431
431
|
// Inline function 'kotlin.collections.count' call
|
|
432
|
-
var this_0 = value.
|
|
432
|
+
var this_0 = value.c1c_1;
|
|
433
433
|
var tmp_0;
|
|
434
434
|
if (isInterface(this_0, Collection)) {
|
|
435
435
|
tmp_0 = this_0.m();
|
|
@@ -457,7 +457,7 @@ function d2_countIfValue(value, sample) {
|
|
|
457
457
|
return tmp;
|
|
458
458
|
}
|
|
459
459
|
function d2_countIfZeroPos(value) {
|
|
460
|
-
var tmp1_safe_receiver = value == null ? null : value.
|
|
460
|
+
var tmp1_safe_receiver = value == null ? null : value.c1c_1;
|
|
461
461
|
var tmp;
|
|
462
462
|
if (tmp1_safe_receiver == null) {
|
|
463
463
|
tmp = null;
|
|
@@ -529,7 +529,7 @@ function d2_hasUserRole(role, roles) {
|
|
|
529
529
|
return roles.r(role);
|
|
530
530
|
}
|
|
531
531
|
function d2_hasValue(value) {
|
|
532
|
-
return !((value == null ? null : value.
|
|
532
|
+
return !((value == null ? null : value.b1c_1) == null);
|
|
533
533
|
}
|
|
534
534
|
function d2_inOrgUnitGroup(group, orgUnit, supplementaryValues) {
|
|
535
535
|
// Inline function 'kotlin.collections.get' call
|
|
@@ -538,7 +538,7 @@ function d2_inOrgUnitGroup(group, orgUnit, supplementaryValues) {
|
|
|
538
538
|
if (orgUnit == null) {
|
|
539
539
|
tmp = '';
|
|
540
540
|
} else {
|
|
541
|
-
var tmp0_safe_receiver = orgUnit.
|
|
541
|
+
var tmp0_safe_receiver = orgUnit.b1c_1;
|
|
542
542
|
tmp = tmp0_safe_receiver == null ? null : replace(tmp0_safe_receiver, "'", '');
|
|
543
543
|
}
|
|
544
544
|
var uid = tmp;
|
|
@@ -546,10 +546,10 @@ function d2_inOrgUnitGroup(group, orgUnit, supplementaryValues) {
|
|
|
546
546
|
}
|
|
547
547
|
function d2_lastEventDate(value) {
|
|
548
548
|
var tmp;
|
|
549
|
-
if ((value == null ? null : value.
|
|
549
|
+
if ((value == null ? null : value.d1c_1) == null) {
|
|
550
550
|
tmp = null;
|
|
551
551
|
} else {
|
|
552
|
-
tmp = Companion_getInstance_1().ul(value.
|
|
552
|
+
tmp = Companion_getInstance_1().ul(value.d1c_1);
|
|
553
553
|
}
|
|
554
554
|
return tmp;
|
|
555
555
|
}
|
|
@@ -577,7 +577,7 @@ function d2_maxValue(value) {
|
|
|
577
577
|
var tmp$ret$0;
|
|
578
578
|
$l$block: {
|
|
579
579
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
580
|
-
var iterator = value.
|
|
580
|
+
var iterator = value.c1c_1.j();
|
|
581
581
|
if (!iterator.k()) {
|
|
582
582
|
tmp$ret$0 = null;
|
|
583
583
|
break $l$block;
|
|
@@ -623,7 +623,7 @@ function d2_minValue(value) {
|
|
|
623
623
|
var tmp$ret$0;
|
|
624
624
|
$l$block: {
|
|
625
625
|
// Inline function 'kotlin.collections.minOfOrNull' call
|
|
626
|
-
var iterator = value.
|
|
626
|
+
var iterator = value.c1c_1.j();
|
|
627
627
|
if (!iterator.k()) {
|
|
628
628
|
tmp$ret$0 = null;
|
|
629
629
|
break $l$block;
|
|
@@ -3886,7 +3886,7 @@ protoOf(Companion_7).z1b = function (value) {
|
|
|
3886
3886
|
if (value == null)
|
|
3887
3887
|
return null;
|
|
3888
3888
|
if (value instanceof VariableValue)
|
|
3889
|
-
return this.z1b(this.y1b(value));
|
|
3889
|
+
return value.b1c_1 == null ? null : this.z1b(this.y1b(value));
|
|
3890
3890
|
if (value instanceof LocalDate)
|
|
3891
3891
|
return value;
|
|
3892
3892
|
if (!(value == null) ? typeof value === 'string' : false)
|
|
@@ -3895,11 +3895,11 @@ protoOf(Companion_7).z1b = function (value) {
|
|
|
3895
3895
|
return toLocalDateTime(value, Companion_getInstance_2().dm()).am();
|
|
3896
3896
|
throw IllegalArgumentException_init_$Create$("Count not coerce to date: '" + toString_0(value) + "'");
|
|
3897
3897
|
};
|
|
3898
|
-
protoOf(Companion_7).
|
|
3898
|
+
protoOf(Companion_7).e1c = function (value) {
|
|
3899
3899
|
if (value == null)
|
|
3900
3900
|
return null;
|
|
3901
3901
|
if (value instanceof VariableValue)
|
|
3902
|
-
return this.
|
|
3902
|
+
return this.e1c(this.y1b(value));
|
|
3903
3903
|
if (isNumber(value))
|
|
3904
3904
|
return isNonFractionValue(this, value) ? numberToInt(value).toString() : toString(value);
|
|
3905
3905
|
return toString(value);
|
|
@@ -3909,7 +3909,7 @@ protoOf(Companion_7).y1b = function (value) {
|
|
|
3909
3909
|
return null;
|
|
3910
3910
|
var tmp;
|
|
3911
3911
|
if (value instanceof VariableValue) {
|
|
3912
|
-
switch (value.
|
|
3912
|
+
switch (value.a1c_1.h2_1) {
|
|
3913
3913
|
case 1:
|
|
3914
3914
|
tmp = this.s13(value.f1c());
|
|
3915
3915
|
break;
|
|
@@ -3920,7 +3920,7 @@ protoOf(Companion_7).y1b = function (value) {
|
|
|
3920
3920
|
tmp = this.z1b(value.f1c());
|
|
3921
3921
|
break;
|
|
3922
3922
|
default:
|
|
3923
|
-
tmp = this.
|
|
3923
|
+
tmp = this.e1c(value.f1c());
|
|
3924
3924
|
break;
|
|
3925
3925
|
}
|
|
3926
3926
|
} else {
|
|
@@ -4056,7 +4056,7 @@ function Api$validate$lambda($data) {
|
|
|
4056
4056
|
var value = $data.s10_1.d2(variable.c15(0).v14());
|
|
4057
4057
|
var tmp;
|
|
4058
4058
|
if (!(value == null)) {
|
|
4059
|
-
(variable instanceof VariableNode ? variable : THROW_CCE()).s19(value.
|
|
4059
|
+
(variable instanceof VariableNode ? variable : THROW_CCE()).s19(value.a1c_1);
|
|
4060
4060
|
tmp = Unit_instance;
|
|
4061
4061
|
}
|
|
4062
4062
|
return Unit_instance;
|
|
@@ -4611,7 +4611,7 @@ function Calculator$evalNode$ref_0($boundThis) {
|
|
|
4611
4611
|
}
|
|
4612
4612
|
function Typed$Companion$toStringTypeCoercion$ref($boundThis) {
|
|
4613
4613
|
var l = function (p0) {
|
|
4614
|
-
return $boundThis.
|
|
4614
|
+
return $boundThis.e1c(p0);
|
|
4615
4615
|
};
|
|
4616
4616
|
l.callableName = 'toStringTypeCoercion';
|
|
4617
4617
|
return l;
|
|
@@ -4782,155 +4782,171 @@ protoOf(Calculator).z1c = function (fn) {
|
|
|
4782
4782
|
if (fnInfo === NamedFunction_subExpression_getInstance()) {
|
|
4783
4783
|
tmp = null;
|
|
4784
4784
|
} else {
|
|
4785
|
+
var tmp_0;
|
|
4785
4786
|
switch (fnInfo.h2_1) {
|
|
4786
4787
|
case 0:
|
|
4787
|
-
|
|
4788
|
+
tmp_0 = this.r1c_1.px(this.w1c(fn.c15(0)), drop(evalToStrings(this, fn.f15()), 1));
|
|
4788
4789
|
break;
|
|
4789
4790
|
case 1:
|
|
4790
|
-
|
|
4791
|
+
tmp_0 = this.r1c_1.qx(this.w1c(fn.c15(0)), drop(evalToStrings(this, fn.f15()), 1));
|
|
4791
4792
|
break;
|
|
4792
4793
|
case 2:
|
|
4793
|
-
|
|
4794
|
+
tmp_0 = this.r1c_1.rx(evalToMixed_0(this, fn.f15()));
|
|
4794
4795
|
break;
|
|
4795
4796
|
case 3:
|
|
4796
|
-
|
|
4797
|
+
tmp_0 = this.r1c_1.sx(evalToNumbers(this, fn.f15()));
|
|
4797
4798
|
break;
|
|
4798
4799
|
case 4:
|
|
4799
|
-
|
|
4800
|
+
tmp_0 = this.r1c_1.tx(this.v1c(fn.c15(0)), evalToMixed(this, fn.c15(1)), evalToMixed(this, fn.c15(2)));
|
|
4800
4801
|
break;
|
|
4801
4802
|
case 5:
|
|
4802
|
-
|
|
4803
|
+
tmp_0 = this.r1c_1.ux(evalToMixed(this, fn.c15(0)));
|
|
4803
4804
|
break;
|
|
4804
4805
|
case 6:
|
|
4805
|
-
|
|
4806
|
+
tmp_0 = this.r1c_1.vx(evalToMixed(this, fn.c15(0)));
|
|
4806
4807
|
break;
|
|
4807
4808
|
case 7:
|
|
4808
|
-
|
|
4809
|
+
tmp_0 = this.r1c_1.wx(evalToNumbers(this, fn.f15()));
|
|
4809
4810
|
break;
|
|
4810
4811
|
case 8:
|
|
4811
|
-
|
|
4812
|
+
tmp_0 = fn.b15() === 1 ? this.r1c_1.xx(this.u1c(fn.c15(0))) : this.r1c_1.xx(this.u1c(fn.c15(0))) / this.r1c_1.xx(this.u1c(fn.c15(1)));
|
|
4812
4813
|
break;
|
|
4813
4814
|
case 9:
|
|
4814
|
-
|
|
4815
|
+
tmp_0 = this.r1c_1.yx(this.u1c(fn.c15(0)));
|
|
4815
4816
|
break;
|
|
4816
4817
|
case 14:
|
|
4817
|
-
|
|
4818
|
+
tmp_0 = this.r1c_1.zx(this.u1c(fn.c15(0)));
|
|
4818
4819
|
break;
|
|
4819
4820
|
case 29:
|
|
4820
|
-
|
|
4821
|
+
tmp_0 = this.r1c_1.ny(this.a1d(fn.c15(0)), this.u1c(fn.c15(1)));
|
|
4821
4822
|
break;
|
|
4822
4823
|
case 30:
|
|
4823
|
-
|
|
4824
|
+
tmp_0 = this.r1c_1.oy(this.u1c(fn.c15(0)));
|
|
4824
4825
|
break;
|
|
4825
4826
|
case 31:
|
|
4826
|
-
|
|
4827
|
+
tmp_0 = this.r1c_1.py(evalToStrings(this, fn.f15()));
|
|
4827
4828
|
break;
|
|
4828
4829
|
case 33:
|
|
4829
|
-
|
|
4830
|
+
tmp_0 = this.r1c_1.px(this.w1c(fn.c15(0)), drop(evalToStrings(this, fn.f15()), 1));
|
|
4830
4831
|
break;
|
|
4831
4832
|
case 34:
|
|
4832
|
-
|
|
4833
|
+
tmp_0 = this.r1c_1.qx(this.w1c(fn.c15(0)), drop(evalToStrings(this, fn.f15()), 1));
|
|
4833
4834
|
break;
|
|
4834
4835
|
case 35:
|
|
4835
|
-
|
|
4836
|
+
tmp_0 = this.r1c_1.qy(evalToVar(this, fn.c15(0)));
|
|
4836
4837
|
break;
|
|
4837
4838
|
case 37:
|
|
4838
|
-
|
|
4839
|
+
tmp_0 = this.r1c_1.ry(evalToVar(this, fn.c15(0)), this.w1c(fn.c15(1)));
|
|
4839
4840
|
break;
|
|
4840
4841
|
case 38:
|
|
4841
|
-
|
|
4842
|
+
tmp_0 = this.r1c_1.sy(evalToVar(this, fn.c15(0)));
|
|
4842
4843
|
break;
|
|
4843
4844
|
case 39:
|
|
4844
|
-
|
|
4845
|
+
tmp_0 = this.r1c_1.ty(this.a1d(fn.c15(0)), this.a1d(fn.c15(1)));
|
|
4845
4846
|
break;
|
|
4846
4847
|
case 40:
|
|
4847
|
-
|
|
4848
|
+
tmp_0 = this.r1c_1.uy(this.w1c(fn.c15(0)), this.w1c(fn.c15(1)));
|
|
4848
4849
|
break;
|
|
4849
4850
|
case 41:
|
|
4850
|
-
|
|
4851
|
+
tmp_0 = this.r1c_1.vy(this.u1c(fn.c15(0)));
|
|
4851
4852
|
break;
|
|
4852
4853
|
case 42:
|
|
4853
|
-
|
|
4854
|
+
tmp_0 = this.r1c_1.wy(this.w1c(fn.c15(0)), this.s1c_1.u10_1.d2('USER'));
|
|
4854
4855
|
break;
|
|
4855
4856
|
case 43:
|
|
4856
|
-
|
|
4857
|
+
var tmp_1;
|
|
4858
|
+
try {
|
|
4859
|
+
tmp_1 = this.r1c_1.xy(evalToVar(this, fn.c15(0)));
|
|
4860
|
+
} catch ($p) {
|
|
4861
|
+
var tmp_2;
|
|
4862
|
+
if ($p instanceof IllegalExpressionException) {
|
|
4863
|
+
var e = $p;
|
|
4864
|
+
tmp_2 = false;
|
|
4865
|
+
} else {
|
|
4866
|
+
throw $p;
|
|
4867
|
+
}
|
|
4868
|
+
tmp_1 = tmp_2;
|
|
4869
|
+
}
|
|
4870
|
+
|
|
4871
|
+
tmp_0 = tmp_1;
|
|
4857
4872
|
break;
|
|
4858
4873
|
case 44:
|
|
4859
|
-
|
|
4874
|
+
tmp_0 = this.r1c_1.yy(this.w1c(fn.c15(0)), this.s1c_1.s10_1.d2('org_unit'), this.s1c_1.u10_1);
|
|
4860
4875
|
break;
|
|
4861
4876
|
case 45:
|
|
4862
|
-
|
|
4877
|
+
tmp_0 = this.r1c_1.zy(evalToVar(this, fn.c15(0)));
|
|
4863
4878
|
break;
|
|
4864
4879
|
case 46:
|
|
4865
|
-
|
|
4880
|
+
tmp_0 = this.r1c_1.az(this.w1c(fn.c15(0)), evalToInteger(this, fn.c15(1)));
|
|
4866
4881
|
break;
|
|
4867
4882
|
case 47:
|
|
4868
|
-
|
|
4883
|
+
tmp_0 = this.r1c_1.bz(this.w1c(fn.c15(0)));
|
|
4869
4884
|
break;
|
|
4870
4885
|
case 48:
|
|
4871
|
-
|
|
4886
|
+
tmp_0 = this.r1c_1.cz(evalToVar(this, fn.c15(0)));
|
|
4872
4887
|
break;
|
|
4873
4888
|
case 49:
|
|
4874
|
-
|
|
4889
|
+
tmp_0 = this.r1c_1.dz(this.a1d(fn.c15(0)), this.a1d(fn.c15(1)));
|
|
4875
4890
|
break;
|
|
4876
4891
|
case 50:
|
|
4877
|
-
|
|
4892
|
+
tmp_0 = this.r1c_1.ez(evalToVar(this, fn.c15(0)));
|
|
4878
4893
|
break;
|
|
4879
4894
|
case 51:
|
|
4880
|
-
|
|
4895
|
+
tmp_0 = this.r1c_1.fz(this.u1c(fn.c15(0)), this.u1c(fn.c15(1)));
|
|
4881
4896
|
break;
|
|
4882
4897
|
case 52:
|
|
4883
|
-
|
|
4898
|
+
tmp_0 = this.r1c_1.gz(this.a1d(fn.c15(0)), this.a1d(fn.c15(1)));
|
|
4884
4899
|
break;
|
|
4885
4900
|
case 53:
|
|
4886
|
-
|
|
4901
|
+
tmp_0 = this.r1c_1.hz(this.u1c(fn.c15(0)));
|
|
4887
4902
|
break;
|
|
4888
4903
|
case 55:
|
|
4889
|
-
|
|
4904
|
+
tmp_0 = this.r1c_1.iz(this.w1c(fn.c15(0)), evalToInteger(this, fn.c15(1)));
|
|
4890
4905
|
break;
|
|
4891
4906
|
case 56:
|
|
4892
|
-
|
|
4907
|
+
tmp_0 = this.r1c_1.jz(this.u1c(fn.c15(0)), fn.b15() <= 1 ? 0 : evalToInteger(this, fn.c15(1)));
|
|
4893
4908
|
break;
|
|
4894
4909
|
case 57:
|
|
4895
|
-
|
|
4910
|
+
tmp_0 = this.r1c_1.kz(this.w1c(fn.c15(0)), this.w1c(fn.c15(1)), evalToInteger(this, fn.c15(2)));
|
|
4896
4911
|
break;
|
|
4897
4912
|
case 58:
|
|
4898
|
-
|
|
4913
|
+
tmp_0 = this.r1c_1.lz(this.w1c(fn.c15(0)), evalToInteger(this, fn.c15(1)), evalToInteger(this, fn.c15(2)));
|
|
4899
4914
|
break;
|
|
4900
4915
|
case 59:
|
|
4901
|
-
|
|
4916
|
+
tmp_0 = this.r1c_1.mz(this.w1c(fn.c15(0)), this.w1c(fn.c15(1)));
|
|
4902
4917
|
break;
|
|
4903
4918
|
case 60:
|
|
4904
|
-
|
|
4919
|
+
tmp_0 = this.r1c_1.nz(this.a1d(fn.c15(0)), this.a1d(fn.c15(1)));
|
|
4905
4920
|
break;
|
|
4906
4921
|
case 61:
|
|
4907
|
-
|
|
4922
|
+
tmp_0 = this.r1c_1.oz(this.a1d(fn.c15(0)), this.a1d(fn.c15(1)));
|
|
4908
4923
|
break;
|
|
4909
4924
|
case 62:
|
|
4910
|
-
|
|
4925
|
+
tmp_0 = this.r1c_1.pz(this.u1c(fn.c15(0)));
|
|
4911
4926
|
break;
|
|
4912
4927
|
case 63:
|
|
4913
|
-
|
|
4928
|
+
tmp_0 = this.r1c_1.qz(evalToNumbers(this, fn.f15()));
|
|
4914
4929
|
break;
|
|
4915
4930
|
case 64:
|
|
4916
|
-
|
|
4931
|
+
tmp_0 = this.r1c_1.rz(this.u1c(fn.c15(0)), this.u1c(fn.c15(1)), this.w1c(fn.c15(2)));
|
|
4917
4932
|
break;
|
|
4918
4933
|
case 65:
|
|
4919
|
-
|
|
4934
|
+
tmp_0 = this.r1c_1.sz(this.u1c(fn.c15(0)), this.u1c(fn.c15(1)), this.w1c(fn.c15(2)));
|
|
4920
4935
|
break;
|
|
4921
4936
|
case 66:
|
|
4922
|
-
|
|
4937
|
+
tmp_0 = this.r1c_1.tz(this.u1c(fn.c15(0)), this.u1c(fn.c15(1)), this.w1c(fn.c15(2)));
|
|
4923
4938
|
break;
|
|
4924
4939
|
case 27:
|
|
4925
|
-
|
|
4940
|
+
tmp_0 = this.r1c_1.ly(this.u1c(fn.c15(0)), fn.b15() > 1 ? this.u1c(fn.c15(1)) : evalAggFunction(this, (new FunctionNode(NodeType_FUNCTION_getInstance(), 'avg')).s14(fn.c15(0))), fn.b15() > 2 ? this.u1c(fn.c15(2)) : evalAggFunction(this, (new FunctionNode(NodeType_FUNCTION_getInstance(), 'stddev')).s14(fn.c15(0))));
|
|
4926
4941
|
break;
|
|
4927
4942
|
case 28:
|
|
4928
|
-
|
|
4943
|
+
tmp_0 = this.r1c_1.my(this.u1c(fn.c15(0)), fn.b15() > 1 ? this.u1c(fn.c15(1)) : evalAggFunction(this, (new FunctionNode(NodeType_FUNCTION_getInstance(), 'avg')).s14(fn.c15(0))), fn.b15() > 2 ? this.u1c(fn.c15(2)) : evalAggFunction(this, (new FunctionNode(NodeType_FUNCTION_getInstance(), 'stddev')).s14(fn.c15(0))));
|
|
4929
4944
|
break;
|
|
4930
4945
|
default:
|
|
4931
|
-
|
|
4946
|
+
tmp_0 = this.r1c_1.ox(fnInfo.k14());
|
|
4932
4947
|
break;
|
|
4933
4948
|
}
|
|
4949
|
+
tmp = tmp_0;
|
|
4934
4950
|
}
|
|
4935
4951
|
return tmp;
|
|
4936
4952
|
};
|
|
@@ -11889,32 +11905,32 @@ function VariableValue_init_$Create$(valueType) {
|
|
|
11889
11905
|
return VariableValue_init_$Init$(valueType, objectCreate(protoOf(VariableValue)));
|
|
11890
11906
|
}
|
|
11891
11907
|
function VariableValue(valueType, value, candidates, eventDate) {
|
|
11892
|
-
this.
|
|
11893
|
-
this.
|
|
11894
|
-
this.
|
|
11895
|
-
this.
|
|
11908
|
+
this.a1c_1 = valueType;
|
|
11909
|
+
this.b1c_1 = value;
|
|
11910
|
+
this.c1c_1 = candidates;
|
|
11911
|
+
this.d1c_1 = eventDate;
|
|
11896
11912
|
// Inline function 'kotlin.require' call
|
|
11897
11913
|
// Inline function 'kotlin.contracts.contract' call
|
|
11898
11914
|
// Inline function 'kotlin.require' call
|
|
11899
11915
|
// Inline function 'kotlin.contracts.contract' call
|
|
11900
|
-
if (!(!this.
|
|
11916
|
+
if (!(!this.a1c_1.equals(ValueType_SAME_getInstance()) && !this.a1c_1.equals(ValueType_MIXED_getInstance()))) {
|
|
11901
11917
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
11902
11918
|
var message = 'Failed requirement.';
|
|
11903
11919
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
11904
11920
|
}
|
|
11905
11921
|
}
|
|
11906
11922
|
protoOf(VariableValue).f1c = function () {
|
|
11907
|
-
var tmp0_elvis_lhs = this.
|
|
11908
|
-
return tmp0_elvis_lhs == null ? this.
|
|
11923
|
+
var tmp0_elvis_lhs = this.b1c_1;
|
|
11924
|
+
return tmp0_elvis_lhs == null ? this.a1c_1.t1g_1 : tmp0_elvis_lhs;
|
|
11909
11925
|
};
|
|
11910
11926
|
protoOf(VariableValue).toString = function () {
|
|
11911
|
-
return 'VariableValue(valueType=' + this.
|
|
11927
|
+
return 'VariableValue(valueType=' + this.a1c_1.toString() + ', value=' + this.b1c_1 + ', candidates=' + toString(this.c1c_1) + ', eventDate=' + this.d1c_1 + ')';
|
|
11912
11928
|
};
|
|
11913
11929
|
protoOf(VariableValue).hashCode = function () {
|
|
11914
|
-
var result = this.
|
|
11915
|
-
result = imul(result, 31) + (this.
|
|
11916
|
-
result = imul(result, 31) + hashCode(this.
|
|
11917
|
-
result = imul(result, 31) + (this.
|
|
11930
|
+
var result = this.a1c_1.hashCode();
|
|
11931
|
+
result = imul(result, 31) + (this.b1c_1 == null ? 0 : getStringHashCode(this.b1c_1)) | 0;
|
|
11932
|
+
result = imul(result, 31) + hashCode(this.c1c_1) | 0;
|
|
11933
|
+
result = imul(result, 31) + (this.d1c_1 == null ? 0 : getStringHashCode(this.d1c_1)) | 0;
|
|
11918
11934
|
return result;
|
|
11919
11935
|
};
|
|
11920
11936
|
protoOf(VariableValue).equals = function (other) {
|
|
@@ -11923,13 +11939,13 @@ protoOf(VariableValue).equals = function (other) {
|
|
|
11923
11939
|
if (!(other instanceof VariableValue))
|
|
11924
11940
|
return false;
|
|
11925
11941
|
var tmp0_other_with_cast = other instanceof VariableValue ? other : THROW_CCE();
|
|
11926
|
-
if (!this.
|
|
11942
|
+
if (!this.a1c_1.equals(tmp0_other_with_cast.a1c_1))
|
|
11927
11943
|
return false;
|
|
11928
|
-
if (!(this.
|
|
11944
|
+
if (!(this.b1c_1 == tmp0_other_with_cast.b1c_1))
|
|
11929
11945
|
return false;
|
|
11930
|
-
if (!equals(this.
|
|
11946
|
+
if (!equals(this.c1c_1, tmp0_other_with_cast.c1c_1))
|
|
11931
11947
|
return false;
|
|
11932
|
-
if (!(this.
|
|
11948
|
+
if (!(this.d1c_1 == tmp0_other_with_cast.d1c_1))
|
|
11933
11949
|
return false;
|
|
11934
11950
|
return true;
|
|
11935
11951
|
};
|
|
@@ -13145,9 +13161,9 @@ function ExpressionGrammar() {
|
|
|
13145
13161
|
this.y11_1 = listOf([fn(this, NamedFunction_orgUnit_ancestor_getInstance(), [this.h11_1.t1j()]), fn(this, NamedFunction_orgUnit_dataSet_getInstance(), [this.h11_1.t1j()]), fn(this, NamedFunction_orgUnit_group_getInstance(), [this.h11_1.t1j()]), fn(this, NamedFunction_orgUnit_program_getInstance(), [this.h11_1.t1j()])]);
|
|
13146
13162
|
this.z11_1 = listOf([fn(this, NamedFunction_avg_getInstance(), [this.k11_1]), fn(this, NamedFunction_count_getInstance(), [this.k11_1]), fn(this, NamedFunction_max_getInstance(), [this.k11_1]), fn(this, NamedFunction_min_getInstance(), [this.k11_1]), fn(this, NamedFunction_stddev_getInstance(), [this.k11_1]), fn(this, NamedFunction_sum_getInstance(), [this.k11_1])]);
|
|
13147
13163
|
this.a12_1 = listOf([fn(this, NamedFunction_median_getInstance(), [this.k11_1]), fn(this, NamedFunction_percentileCont_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_stddevPop_getInstance(), [this.k11_1]), fn(this, NamedFunction_stddevSamp_getInstance(), [this.k11_1]), fn(this, NamedFunction_variance_getInstance(), [this.k11_1])]);
|
|
13148
|
-
this.b12_1 = listOf([fn(this, NamedFunction_d2_contains_getInstance(), [this.k11_1, this.k11_1.t1j()]), fn(this, NamedFunction_d2_containsItems_getInstance(), [this.k11_1, this.k11_1.t1j()]), fn(this, NamedFunction_d2_count_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_countIfValue_getInstance(), [this.l11_1, this.k11_1]), fn(this, NamedFunction_d2_daysBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_hasValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_maxValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_minValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_monthsBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_oizp_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_weeksBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_yearsBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_zing_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_zpvc_getInstance(), [this.k11_1.t1j()])]);
|
|
13164
|
+
this.b12_1 = listOf([fn(this, NamedFunction_d2_condition_getInstance(), [this.f11_1, this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_contains_getInstance(), [this.k11_1, this.k11_1.t1j()]), fn(this, NamedFunction_d2_containsItems_getInstance(), [this.k11_1, this.k11_1.t1j()]), fn(this, NamedFunction_d2_count_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_countIfValue_getInstance(), [this.l11_1, this.k11_1]), fn(this, NamedFunction_d2_daysBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_hasValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_maxValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_minValue_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_monthsBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_oizp_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_weeksBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_yearsBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_zing_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_zpvc_getInstance(), [this.k11_1.t1j()])]);
|
|
13149
13165
|
this.c12_1 = listOf([fn(this, NamedFunction_d2_addDays_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_ceil_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_concatenate_getInstance(), [this.k11_1.t1j()]), fn(this, NamedFunction_d2_countIfZeroPos_getInstance(), [this.l11_1]), fn(this, NamedFunction_d2_extractDataMatrixValue_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_floor_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_hasUserRole_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_inOrgUnitGroup_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_lastEventDate_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_left_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_length_getInstance(), [this.k11_1]), fn(this, NamedFunction_d2_modulus_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_right_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_round_getInstance(), [this.k11_1, this.g11_1.s1j()]), fn(this, NamedFunction_d2_split_getInstance(), [this.k11_1, this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_substring_getInstance(), [this.k11_1, this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_validatePattern_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_zScoreHFA_getInstance(), [this.k11_1, this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_zScoreWFA_getInstance(), [this.k11_1, this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_zScoreWFH_getInstance(), [this.k11_1, this.k11_1, this.k11_1])]);
|
|
13150
|
-
this.d12_1 = listOf([fn(this,
|
|
13166
|
+
this.d12_1 = listOf([fn(this, NamedFunction_d2_countIfCondition_getInstance(), [this.k11_1, this.f11_1]), fn(this, NamedFunction_d2_minutesBetween_getInstance(), [this.k11_1, this.k11_1]), fn(this, NamedFunction_d2_relationshipCount_getInstance(), [this.h11_1.u1j().s1j()])]);
|
|
13151
13167
|
this.e12_1 = listOf([Companion_instance_19.e1k(NodeType_NULL_getInstance(), 'null'), Companion_instance_19.e1k(NodeType_BOOLEAN_getInstance(), 'true'), Companion_instance_19.e1k(NodeType_BOOLEAN_getInstance(), 'false')]);
|
|
13152
13168
|
this.f12_1 = this.m11_1.k1j(DataItemType_DATA_ELEMENT_getInstance().s1b_1);
|
|
13153
13169
|
this.g12_1 = this.n11_1.k1j(DataItemType_ATTRIBUTE_getInstance().s1b_1);
|