@tuprolog/2p-full 1.5.1 → 2.0.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.
@@ -132,27 +132,27 @@ if (typeof String.prototype.startsWith === 'undefined') {
132
132
  initMetadataForInterface(Comparator, 'Comparator');
133
133
  initMetadataForObject(Unit, 'Unit');
134
134
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
135
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
135
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [MutableIterable, Collection]);
136
136
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
137
137
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
138
- initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [Collection, MutableIterable, KtList]);
138
+ initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtList, Collection, MutableIterable]);
139
139
  initMetadataForInterface(RandomAccess, 'RandomAccess');
140
140
  initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList, [RandomAccess]);
141
141
  initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
142
142
  initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [KtMap]);
143
- initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [Collection, MutableIterable, KtSet]);
143
+ initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [Collection, KtSet, MutableIterable]);
144
144
  initMetadataForCompanion(Companion_1);
145
- initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [Collection, MutableIterable, KtList, RandomAccess]);
145
+ initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtList, Collection, MutableIterable, RandomAccess]);
146
146
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMap]);
147
- initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
148
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
149
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
147
+ initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
148
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection]);
149
+ initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
150
150
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
151
151
  initMetadataForClass(HashMapKeysDefault$iterator$1);
152
152
  initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
153
153
  initMetadataForClass(HashMapValuesDefault$iterator$1);
154
154
  initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
155
- initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [Collection, MutableIterable, KtSet]);
155
+ initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
156
156
  initMetadataForCompanion(Companion_2);
157
157
  initMetadataForClass(Itr, 'Itr');
158
158
  initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
@@ -197,7 +197,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
197
197
  initMetadataForInterface(InternalMap, 'InternalMap');
198
198
  initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
199
199
  initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [KtMap]);
200
- initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [Collection, MutableIterable, KtSet]);
200
+ initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [Collection, KtSet, MutableIterable]);
201
201
  initMetadataForClass(BaseOutput, 'BaseOutput');
202
202
  initMetadataForClass(NodeJsOutput, 'NodeJsOutput', VOID, BaseOutput);
203
203
  initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput, BaseOutput);
@@ -2202,12 +2202,12 @@ if (typeof String.prototype.startsWith === 'undefined') {
2202
2202
  }
2203
2203
  return tmp;
2204
2204
  }
2205
- function jsGenerateInterfaceSymbol() {
2206
- return generateInterfaceSymbolById();
2207
- }
2208
2205
  function isLongCompiledToBigInt() {
2209
2206
  return typeof 2n === 'bigint';
2210
2207
  }
