@flock/wirespec 0.9.0 → 0.9.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.
@@ -53,6 +53,12 @@ if (typeof Math.log2 === 'undefined') {
53
53
  return Math.log(x) * Math.LOG2E;
54
54
  };
55
55
  }
56
+ if (typeof String.prototype.startsWith === 'undefined') {
57
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
+ position = position || 0;
59
+ return this.lastIndexOf(searchString, position) === position;
60
+ }});
61
+ }
56
62
  if (typeof String.prototype.endsWith === 'undefined') {
57
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
58
64
  var subjectString = this.toString();
@@ -64,12 +70,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
64
70
  return lastIndex !== -1 && lastIndex === position;
65
71
  }});
66
72
  }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
72
- }
73
73
  if (typeof Math.imul === 'undefined') {
74
74
  Math.imul = function imul(a, b) {
75
75
  return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
@@ -4621,6 +4621,31 @@ if (typeof Math.imul === 'undefined') {
4621
4621
  function firstOrNull_0(_this__u8e3s4) {
4622
4622
  return _this__u8e3s4.c1() ? null : _this__u8e3s4.g1(0);
4623
4623
  }
4624
+ function zipWithNext(_this__u8e3s4) {
4625
+ var tmp$ret$0;
4626
+ $l$block: {
4627
+ // Inline function 'kotlin.collections.zipWithNext' call
4628
+ var iterator = _this__u8e3s4.v();
4629
+ if (!iterator.w()) {
4630
+ tmp$ret$0 = emptyList();
4631
+ break $l$block;
4632
+ }
4633
+ // Inline function 'kotlin.collections.mutableListOf' call
4634
+ var result = ArrayList_init_$Create$();
4635
+ var current = iterator.y();
4636
+ while (iterator.w()) {
4637
+ var next = iterator.y();
4638
+ var tmp$ret$2;
4639
+ // Inline function 'kotlin.collections.zipWithNext.<anonymous>' call
4640
+ var tmp0_anonymous = current;
4641
+ tmp$ret$2 = to(tmp0_anonymous, next);
4642
+ result.s(tmp$ret$2);
4643
+ current = next;
4644
+ }
4645
+ tmp$ret$0 = result;
4646
+ }
4647
+ return tmp$ret$0;
4648
+ }
4624
4649
  function sum(_this__u8e3s4) {
4625
4650
  var sum = 0;
4626
4651
  var tmp0_iterator = _this__u8e3s4.v();
@@ -12775,190 +12800,191 @@ if (typeof Math.imul === 'undefined') {
12775
12800
  _.$_$.c8 = withDefault;
12776
12801
  _.$_$.d8 = withIndex;
12777
12802
  _.$_$.e8 = withIndex_0;
12778
- _.$_$.f8 = zip;
12779
- _.$_$.g8 = compareValues;
12780
- _.$_$.h8 = CancellationException;
12781
- _.$_$.i8 = get_COROUTINE_SUSPENDED;
12782
- _.$_$.j8 = CoroutineImpl;
12783
- _.$_$.k8 = enumEntries;
12784
- _.$_$.l8 = println;
12785
- _.$_$.m8 = println_0;
12786
- _.$_$.n8 = print;
12787
- _.$_$.o8 = readlnOrNull;
12788
- _.$_$.p8 = arrayIterator;
12789
- _.$_$.q8 = booleanArray;
12790
- _.$_$.r8 = captureStack;
12791
- _.$_$.s8 = charArrayOf;
12792
- _.$_$.t8 = charArray;
12793
- _.$_$.u8 = charSequenceGet;
12794
- _.$_$.v8 = charSequenceLength;
12795
- _.$_$.w8 = charSequenceSubSequence;
12796
- _.$_$.x8 = classMeta;
12797
- _.$_$.y8 = compareTo_0;
12798
- _.$_$.z8 = defineProp;
12799
- _.$_$.a9 = equals_0;
12800
- _.$_$.b9 = fillArrayVal;
12801
- _.$_$.c9 = getNumberHashCode;
12802
- _.$_$.d9 = getPropertyCallableRef;
12803
- _.$_$.e9 = getStringHashCode;
12804
- _.$_$.f9 = hashCode;
12805
- _.$_$.g9 = interfaceMeta;
12806
- _.$_$.h9 = isArray;
12807
- _.$_$.i9 = isBooleanArray;
12808
- _.$_$.j9 = isByteArray;
12809
- _.$_$.k9 = isCharArray;
12810
- _.$_$.l9 = isCharSequence;
12811
- _.$_$.m9 = isDoubleArray;
12812
- _.$_$.n9 = isFloatArray;
12813
- _.$_$.o9 = isIntArray;
12814
- _.$_$.p9 = isInterface;
12815
- _.$_$.q9 = isLongArray;
12816
- _.$_$.r9 = isObject;
12817
- _.$_$.s9 = isShortArray;
12818
- _.$_$.t9 = iterator;
12819
- _.$_$.u9 = get_js;
12820
- _.$_$.v9 = longArray;
12821
- _.$_$.w9 = numberRangeToNumber;
12822
- _.$_$.x9 = numberToChar;
12823
- _.$_$.y9 = numberToDouble;
12824
- _.$_$.z9 = numberToInt;
12825
- _.$_$.aa = objectCreate;
12826
- _.$_$.ba = objectMeta;
12827
- _.$_$.ca = protoOf;
12828
- _.$_$.da = setMetadataFor;
12829
- _.$_$.ea = toByte;
12830
- _.$_$.fa = toLong_0;
12831
- _.$_$.ga = toShort;
12832
- _.$_$.ha = toString_1;
12833
- _.$_$.ia = roundToInt;
12834
- _.$_$.ja = withSign;
12835
- _.$_$.ka = Random_0;
12836
- _.$_$.la = IntRange;
12837
- _.$_$.ma = coerceAtLeast_1;
12838
- _.$_$.na = coerceAtLeast;
12839
- _.$_$.oa = coerceAtLeast_0;
12840
- _.$_$.pa = coerceAtMost;
12841
- _.$_$.qa = coerceIn;
12842
- _.$_$.ra = coerceIn_0;
12843
- _.$_$.sa = step;
12844
- _.$_$.ta = until;
12845
- _.$_$.ua = KClass;
12846
- _.$_$.va = KMutableProperty1;
12847
- _.$_$.wa = KProperty1;
12848
- _.$_$.xa = KTypeParameter;
12849
- _.$_$.ya = asSequence_2;
12850
- _.$_$.za = filter;
12851
- _.$_$.ab = generateSequence_0;
12852
- _.$_$.bb = generateSequence;
12853
- _.$_$.cb = joinToString_1;
12854
- _.$_$.db = map;
12855
- _.$_$.eb = toList_2;
12856
- _.$_$.fb = toSet_1;
12857
- _.$_$.gb = StringBuilder;
12858
- _.$_$.hb = asSequence_1;
12859
- _.$_$.ib = chunked;
12860
- _.$_$.jb = commonPrefixWith;
12861
- _.$_$.kb = concatToString;
12862
- _.$_$.lb = concatToString_0;
12863
- _.$_$.mb = contains_5;
12864
- _.$_$.nb = contains_6;
12865
- _.$_$.ob = dropLast_0;
12866
- _.$_$.pb = drop_0;
12867
- _.$_$.qb = endsWith_1;
12868
- _.$_$.rb = endsWith;
12869
- _.$_$.sb = equals;
12870
- _.$_$.tb = firstOrNull_1;
12871
- _.$_$.ub = first_1;
12872
- _.$_$.vb = indexOf_6;
12873
- _.$_$.wb = indexOf_5;
12874
- _.$_$.xb = isBlank;
12875
- _.$_$.yb = isDigit;
12876
- _.$_$.zb = isHighSurrogate;
12877
- _.$_$.ac = isLetterOrDigit;
12878
- _.$_$.bc = isLowSurrogate;
12879
- _.$_$.cc = isLowerCase;
12880
- _.$_$.dc = isUpperCase;
12881
- _.$_$.ec = isWhitespace;
12882
- _.$_$.fc = get_lastIndex_4;
12883
- _.$_$.gc = lastIndexOf;
12884
- _.$_$.hc = matches;
12885
- _.$_$.ic = prependIndent;
12886
- _.$_$.jc = removePrefix;
12887
- _.$_$.kc = removeSuffix;
12888
- _.$_$.lc = removeSurrounding;
12889
- _.$_$.mc = repeat;
12890
- _.$_$.nc = replace;
12891
- _.$_$.oc = replace_0;
12892
- _.$_$.pc = single_2;
12893
- _.$_$.qc = slice_0;
12894
- _.$_$.rc = split_0;
12895
- _.$_$.sc = split;
12896
- _.$_$.tc = startsWith;
12897
- _.$_$.uc = startsWith_1;
12898
- _.$_$.vc = substringBefore;
12899
- _.$_$.wc = substring_0;
12900
- _.$_$.xc = take_1;
12901
- _.$_$.yc = titlecase;
12902
- _.$_$.zc = toCharArray;
12903
- _.$_$.ad = toDouble;
12904
- _.$_$.bd = toIntOrNull;
12905
- _.$_$.cd = toInt_0;
12906
- _.$_$.dd = toInt;
12907
- _.$_$.ed = toList_3;
12908
- _.$_$.fd = toLong;
12909
- _.$_$.gd = toUByte;
12910
- _.$_$.hd = toUInt;
12911
- _.$_$.id = toULong;
12912
- _.$_$.jd = toUShort;
12913
- _.$_$.kd = trimIndent;
12914
- _.$_$.ld = trimMargin;
12915
- _.$_$.md = trimStart_0;
12916
- _.$_$.nd = trimStart;
12917
- _.$_$.od = trim;
12918
- _.$_$.pd = uppercaseChar;
12919
- _.$_$.qd = Duration;
12920
- _.$_$.rd = Char;
12921
- _.$_$.sd = ClassCastException;
12922
- _.$_$.td = Comparable;
12923
- _.$_$.ud = Comparator;
12924
- _.$_$.vd = DeepRecursiveFunction;
12925
- _.$_$.wd = DeepRecursiveScope;
12926
- _.$_$.xd = Enum;
12927
- _.$_$.yd = Exception;
12928
- _.$_$.zd = IllegalArgumentException;
12929
- _.$_$.ae = IllegalStateException;
12930
- _.$_$.be = Long;
12931
- _.$_$.ce = NotImplementedError;
12932
- _.$_$.de = NumberFormatException;
12933
- _.$_$.ee = Pair;
12934
- _.$_$.fe = Result;
12935
- _.$_$.ge = RuntimeException;
12936
- _.$_$.he = THROW_CCE;
12937
- _.$_$.ie = THROW_ISE;
12938
- _.$_$.je = Triple;
12939
- _.$_$.ke = UByteArray;
12940
- _.$_$.le = UByte;
12941
- _.$_$.me = UIntArray;
12942
- _.$_$.ne = UInt;
12943
- _.$_$.oe = ULongArray;
12944
- _.$_$.pe = ULong;
12945
- _.$_$.qe = UShortArray;
12946
- _.$_$.re = UShort;
12947
- _.$_$.se = Unit;
12948
- _.$_$.te = arrayOf;
12949
- _.$_$.ue = countTrailingZeroBits;
12950
- _.$_$.ve = createFailure;
12951
- _.$_$.we = ensureNotNull;
12952
- _.$_$.xe = invoke;
12953
- _.$_$.ye = isFinite_0;
12954
- _.$_$.ze = isFinite;
12955
- _.$_$.af = lazy;
12956
- _.$_$.bf = lazy_0;
12957
- _.$_$.cf = noWhenBranchMatchedException;
12958
- _.$_$.df = plus_3;
12959
- _.$_$.ef = toString_0;
12960
- _.$_$.ff = to;
12961
- _.$_$.gf = VOID;
12803
+ _.$_$.f8 = zipWithNext;
12804
+ _.$_$.g8 = zip;
12805
+ _.$_$.h8 = compareValues;
12806
+ _.$_$.i8 = CancellationException;
12807
+ _.$_$.j8 = get_COROUTINE_SUSPENDED;
12808
+ _.$_$.k8 = CoroutineImpl;
12809
+ _.$_$.l8 = enumEntries;
12810
+ _.$_$.m8 = println;
12811
+ _.$_$.n8 = println_0;
12812
+ _.$_$.o8 = print;
12813
+ _.$_$.p8 = readlnOrNull;
12814
+ _.$_$.q8 = arrayIterator;
12815
+ _.$_$.r8 = booleanArray;
12816
+ _.$_$.s8 = captureStack;
12817
+ _.$_$.t8 = charArrayOf;
12818
+ _.$_$.u8 = charArray;
12819
+ _.$_$.v8 = charSequenceGet;
12820
+ _.$_$.w8 = charSequenceLength;
12821
+ _.$_$.x8 = charSequenceSubSequence;
12822
+ _.$_$.y8 = classMeta;
12823
+ _.$_$.z8 = compareTo_0;
12824
+ _.$_$.a9 = defineProp;
12825
+ _.$_$.b9 = equals_0;
12826
+ _.$_$.c9 = fillArrayVal;
12827
+ _.$_$.d9 = getNumberHashCode;
12828
+ _.$_$.e9 = getPropertyCallableRef;
12829
+ _.$_$.f9 = getStringHashCode;
12830
+ _.$_$.g9 = hashCode;
12831
+ _.$_$.h9 = interfaceMeta;
12832
+ _.$_$.i9 = isArray;
12833
+ _.$_$.j9 = isBooleanArray;
12834
+ _.$_$.k9 = isByteArray;
12835
+ _.$_$.l9 = isCharArray;
12836
+ _.$_$.m9 = isCharSequence;
12837
+ _.$_$.n9 = isDoubleArray;
12838
+ _.$_$.o9 = isFloatArray;
12839
+ _.$_$.p9 = isIntArray;
12840
+ _.$_$.q9 = isInterface;
12841
+ _.$_$.r9 = isLongArray;
12842
+ _.$_$.s9 = isObject;
12843
+ _.$_$.t9 = isShortArray;
12844
+ _.$_$.u9 = iterator;
12845
+ _.$_$.v9 = get_js;
12846
+ _.$_$.w9 = longArray;
12847
+ _.$_$.x9 = numberRangeToNumber;
12848
+ _.$_$.y9 = numberToChar;
12849
+ _.$_$.z9 = numberToDouble;
12850
+ _.$_$.aa = numberToInt;
12851
+ _.$_$.ba = objectCreate;
12852
+ _.$_$.ca = objectMeta;
12853
+ _.$_$.da = protoOf;
12854
+ _.$_$.ea = setMetadataFor;
12855
+ _.$_$.fa = toByte;
12856
+ _.$_$.ga = toLong_0;
12857
+ _.$_$.ha = toShort;
12858
+ _.$_$.ia = toString_1;
12859
+ _.$_$.ja = roundToInt;
12860
+ _.$_$.ka = withSign;
12861
+ _.$_$.la = Random_0;
12862
+ _.$_$.ma = IntRange;
12863
+ _.$_$.na = coerceAtLeast_1;
12864
+ _.$_$.oa = coerceAtLeast;
12865
+ _.$_$.pa = coerceAtLeast_0;
12866
+ _.$_$.qa = coerceAtMost;
12867
+ _.$_$.ra = coerceIn;
12868
+ _.$_$.sa = coerceIn_0;
12869
+ _.$_$.ta = step;
12870
+ _.$_$.ua = until;
12871
+ _.$_$.va = KClass;
12872
+ _.$_$.wa = KMutableProperty1;
12873
+ _.$_$.xa = KProperty1;
12874
+ _.$_$.ya = KTypeParameter;
12875
+ _.$_$.za = asSequence_2;
12876
+ _.$_$.ab = filter;
12877
+ _.$_$.bb = generateSequence_0;
12878
+ _.$_$.cb = generateSequence;
12879
+ _.$_$.db = joinToString_1;
12880
+ _.$_$.eb = map;
12881
+ _.$_$.fb = toList_2;
12882
+ _.$_$.gb = toSet_1;
12883
+ _.$_$.hb = StringBuilder;
12884
+ _.$_$.ib = asSequence_1;
12885
+ _.$_$.jb = chunked;
12886
+ _.$_$.kb = commonPrefixWith;
12887
+ _.$_$.lb = concatToString;
12888
+ _.$_$.mb = concatToString_0;
12889
+ _.$_$.nb = contains_5;
12890
+ _.$_$.ob = contains_6;
12891
+ _.$_$.pb = dropLast_0;
12892
+ _.$_$.qb = drop_0;
12893
+ _.$_$.rb = endsWith_1;
12894
+ _.$_$.sb = endsWith;
12895
+ _.$_$.tb = equals;
12896
+ _.$_$.ub = firstOrNull_1;
12897
+ _.$_$.vb = first_1;
12898
+ _.$_$.wb = indexOf_6;
12899
+ _.$_$.xb = indexOf_5;
12900
+ _.$_$.yb = isBlank;
12901
+ _.$_$.zb = isDigit;
12902
+ _.$_$.ac = isHighSurrogate;
12903
+ _.$_$.bc = isLetterOrDigit;
12904
+ _.$_$.cc = isLowSurrogate;
12905
+ _.$_$.dc = isLowerCase;
12906
+ _.$_$.ec = isUpperCase;
12907
+ _.$_$.fc = isWhitespace;
12908
+ _.$_$.gc = get_lastIndex_4;
12909
+ _.$_$.hc = lastIndexOf;
12910
+ _.$_$.ic = matches;
12911
+ _.$_$.jc = prependIndent;
12912
+ _.$_$.kc = removePrefix;
12913
+ _.$_$.lc = removeSuffix;
12914
+ _.$_$.mc = removeSurrounding;
12915
+ _.$_$.nc = repeat;
12916
+ _.$_$.oc = replace;
12917
+ _.$_$.pc = replace_0;
12918
+ _.$_$.qc = single_2;
12919
+ _.$_$.rc = slice_0;
12920
+ _.$_$.sc = split_0;
12921
+ _.$_$.tc = split;
12922
+ _.$_$.uc = startsWith;
12923
+ _.$_$.vc = startsWith_1;
12924
+ _.$_$.wc = substringBefore;
12925
+ _.$_$.xc = substring_0;
12926
+ _.$_$.yc = take_1;
12927
+ _.$_$.zc = titlecase;
12928
+ _.$_$.ad = toCharArray;
12929
+ _.$_$.bd = toDouble;
12930
+ _.$_$.cd = toIntOrNull;
12931
+ _.$_$.dd = toInt_0;
12932
+ _.$_$.ed = toInt;
12933
+ _.$_$.fd = toList_3;
12934
+ _.$_$.gd = toLong;
12935
+ _.$_$.hd = toUByte;
12936
+ _.$_$.id = toUInt;
12937
+ _.$_$.jd = toULong;
12938
+ _.$_$.kd = toUShort;
12939
+ _.$_$.ld = trimIndent;
12940
+ _.$_$.md = trimMargin;
12941
+ _.$_$.nd = trimStart_0;
12942
+ _.$_$.od = trimStart;
12943
+ _.$_$.pd = trim;
12944
+ _.$_$.qd = uppercaseChar;
12945
+ _.$_$.rd = Duration;
12946
+ _.$_$.sd = Char;
12947
+ _.$_$.td = ClassCastException;
12948
+ _.$_$.ud = Comparable;
12949
+ _.$_$.vd = Comparator;
12950
+ _.$_$.wd = DeepRecursiveFunction;
12951
+ _.$_$.xd = DeepRecursiveScope;
12952
+ _.$_$.yd = Enum;
12953
+ _.$_$.zd = Exception;
12954
+ _.$_$.ae = IllegalArgumentException;
12955
+ _.$_$.be = IllegalStateException;
12956
+ _.$_$.ce = Long;
12957
+ _.$_$.de = NotImplementedError;
12958
+ _.$_$.ee = NumberFormatException;
12959
+ _.$_$.fe = Pair;
12960
+ _.$_$.ge = Result;
12961
+ _.$_$.he = RuntimeException;
12962
+ _.$_$.ie = THROW_CCE;
12963
+ _.$_$.je = THROW_ISE;
12964
+ _.$_$.ke = Triple;
12965
+ _.$_$.le = UByteArray;
12966
+ _.$_$.me = UByte;
12967
+ _.$_$.ne = UIntArray;
12968
+ _.$_$.oe = UInt;
12969
+ _.$_$.pe = ULongArray;
12970
+ _.$_$.qe = ULong;
12971
+ _.$_$.re = UShortArray;
12972
+ _.$_$.se = UShort;
12973
+ _.$_$.te = Unit;
12974
+ _.$_$.ue = arrayOf;
12975
+ _.$_$.ve = countTrailingZeroBits;
12976
+ _.$_$.we = createFailure;
12977
+ _.$_$.xe = ensureNotNull;
12978
+ _.$_$.ye = invoke;
12979
+ _.$_$.ze = isFinite_0;
12980
+ _.$_$.af = isFinite;
12981
+ _.$_$.bf = lazy;
12982
+ _.$_$.cf = lazy_0;
12983
+ _.$_$.df = noWhenBranchMatchedException;
12984
+ _.$_$.ef = plus_3;
12985
+ _.$_$.ff = toString_0;
12986
+ _.$_$.gf = to;
12987
+ _.$_$.hf = VOID;
12962
12988
  //endregion
12963
12989
  return _;
12964
12990
  }));