@tuprolog/arg2p-core 0.13.0 → 0.13.2
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/2p-core.js +15 -15
- package/2p-solve-classic.js +6 -6
- package/2p-solve.js +48 -32
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +5 -5
- package/2p-unify.js +5 -5
- package/2p-utils.js +7 -7
- package/README.md +1 -1
- package/kotlin-kotlin-stdlib.js +148 -63
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +19 -19
- package/package.json +1 -1
package/2p-theory.js
CHANGED
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
var isInterface = kotlin_kotlin.$_$.t5;
|
|
55
55
|
var KProperty1 = kotlin_kotlin.$_$.t6;
|
|
56
56
|
var getPropertyCallableRef = kotlin_kotlin.$_$.j5;
|
|
57
|
-
var lazy = kotlin_kotlin.$_$.
|
|
57
|
+
var lazy = kotlin_kotlin.$_$.z9;
|
|
58
58
|
var CoroutineImpl = kotlin_kotlin.$_$.e4;
|
|
59
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
59
|
+
var THROW_CCE = kotlin_kotlin.$_$.u9;
|
|
60
60
|
var SequenceScope = kotlin_kotlin.$_$.u6;
|
|
61
61
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d4;
|
|
62
62
|
var initMetadataForLambda = kotlin_kotlin.$_$.p5;
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.d;
|
|
77
77
|
var minOrNull = kotlin_kotlin.$_$.y2;
|
|
78
78
|
var map = kotlin_kotlin.$_$.r7;
|
|
79
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
79
|
+
var ensureNotNull = kotlin_kotlin.$_$.x9;
|
|
80
80
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
81
81
|
var sum = kotlin_kotlin.$_$.z7;
|
|
82
82
|
var Collection = kotlin_kotlin.$_$.k1;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
var flatMap = kotlin_kotlin.$_$.j7;
|
|
92
92
|
var sequenceOf_0 = kotlin_kotlin.$_$.x7;
|
|
93
93
|
var firstOrNull = kotlin_kotlin.$_$.h7;
|
|
94
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
94
|
+
var NotImplementedError = kotlin_kotlin.$_$.p9;
|
|
95
95
|
var take = kotlin_kotlin.$_$.b8;
|
|
96
96
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
97
97
|
var get_ONE = kotlin_kotlin.$_$.g4;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
var listOf_0 = kotlin_kotlin.$_$.t2;
|
|
119
119
|
var none_0 = kotlin_kotlin.$_$.h3;
|
|
120
120
|
var dequeOf_1 = kotlin_it_unibo_tuprolog_utils.$_$.w;
|
|
121
|
-
var Pair = kotlin_kotlin.$_$.
|
|
121
|
+
var Pair = kotlin_kotlin.$_$.s9;
|
|
122
122
|
var toMutableList = kotlin_kotlin.$_$.z3;
|
|
123
123
|
var toMutableList_0 = kotlin_kotlin.$_$.f8;
|
|
124
124
|
var addFirst_0 = kotlin_it_unibo_tuprolog_utils.$_$.o;
|
package/2p-unify.js
CHANGED
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_core.$_$.r;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.d;
|
|
30
30
|
var toCollection = kotlin_kotlin.$_$.c8;
|
|
31
|
-
var Pair = kotlin_kotlin.$_$.
|
|
31
|
+
var Pair = kotlin_kotlin.$_$.s9;
|
|
32
32
|
var VOID = kotlin_kotlin.$_$.b;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.z9;
|
|
34
34
|
var protoOf = kotlin_kotlin.$_$.b6;
|
|
35
35
|
var asSequence_0 = kotlin_kotlin.$_$.v1;
|
|
36
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
36
|
+
var THROW_CCE = kotlin_kotlin.$_$.u9;
|
|
37
37
|
var initMetadataForClass = kotlin_kotlin.$_$.m5;
|
|
38
38
|
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.a;
|
|
39
|
-
var Triple = kotlin_kotlin.$_$.
|
|
39
|
+
var Triple = kotlin_kotlin.$_$.w9;
|
|
40
40
|
var Some = kotlin_it_unibo_tuprolog_utils.$_$.k;
|
|
41
41
|
var zip = kotlin_kotlin.$_$.j8;
|
|
42
42
|
var flatMap = kotlin_kotlin.$_$.j7;
|
|
43
43
|
var sequenceOf = kotlin_kotlin.$_$.x7;
|
|
44
|
-
var to = kotlin_kotlin.$_$.
|
|
44
|
+
var to = kotlin_kotlin.$_$.fa;
|
|
45
45
|
var sequenceOf_0 = kotlin_kotlin.$_$.w7;
|
|
46
46
|
var initMetadataForCompanion = kotlin_kotlin.$_$.n5;
|
|
47
47
|
var toString = kotlin_kotlin.$_$.e6;
|
package/2p-utils.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
var initMetadataForCompanion = kotlin_kotlin.$_$.n5;
|
|
18
18
|
var Unit_instance = kotlin_kotlin.$_$.j1;
|
|
19
19
|
var initMetadataForInterface = kotlin_kotlin.$_$.o5;
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.u9;
|
|
21
21
|
var isInterface = kotlin_kotlin.$_$.t5;
|
|
22
22
|
var initMetadataForClass = kotlin_kotlin.$_$.m5;
|
|
23
23
|
var Sequence = kotlin_kotlin.$_$.v6;
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
var zip = kotlin_kotlin.$_$.i8;
|
|
36
36
|
var equals = kotlin_kotlin.$_$.g5;
|
|
37
37
|
var FunctionAdapter = kotlin_kotlin.$_$.w4;
|
|
38
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
38
|
+
var Comparator = kotlin_kotlin.$_$.k9;
|
|
39
39
|
var CoroutineImpl = kotlin_kotlin.$_$.e4;
|
|
40
40
|
var SequenceScope = kotlin_kotlin.$_$.u6;
|
|
41
41
|
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.d4;
|
|
42
42
|
var initMetadataForLambda = kotlin_kotlin.$_$.p5;
|
|
43
43
|
var withIndex = kotlin_kotlin.$_$.h8;
|
|
44
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
+
var ensureNotNull = kotlin_kotlin.$_$.x9;
|
|
45
45
|
var map = kotlin_kotlin.$_$.r7;
|
|
46
46
|
var filterNot = kotlin_kotlin.$_$.f7;
|
|
47
47
|
var toMutableList = kotlin_kotlin.$_$.f8;
|
|
48
48
|
var minWithOrNull = kotlin_kotlin.$_$.s7;
|
|
49
49
|
var subtract = kotlin_kotlin.$_$.u4;
|
|
50
50
|
var convertToInt = kotlin_kotlin.$_$.j4;
|
|
51
|
-
var toString = kotlin_kotlin.$_$.
|
|
51
|
+
var toString = kotlin_kotlin.$_$.ea;
|
|
52
52
|
var initMetadataForObject = kotlin_kotlin.$_$.q5;
|
|
53
53
|
var KtMap = kotlin_kotlin.$_$.m1;
|
|
54
54
|
var toString_0 = kotlin_kotlin.$_$.e6;
|
|
55
|
-
var lazy = kotlin_kotlin.$_$.
|
|
55
|
+
var lazy = kotlin_kotlin.$_$.z9;
|
|
56
56
|
var KProperty1 = kotlin_kotlin.$_$.t6;
|
|
57
57
|
var getPropertyCallableRef = kotlin_kotlin.$_$.j5;
|
|
58
58
|
var getKClassFromExpression = kotlin_kotlin.$_$.r6;
|
|
59
59
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
60
60
|
var getBigIntHashCode = kotlin_kotlin.$_$.h5;
|
|
61
61
|
var first = kotlin_kotlin.$_$.j2;
|
|
62
|
-
var to = kotlin_kotlin.$_$.
|
|
63
|
-
var Pair = kotlin_kotlin.$_$.
|
|
62
|
+
var to = kotlin_kotlin.$_$.fa;
|
|
63
|
+
var Pair = kotlin_kotlin.$_$.s9;
|
|
64
64
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
65
65
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f;
|
|
66
66
|
var joinToString = kotlin_kotlin.$_$.n7;
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Arg2P
|
|
2
2
|
|
|
3
|
-
Arg2P is
|
|
3
|
+
Arg2P is an implementation of the ASPIC<sup>+</sup> framework for structured argumentation.
|
|
4
4
|
Built on top of the [tuProlog](https://apice.unibo.it/xwiki/bin/view/Tuprolog/) engine, it supports both JVM and Node environments.
|
|
5
5
|
|
|
6
6
|
More details are available on the [official wiki](https://tuprolog.github.io/arg2p-kt/).
|
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -68,6 +68,17 @@ if (typeof Math.trunc === 'undefined') {
|
|
|
68
68
|
return Math.ceil(x);
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
if (typeof String.prototype.endsWith === 'undefined') {
|
|
72
|
+
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
73
|
+
var subjectString = this.toString();
|
|
74
|
+
if (position === undefined || position > subjectString.length) {
|
|
75
|
+
position = subjectString.length;
|
|
76
|
+
}
|
|
77
|
+
position -= searchString.length;
|
|
78
|
+
var lastIndex = subjectString.indexOf(searchString, position);
|
|
79
|
+
return lastIndex !== -1 && lastIndex === position;
|
|
80
|
+
}});
|
|
81
|
+
}
|
|
71
82
|
if (typeof String.prototype.startsWith === 'undefined') {
|
|
72
83
|
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
73
84
|
position = position || 0;
|
|
@@ -121,27 +132,27 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
121
132
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
122
133
|
initMetadataForObject(Unit, 'Unit');
|
|
123
134
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
124
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
135
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
125
136
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
126
137
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
127
|
-
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtList,
|
|
138
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtList, MutableIterable, Collection]);
|
|
128
139
|
initMetadataForInterface(RandomAccess, 'RandomAccess');
|
|
129
140
|
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList, [AbstractMutableList, RandomAccess]);
|
|
130
141
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
131
142
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
|
|
132
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
143
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, MutableIterable, KtSet, Collection]);
|
|
133
144
|
initMetadataForCompanion(Companion_1);
|
|
134
|
-
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtList,
|
|
145
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtList, MutableIterable, Collection, RandomAccess]);
|
|
135
146
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
|
|
136
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
137
|
-
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [
|
|
138
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
147
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [MutableIterable, KtSet, Collection, AbstractMutableSet]);
|
|
148
|
+
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
|
|
149
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [MutableIterable, KtSet, Collection, AbstractMutableSet]);
|
|
139
150
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
140
151
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
141
152
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
142
153
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
143
154
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
144
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet,
|
|
155
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, MutableIterable, KtSet, Collection]);
|
|
145
156
|
initMetadataForCompanion(Companion_2);
|
|
146
157
|
initMetadataForClass(Itr, 'Itr');
|
|
147
158
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -186,7 +197,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
186
197
|
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
187
198
|
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
188
199
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMap]);
|
|
189
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet,
|
|
200
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, MutableIterable, KtSet, Collection]);
|
|
190
201
|
initMetadataForClass(BaseOutput, 'BaseOutput');
|
|
191
202
|
initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
|
|
192
203
|
initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
|
|
@@ -4965,7 +4976,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
4965
4976
|
var tmp_11 = this;
|
|
4966
4977
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
4967
4978
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4968
|
-
var tmp_12 = BigInt;
|
|
4979
|
+
var tmp_12 = typeof BigInt === 'undefined' ? VOID : BigInt;
|
|
4969
4980
|
tmp_11.longClass = new PrimitiveKClassImpl(tmp_12, 'Long', PrimitiveClasses$longClass$lambda);
|
|
4970
4981
|
var tmp_13 = this;
|
|
4971
4982
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -5563,6 +5574,24 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5563
5574
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5564
5575
|
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5565
5576
|
}
|
|
5577
|
+
function endsWith(_this__u8e3s4, suffix, ignoreCase) {
|
|
5578
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5579
|
+
if (!ignoreCase) {
|
|
5580
|
+
// Inline function 'kotlin.text.nativeEndsWith' call
|
|
5581
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5582
|
+
return _this__u8e3s4.endsWith(suffix);
|
|
5583
|
+
} else
|
|
5584
|
+
return regionMatches(_this__u8e3s4, _this__u8e3s4.length - suffix.length | 0, suffix, 0, suffix.length, ignoreCase);
|
|
5585
|
+
}
|
|
5586
|
+
function startsWith(_this__u8e3s4, prefix, ignoreCase) {
|
|
5587
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5588
|
+
if (!ignoreCase) {
|
|
5589
|
+
// Inline function 'kotlin.text.nativeStartsWith' call
|
|
5590
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5591
|
+
return _this__u8e3s4.startsWith(prefix, 0);
|
|
5592
|
+
} else
|
|
5593
|
+
return regionMatches(_this__u8e3s4, 0, prefix, 0, prefix.length, ignoreCase);
|
|
5594
|
+
}
|
|
5566
5595
|
function replaceFirst(_this__u8e3s4, oldValue, newValue, ignoreCase) {
|
|
5567
5596
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5568
5597
|
var tmp2 = new RegExp(Companion_getInstance_3().ja(oldValue), ignoreCase ? 'ui' : 'u');
|
|
@@ -5571,7 +5600,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
5571
5600
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5572
5601
|
return _this__u8e3s4.replace(tmp2, replacement);
|
|
5573
5602
|
}
|
|
5574
|
-
function
|
|
5603
|
+
function startsWith_0(_this__u8e3s4, prefix, startIndex, ignoreCase) {
|
|
5575
5604
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5576
5605
|
if (!ignoreCase) {
|
|
5577
5606
|
// Inline function 'kotlin.text.nativeStartsWith' call
|
|
@@ -7865,7 +7894,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
7865
7894
|
tmp$ret$4 = -1;
|
|
7866
7895
|
}
|
|
7867
7896
|
var firstNonWhitespaceIndex = tmp$ret$4;
|
|
7868
|
-
var tmp0_safe_receiver = firstNonWhitespaceIndex === -1 ? null :
|
|
7897
|
+
var tmp0_safe_receiver = firstNonWhitespaceIndex === -1 ? null : startsWith_0(item, marginPrefix, firstNonWhitespaceIndex) ? substring_0(item, firstNonWhitespaceIndex + marginPrefix.length | 0) : null;
|
|
7869
7898
|
var tmp_0;
|
|
7870
7899
|
if (tmp0_safe_receiver == null) {
|
|
7871
7900
|
tmp_0 = null;
|
|
@@ -7970,6 +7999,18 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
7970
7999
|
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
7971
8000
|
return toString_1(padStart_0(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE(), length, padChar));
|
|
7972
8001
|
}
|
|
8002
|
+
function removeSuffix(_this__u8e3s4, suffix) {
|
|
8003
|
+
if (endsWith_0(_this__u8e3s4, suffix)) {
|
|
8004
|
+
return substring(_this__u8e3s4, 0, _this__u8e3s4.length - charSequenceLength(suffix) | 0);
|
|
8005
|
+
}
|
|
8006
|
+
return _this__u8e3s4;
|
|
8007
|
+
}
|
|
8008
|
+
function removePrefix(_this__u8e3s4, prefix) {
|
|
8009
|
+
if (startsWith_1(_this__u8e3s4, prefix)) {
|
|
8010
|
+
return substring_0(_this__u8e3s4, charSequenceLength(prefix));
|
|
8011
|
+
}
|
|
8012
|
+
return _this__u8e3s4;
|
|
8013
|
+
}
|
|
7973
8014
|
function substringBefore(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
7974
8015
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
7975
8016
|
var index = indexOf_2(_this__u8e3s4, delimiter);
|
|
@@ -8137,24 +8178,45 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8137
8178
|
sb.m(_this__u8e3s4);
|
|
8138
8179
|
return sb;
|
|
8139
8180
|
}
|
|
8140
|
-
function
|
|
8141
|
-
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
8181
|
+
function endsWith_0(_this__u8e3s4, suffix, ignoreCase) {
|
|
8142
8182
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8143
8183
|
var tmp;
|
|
8144
8184
|
var tmp_0;
|
|
8145
|
-
if (ignoreCase) {
|
|
8146
|
-
tmp_0 =
|
|
8185
|
+
if (!ignoreCase) {
|
|
8186
|
+
tmp_0 = typeof _this__u8e3s4 === 'string';
|
|
8147
8187
|
} else {
|
|
8148
|
-
tmp_0 =
|
|
8188
|
+
tmp_0 = false;
|
|
8149
8189
|
}
|
|
8150
8190
|
if (tmp_0) {
|
|
8151
|
-
tmp =
|
|
8191
|
+
tmp = typeof suffix === 'string';
|
|
8152
8192
|
} else {
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8193
|
+
tmp = false;
|
|
8194
|
+
}
|
|
8195
|
+
if (tmp)
|
|
8196
|
+
return endsWith(_this__u8e3s4, suffix);
|
|
8197
|
+
else {
|
|
8198
|
+
return regionMatchesImpl(_this__u8e3s4, charSequenceLength(_this__u8e3s4) - charSequenceLength(suffix) | 0, suffix, 0, charSequenceLength(suffix), ignoreCase);
|
|
8199
|
+
}
|
|
8200
|
+
}
|
|
8201
|
+
function startsWith_1(_this__u8e3s4, prefix, ignoreCase) {
|
|
8202
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8203
|
+
var tmp;
|
|
8204
|
+
var tmp_0;
|
|
8205
|
+
if (!ignoreCase) {
|
|
8206
|
+
tmp_0 = typeof _this__u8e3s4 === 'string';
|
|
8207
|
+
} else {
|
|
8208
|
+
tmp_0 = false;
|
|
8209
|
+
}
|
|
8210
|
+
if (tmp_0) {
|
|
8211
|
+
tmp = typeof prefix === 'string';
|
|
8212
|
+
} else {
|
|
8213
|
+
tmp = false;
|
|
8214
|
+
}
|
|
8215
|
+
if (tmp)
|
|
8216
|
+
return startsWith(_this__u8e3s4, prefix);
|
|
8217
|
+
else {
|
|
8218
|
+
return regionMatchesImpl(_this__u8e3s4, 0, prefix, 0, charSequenceLength(prefix), ignoreCase);
|
|
8156
8219
|
}
|
|
8157
|
-
return tmp;
|
|
8158
8220
|
}
|
|
8159
8221
|
function trim(_this__u8e3s4) {
|
|
8160
8222
|
// Inline function 'kotlin.text.trim' call
|
|
@@ -8179,6 +8241,25 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8179
8241
|
}
|
|
8180
8242
|
return charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
|
|
8181
8243
|
}
|
|
8244
|
+
function indexOf_2(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
8245
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
8246
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
8247
|
+
var tmp;
|
|
8248
|
+
var tmp_0;
|
|
8249
|
+
if (ignoreCase) {
|
|
8250
|
+
tmp_0 = true;
|
|
8251
|
+
} else {
|
|
8252
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
8253
|
+
}
|
|
8254
|
+
if (tmp_0) {
|
|
8255
|
+
tmp = indexOf_3(_this__u8e3s4, string, startIndex, charSequenceLength(_this__u8e3s4), ignoreCase);
|
|
8256
|
+
} else {
|
|
8257
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
8258
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
8259
|
+
tmp = _this__u8e3s4.indexOf(string, startIndex);
|
|
8260
|
+
}
|
|
8261
|
+
return tmp;
|
|
8262
|
+
}
|
|
8182
8263
|
function indexOf_3(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last) {
|
|
8183
8264
|
last = last === VOID ? false : last;
|
|
8184
8265
|
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), coerceAtMost(endIndex, charSequenceLength(_this__u8e3s4))) : downTo(coerceAtMost(startIndex, get_lastIndex_1(_this__u8e3s4)), coerceAtLeast(endIndex, 0));
|
|
@@ -8660,47 +8741,51 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
8660
8741
|
_.$_$.k8 = StringBuilder;
|
|
8661
8742
|
_.$_$.l8 = concatToString;
|
|
8662
8743
|
_.$_$.m8 = contains_4;
|
|
8663
|
-
_.$_$.n8 =
|
|
8664
|
-
_.$_$.o8 =
|
|
8665
|
-
_.$_$.p8 =
|
|
8666
|
-
_.$_$.q8 =
|
|
8667
|
-
_.$_$.r8 =
|
|
8668
|
-
_.$_$.s8 =
|
|
8669
|
-
_.$_$.t8 =
|
|
8670
|
-
_.$_$.u8 =
|
|
8671
|
-
_.$_$.v8 =
|
|
8672
|
-
_.$_$.w8 =
|
|
8673
|
-
_.$_$.x8 =
|
|
8674
|
-
_.$_$.y8 =
|
|
8675
|
-
_.$_$.z8 =
|
|
8676
|
-
_.$_$.a9 =
|
|
8677
|
-
_.$_$.b9 =
|
|
8678
|
-
_.$_$.c9 =
|
|
8679
|
-
_.$_$.d9 =
|
|
8680
|
-
_.$_$.e9 =
|
|
8681
|
-
_.$_$.f9 =
|
|
8682
|
-
_.$_$.g9 =
|
|
8683
|
-
_.$_$.h9 =
|
|
8684
|
-
_.$_$.i9 =
|
|
8685
|
-
_.$_$.j9 =
|
|
8686
|
-
_.$_$.k9 =
|
|
8687
|
-
_.$_$.l9 =
|
|
8688
|
-
_.$_$.m9 =
|
|
8689
|
-
_.$_$.n9 =
|
|
8690
|
-
_.$_$.o9 =
|
|
8691
|
-
_.$_$.p9 =
|
|
8692
|
-
_.$_$.q9 =
|
|
8693
|
-
_.$_$.r9 =
|
|
8694
|
-
_.$_$.s9 =
|
|
8695
|
-
_.$_$.t9 =
|
|
8696
|
-
_.$_$.u9 =
|
|
8697
|
-
_.$_$.v9 =
|
|
8698
|
-
_.$_$.w9 =
|
|
8699
|
-
_.$_$.x9 =
|
|
8700
|
-
_.$_$.y9 =
|
|
8701
|
-
_.$_$.z9 =
|
|
8702
|
-
_.$_$.aa =
|
|
8703
|
-
_.$_$.ba =
|
|
8744
|
+
_.$_$.n8 = endsWith;
|
|
8745
|
+
_.$_$.o8 = isBlank;
|
|
8746
|
+
_.$_$.p8 = lastIndexOf;
|
|
8747
|
+
_.$_$.q8 = lineSequence;
|
|
8748
|
+
_.$_$.r8 = padStart;
|
|
8749
|
+
_.$_$.s8 = removePrefix;
|
|
8750
|
+
_.$_$.t8 = removeRange;
|
|
8751
|
+
_.$_$.u8 = removeSuffix;
|
|
8752
|
+
_.$_$.v8 = replaceFirst;
|
|
8753
|
+
_.$_$.w8 = replace;
|
|
8754
|
+
_.$_$.x8 = startsWith;
|
|
8755
|
+
_.$_$.y8 = substringAfter;
|
|
8756
|
+
_.$_$.z8 = substringBefore;
|
|
8757
|
+
_.$_$.a9 = substring_0;
|
|
8758
|
+
_.$_$.b9 = substring;
|
|
8759
|
+
_.$_$.c9 = toCharArray;
|
|
8760
|
+
_.$_$.d9 = toDouble;
|
|
8761
|
+
_.$_$.e9 = toInt;
|
|
8762
|
+
_.$_$.f9 = toString_2;
|
|
8763
|
+
_.$_$.g9 = trimMargin;
|
|
8764
|
+
_.$_$.h9 = trim;
|
|
8765
|
+
_.$_$.i9 = ArithmeticException;
|
|
8766
|
+
_.$_$.j9 = Char;
|
|
8767
|
+
_.$_$.k9 = Comparator;
|
|
8768
|
+
_.$_$.l9 = Enum;
|
|
8769
|
+
_.$_$.m9 = IllegalArgumentException;
|
|
8770
|
+
_.$_$.n9 = IllegalStateException;
|
|
8771
|
+
_.$_$.o9 = IndexOutOfBoundsException;
|
|
8772
|
+
_.$_$.p9 = NotImplementedError;
|
|
8773
|
+
_.$_$.q9 = NullPointerException;
|
|
8774
|
+
_.$_$.r9 = NumberFormatException;
|
|
8775
|
+
_.$_$.s9 = Pair;
|
|
8776
|
+
_.$_$.t9 = RuntimeException;
|
|
8777
|
+
_.$_$.u9 = THROW_CCE;
|
|
8778
|
+
_.$_$.v9 = THROW_IAE;
|
|
8779
|
+
_.$_$.w9 = Triple;
|
|
8780
|
+
_.$_$.x9 = ensureNotNull;
|
|
8781
|
+
_.$_$.y9 = isInfinite;
|
|
8782
|
+
_.$_$.z9 = lazy;
|
|
8783
|
+
_.$_$.aa = noWhenBranchMatchedException;
|
|
8784
|
+
_.$_$.ba = throwKotlinNothingValueException;
|
|
8785
|
+
_.$_$.ca = throwUninitializedPropertyAccessException;
|
|
8786
|
+
_.$_$.da = toBits;
|
|
8787
|
+
_.$_$.ea = toString_0;
|
|
8788
|
+
_.$_$.fa = to;
|
|
8704
8789
|
//endregion
|
|
8705
8790
|
return _;
|
|
8706
8791
|
}));
|