@dhis2/expression-parser 1.1.0-beta.5 → 1.1.0-beta.6
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/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +27 -27
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.mjs +27 -27
- package/KotlinBigInteger-bignum-js-ir.js +143 -143
- package/KotlinBigInteger-bignum-js-ir.mjs +143 -143
- package/expression-parser.js +2586 -2456
- package/expression-parser.js.map +1 -1
- package/expression-parser.mjs +2586 -2456
- package/expression-parser.mjs.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +665 -417
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.mjs +671 -423
- package/kotlin-kotlin-stdlib-js-ir.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +3 -3
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.mjs +3 -3
- package/package.json +1 -1
|
@@ -7,33 +7,33 @@
|
|
|
7
7
|
var LocalDateTime = $module$_js_joda_core_gcv2k.LocalDateTime;
|
|
8
8
|
var ZoneOffset = $module$_js_joda_core_gcv2k.ZoneOffset;
|
|
9
9
|
var ZoneId = $module$_js_joda_core_gcv2k.ZoneId;
|
|
10
|
-
var VOID = kotlin_kotlin.$_$.
|
|
11
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
12
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
13
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
14
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
15
|
-
var Long = kotlin_kotlin.$_$.
|
|
16
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
17
|
-
var toLong = kotlin_kotlin.$_$.
|
|
10
|
+
var VOID = kotlin_kotlin.$_$.d8;
|
|
11
|
+
var protoOf = kotlin_kotlin.$_$.j5;
|
|
12
|
+
var objectCreate = kotlin_kotlin.$_$.h5;
|
|
13
|
+
var objectMeta = kotlin_kotlin.$_$.i5;
|
|
14
|
+
var setMetadataFor = kotlin_kotlin.$_$.k5;
|
|
15
|
+
var Long = kotlin_kotlin.$_$.d7;
|
|
16
|
+
var classMeta = kotlin_kotlin.$_$.l4;
|
|
17
|
+
var toLong = kotlin_kotlin.$_$.l5;
|
|
18
18
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
19
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.x;
|
|
20
|
-
var abs = kotlin_kotlin.$_$.
|
|
21
|
-
var padStart = kotlin_kotlin.$_$.
|
|
20
|
+
var abs = kotlin_kotlin.$_$.n5;
|
|
21
|
+
var padStart = kotlin_kotlin.$_$.j6;
|
|
22
22
|
var IntCompanionObject_getInstance = kotlin_kotlin.$_$.d2;
|
|
23
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
-
var ClosedRange = kotlin_kotlin.$_$.
|
|
26
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
27
|
-
var contains = kotlin_kotlin.$_$.
|
|
23
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.c5;
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.g7;
|
|
25
|
+
var ClosedRange = kotlin_kotlin.$_$.p5;
|
|
26
|
+
var isInterface = kotlin_kotlin.$_$.x4;
|
|
27
|
+
var contains = kotlin_kotlin.$_$.t5;
|
|
28
28
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
29
29
|
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.n;
|
|
30
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
31
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
30
|
+
var captureStack = kotlin_kotlin.$_$.h4;
|
|
31
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.c7;
|
|
32
32
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.s;
|
|
33
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
34
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
35
|
-
var equals = kotlin_kotlin.$_$.
|
|
36
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
33
|
+
var RuntimeException = kotlin_kotlin.$_$.f7;
|
|
34
|
+
var Comparable = kotlin_kotlin.$_$.z6;
|
|
35
|
+
var equals = kotlin_kotlin.$_$.o4;
|
|
36
|
+
var numberToInt = kotlin_kotlin.$_$.f5;
|
|
37
37
|
//endregion
|
|
38
38
|
//region block: pre-declaration
|
|
39
39
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
return new Long(0, 0);
|
|
102
102
|
};
|
|
103
103
|
function allNonpositive($this) {
|
|
104
|
-
return (($this.fe() <= 0 ? $this.ge() <= 0 : false) ? $this.le().
|
|
104
|
+
return (($this.fe() <= 0 ? $this.ge() <= 0 : false) ? $this.le().w(new Long(0, 0)) <= 0 : false) ? !(($this.fe() | $this.ge()) === 0) ? true : !$this.le().equals(new Long(0, 0)) : false;
|
|
105
105
|
}
|
|
106
106
|
function Companion_0() {
|
|
107
107
|
Companion_instance_0 = this;
|
|
@@ -122,22 +122,22 @@
|
|
|
122
122
|
return this.fe() % 12 | 0;
|
|
123
123
|
};
|
|
124
124
|
protoOf(DateTimePeriod).he = function () {
|
|
125
|
-
return this.le().l5(new Long(817405952, 838)).
|
|
125
|
+
return this.le().l5(new Long(817405952, 838)).v();
|
|
126
126
|
};
|
|
127
127
|
protoOf(DateTimePeriod).ie = function () {
|
|
128
|
-
return this.le().c7(new Long(817405952, 838)).l5(new Long(-129542144, 13)).
|
|
128
|
+
return this.le().c7(new Long(817405952, 838)).l5(new Long(-129542144, 13)).v();
|
|
129
129
|
};
|
|
130
130
|
protoOf(DateTimePeriod).je = function () {
|
|
131
131
|
// Inline function 'kotlin.Long.div' call
|
|
132
132
|
var tmp0_div = this.le().c7(new Long(-129542144, 13));
|
|
133
133
|
var tmp1_div = get_NANOS_PER_ONE();
|
|
134
|
-
return tmp0_div.l5(toLong(tmp1_div)).
|
|
134
|
+
return tmp0_div.l5(toLong(tmp1_div)).v();
|
|
135
135
|
};
|
|
136
136
|
protoOf(DateTimePeriod).ke = function () {
|
|
137
137
|
// Inline function 'kotlin.Long.rem' call
|
|
138
138
|
var tmp0_rem = this.le();
|
|
139
139
|
var tmp1_rem = get_NANOS_PER_ONE();
|
|
140
|
-
return tmp0_rem.c7(toLong(tmp1_rem)).
|
|
140
|
+
return tmp0_rem.c7(toLong(tmp1_rem)).v();
|
|
141
141
|
};
|
|
142
142
|
protoOf(DateTimePeriod).toString = function () {
|
|
143
143
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
// Inline function 'kotlin.ranges.contains' call
|
|
224
224
|
var tmp1_contains = numberRangeToNumber(IntCompanionObject_getInstance().MIN_VALUE, IntCompanionObject_getInstance().MAX_VALUE);
|
|
225
225
|
if (contains(isInterface(tmp1_contains, ClosedRange) ? tmp1_contains : THROW_CCE(), totalMonths)) {
|
|
226
|
-
tmp = totalMonths.
|
|
226
|
+
tmp = totalMonths.v();
|
|
227
227
|
} else {
|
|
228
228
|
throw IllegalArgumentException_init_$Create$('The total number of months in ' + years + ' years and ' + months + ' months overflows an Int');
|
|
229
229
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import * as $module$_js_joda_core_gcv2k from '@js-joda/core';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
d8 as VOID,
|
|
4
|
+
j5 as protoOf,
|
|
5
|
+
h5 as objectCreate,
|
|
6
|
+
i5 as objectMeta,
|
|
7
|
+
k5 as setMetadataFor,
|
|
8
|
+
d7 as Long,
|
|
9
|
+
l4 as classMeta,
|
|
10
|
+
l5 as toLong,
|
|
11
11
|
l as StringBuilder_init_$Create$,
|
|
12
12
|
x as _Char___init__impl__6a9atx,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
n5 as abs,
|
|
14
|
+
j6 as padStart,
|
|
15
15
|
d2 as IntCompanionObject_getInstance,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
c5 as numberRangeToNumber,
|
|
17
|
+
g7 as THROW_CCE,
|
|
18
|
+
p5 as ClosedRange,
|
|
19
|
+
x4 as isInterface,
|
|
20
|
+
t5 as contains,
|
|
21
21
|
p as IllegalArgumentException_init_$Create$,
|
|
22
22
|
n as IllegalArgumentException_init_$Init$,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
h4 as captureStack,
|
|
24
|
+
c7 as IllegalArgumentException,
|
|
25
25
|
s as RuntimeException_init_$Init$,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
f7 as RuntimeException,
|
|
27
|
+
z6 as Comparable,
|
|
28
|
+
o4 as equals,
|
|
29
|
+
f5 as numberToInt,
|
|
30
30
|
} from './kotlin-kotlin-stdlib-js-ir.mjs';
|
|
31
31
|
//region block: imports
|
|
32
32
|
var imul = Math.imul;
|
|
@@ -102,7 +102,7 @@ protoOf(DatePeriod).le = function () {
|
|
|
102
102
|
return new Long(0, 0);
|
|
103
103
|
};
|
|
104
104
|
function allNonpositive($this) {
|
|
105
|
-
return (($this.fe() <= 0 ? $this.ge() <= 0 : false) ? $this.le().
|
|
105
|
+
return (($this.fe() <= 0 ? $this.ge() <= 0 : false) ? $this.le().w(new Long(0, 0)) <= 0 : false) ? !(($this.fe() | $this.ge()) === 0) ? true : !$this.le().equals(new Long(0, 0)) : false;
|
|
106
106
|
}
|
|
107
107
|
function Companion_0() {
|
|
108
108
|
Companion_instance_0 = this;
|
|
@@ -123,22 +123,22 @@ protoOf(DateTimePeriod).ne = function () {
|
|
|
123
123
|
return this.fe() % 12 | 0;
|
|
124
124
|
};
|
|
125
125
|
protoOf(DateTimePeriod).he = function () {
|
|
126
|
-
return this.le().l5(new Long(817405952, 838)).
|
|
126
|
+
return this.le().l5(new Long(817405952, 838)).v();
|
|
127
127
|
};
|
|
128
128
|
protoOf(DateTimePeriod).ie = function () {
|
|
129
|
-
return this.le().c7(new Long(817405952, 838)).l5(new Long(-129542144, 13)).
|
|
129
|
+
return this.le().c7(new Long(817405952, 838)).l5(new Long(-129542144, 13)).v();
|
|
130
130
|
};
|
|
131
131
|
protoOf(DateTimePeriod).je = function () {
|
|
132
132
|
// Inline function 'kotlin.Long.div' call
|
|
133
133
|
var tmp0_div = this.le().c7(new Long(-129542144, 13));
|
|
134
134
|
var tmp1_div = get_NANOS_PER_ONE();
|
|
135
|
-
return tmp0_div.l5(toLong(tmp1_div)).
|
|
135
|
+
return tmp0_div.l5(toLong(tmp1_div)).v();
|
|
136
136
|
};
|
|
137
137
|
protoOf(DateTimePeriod).ke = function () {
|
|
138
138
|
// Inline function 'kotlin.Long.rem' call
|
|
139
139
|
var tmp0_rem = this.le();
|
|
140
140
|
var tmp1_rem = get_NANOS_PER_ONE();
|
|
141
|
-
return tmp0_rem.c7(toLong(tmp1_rem)).
|
|
141
|
+
return tmp0_rem.c7(toLong(tmp1_rem)).v();
|
|
142
142
|
};
|
|
143
143
|
protoOf(DateTimePeriod).toString = function () {
|
|
144
144
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -224,7 +224,7 @@ function totalMonths(years, months) {
|
|
|
224
224
|
// Inline function 'kotlin.ranges.contains' call
|
|
225
225
|
var tmp1_contains = numberRangeToNumber(IntCompanionObject_getInstance().MIN_VALUE, IntCompanionObject_getInstance().MAX_VALUE);
|
|
226
226
|
if (contains(isInterface(tmp1_contains, ClosedRange) ? tmp1_contains : THROW_CCE(), totalMonths)) {
|
|
227
|
-
tmp = totalMonths.
|
|
227
|
+
tmp = totalMonths.v();
|
|
228
228
|
} else {
|
|
229
229
|
throw IllegalArgumentException_init_$Create$('The total number of months in ' + years + ' years and ' + months + ' months overflows an Int');
|
|
230
230
|
}
|