2208
+ function jsGenerateInterfaceSymbol() {
2209
+ return generateInterfaceSymbolById();
2210
+ }
2211
2211
  function get_longArrayClass() {
2212
2212
  _init_properties_longAsBigInt_kt__j3nkxv();
2213
2213
  return longArrayClass_0;
@@ -6781,6 +6781,12 @@ if (typeof String.prototype.startsWith === 'undefined') {
6781
6781
  return false;
6782
6782
  return true;
6783
6783
  };
6784
+ function IndexingIterable(iteratorFactory) {
6785
+ this.rc_1 = iteratorFactory;
6786
+ }
6787
+ protoOf(IndexingIterable).n = function () {
6788
+ return new IndexingIterator(this.rc_1());
6789
+ };
6784
6790
  function collectionSizeOrDefault(_this__u8e3s4, default_0) {
6785
6791
  var tmp;
6786
6792
  if (isInterface(_this__u8e3s4, Collection)) {
@@ -6790,12 +6796,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
6790
6796
  }
6791
6797
  return tmp;
6792
6798
  }
6793
- function IndexingIterable(iteratorFactory) {
6794
- this.rc_1 = iteratorFactory;
6795
- }
6796
- protoOf(IndexingIterable).n = function () {
6797
- return new IndexingIterator(this.rc_1());
6798
- };
6799
6799
  function collectionSizeOrNull(_this__u8e3s4) {
6800
6800
  var tmp;
6801
6801
  if (isInterface(_this__u8e3s4, Collection)) {
@@ -6835,6 +6835,9 @@ if (typeof String.prototype.startsWith === 'undefined') {
6835
6835
  }
6836
6836
  function MapWithDefault() {
6837
6837
  }
6838
+ function mapOf_0(pairs) {
6839
+ return pairs.length > 0 ? toMap_3(pairs, LinkedHashMap_init_$Create$_0(mapCapacity(pairs.length))) : emptyMap();
6840
+ }
6838
6841
  function emptyMap() {
6839
6842
  var tmp = EmptyMap_instance;
6840
6843
  return isInterface(tmp, KtMap) ? tmp : THROW_CCE();
@@ -6891,13 +6894,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
6891
6894
  removeAll_0(this_0.j2(), keys);
6892
6895
  return optimizeReadOnlyMap(this_0);
6893
6896
  }
6894
- function mapOf_0(pairs) {
6895
- return pairs.length > 0 ? toMap_3(pairs, LinkedHashMap_init_$Create$_0(mapCapacity(pairs.length))) : emptyMap();
6896
- }
6897
6897
  function toMap_0(_this__u8e3s4) {
6898
- return optimizeReadOnlyMap(toMap_4(_this__u8e3s4, LinkedHashMap_init_$Create$()));
6899
- }
6900
- function toMap_1(_this__u8e3s4) {
6901
6898
  if (isInterface(_this__u8e3s4, Collection)) {
6902
6899
  var tmp;
6903
6900
  switch (_this__u8e3s4.s()) {
@@ -6915,11 +6912,14 @@ if (typeof String.prototype.startsWith === 'undefined') {
6915
6912
  tmp = mapOf(tmp_0);
6916
6913
  break;
6917
6914
  default:
6918
- tmp = toMap_5(_this__u8e3s4, LinkedHashMap_init_$Create$_0(mapCapacity(_this__u8e3s4.s())));
6915
+ tmp = toMap_4(_this__u8e3s4, LinkedHashMap_init_$Create$_0(mapCapacity(_this__u8e3s4.s())));
6919
6916
  break;
6920
6917
  }
6921
6918
  return tmp;
6922
6919
  }
6920
+ return optimizeReadOnlyMap(toMap_4(_this__u8e3s4, LinkedHashMap_init_$Create$()));
6921
+ }
6922
+ function toMap_1(_this__u8e3s4) {
6923
6923
  return optimizeReadOnlyMap(toMap_5(_this__u8e3s4, LinkedHashMap_init_$Create$()));
6924
6924
  }
6925
6925
  function getValue(_this__u8e3s4, key) {
@@ -6948,6 +6948,11 @@ if (typeof String.prototype.startsWith === 'undefined') {
6948
6948
  putAll(this_0, pairs);
6949
6949
  return this_0;
6950
6950
  }
6951
+ function toMap_3(_this__u8e3s4, destination) {
6952
+ // Inline function 'kotlin.apply' call
6953
+ putAll(destination, _this__u8e3s4);
6954
+ return destination;
6955
+ }
6951
6956
  function EmptyMap() {
6952
6957
  this.vc_1 = 8246714829545688274n;
6953
6958
  }
@@ -7001,11 +7006,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
7001
7006
  function EmptyMap_getInstance() {
7002
7007
  return EmptyMap_instance;
7003
7008
  }
7004
- function toMap_3(_this__u8e3s4, destination) {
7005
- // Inline function 'kotlin.apply' call
7006
- putAll(destination, _this__u8e3s4);
7007
- return destination;
7008
- }
7009
7009
  function optimizeReadOnlyMap(_this__u8e3s4) {
7010
7010
  var tmp;
7011
7011
  switch (_this__u8e3s4.s()) {
@@ -9191,8 +9191,8 @@ if (typeof String.prototype.startsWith === 'undefined') {
9191
9191
  _.$_$.e4 = toList;
9192
9192
  _.$_$.f4 = toMap_2;
9193
9193
  _.$_$.g4 = toMap;
9194
- _.$_$.h4 = toMap_0;
9195
- _.$_$.i4 = toMap_1;
9194
+ _.$_$.h4 = toMap_1;
9195
+ _.$_$.i4 = toMap_0;
9196
9196
  _.$_$.j4 = toMutableList;
9197
9197
  _.$_$.k4 = toMutableList_0;
9198
9198
  _.$_$.l4 = toMutableMap;
@@ -9264,108 +9264,107 @@ if (typeof String.prototype.startsWith === 'undefined') {
9264
9264
  _.$_$.z6 = isEmpty;
9265
9265
  _.$_$.a7 = ClosedRange;
9266
9266
  _.$_$.b7 = IntRange;
9267
- _.$_$.c7 = coerceAtLeast;
9268
- _.$_$.d7 = contains_1;
9269
- _.$_$.e7 = until;
9270
- _.$_$.f7 = getKClassFromExpression;
9271
- _.$_$.g7 = getKClass;
9272
- _.$_$.h7 = KProperty1;
9273
- _.$_$.i7 = SequenceScope;
9274
- _.$_$.j7 = Sequence;
9275
- _.$_$.k7 = any_0;
9276
- _.$_$.l7 = asIterable_0;
9277
- _.$_$.m7 = asSequence_4;
9278
- _.$_$.n7 = contains_2;
9279
- _.$_$.o7 = count_0;
9280
- _.$_$.p7 = distinct;
9281
- _.$_$.q7 = drop_0;
9282
- _.$_$.r7 = emptySequence;
9283
- _.$_$.s7 = filterIndexed;
9284
- _.$_$.t7 = filterNotNull;
9285
- _.$_$.u7 = filterNot;
9286
- _.$_$.v7 = filter;
9287
- _.$_$.w7 = firstOrNull_0;
9288
- _.$_$.x7 = first_1;
9289
- _.$_$.y7 = flatMap;
9290
- _.$_$.z7 = flatten;
9291
- _.$_$.a8 = generateSequence;
9292
- _.$_$.b8 = indexOf_1;
9293
- _.$_$.c8 = iterator;
9294
- _.$_$.d8 = joinToString_1;
9295
- _.$_$.e8 = lastOrNull_0;
9296
- _.$_$.f8 = last_2;
9297
- _.$_$.g8 = mapIndexed;
9298
- _.$_$.h8 = map;
9299
- _.$_$.i8 = minWithOrNull;
9300
- _.$_$.j8 = none_0;
9301
- _.$_$.k8 = plus_3;
9302
- _.$_$.l8 = plus_1;
9303
- _.$_$.m8 = plus_2;
9304
- _.$_$.n8 = sequenceOf_0;
9305
- _.$_$.o8 = sequenceOf;
9306
- _.$_$.p8 = sequence;
9307
- _.$_$.q8 = sum;
9308
- _.$_$.r8 = takeWhile;
9309
- _.$_$.s8 = take;
9310
- _.$_$.t8 = toCollection_1;
9311
- _.$_$.u8 = toHashSet;
9312
- _.$_$.v8 = toList_1;
9313
- _.$_$.w8 = toMutableList_1;
9314
- _.$_$.x8 = toSet_1;
9315
- _.$_$.y8 = withIndex_0;
9316
- _.$_$.z8 = zip_0;
9317
- _.$_$.a9 = zip;
9318
- _.$_$.b9 = StringBuilder;
9319
- _.$_$.c9 = asSequence_3;
9320
- _.$_$.d9 = concatToString;
9321
- _.$_$.e9 = contains_3;
9322
- _.$_$.f9 = endsWith;
9323
- _.$_$.g9 = isBlank;
9324
- _.$_$.h9 = lastIndexOf;
9325
- _.$_$.i9 = lineSequence;
9326
- _.$_$.j9 = padStart;
9327
- _.$_$.k9 = removePrefix;
9328
- _.$_$.l9 = removeRange;
9329
- _.$_$.m9 = removeSuffix;
9330
- _.$_$.n9 = replaceFirst;
9331
- _.$_$.o9 = replace;
9332
- _.$_$.p9 = startsWith;
9333
- _.$_$.q9 = substringAfter;
9334
- _.$_$.r9 = substringBefore;
9335
- _.$_$.s9 = substring_0;
9336
- _.$_$.t9 = substring;
9337
- _.$_$.u9 = toCharArray;
9338
- _.$_$.v9 = toDoubleOrNull;
9339
- _.$_$.w9 = toDouble;
9340
- _.$_$.x9 = toInt;
9341
- _.$_$.y9 = toString_2;
9342
- _.$_$.z9 = trimMargin;
9343
- _.$_$.aa = trim;
9344
- _.$_$.ba = ArithmeticException;
9345
- _.$_$.ca = Char;
9346
- _.$_$.da = Comparable;
9347
- _.$_$.ea = Comparator;
9348
- _.$_$.fa = Enum;
9349
- _.$_$.ga = IllegalArgumentException;
9350
- _.$_$.ha = IllegalStateException;
9351
- _.$_$.ia = IndexOutOfBoundsException;
9352
- _.$_$.ja = NotImplementedError;
9353
- _.$_$.ka = NullPointerException;
9354
- _.$_$.la = NumberFormatException;
9355
- _.$_$.ma = Pair;
9356
- _.$_$.na = RuntimeException;
9357
- _.$_$.oa = THROW_CCE;
9358
- _.$_$.pa = THROW_IAE;
9359
- _.$_$.qa = Triple;
9360
- _.$_$.ra = createFailure;
9361
- _.$_$.sa = ensureNotNull;
9362
- _.$_$.ta = isInfinite;
9363
- _.$_$.ua = lazy;
9364
- _.$_$.va = noWhenBranchMatchedException;
9365
- _.$_$.wa = throwKotlinNothingValueException;
9366
- _.$_$.xa = toBits;
9367
- _.$_$.ya = toString_0;
9368
- _.$_$.za = to;
9267
+ _.$_$.c7 = contains_1;
9268
+ _.$_$.d7 = until;
9269
+ _.$_$.e7 = getKClassFromExpression;
9270
+ _.$_$.f7 = getKClass;
9271
+ _.$_$.g7 = KProperty1;
9272
+ _.$_$.h7 = SequenceScope;
9273
+ _.$_$.i7 = Sequence;
9274
+ _.$_$.j7 = any_0;
9275
+ _.$_$.k7 = asIterable_0;
9276
+ _.$_$.l7 = asSequence_4;
9277
+ _.$_$.m7 = contains_2;
9278
+ _.$_$.n7 = count_0;
9279
+ _.$_$.o7 = distinct;
9280
+ _.$_$.p7 = drop_0;
9281
+ _.$_$.q7 = emptySequence;
9282
+ _.$_$.r7 = filterIndexed;
9283
+ _.$_$.s7 = filterNotNull;
9284
+ _.$_$.t7 = filterNot;
9285
+ _.$_$.u7 = filter;
9286
+ _.$_$.v7 = firstOrNull_0;
9287
+ _.$_$.w7 = first_1;
9288
+ _.$_$.x7 = flatMap;
9289
+ _.$_$.y7 = flatten;
9290
+ _.$_$.z7 = generateSequence;
9291
+ _.$_$.a8 = indexOf_1;
9292
+ _.$_$.b8 = iterator;
9293
+ _.$_$.c8 = joinToString_1;
9294
+ _.$_$.d8 = lastOrNull_0;
9295
+ _.$_$.e8 = last_2;
9296
+ _.$_$.f8 = mapIndexed;
9297
+ _.$_$.g8 = map;
9298
+ _.$_$.h8 = minWithOrNull;
9299
+ _.$_$.i8 = none_0;
9300
+ _.$_$.j8 = plus_3;
9301
+ _.$_$.k8 = plus_1;
9302
+ _.$_$.l8 = plus_2;
9303
+ _.$_$.m8 = sequenceOf_0;
9304
+ _.$_$.n8 = sequenceOf;
9305
+ _.$_$.o8 = sequence;
9306
+ _.$_$.p8 = sum;
9307
+ _.$_$.q8 = takeWhile;
9308
+ _.$_$.r8 = take;
9309
+ _.$_$.s8 = toCollection_1;
9310
+ _.$_$.t8 = toHashSet;
9311
+ _.$_$.u8 = toList_1;
9312
+ _.$_$.v8 = toMutableList_1;
9313
+ _.$_$.w8 = toSet_1;
9314
+ _.$_$.x8 = withIndex_0;
9315
+ _.$_$.y8 = zip_0;
9316
+ _.$_$.z8 = zip;
9317
+ _.$_$.a9 = StringBuilder;
9318
+ _.$_$.b9 = asSequence_3;
9319
+ _.$_$.c9 = concatToString;
9320
+ _.$_$.d9 = contains_3;
9321
+ _.$_$.e9 = endsWith;
9322
+ _.$_$.f9 = isBlank;
9323
+ _.$_$.g9 = lastIndexOf;
9324
+ _.$_$.h9 = lineSequence;
9325
+ _.$_$.i9 = padStart;
9326
+ _.$_$.j9 = removePrefix;
9327
+ _.$_$.k9 = removeRange;
9328
+ _.$_$.l9 = removeSuffix;
9329
+ _.$_$.m9 = replaceFirst;
9330
+ _.$_$.n9 = replace;
9331
+ _.$_$.o9 = startsWith;
9332
+ _.$_$.p9 = substringAfter;
9333
+ _.$_$.q9 = substringBefore;
9334
+ _.$_$.r9 = substring_0;
9335
+ _.$_$.s9 = substring;
9336
+ _.$_$.t9 = toCharArray;
9337
+ _.$_$.u9 = toDoubleOrNull;
9338
+ _.$_$.v9 = toDouble;
9339
+ _.$_$.w9 = toInt;
9340
+ _.$_$.x9 = toString_2;
9341
+ _.$_$.y9 = trimMargin;
9342
+ _.$_$.z9 = trim;
9343
+ _.$_$.aa = ArithmeticException;
9344
+ _.$_$.ba = Char;
9345
+ _.$_$.ca = Comparable;
9346
+ _.$_$.da = Comparator;
9347
+ _.$_$.ea = Enum;
9348
+ _.$_$.fa = IllegalArgumentException;
9349
+ _.$_$.ga = IllegalStateException;
9350
+ _.$_$.ha = IndexOutOfBoundsException;
9351
+ _.$_$.ia = NotImplementedError;
9352
+ _.$_$.ja = NullPointerException;
9353
+ _.$_$.ka = NumberFormatException;
9354
+ _.$_$.la = Pair;
9355
+ _.$_$.ma = RuntimeException;
9356
+ _.$_$.na = THROW_CCE;
9357
+ _.$_$.oa = THROW_IAE;
9358
+ _.$_$.pa = Triple;
9359
+ _.$_$.qa = createFailure;
9360
+ _.$_$.ra = ensureNotNull;
9361
+ _.$_$.sa = isInfinite;
9362
+ _.$_$.ta = lazy;
9363
+ _.$_$.ua = noWhenBranchMatchedException;
9364
+ _.$_$.va = throwKotlinNothingValueException;
9365
+ _.$_$.wa = toBits;
9366
+ _.$_$.xa = toString_0;
9367
+ _.$_$.ya = to;
9369
9368
  //endregion
9370
9369
  return _;
9371
9370
  }));