game_client_logic_deb 1.8.260 → 1.8.289

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.
@@ -57,6 +57,12 @@ if (typeof Math.clz32 === 'undefined') {
57
57
  };
58
58
  }(Math.log, Math.LN2);
59
59
  }
60
+ if (typeof String.prototype.startsWith === 'undefined') {
61
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
62
+ position = position || 0;
63
+ return this.lastIndexOf(searchString, position) === position;
64
+ }});
65
+ }
60
66
  if (typeof String.prototype.endsWith === 'undefined') {
61
67
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
62
68
  var subjectString = this.toString();
@@ -68,12 +74,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
68
74
  return lastIndex !== -1 && lastIndex === position;
69
75
  }});
70
76
  }
71
- if (typeof String.prototype.startsWith === 'undefined') {
72
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
73
- position = position || 0;
74
- return this.lastIndexOf(searchString, position) === position;
75
- }});
76
- }
77
77
  //endregion
78
78
  (function (factory) {
79
79
  if (typeof define === 'function' && define.amd)
@@ -458,15 +458,21 @@ if (typeof String.prototype.startsWith === 'undefined') {
458
458
  return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
459
459
  }
460
460
  }
461
- function last(_this__u8e3s4) {
461
+ function first(_this__u8e3s4) {
462
462
  // Inline function 'kotlin.collections.isEmpty' call
463
463
  if (_this__u8e3s4.length === 0)
464
464
  throw NoSuchElementException_init_$Create$_0('Array is empty.');
465
- return _this__u8e3s4[get_lastIndex(_this__u8e3s4)];
465
+ return _this__u8e3s4[0];
466
466
  }
467
467
  function contains_0(_this__u8e3s4, element) {
468
468
  return indexOf(_this__u8e3s4, element) >= 0;
469
469
  }
470
+ function last(_this__u8e3s4) {
471
+ // Inline function 'kotlin.collections.isEmpty' call
472
+ if (_this__u8e3s4.length === 0)
473
+ throw NoSuchElementException_init_$Create$_0('Array is empty.');
474
+ return _this__u8e3s4[get_lastIndex(_this__u8e3s4)];
475
+ }
470
476
  function firstOrNull(_this__u8e3s4) {
471
477
  var tmp;
472
478
  // Inline function 'kotlin.collections.isEmpty' call
@@ -477,12 +483,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
477
483
  }
478
484
  return tmp;
479
485
  }
480
- function first(_this__u8e3s4) {
481
- // Inline function 'kotlin.collections.isEmpty' call
482
- if (_this__u8e3s4.length === 0)
483
- throw NoSuchElementException_init_$Create$_0('Array is empty.');
484
- return _this__u8e3s4[0];
485
- }
486
486
  function indexOf(_this__u8e3s4, element) {
487
487
  if (element == null) {
488
488
  var inductionVariable = 0;