mrs-toolbox-cli 0.0.71 → 0.0.72
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-kotlin-stdlib-js-ir.js +73 -73
- package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
- package/kotlin-logging-js-ir.js +33 -18
- package/kotlin-logging-js-ir.js.hash +1 -1
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-logging-js-ir.js.map.hash +1 -1
- package/mrs-toolbox-cli.d.ts +5 -3
- package/mrs-toolbox-cli.d.ts.hash +1 -1
- package/mrs-toolbox-cli.js +61 -61
- package/mrs-toolbox-cli.js.hash +1 -1
- package/package.json +1 -1
- package/toolbox.js +2322 -1938
- package/toolbox.js.hash +1 -1
- package/toolbox.js.map +1 -1
- package/toolbox.js.map.hash +1 -1
|
@@ -43,12 +43,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
43
43
|
};
|
|
44
44
|
}(Math.log, Math.LN2);
|
|
45
45
|
}
|
|
46
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
47
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
48
|
-
position = position || 0;
|
|
49
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
50
|
-
}});
|
|
51
|
-
}
|
|
52
46
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
53
47
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
54
48
|
var subjectString = this.toString();
|
|
@@ -60,6 +54,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
60
54
|
return lastIndex !== -1 && lastIndex === position;
|
|
61
55
|
}});
|
|
62
56
|
}
|
|
57
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
58
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
59
|
+
position = position || 0;
|
|
60
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
61
|
+
}});
|
|
62
|
+
}
|
|
63
63
|
if (typeof Math.imul === 'undefined') {
|
|
64
64
|
Math.imul = function imul(a, b) {
|
|
65
65
|
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|
|
@@ -749,6 +749,11 @@ if (typeof Math.imul === 'undefined') {
|
|
|
749
749
|
}
|
|
750
750
|
return result;
|
|
751
751
|
}
|
|
752
|
+
function first(_this__u8e3s4) {
|
|
753
|
+
if (_this__u8e3s4.l())
|
|
754
|
+
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
755
|
+
return _this__u8e3s4.k(0);
|
|
756
|
+
}
|
|
752
757
|
function toList_0(_this__u8e3s4) {
|
|
753
758
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
754
759
|
var tmp0_subject = _this__u8e3s4.i();
|
|
@@ -881,11 +886,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
881
886
|
}
|
|
882
887
|
return -1;
|
|
883
888
|
}
|
|
884
|
-
function first(_this__u8e3s4) {
|
|
885
|
-
if (_this__u8e3s4.l())
|
|
886
|
-
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
887
|
-
return _this__u8e3s4.k(0);
|
|
888
|
-
}
|
|
889
889
|
function dropLast(_this__u8e3s4, n) {
|
|
890
890
|
// Inline function 'kotlin.require' call
|
|
891
891
|
var tmp0_require = n >= 0;
|
|
@@ -5048,6 +5048,42 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5048
5048
|
return tmp;
|
|
5049
5049
|
}
|
|
5050
5050
|
function substringBefore(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
5051
|
+
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
5052
|
+
var index = indexOf_7(_this__u8e3s4, delimiter);
|
|
5053
|
+
var tmp;
|
|
5054
|
+
if (index === -1) {
|
|
5055
|
+
tmp = missingDelimiterValue;
|
|
5056
|
+
} else {
|
|
5057
|
+
var tmp$ret$1;
|
|
5058
|
+
// Inline function 'kotlin.text.substring' call
|
|
5059
|
+
var tmp$ret$0;
|
|
5060
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5061
|
+
tmp$ret$0 = _this__u8e3s4;
|
|
5062
|
+
tmp$ret$1 = tmp$ret$0.substring(0, index);
|
|
5063
|
+
tmp = tmp$ret$1;
|
|
5064
|
+
}
|
|
5065
|
+
return tmp;
|
|
5066
|
+
}
|
|
5067
|
+
function substringAfterLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
5068
|
+
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
5069
|
+
var index = lastIndexOf(_this__u8e3s4, delimiter);
|
|
5070
|
+
var tmp;
|
|
5071
|
+
if (index === -1) {
|
|
5072
|
+
tmp = missingDelimiterValue;
|
|
5073
|
+
} else {
|
|
5074
|
+
var tmp$ret$1;
|
|
5075
|
+
// Inline function 'kotlin.text.substring' call
|
|
5076
|
+
var tmp0_substring = index + delimiter.length | 0;
|
|
5077
|
+
var tmp1_substring = _this__u8e3s4.length;
|
|
5078
|
+
var tmp$ret$0;
|
|
5079
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5080
|
+
tmp$ret$0 = _this__u8e3s4;
|
|
5081
|
+
tmp$ret$1 = tmp$ret$0.substring(tmp0_substring, tmp1_substring);
|
|
5082
|
+
tmp = tmp$ret$1;
|
|
5083
|
+
}
|
|
5084
|
+
return tmp;
|
|
5085
|
+
}
|
|
5086
|
+
function substringBefore_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
5051
5087
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
5052
5088
|
var index = indexOf_6(_this__u8e3s4, delimiter);
|
|
5053
5089
|
var tmp;
|
|
@@ -5277,6 +5313,30 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5277
5313
|
requireNonNegativeLimit(limit);
|
|
5278
5314
|
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda_0(delimiters, ignoreCase));
|
|
5279
5315
|
}
|
|
5316
|
+
function lastIndexOf(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
5317
|
+
startIndex = startIndex === VOID ? get_lastIndex_3(_this__u8e3s4) : startIndex;
|
|
5318
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5319
|
+
var tmp;
|
|
5320
|
+
var tmp_0;
|
|
5321
|
+
if (ignoreCase) {
|
|
5322
|
+
tmp_0 = true;
|
|
5323
|
+
} else {
|
|
5324
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
5325
|
+
}
|
|
5326
|
+
if (tmp_0) {
|
|
5327
|
+
tmp = indexOf_8(_this__u8e3s4, string, startIndex, 0, ignoreCase, true);
|
|
5328
|
+
} else {
|
|
5329
|
+
var tmp$ret$1;
|
|
5330
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
5331
|
+
var tmp0_nativeLastIndexOf = _this__u8e3s4;
|
|
5332
|
+
var tmp$ret$0;
|
|
5333
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5334
|
+
tmp$ret$0 = tmp0_nativeLastIndexOf;
|
|
5335
|
+
tmp$ret$1 = tmp$ret$0.lastIndexOf(string, startIndex);
|
|
5336
|
+
tmp = tmp$ret$1;
|
|
5337
|
+
}
|
|
5338
|
+
return tmp;
|
|
5339
|
+
}
|
|
5280
5340
|
function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
5281
5341
|
if (((otherOffset < 0 ? true : thisOffset < 0) ? true : thisOffset > (charSequenceLength(_this__u8e3s4) - length | 0)) ? true : otherOffset > (charSequenceLength(other) - length | 0)) {
|
|
5282
5342
|
return false;
|
|
@@ -5447,30 +5507,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5447
5507
|
}
|
|
5448
5508
|
return null;
|
|
5449
5509
|
}
|
|
5450
|
-
function lastIndexOf(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
5451
|
-
startIndex = startIndex === VOID ? get_lastIndex_3(_this__u8e3s4) : startIndex;
|
|
5452
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5453
|
-
var tmp;
|
|
5454
|
-
var tmp_0;
|
|
5455
|
-
if (ignoreCase) {
|
|
5456
|
-
tmp_0 = true;
|
|
5457
|
-
} else {
|
|
5458
|
-
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
5459
|
-
}
|
|
5460
|
-
if (tmp_0) {
|
|
5461
|
-
tmp = indexOf_8(_this__u8e3s4, string, startIndex, 0, ignoreCase, true);
|
|
5462
|
-
} else {
|
|
5463
|
-
var tmp$ret$1;
|
|
5464
|
-
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
5465
|
-
var tmp0_nativeLastIndexOf = _this__u8e3s4;
|
|
5466
|
-
var tmp$ret$0;
|
|
5467
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
5468
|
-
tmp$ret$0 = tmp0_nativeLastIndexOf;
|
|
5469
|
-
tmp$ret$1 = tmp$ret$0.lastIndexOf(string, startIndex);
|
|
5470
|
-
tmp = tmp$ret$1;
|
|
5471
|
-
}
|
|
5472
|
-
return tmp;
|
|
5473
|
-
}
|
|
5474
5510
|
function startsWith_0(_this__u8e3s4, char, ignoreCase) {
|
|
5475
5511
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
5476
5512
|
return charSequenceLength(_this__u8e3s4) > 0 ? equals(charSequenceGet(_this__u8e3s4, 0), char, ignoreCase) : false;
|
|
@@ -5574,42 +5610,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5574
5610
|
tmp$ret$1 = tmp$ret$0.substring(tmp0_substring, tmp1_substring);
|
|
5575
5611
|
return tmp$ret$1;
|
|
5576
5612
|
}
|
|
5577
|
-
function substringBefore_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
5578
|
-
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
5579
|
-
var index = indexOf_7(_this__u8e3s4, delimiter);
|
|
5580
|
-
var tmp;
|
|
5581
|
-
if (index === -1) {
|
|
5582
|
-
tmp = missingDelimiterValue;
|
|
5583
|
-
} else {
|
|
5584
|
-
var tmp$ret$1;
|
|
5585
|
-
// Inline function 'kotlin.text.substring' call
|
|
5586
|
-
var tmp$ret$0;
|
|
5587
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
5588
|
-
tmp$ret$0 = _this__u8e3s4;
|
|
5589
|
-
tmp$ret$1 = tmp$ret$0.substring(0, index);
|
|
5590
|
-
tmp = tmp$ret$1;
|
|
5591
|
-
}
|
|
5592
|
-
return tmp;
|
|
5593
|
-
}
|
|
5594
|
-
function substringAfterLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
5595
|
-
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
5596
|
-
var index = lastIndexOf(_this__u8e3s4, delimiter);
|
|
5597
|
-
var tmp;
|
|
5598
|
-
if (index === -1) {
|
|
5599
|
-
tmp = missingDelimiterValue;
|
|
5600
|
-
} else {
|
|
5601
|
-
var tmp$ret$1;
|
|
5602
|
-
// Inline function 'kotlin.text.substring' call
|
|
5603
|
-
var tmp0_substring = index + delimiter.length | 0;
|
|
5604
|
-
var tmp1_substring = _this__u8e3s4.length;
|
|
5605
|
-
var tmp$ret$0;
|
|
5606
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
5607
|
-
tmp$ret$0 = _this__u8e3s4;
|
|
5608
|
-
tmp$ret$1 = tmp$ret$0.substring(tmp0_substring, tmp1_substring);
|
|
5609
|
-
tmp = tmp$ret$1;
|
|
5610
|
-
}
|
|
5611
|
-
return tmp;
|
|
5612
|
-
}
|
|
5613
5613
|
function trimEnd_0(_this__u8e3s4) {
|
|
5614
5614
|
var tmp$ret$0;
|
|
5615
5615
|
$l$block: {
|
|
@@ -15715,8 +15715,8 @@ if (typeof Math.imul === 'undefined') {
|
|
|
15715
15715
|
_.$_$.cd = startsWith_2;
|
|
15716
15716
|
_.$_$.dd = startsWith_0;
|
|
15717
15717
|
_.$_$.ed = substringAfterLast;
|
|
15718
|
-
_.$_$.fd =
|
|
15719
|
-
_.$_$.gd =
|
|
15718
|
+
_.$_$.fd = substringBefore;
|
|
15719
|
+
_.$_$.gd = substringBefore_0;
|
|
15720
15720
|
_.$_$.hd = take_1;
|
|
15721
15721
|
_.$_$.id = titlecase;
|
|
15722
15722
|
_.$_$.jd = toDoubleOrNull;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
60d3c2eaab9d2d68078a1040e9318a82
|