@glandais/vcyclist-engine 6.3.0 → 6.5.0
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/fit-kotlin-sdk.js +3736 -3736
- package/index.cjs +1 -0
- package/index.d.ts +48 -0
- package/index.mjs +1 -0
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.d.ts +1 -0
- package/vcyclist-engine.js +1896 -1620
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +183 -183
- package/vcyclist-gpx.js +1041 -907
- package/vcyclist-gpx.js.map +1 -1
package/vcyclist-gpx.js
CHANGED
|
@@ -215,24 +215,27 @@
|
|
|
215
215
|
initMetadataForClass(DeckProfiles, 'DeckProfiles');
|
|
216
216
|
initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
217
217
|
initMetadataForObject(DeckProfileBuilder, 'DeckProfileBuilder');
|
|
218
|
+
initMetadataForClass(ElevationCorrections, 'ElevationCorrections');
|
|
218
219
|
initMetadataForCompanion(Companion_3);
|
|
220
|
+
initMetadataForClass(ElevationCorrectionStatus, 'ElevationCorrectionStatus', VOID, Enum);
|
|
221
|
+
initMetadataForCompanion(Companion_4);
|
|
219
222
|
initMetadataForClass(ElevationGainResult, 'ElevationGainResult');
|
|
220
223
|
initMetadataForClass(Banked, 'Banked');
|
|
221
224
|
initMetadataForObject(ElevationGain, 'ElevationGain');
|
|
222
|
-
initMetadataForCompanion(Companion_4);
|
|
223
|
-
initMetadataForClass(ElevationGainPreset, 'ElevationGainPreset', VOID, Enum);
|
|
224
225
|
initMetadataForCompanion(Companion_5);
|
|
226
|
+
initMetadataForClass(ElevationGainPreset, 'ElevationGainPreset', VOID, Enum);
|
|
227
|
+
initMetadataForCompanion(Companion_6);
|
|
225
228
|
initMetadataForClass(ElevationGainOptions, 'ElevationGainOptions', ElevationGainOptions);
|
|
226
229
|
initMetadataForCoroutine($fixElevationCOROUTINE$, CoroutineImpl);
|
|
227
230
|
initMetadataForObject(ElevationStep, 'ElevationStep', VOID, VOID, VOID, [2]);
|
|
228
231
|
initMetadataForObject(FieldInterpolation, 'FieldInterpolation');
|
|
229
232
|
initMetadataForClass(GeneratedPath, 'GeneratedPath');
|
|
230
|
-
initMetadataForCompanion(Companion_6);
|
|
231
|
-
initMetadataForClass(BoundsRad, 'BoundsRad');
|
|
232
233
|
initMetadataForCompanion(Companion_7);
|
|
234
|
+
initMetadataForClass(BoundsRad, 'BoundsRad');
|
|
235
|
+
initMetadataForCompanion(Companion_8);
|
|
233
236
|
initMetadataForClass(Path, 'Path', VOID, GeneratedPath);
|
|
234
237
|
initMetadataForObject(PathSimplifier, 'PathSimplifier');
|
|
235
|
-
initMetadataForCompanion(
|
|
238
|
+
initMetadataForCompanion(Companion_9);
|
|
236
239
|
initMetadataForClass(PointField, 'PointField', VOID, Enum);
|
|
237
240
|
initMetadataForClass(PointFieldCategory, 'PointFieldCategory', VOID, Enum);
|
|
238
241
|
initMetadataForClass(Copy, 'Copy');
|
|
@@ -245,7 +248,7 @@
|
|
|
245
248
|
initMetadataForClass(Stations, 'Stations');
|
|
246
249
|
initMetadataForObject(TunnelDetector, 'TunnelDetector');
|
|
247
250
|
initMetadataForClass(TunnelProfile, 'TunnelProfile');
|
|
248
|
-
initMetadataForCompanion(
|
|
251
|
+
initMetadataForCompanion(Companion_10);
|
|
249
252
|
initMetadataForClass(TunnelDetectorOptions, 'TunnelDetectorOptions', TunnelDetectorOptions);
|
|
250
253
|
//endregion
|
|
251
254
|
var static_init_called;
|
|
@@ -1817,7 +1820,7 @@
|
|
|
1817
1820
|
var width = tmp9_elvis_lhs == null ? OsmHighway_getInstance().r24(p.z22_1) : tmp9_elvis_lhs;
|
|
1818
1821
|
path.s24(i, !(width == null) && get_PLAUSIBLE_ROAD_WIDTH_M().u(width) ? width : NaN);
|
|
1819
1822
|
}
|
|
1820
|
-
path.
|
|
1823
|
+
path.f25();
|
|
1821
1824
|
return path;
|
|
1822
1825
|
}
|
|
1823
1826
|
var properties_initialized_GpxToPath_kt_83hcm9;
|
|
@@ -2124,17 +2127,17 @@
|
|
|
2124
2127
|
w.a1m(namespace, localName, prefix);
|
|
2125
2128
|
}
|
|
2126
2129
|
function GpxWriter() {
|
|
2127
|
-
this.
|
|
2128
|
-
this.
|
|
2129
|
-
this.
|
|
2130
|
-
this.
|
|
2131
|
-
this.
|
|
2132
|
-
this.
|
|
2133
|
-
this.
|
|
2134
|
-
this.
|
|
2135
|
-
this.
|
|
2136
|
-
}
|
|
2137
|
-
protoOf(GpxWriter).
|
|
2130
|
+
this.g25_1 = 'http://www.topografix.com/GPX/1/1';
|
|
2131
|
+
this.h25_1 = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
2132
|
+
this.i25_1 = 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1';
|
|
2133
|
+
this.j25_1 = 'https://github.com/glandais/vcyclist/xmlschemas/v1';
|
|
2134
|
+
this.k25_1 = 'vc';
|
|
2135
|
+
this.l25_1 = 'xsi';
|
|
2136
|
+
this.m25_1 = 'gpxtpx';
|
|
2137
|
+
this.n25_1 = 'http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd';
|
|
2138
|
+
this.o25_1 = '@glandais/vcyclist';
|
|
2139
|
+
}
|
|
2140
|
+
protoOf(GpxWriter).p25 = function (document, writeExtensions) {
|
|
2138
2141
|
var out = StringBuilder_init_$Create$();
|
|
2139
2142
|
out.u6('<?xml version="1.0" encoding="UTF-8"?>\n');
|
|
2140
2143
|
var writer = newGenericWriter(get_xmlStreaming(), out, false, XmlDeclMode_None_getInstance());
|
|
@@ -2252,11 +2255,11 @@
|
|
|
2252
2255
|
while (i < refs.o()) {
|
|
2253
2256
|
var high = refs.p(i);
|
|
2254
2257
|
var low = getOrNull(refs, i + 1 | 0);
|
|
2255
|
-
if (!(low == null) && high.
|
|
2256
|
-
sb.y9(xml, copiedUpTo, high.
|
|
2257
|
-
var codePoint = (65536 + imul(high.
|
|
2258
|
+
if (!(low == null) && high.r25_1 === low.q25_1 && isHighSurrogate_0($this, high.s25_1) && isLowSurrogate_0($this, low.s25_1)) {
|
|
2259
|
+
sb.y9(xml, copiedUpTo, high.q25_1);
|
|
2260
|
+
var codePoint = (65536 + imul(high.s25_1 - 55296 | 0, 1024) | 0) + (low.s25_1 - 56320 | 0) | 0;
|
|
2258
2261
|
sb.u6('&#').aa(codePoint).v6(_Char___init__impl__6a9atx(59));
|
|
2259
|
-
copiedUpTo = low.
|
|
2262
|
+
copiedUpTo = low.r25_1;
|
|
2260
2263
|
count = count + 1 | 0;
|
|
2261
2264
|
i = i + 2 | 0;
|
|
2262
2265
|
} else {
|
|
@@ -2269,17 +2272,17 @@
|
|
|
2269
2272
|
return new Pair(sb.toString(), count);
|
|
2270
2273
|
}
|
|
2271
2274
|
function NumericRef(start, end, value) {
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
+
this.q25_1 = start;
|
|
2276
|
+
this.r25_1 = end;
|
|
2277
|
+
this.s25_1 = value;
|
|
2275
2278
|
}
|
|
2276
2279
|
protoOf(NumericRef).toString = function () {
|
|
2277
|
-
return 'NumericRef(start=' + this.
|
|
2280
|
+
return 'NumericRef(start=' + this.q25_1 + ', end=' + this.r25_1 + ', value=' + this.s25_1 + ')';
|
|
2278
2281
|
};
|
|
2279
2282
|
protoOf(NumericRef).hashCode = function () {
|
|
2280
|
-
var result = this.
|
|
2281
|
-
result = imul(result, 31) + this.q25_1 | 0;
|
|
2283
|
+
var result = this.q25_1;
|
|
2282
2284
|
result = imul(result, 31) + this.r25_1 | 0;
|
|
2285
|
+
result = imul(result, 31) + this.s25_1 | 0;
|
|
2283
2286
|
return result;
|
|
2284
2287
|
};
|
|
2285
2288
|
protoOf(NumericRef).equals = function (other) {
|
|
@@ -2287,12 +2290,12 @@
|
|
|
2287
2290
|
return true;
|
|
2288
2291
|
if (!(other instanceof NumericRef))
|
|
2289
2292
|
return false;
|
|
2290
|
-
if (!(this.p25_1 === other.p25_1))
|
|
2291
|
-
return false;
|
|
2292
2293
|
if (!(this.q25_1 === other.q25_1))
|
|
2293
2294
|
return false;
|
|
2294
2295
|
if (!(this.r25_1 === other.r25_1))
|
|
2295
2296
|
return false;
|
|
2297
|
+
if (!(this.s25_1 === other.s25_1))
|
|
2298
|
+
return false;
|
|
2296
2299
|
return true;
|
|
2297
2300
|
};
|
|
2298
2301
|
function findNumericReferences($this, xml) {
|
|
@@ -2410,9 +2413,9 @@
|
|
|
2410
2413
|
this.f24_1 = 20;
|
|
2411
2414
|
}
|
|
2412
2415
|
protoOf(GpxXmlRepair).g24 = function (xml) {
|
|
2413
|
-
return this.
|
|
2416
|
+
return this.v25(xml).t25_1;
|
|
2414
2417
|
};
|
|
2415
|
-
protoOf(GpxXmlRepair).
|
|
2418
|
+
protoOf(GpxXmlRepair).v25 = function (xml) {
|
|
2416
2419
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2417
2420
|
var repairs = ArrayList_init_$Create$();
|
|
2418
2421
|
var current = xml;
|
|
@@ -2471,15 +2474,15 @@
|
|
|
2471
2474
|
return GpxXmlRepair_instance;
|
|
2472
2475
|
}
|
|
2473
2476
|
function RepairResult(xml, repairs) {
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2477
|
+
this.t25_1 = xml;
|
|
2478
|
+
this.u25_1 = repairs;
|
|
2476
2479
|
}
|
|
2477
2480
|
protoOf(RepairResult).toString = function () {
|
|
2478
|
-
return 'RepairResult(xml=' + this.
|
|
2481
|
+
return 'RepairResult(xml=' + this.t25_1 + ', repairs=' + toString_0(this.u25_1) + ')';
|
|
2479
2482
|
};
|
|
2480
2483
|
protoOf(RepairResult).hashCode = function () {
|
|
2481
|
-
var result = getStringHashCode(this.
|
|
2482
|
-
result = imul(result, 31) + hashCode(this.
|
|
2484
|
+
var result = getStringHashCode(this.t25_1);
|
|
2485
|
+
result = imul(result, 31) + hashCode(this.u25_1) | 0;
|
|
2483
2486
|
return result;
|
|
2484
2487
|
};
|
|
2485
2488
|
protoOf(RepairResult).equals = function (other) {
|
|
@@ -2487,9 +2490,9 @@
|
|
|
2487
2490
|
return true;
|
|
2488
2491
|
if (!(other instanceof RepairResult))
|
|
2489
2492
|
return false;
|
|
2490
|
-
if (!(this.
|
|
2493
|
+
if (!(this.t25_1 === other.t25_1))
|
|
2491
2494
|
return false;
|
|
2492
|
-
if (!equals(this.
|
|
2495
|
+
if (!equals(this.u25_1, other.u25_1))
|
|
2493
2496
|
return false;
|
|
2494
2497
|
return true;
|
|
2495
2498
|
};
|
|
@@ -2543,9 +2546,9 @@
|
|
|
2543
2546
|
var negative = value < 0.0;
|
|
2544
2547
|
// Inline function 'kotlin.math.abs' call
|
|
2545
2548
|
var absValue = Math.abs(value);
|
|
2546
|
-
var scale = toNumber($this.
|
|
2549
|
+
var scale = toNumber($this.x25_1[decimals]);
|
|
2547
2550
|
var scaledLong = numberToLong(round(absValue * scale));
|
|
2548
|
-
var whole = $this.
|
|
2551
|
+
var whole = $this.x25_1[decimals];
|
|
2549
2552
|
var intPart = divide(scaledLong, whole);
|
|
2550
2553
|
var sign = negative && !equalsLong(scaledLong, new Long(0, 0)) ? '-' : '';
|
|
2551
2554
|
var tmp;
|
|
@@ -2559,7 +2562,7 @@
|
|
|
2559
2562
|
}
|
|
2560
2563
|
function CsvNumberFormat() {
|
|
2561
2564
|
CsvNumberFormat_instance = this;
|
|
2562
|
-
this.
|
|
2565
|
+
this.w25_1 = 12;
|
|
2563
2566
|
var tmp = this;
|
|
2564
2567
|
// Inline function 'kotlin.also' call
|
|
2565
2568
|
var this_0 = longArray(13);
|
|
@@ -2574,9 +2577,9 @@
|
|
|
2574
2577
|
p = multiply(p, new Long(10, 0));
|
|
2575
2578
|
}
|
|
2576
2579
|
while (inductionVariable <= last);
|
|
2577
|
-
tmp.
|
|
2580
|
+
tmp.x25_1 = this_0;
|
|
2578
2581
|
}
|
|
2579
|
-
protoOf(CsvNumberFormat).
|
|
2582
|
+
protoOf(CsvNumberFormat).y25 = function (value, decimals) {
|
|
2580
2583
|
if (isNaN_0(value))
|
|
2581
2584
|
return '';
|
|
2582
2585
|
if (isInfinite(value))
|
|
@@ -2606,21 +2609,21 @@
|
|
|
2606
2609
|
unitsInHeader = unitsInHeader === VOID ? true : unitsInHeader;
|
|
2607
2610
|
decimals = decimals === VOID ? null : decimals;
|
|
2608
2611
|
lineSeparator = lineSeparator === VOID ? '\n' : lineSeparator;
|
|
2609
|
-
this.
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2612
|
+
this.z25_1 = fields;
|
|
2613
|
+
this.a26_1 = separator;
|
|
2614
|
+
this.b26_1 = unitsInHeader;
|
|
2615
|
+
this.c26_1 = decimals;
|
|
2616
|
+
this.d26_1 = lineSeparator;
|
|
2614
2617
|
}
|
|
2615
2618
|
protoOf(CsvOptions).toString = function () {
|
|
2616
|
-
return 'CsvOptions(fields=' + toString(this.
|
|
2619
|
+
return 'CsvOptions(fields=' + toString(this.z25_1) + ', separator=' + toString_1(this.a26_1) + ', unitsInHeader=' + this.b26_1 + ', decimals=' + this.c26_1 + ', lineSeparator=' + this.d26_1 + ')';
|
|
2617
2620
|
};
|
|
2618
2621
|
protoOf(CsvOptions).hashCode = function () {
|
|
2619
|
-
var result = this.
|
|
2620
|
-
result = imul(result, 31) + Char__hashCode_impl_otmys(this.
|
|
2621
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2622
|
-
result = imul(result, 31) + (this.
|
|
2623
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2622
|
+
var result = this.z25_1 == null ? 0 : hashCode(this.z25_1);
|
|
2623
|
+
result = imul(result, 31) + Char__hashCode_impl_otmys(this.a26_1) | 0;
|
|
2624
|
+
result = imul(result, 31) + getBooleanHashCode(this.b26_1) | 0;
|
|
2625
|
+
result = imul(result, 31) + (this.c26_1 == null ? 0 : this.c26_1) | 0;
|
|
2626
|
+
result = imul(result, 31) + getStringHashCode(this.d26_1) | 0;
|
|
2624
2627
|
return result;
|
|
2625
2628
|
};
|
|
2626
2629
|
protoOf(CsvOptions).equals = function (other) {
|
|
@@ -2628,20 +2631,20 @@
|
|
|
2628
2631
|
return true;
|
|
2629
2632
|
if (!(other instanceof CsvOptions))
|
|
2630
2633
|
return false;
|
|
2631
|
-
if (!equals(this.
|
|
2632
|
-
return false;
|
|
2633
|
-
if (!(this.z25_1 === other.z25_1))
|
|
2634
|
+
if (!equals(this.z25_1, other.z25_1))
|
|
2634
2635
|
return false;
|
|
2635
2636
|
if (!(this.a26_1 === other.a26_1))
|
|
2636
2637
|
return false;
|
|
2637
|
-
if (!(this.b26_1
|
|
2638
|
+
if (!(this.b26_1 === other.b26_1))
|
|
2639
|
+
return false;
|
|
2640
|
+
if (!(this.c26_1 == other.c26_1))
|
|
2638
2641
|
return false;
|
|
2639
|
-
if (!(this.
|
|
2642
|
+
if (!(this.d26_1 === other.d26_1))
|
|
2640
2643
|
return false;
|
|
2641
2644
|
return true;
|
|
2642
2645
|
};
|
|
2643
2646
|
function headerFor($this, field, unitsInHeader) {
|
|
2644
|
-
return unitsInHeader ? field.
|
|
2647
|
+
return unitsInHeader ? field.g26_1 + ' (' + field.h26_1 + ')' : field.g26_1;
|
|
2645
2648
|
}
|
|
2646
2649
|
function appendRow($this, sb, cells, options) {
|
|
2647
2650
|
var iterator = cells.l();
|
|
@@ -2651,9 +2654,9 @@
|
|
|
2651
2654
|
index = index + 1 | 0;
|
|
2652
2655
|
var cell = iterator.n();
|
|
2653
2656
|
if (i > 0) {
|
|
2654
|
-
sb.v6(options.
|
|
2657
|
+
sb.v6(options.a26_1);
|
|
2655
2658
|
}
|
|
2656
|
-
sb.u6(escapeCsvCell($this, cell, options.
|
|
2659
|
+
sb.u6(escapeCsvCell($this, cell, options.a26_1));
|
|
2657
2660
|
}
|
|
2658
2661
|
}
|
|
2659
2662
|
function escapeCsvCell($this, cell, separator) {
|
|
@@ -2682,9 +2685,9 @@
|
|
|
2682
2685
|
}
|
|
2683
2686
|
function CsvWriter() {
|
|
2684
2687
|
}
|
|
2685
|
-
protoOf(CsvWriter).
|
|
2686
|
-
var tmp0_elvis_lhs = options.
|
|
2687
|
-
var fields = tmp0_elvis_lhs == null ?
|
|
2688
|
+
protoOf(CsvWriter).n26 = function (path, options) {
|
|
2689
|
+
var tmp0_elvis_lhs = options.z25_1;
|
|
2690
|
+
var fields = tmp0_elvis_lhs == null ? get_entries_3() : tmp0_elvis_lhs;
|
|
2688
2691
|
var sb = StringBuilder_init_$Create$();
|
|
2689
2692
|
// Inline function 'kotlin.collections.map' call
|
|
2690
2693
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2692,7 +2695,7 @@
|
|
|
2692
2695
|
var _iterator__ex2g4s = fields.l();
|
|
2693
2696
|
while (_iterator__ex2g4s.m()) {
|
|
2694
2697
|
var item = _iterator__ex2g4s.n();
|
|
2695
|
-
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.
|
|
2698
|
+
var tmp$ret$2 = headerFor(CsvWriter_instance, item, options.b26_1);
|
|
2696
2699
|
destination.k(tmp$ret$2);
|
|
2697
2700
|
}
|
|
2698
2701
|
appendRow(this, sb, destination, options);
|
|
@@ -2702,14 +2705,14 @@
|
|
|
2702
2705
|
do {
|
|
2703
2706
|
var i = inductionVariable;
|
|
2704
2707
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2705
|
-
sb.u6(options.
|
|
2708
|
+
sb.u6(options.d26_1);
|
|
2706
2709
|
// Inline function 'kotlin.collections.map' call
|
|
2707
2710
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2708
2711
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(fields, 10));
|
|
2709
2712
|
var _iterator__ex2g4s_0 = fields.l();
|
|
2710
2713
|
while (_iterator__ex2g4s_0.m()) {
|
|
2711
2714
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
2712
|
-
var tmp$ret$5 = CsvNumberFormat_getInstance().
|
|
2715
|
+
var tmp$ret$5 = CsvNumberFormat_getInstance().y25(path.o26(i, item_0), options.c26_1);
|
|
2713
2716
|
destination_0.k(tmp$ret$5);
|
|
2714
2717
|
}
|
|
2715
2718
|
appendRow(this, sb, destination_0, options);
|
|
@@ -2726,19 +2729,19 @@
|
|
|
2726
2729
|
pretty = pretty === VOID ? false : pretty;
|
|
2727
2730
|
decimals = decimals === VOID ? null : decimals;
|
|
2728
2731
|
includeMeta = includeMeta === VOID ? true : includeMeta;
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2732
|
+
this.p26_1 = fields;
|
|
2733
|
+
this.q26_1 = pretty;
|
|
2734
|
+
this.r26_1 = decimals;
|
|
2735
|
+
this.s26_1 = includeMeta;
|
|
2733
2736
|
}
|
|
2734
2737
|
protoOf(JsonOptions).toString = function () {
|
|
2735
|
-
return 'JsonOptions(fields=' + toString(this.
|
|
2738
|
+
return 'JsonOptions(fields=' + toString(this.p26_1) + ', pretty=' + this.q26_1 + ', decimals=' + this.r26_1 + ', includeMeta=' + this.s26_1 + ')';
|
|
2736
2739
|
};
|
|
2737
2740
|
protoOf(JsonOptions).hashCode = function () {
|
|
2738
|
-
var result = this.
|
|
2739
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2740
|
-
result = imul(result, 31) + (this.
|
|
2741
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2741
|
+
var result = this.p26_1 == null ? 0 : hashCode(this.p26_1);
|
|
2742
|
+
result = imul(result, 31) + getBooleanHashCode(this.q26_1) | 0;
|
|
2743
|
+
result = imul(result, 31) + (this.r26_1 == null ? 0 : this.r26_1) | 0;
|
|
2744
|
+
result = imul(result, 31) + getBooleanHashCode(this.s26_1) | 0;
|
|
2742
2745
|
return result;
|
|
2743
2746
|
};
|
|
2744
2747
|
protoOf(JsonOptions).equals = function (other) {
|
|
@@ -2746,13 +2749,13 @@
|
|
|
2746
2749
|
return true;
|
|
2747
2750
|
if (!(other instanceof JsonOptions))
|
|
2748
2751
|
return false;
|
|
2749
|
-
if (!equals(this.
|
|
2752
|
+
if (!equals(this.p26_1, other.p26_1))
|
|
2750
2753
|
return false;
|
|
2751
|
-
if (!(this.
|
|
2754
|
+
if (!(this.q26_1 === other.q26_1))
|
|
2752
2755
|
return false;
|
|
2753
|
-
if (!(this.
|
|
2756
|
+
if (!(this.r26_1 == other.r26_1))
|
|
2754
2757
|
return false;
|
|
2755
|
-
if (!(this.
|
|
2758
|
+
if (!(this.s26_1 === other.s26_1))
|
|
2756
2759
|
return false;
|
|
2757
2760
|
return true;
|
|
2758
2761
|
};
|
|
@@ -2762,7 +2765,7 @@
|
|
|
2762
2765
|
sb.v6(_Char___init__impl__6a9atx(123)).u6(nl);
|
|
2763
2766
|
appendKeyValueRaw($this, sb, inner, 'totalDistance', numberOrNull($this, path.v24_1, decimals), colon);
|
|
2764
2767
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2765
|
-
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.
|
|
2768
|
+
appendKeyValueRaw($this, sb, inner, 'durationMs', numberOrNull($this, path.d25_1, decimals), colon);
|
|
2766
2769
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2767
2770
|
appendKeyValueRaw($this, sb, inner, 'elevationGain', numberOrNull($this, path.y24_1, decimals), colon);
|
|
2768
2771
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
@@ -2781,7 +2784,7 @@
|
|
|
2781
2784
|
var i = index;
|
|
2782
2785
|
index = index + 1 | 0;
|
|
2783
2786
|
var field = iterator.n();
|
|
2784
|
-
appendKeyValueRaw($this, sb, innerUnits, $this.
|
|
2787
|
+
appendKeyValueRaw($this, sb, innerUnits, $this.t26(field.g26_1), '"' + $this.t26(field.h26_1) + '"', colon);
|
|
2785
2788
|
if (!(i === get_lastIndex(fields))) {
|
|
2786
2789
|
sb.v6(_Char___init__impl__6a9atx(44));
|
|
2787
2790
|
}
|
|
@@ -2799,7 +2802,7 @@
|
|
|
2799
2802
|
var fi = index;
|
|
2800
2803
|
index = index + 1 | 0;
|
|
2801
2804
|
var field = iterator.n();
|
|
2802
|
-
appendKeyRaw($this, sb, inner, $this.
|
|
2805
|
+
appendKeyRaw($this, sb, inner, $this.t26(field.g26_1), colon);
|
|
2803
2806
|
sb.v6(_Char___init__impl__6a9atx(91));
|
|
2804
2807
|
var inductionVariable = 0;
|
|
2805
2808
|
var last = path.l23_1;
|
|
@@ -2810,7 +2813,7 @@
|
|
|
2810
2813
|
if (i > 0) {
|
|
2811
2814
|
sb.v6(_Char___init__impl__6a9atx(44));
|
|
2812
2815
|
}
|
|
2813
|
-
sb.u6(numberOrNull($this, path.
|
|
2816
|
+
sb.u6(numberOrNull($this, path.o26(i, field), options.r26_1));
|
|
2814
2817
|
}
|
|
2815
2818
|
while (inductionVariable < last);
|
|
2816
2819
|
sb.v6(_Char___init__impl__6a9atx(93));
|
|
@@ -2827,7 +2830,7 @@
|
|
|
2827
2830
|
if (isNaN_0(value) || isInfinite(value)) {
|
|
2828
2831
|
tmp = 'null';
|
|
2829
2832
|
} else {
|
|
2830
|
-
tmp = CsvNumberFormat_getInstance().
|
|
2833
|
+
tmp = CsvNumberFormat_getInstance().y25(value, decimals);
|
|
2831
2834
|
}
|
|
2832
2835
|
return tmp;
|
|
2833
2836
|
}
|
|
@@ -2840,18 +2843,18 @@
|
|
|
2840
2843
|
}
|
|
2841
2844
|
function JsonWriter() {
|
|
2842
2845
|
}
|
|
2843
|
-
protoOf(JsonWriter).
|
|
2844
|
-
var tmp0_elvis_lhs = options.
|
|
2845
|
-
var fields = tmp0_elvis_lhs == null ?
|
|
2846
|
+
protoOf(JsonWriter).u26 = function (path, options) {
|
|
2847
|
+
var tmp0_elvis_lhs = options.p26_1;
|
|
2848
|
+
var fields = tmp0_elvis_lhs == null ? get_entries_3() : tmp0_elvis_lhs;
|
|
2846
2849
|
var sb = StringBuilder_init_$Create$();
|
|
2847
|
-
var indent = options.
|
|
2848
|
-
var nl = options.
|
|
2849
|
-
var colon = options.
|
|
2850
|
+
var indent = options.q26_1 ? ' ' : '';
|
|
2851
|
+
var nl = options.q26_1 ? '\n' : '';
|
|
2852
|
+
var colon = options.q26_1 ? ': ' : ':';
|
|
2850
2853
|
sb.v6(_Char___init__impl__6a9atx(123)).u6(nl);
|
|
2851
2854
|
appendKeyValueRaw(this, sb, indent, 'size', path.l23_1.toString(), colon);
|
|
2852
2855
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2853
|
-
if (options.
|
|
2854
|
-
appendMeta(this, sb, path, fields, options.
|
|
2856
|
+
if (options.s26_1) {
|
|
2857
|
+
appendMeta(this, sb, path, fields, options.r26_1, indent, nl, colon);
|
|
2855
2858
|
sb.v6(_Char___init__impl__6a9atx(44)).u6(nl);
|
|
2856
2859
|
}
|
|
2857
2860
|
appendKeyRaw(this, sb, indent, 'fields', colon);
|
|
@@ -2859,7 +2862,7 @@
|
|
|
2859
2862
|
sb.u6(nl).v6(_Char___init__impl__6a9atx(125));
|
|
2860
2863
|
return sb.toString();
|
|
2861
2864
|
};
|
|
2862
|
-
protoOf(JsonWriter).
|
|
2865
|
+
protoOf(JsonWriter).t26 = function (value) {
|
|
2863
2866
|
var sb = StringBuilder_init_$Create$_0(value.length);
|
|
2864
2867
|
var inductionVariable = 0;
|
|
2865
2868
|
var last = value.length;
|
|
@@ -2895,17 +2898,17 @@
|
|
|
2895
2898
|
return JsonWriter_instance;
|
|
2896
2899
|
}
|
|
2897
2900
|
function DeckDetection(accepted, rejected, tallRunsTooShort) {
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2901
|
+
this.v26_1 = accepted;
|
|
2902
|
+
this.w26_1 = rejected;
|
|
2903
|
+
this.x26_1 = tallRunsTooShort;
|
|
2901
2904
|
}
|
|
2902
2905
|
protoOf(DeckDetection).toString = function () {
|
|
2903
|
-
return 'DeckDetection(accepted=' + toString_0(this.
|
|
2906
|
+
return 'DeckDetection(accepted=' + toString_0(this.v26_1) + ', rejected=' + toString_0(this.w26_1) + ', tallRunsTooShort=' + this.x26_1 + ')';
|
|
2904
2907
|
};
|
|
2905
2908
|
protoOf(DeckDetection).hashCode = function () {
|
|
2906
|
-
var result = hashCode(this.
|
|
2907
|
-
result = imul(result, 31) + hashCode(this.
|
|
2908
|
-
result = imul(result, 31) + this.
|
|
2909
|
+
var result = hashCode(this.v26_1);
|
|
2910
|
+
result = imul(result, 31) + hashCode(this.w26_1) | 0;
|
|
2911
|
+
result = imul(result, 31) + this.x26_1 | 0;
|
|
2909
2912
|
return result;
|
|
2910
2913
|
};
|
|
2911
2914
|
protoOf(DeckDetection).equals = function (other) {
|
|
@@ -2913,34 +2916,34 @@
|
|
|
2913
2916
|
return true;
|
|
2914
2917
|
if (!(other instanceof DeckDetection))
|
|
2915
2918
|
return false;
|
|
2916
|
-
if (!equals(this.u26_1, other.u26_1))
|
|
2917
|
-
return false;
|
|
2918
2919
|
if (!equals(this.v26_1, other.v26_1))
|
|
2919
2920
|
return false;
|
|
2920
|
-
if (!(this.w26_1
|
|
2921
|
+
if (!equals(this.w26_1, other.w26_1))
|
|
2922
|
+
return false;
|
|
2923
|
+
if (!(this.x26_1 === other.x26_1))
|
|
2921
2924
|
return false;
|
|
2922
2925
|
return true;
|
|
2923
2926
|
};
|
|
2924
2927
|
function DeckCandidate(first, last, startM, endM, metrics, rejection, deckRanges) {
|
|
2925
|
-
this.
|
|
2926
|
-
this.
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2928
|
+
this.y26_1 = first;
|
|
2929
|
+
this.z26_1 = last;
|
|
2930
|
+
this.a27_1 = startM;
|
|
2931
|
+
this.b27_1 = endM;
|
|
2932
|
+
this.c27_1 = metrics;
|
|
2933
|
+
this.d27_1 = rejection;
|
|
2934
|
+
this.e27_1 = deckRanges;
|
|
2932
2935
|
}
|
|
2933
2936
|
protoOf(DeckCandidate).toString = function () {
|
|
2934
|
-
return 'DeckCandidate(first=' + this.
|
|
2937
|
+
return 'DeckCandidate(first=' + this.y26_1 + ', last=' + this.z26_1 + ', startM=' + this.a27_1 + ', endM=' + this.b27_1 + ', metrics=' + toString(this.c27_1) + ', rejection=' + toString(this.d27_1) + ', deckRanges=' + toString_0(this.e27_1) + ')';
|
|
2935
2938
|
};
|
|
2936
2939
|
protoOf(DeckCandidate).hashCode = function () {
|
|
2937
|
-
var result = this.
|
|
2938
|
-
result = imul(result, 31) + this.
|
|
2939
|
-
result = imul(result, 31) + getNumberHashCode(this.z26_1) | 0;
|
|
2940
|
+
var result = this.y26_1;
|
|
2941
|
+
result = imul(result, 31) + this.z26_1 | 0;
|
|
2940
2942
|
result = imul(result, 31) + getNumberHashCode(this.a27_1) | 0;
|
|
2941
|
-
result = imul(result, 31) + (this.b27_1
|
|
2943
|
+
result = imul(result, 31) + getNumberHashCode(this.b27_1) | 0;
|
|
2942
2944
|
result = imul(result, 31) + (this.c27_1 == null ? 0 : this.c27_1.hashCode()) | 0;
|
|
2943
|
-
result = imul(result, 31) +
|
|
2945
|
+
result = imul(result, 31) + (this.d27_1 == null ? 0 : this.d27_1.hashCode()) | 0;
|
|
2946
|
+
result = imul(result, 31) + hashCode(this.e27_1) | 0;
|
|
2944
2947
|
return result;
|
|
2945
2948
|
};
|
|
2946
2949
|
protoOf(DeckCandidate).equals = function (other) {
|
|
@@ -2948,11 +2951,9 @@
|
|
|
2948
2951
|
return true;
|
|
2949
2952
|
if (!(other instanceof DeckCandidate))
|
|
2950
2953
|
return false;
|
|
2951
|
-
if (!(this.x26_1 === other.x26_1))
|
|
2952
|
-
return false;
|
|
2953
2954
|
if (!(this.y26_1 === other.y26_1))
|
|
2954
2955
|
return false;
|
|
2955
|
-
if (!
|
|
2956
|
+
if (!(this.z26_1 === other.z26_1))
|
|
2956
2957
|
return false;
|
|
2957
2958
|
if (!equals(this.a27_1, other.a27_1))
|
|
2958
2959
|
return false;
|
|
@@ -2962,11 +2963,13 @@
|
|
|
2962
2963
|
return false;
|
|
2963
2964
|
if (!equals(this.d27_1, other.d27_1))
|
|
2964
2965
|
return false;
|
|
2966
|
+
if (!equals(this.e27_1, other.e27_1))
|
|
2967
|
+
return false;
|
|
2965
2968
|
return true;
|
|
2966
2969
|
};
|
|
2967
2970
|
function Companion_1() {
|
|
2968
2971
|
}
|
|
2969
|
-
protoOf(Companion_1).
|
|
2972
|
+
protoOf(Companion_1).f27 = function (mnsM, mntM) {
|
|
2970
2973
|
// Inline function 'kotlin.require' call
|
|
2971
2974
|
if (!(mnsM.length === mntM.length)) {
|
|
2972
2975
|
var message = 'MNS and MNT sizes differ: ' + mnsM.length + ', ' + mntM.length;
|
|
@@ -2987,23 +2990,23 @@
|
|
|
2987
2990
|
return Companion_instance_2;
|
|
2988
2991
|
}
|
|
2989
2992
|
function DeckProfile(mnhM, mnsM, mntM) {
|
|
2990
|
-
this.
|
|
2991
|
-
this.
|
|
2992
|
-
this.
|
|
2993
|
+
this.g27_1 = mnhM;
|
|
2994
|
+
this.h27_1 = mnsM;
|
|
2995
|
+
this.i27_1 = mntM;
|
|
2993
2996
|
// Inline function 'kotlin.require' call
|
|
2994
|
-
if (!(this.
|
|
2995
|
-
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.
|
|
2997
|
+
if (!(this.g27_1.length === this.h27_1.length && this.h27_1.length === this.i27_1.length)) {
|
|
2998
|
+
var message = 'MNH, MNS and MNT must have one sample per station: ' + this.g27_1.length + ', ' + this.h27_1.length + ', ' + this.i27_1.length;
|
|
2996
2999
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
2997
3000
|
}
|
|
2998
3001
|
}
|
|
2999
3002
|
protoOf(DeckProfile).o = function () {
|
|
3000
|
-
return this.
|
|
3003
|
+
return this.g27_1.length;
|
|
3001
3004
|
};
|
|
3002
3005
|
function SurfaceState(mnh, mf, rough, clean) {
|
|
3003
|
-
this.
|
|
3004
|
-
this.
|
|
3005
|
-
this.
|
|
3006
|
-
this.
|
|
3006
|
+
this.j27_1 = mnh;
|
|
3007
|
+
this.k27_1 = mf;
|
|
3008
|
+
this.l27_1 = rough;
|
|
3009
|
+
this.m27_1 = clean;
|
|
3007
3010
|
}
|
|
3008
3011
|
function roughness($this, mns, mf, half) {
|
|
3009
3012
|
var tmp = 0;
|
|
@@ -3017,7 +3020,7 @@
|
|
|
3017
3020
|
tmp = tmp + 1 | 0;
|
|
3018
3021
|
}
|
|
3019
3022
|
var sq = tmp_1;
|
|
3020
|
-
var mean = $this.
|
|
3023
|
+
var mean = $this.n27(sq, half);
|
|
3021
3024
|
var tmp_3 = 0;
|
|
3022
3025
|
var tmp_4 = mns.length;
|
|
3023
3026
|
var tmp_5 = new Float64Array(tmp_4);
|
|
@@ -3062,7 +3065,7 @@
|
|
|
3062
3065
|
if (tmp_0) {
|
|
3063
3066
|
tmp = NaN;
|
|
3064
3067
|
} else {
|
|
3065
|
-
tmp = $this.
|
|
3068
|
+
tmp = $this.o27(values, 0.95);
|
|
3066
3069
|
}
|
|
3067
3070
|
return tmp;
|
|
3068
3071
|
}
|
|
@@ -3091,16 +3094,16 @@
|
|
|
3091
3094
|
return tmp;
|
|
3092
3095
|
}
|
|
3093
3096
|
function sam$kotlin_Comparator$0(function_0) {
|
|
3094
|
-
this.
|
|
3097
|
+
this.p27_1 = function_0;
|
|
3095
3098
|
}
|
|
3096
3099
|
protoOf(sam$kotlin_Comparator$0).la = function (a, b) {
|
|
3097
|
-
return this.
|
|
3100
|
+
return this.p27_1(a, b);
|
|
3098
3101
|
};
|
|
3099
3102
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
3100
3103
|
return this.la(a, b);
|
|
3101
3104
|
};
|
|
3102
3105
|
protoOf(sam$kotlin_Comparator$0).e2 = function () {
|
|
3103
|
-
return this.
|
|
3106
|
+
return this.p27_1;
|
|
3104
3107
|
};
|
|
3105
3108
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
3106
3109
|
var tmp;
|
|
@@ -3123,8 +3126,8 @@
|
|
|
3123
3126
|
function detect$classify($options, slope, clean, mns, mnh, rough, mnt, n, step, mf, span, fraction) {
|
|
3124
3127
|
var a = span.oe_1;
|
|
3125
3128
|
var b = span.pe_1;
|
|
3126
|
-
var short = (b - a | 0) <= $options.
|
|
3127
|
-
var h = $options.
|
|
3129
|
+
var short = (b - a | 0) <= $options.p28();
|
|
3130
|
+
var h = $options.q28();
|
|
3128
3131
|
var tmp;
|
|
3129
3132
|
if (short) {
|
|
3130
3133
|
tmp = new Float64Array(0);
|
|
@@ -3144,8 +3147,8 @@
|
|
|
3144
3147
|
tmp = tmp_2;
|
|
3145
3148
|
}
|
|
3146
3149
|
var rawSlopes = tmp;
|
|
3147
|
-
var cleanFraction = short ? NaN : DeckDetector_instance.
|
|
3148
|
-
var cleanSlopes = !short && $options.
|
|
3150
|
+
var cleanFraction = short ? NaN : DeckDetector_instance.r28(clean, a, b, h);
|
|
3151
|
+
var cleanSlopes = !short && $options.i28_1 ? DeckDetector_instance.s28(mns, mnh, clean, cleanFraction, a, b, $options) : null;
|
|
3149
3152
|
var slopes = cleanSlopes == null ? rawSlopes : cleanSlopes;
|
|
3150
3153
|
var slopeP95 = p95OrNaN(DeckDetector_instance, slopes);
|
|
3151
3154
|
var tmp_4;
|
|
@@ -3165,7 +3168,7 @@
|
|
|
3165
3168
|
do {
|
|
3166
3169
|
var element = inductionVariable;
|
|
3167
3170
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3168
|
-
if (mnh[element] > $options.
|
|
3171
|
+
if (mnh[element] > $options.r27_1) {
|
|
3169
3172
|
destination.k(element);
|
|
3170
3173
|
}
|
|
3171
3174
|
}
|
|
@@ -3325,7 +3328,7 @@
|
|
|
3325
3328
|
}
|
|
3326
3329
|
var tmp2_elvis_lhs = maxOrNull(destination_5);
|
|
3327
3330
|
var metrics = new DeckMetrics(tmp_10, slopeP95, slopeMax, tmp_11, cleanFraction, tmp_12, roughness, fraction, tmp_13, mntDrop, tmp2_elvis_lhs == null ? NaN : tmp2_elvis_lhs);
|
|
3328
|
-
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.
|
|
3331
|
+
var rejection = stoppedOnNaN || isNaN_0(mntDrop) ? DeckRejection_NO_DATA_getInstance() : !(mntDrop > $options.e28_1) ? DeckRejection_NO_CANYON_getInstance() : short && isNaN_0(roughness) ? DeckRejection_NO_DATA_getInstance() : short ? roughness < $options.d28_1 ? null : DeckRejection_SHORT_ROUGH_getInstance() : isNaN_0(slopeP95) ? DeckRejection_NO_DATA_getInstance() : slopeP95 <= $options.a28_1 && (b - a | 0) * step >= $options.b28_1 ? null : DeckRejection_STEEP_getInstance();
|
|
3329
3332
|
return to(metrics, rejection);
|
|
3330
3333
|
}
|
|
3331
3334
|
function DeckDetector$detect$lambda($mf) {
|
|
@@ -3335,8 +3338,8 @@
|
|
|
3335
3338
|
}
|
|
3336
3339
|
function DeckDetector$detect$lambda_0(a, b) {
|
|
3337
3340
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3338
|
-
var tmp = a.
|
|
3339
|
-
var tmp$ret$2 = b.
|
|
3341
|
+
var tmp = a.y26_1;
|
|
3342
|
+
var tmp$ret$2 = b.y26_1;
|
|
3340
3343
|
return compareValues(tmp, tmp$ret$2);
|
|
3341
3344
|
}
|
|
3342
3345
|
function DeckDetector$detect$lambda_1($this) {
|
|
@@ -3347,8 +3350,8 @@
|
|
|
3347
3350
|
tmp = previousCompare;
|
|
3348
3351
|
} else {
|
|
3349
3352
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
3350
|
-
var tmp_0 = a.
|
|
3351
|
-
var tmp$ret$2 = b.
|
|
3353
|
+
var tmp_0 = a.z26_1;
|
|
3354
|
+
var tmp$ret$2 = b.z26_1;
|
|
3352
3355
|
tmp = compareValues(tmp_0, tmp$ret$2);
|
|
3353
3356
|
}
|
|
3354
3357
|
return tmp;
|
|
@@ -3367,33 +3370,33 @@
|
|
|
3367
3370
|
}
|
|
3368
3371
|
function DeckDetector() {
|
|
3369
3372
|
}
|
|
3370
|
-
protoOf(DeckDetector).
|
|
3373
|
+
protoOf(DeckDetector).t28 = function (profile, options) {
|
|
3371
3374
|
var n = profile.o();
|
|
3372
|
-
var mns = profile.
|
|
3373
|
-
var mnt = profile.
|
|
3374
|
-
var step = options.
|
|
3375
|
+
var mns = profile.h27_1;
|
|
3376
|
+
var mnt = profile.i27_1;
|
|
3377
|
+
var step = options.q27_1;
|
|
3375
3378
|
if (n === 0)
|
|
3376
3379
|
return new DeckDetection(emptyList(), emptyList(), 0);
|
|
3377
|
-
var state = this.
|
|
3378
|
-
var mnh = state.
|
|
3379
|
-
var mf = state.
|
|
3380
|
-
var rough = state.
|
|
3380
|
+
var state = this.u28(profile, options);
|
|
3381
|
+
var mnh = state.j27_1;
|
|
3382
|
+
var mf = state.k27_1;
|
|
3383
|
+
var rough = state.l27_1;
|
|
3381
3384
|
var tmp = 0;
|
|
3382
3385
|
var tmp_0 = booleanArray(n);
|
|
3383
3386
|
while (tmp < n) {
|
|
3384
3387
|
var tmp_1 = tmp;
|
|
3385
|
-
tmp_0[tmp_1] = mnh[tmp_1] > options.
|
|
3388
|
+
tmp_0[tmp_1] = mnh[tmp_1] > options.r27_1;
|
|
3386
3389
|
tmp = tmp + 1 | 0;
|
|
3387
3390
|
}
|
|
3388
3391
|
var tall = tmp_0;
|
|
3389
|
-
var tallRuns = this.
|
|
3392
|
+
var tallRuns = this.v28(tall);
|
|
3390
3393
|
// Inline function 'kotlin.collections.filter' call
|
|
3391
3394
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3392
3395
|
var destination = ArrayList_init_$Create$();
|
|
3393
3396
|
var _iterator__ex2g4s = tallRuns.l();
|
|
3394
3397
|
while (_iterator__ex2g4s.m()) {
|
|
3395
3398
|
var element = _iterator__ex2g4s.n();
|
|
3396
|
-
if (((element.pe_1 - element.oe_1 | 0) + 1 | 0) >= options.
|
|
3399
|
+
if (((element.pe_1 - element.oe_1 | 0) + 1 | 0) >= options.w28()) {
|
|
3397
3400
|
destination.k(element);
|
|
3398
3401
|
}
|
|
3399
3402
|
}
|
|
@@ -3426,7 +3429,7 @@
|
|
|
3426
3429
|
do {
|
|
3427
3430
|
var element_0 = inductionVariable;
|
|
3428
3431
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3429
|
-
if (rough[element_0] < options.
|
|
3432
|
+
if (rough[element_0] < options.v27_1) {
|
|
3430
3433
|
count = count + 1 | 0;
|
|
3431
3434
|
checkCountOverflow(count);
|
|
3432
3435
|
}
|
|
@@ -3466,11 +3469,11 @@
|
|
|
3466
3469
|
}
|
|
3467
3470
|
var unknown = tmp$ret$6;
|
|
3468
3471
|
var fraction = smooth / len;
|
|
3469
|
-
if (fraction >= options.
|
|
3472
|
+
if (fraction >= options.w27_1) {
|
|
3470
3473
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3471
3474
|
var element_2 = to(r, fraction);
|
|
3472
3475
|
kept.k(element_2);
|
|
3473
|
-
} else if ((smooth + unknown | 0) / len >= options.
|
|
3476
|
+
} else if ((smooth + unknown | 0) / len >= options.w27_1) {
|
|
3474
3477
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3475
3478
|
noDataRuns.k(r);
|
|
3476
3479
|
} else {
|
|
@@ -3478,7 +3481,7 @@
|
|
|
3478
3481
|
roughRuns.k(r);
|
|
3479
3482
|
}
|
|
3480
3483
|
}
|
|
3481
|
-
var gap = options.
|
|
3484
|
+
var gap = options.x28();
|
|
3482
3485
|
var merged = ArrayList_init_$Create$();
|
|
3483
3486
|
var _iterator__ex2g4s_1 = kept.l();
|
|
3484
3487
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -3499,15 +3502,15 @@
|
|
|
3499
3502
|
merged.k(element_3);
|
|
3500
3503
|
}
|
|
3501
3504
|
}
|
|
3502
|
-
var island = options.
|
|
3505
|
+
var island = options.y28();
|
|
3503
3506
|
var spans = ArrayList_init_$Create$();
|
|
3504
3507
|
var _iterator__ex2g4s_2 = merged.l();
|
|
3505
3508
|
while (_iterator__ex2g4s_2.m()) {
|
|
3506
3509
|
var _destruct__k2r9zo_0 = _iterator__ex2g4s_2.n();
|
|
3507
3510
|
var r_1 = _destruct__k2r9zo_0.kc();
|
|
3508
3511
|
var f_0 = _destruct__k2r9zo_0.lc();
|
|
3509
|
-
var a_0 = this.
|
|
3510
|
-
var b = this.
|
|
3512
|
+
var a_0 = this.a29(mnh, r_1.oe_1, -1, options.y27_1, island, options.z28());
|
|
3513
|
+
var b = this.a29(mnh, r_1.pe_1, 1, options.y27_1, island, options.z28());
|
|
3511
3514
|
var prev_0 = lastOrNull(spans);
|
|
3512
3515
|
if (!(prev_0 == null) && a_0 <= prev_0.ic_1.pe_1) {
|
|
3513
3516
|
var tmp_6 = spans.o() - 1 | 0;
|
|
@@ -3525,16 +3528,16 @@
|
|
|
3525
3528
|
spans.k(element_4);
|
|
3526
3529
|
}
|
|
3527
3530
|
}
|
|
3528
|
-
var slope = this.
|
|
3529
|
-
var clean = state.
|
|
3531
|
+
var slope = this.b29(mf, options.q28(), step);
|
|
3532
|
+
var clean = state.m27_1;
|
|
3530
3533
|
var parts = ArrayList_init_$Create$();
|
|
3531
3534
|
var _iterator__ex2g4s_3 = kept.l();
|
|
3532
3535
|
while (_iterator__ex2g4s_3.m()) {
|
|
3533
3536
|
var _destruct__k2r9zo_1 = _iterator__ex2g4s_3.n();
|
|
3534
3537
|
var r_2 = _destruct__k2r9zo_1.kc();
|
|
3535
3538
|
var f_1 = _destruct__k2r9zo_1.lc();
|
|
3536
|
-
var a_3 = this.
|
|
3537
|
-
var b_0 = this.
|
|
3539
|
+
var a_3 = this.a29(mnh, r_2.oe_1, -1, options.y27_1, island, options.z28());
|
|
3540
|
+
var b_0 = this.a29(mnh, r_2.pe_1, 1, options.y27_1, island, options.z28());
|
|
3538
3541
|
var prev_1 = lastOrNull(parts);
|
|
3539
3542
|
if (!(prev_1 == null) && a_3 <= prev_1.ic_1.pe_1) {
|
|
3540
3543
|
var tmp_8 = parts.o() - 1 | 0;
|
|
@@ -3562,7 +3565,7 @@
|
|
|
3562
3565
|
var metrics = _destruct__k2r9zo_3.kc();
|
|
3563
3566
|
var rejection = _destruct__k2r9zo_3.lc();
|
|
3564
3567
|
var tmp_10;
|
|
3565
|
-
if (options.
|
|
3568
|
+
if (options.o28_1 && equals(rejection, DeckRejection_STEEP_getInstance())) {
|
|
3566
3569
|
// Inline function 'kotlin.collections.filter' call
|
|
3567
3570
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3568
3571
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -3602,7 +3605,7 @@
|
|
|
3602
3605
|
var tmp_12 = booleanArray(n);
|
|
3603
3606
|
while (tmp_11 < n) {
|
|
3604
3607
|
var tmp_13 = tmp_11;
|
|
3605
|
-
tmp_12[tmp_13] = mnh[tmp_13] > options.
|
|
3608
|
+
tmp_12[tmp_13] = mnh[tmp_13] > options.y27_1;
|
|
3606
3609
|
tmp_11 = tmp_11 + 1 | 0;
|
|
3607
3610
|
}
|
|
3608
3611
|
var deckMask = tmp_12;
|
|
@@ -3612,10 +3615,10 @@
|
|
|
3612
3615
|
var span_0 = _destruct__k2r9zo_5.kc();
|
|
3613
3616
|
var rejection_0 = _destruct__k2r9zo_5.hh();
|
|
3614
3617
|
if (rejection_0 == null) {
|
|
3615
|
-
this.
|
|
3618
|
+
this.c29(deckMask, span_0, island, DeckDetector$detect$lambda(mf));
|
|
3616
3619
|
}
|
|
3617
3620
|
}
|
|
3618
|
-
var deckRuns = this.
|
|
3621
|
+
var deckRuns = this.v28(deckMask);
|
|
3619
3622
|
var accepted = ArrayList_init_$Create$();
|
|
3620
3623
|
var rejected = ArrayList_init_$Create$();
|
|
3621
3624
|
var _iterator__ex2g4s_8 = classified.l();
|
|
@@ -3636,7 +3639,7 @@
|
|
|
3636
3639
|
var _iterator__ex2g4s_9 = deckRuns.l();
|
|
3637
3640
|
while (_iterator__ex2g4s_9.m()) {
|
|
3638
3641
|
var element_9 = _iterator__ex2g4s_9.n();
|
|
3639
|
-
if ((((element_9.pe_1 - element_9.oe_1 | 0) + 1 | 0) >= options.
|
|
3642
|
+
if ((((element_9.pe_1 - element_9.oe_1 | 0) + 1 | 0) >= options.d29() || (b_1 - a_6 | 0) <= options.e29()) && element_9.oe_1 <= b_1 && element_9.pe_1 >= a_6) {
|
|
3640
3643
|
destination_1.k(element_9);
|
|
3641
3644
|
}
|
|
3642
3645
|
}
|
|
@@ -3667,14 +3670,14 @@
|
|
|
3667
3670
|
rejected.k(candidate);
|
|
3668
3671
|
}
|
|
3669
3672
|
}
|
|
3670
|
-
var _iterator__ex2g4s_11 = this.
|
|
3673
|
+
var _iterator__ex2g4s_11 = this.f29(roughRuns, gap).l();
|
|
3671
3674
|
while (_iterator__ex2g4s_11.m()) {
|
|
3672
3675
|
var g = _iterator__ex2g4s_11.n();
|
|
3673
3676
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
3674
3677
|
var element_10 = new DeckCandidate(g.oe_1, g.pe_1, g.oe_1 * step, g.pe_1 * step, null, DeckRejection_ROUGH_getInstance(), emptyList());
|
|
3675
3678
|
rejected.k(element_10);
|
|
3676
3679
|
}
|
|
3677
|
-
var _iterator__ex2g4s_12 = this.
|
|
3680
|
+
var _iterator__ex2g4s_12 = this.f29(noDataRuns, gap).l();
|
|
3678
3681
|
while (_iterator__ex2g4s_12.m()) {
|
|
3679
3682
|
var g_0 = _iterator__ex2g4s_12.n();
|
|
3680
3683
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
@@ -3690,40 +3693,40 @@
|
|
|
3690
3693
|
sortWith(rejected, tmp$ret$40);
|
|
3691
3694
|
return new DeckDetection(accepted, rejected, tooShort);
|
|
3692
3695
|
};
|
|
3693
|
-
protoOf(DeckDetector).
|
|
3696
|
+
protoOf(DeckDetector).u28 = function (profile, options) {
|
|
3694
3697
|
var n = profile.o();
|
|
3695
|
-
var mns = profile.
|
|
3696
|
-
var mnt = profile.
|
|
3698
|
+
var mns = profile.h27_1;
|
|
3699
|
+
var mnt = profile.i27_1;
|
|
3697
3700
|
var tmp;
|
|
3698
|
-
if (options.
|
|
3699
|
-
var tol = options.
|
|
3701
|
+
if (options.l28_1) {
|
|
3702
|
+
var tol = options.m28_1;
|
|
3700
3703
|
var tmp_0 = 0;
|
|
3701
3704
|
var tmp_1 = new Float64Array(n);
|
|
3702
3705
|
while (tmp_0 < n) {
|
|
3703
3706
|
var tmp_2 = tmp_0;
|
|
3704
|
-
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.
|
|
3707
|
+
tmp_1[tmp_2] = mnt[tmp_2] > mns[tmp_2] + tol ? Infinity : profile.g27_1[tmp_2];
|
|
3705
3708
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3706
3709
|
}
|
|
3707
3710
|
tmp = tmp_1;
|
|
3708
3711
|
} else {
|
|
3709
|
-
tmp = profile.
|
|
3712
|
+
tmp = profile.g27_1;
|
|
3710
3713
|
}
|
|
3711
3714
|
var mnh = tmp;
|
|
3712
|
-
var mf = this.
|
|
3713
|
-
var rough = roughness(this, mns, mf, options.
|
|
3715
|
+
var mf = this.h29(mns, options.g29() / 2 | 0);
|
|
3716
|
+
var rough = roughness(this, mns, mf, options.i29() / 2 | 0);
|
|
3714
3717
|
// Inline function 'kotlin.let' call
|
|
3715
|
-
var m = this.
|
|
3718
|
+
var m = this.j29(rough, options.i29() / 2 | 0);
|
|
3716
3719
|
var tmp_3 = 0;
|
|
3717
3720
|
var tmp_4 = booleanArray(n);
|
|
3718
3721
|
while (tmp_3 < n) {
|
|
3719
3722
|
var tmp_5 = tmp_3;
|
|
3720
|
-
tmp_4[tmp_5] = m[tmp_5] < options.
|
|
3723
|
+
tmp_4[tmp_5] = m[tmp_5] < options.v27_1;
|
|
3721
3724
|
tmp_3 = tmp_3 + 1 | 0;
|
|
3722
3725
|
}
|
|
3723
3726
|
var clean = tmp_4;
|
|
3724
3727
|
return new SurfaceState(mnh, mf, rough, clean);
|
|
3725
3728
|
};
|
|
3726
|
-
protoOf(DeckDetector).
|
|
3729
|
+
protoOf(DeckDetector).r28 = function (clean, a, b, h) {
|
|
3727
3730
|
var tmp;
|
|
3728
3731
|
if ((b - h | 0) < (a + h | 0)) {
|
|
3729
3732
|
tmp = NaN;
|
|
@@ -3761,9 +3764,9 @@
|
|
|
3761
3764
|
}
|
|
3762
3765
|
return tmp;
|
|
3763
3766
|
};
|
|
3764
|
-
protoOf(DeckDetector).
|
|
3767
|
+
protoOf(DeckDetector).s28 = function (mns, mnh, clean, cleanFraction, a, b, options) {
|
|
3765
3768
|
var n = mns.length;
|
|
3766
|
-
var h = options.
|
|
3769
|
+
var h = options.q28();
|
|
3767
3770
|
if ((b - h | 0) < (a + h | 0))
|
|
3768
3771
|
return null;
|
|
3769
3772
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -3782,11 +3785,11 @@
|
|
|
3782
3785
|
}
|
|
3783
3786
|
while (!(element === last));
|
|
3784
3787
|
var inSpan = destination;
|
|
3785
|
-
if (inSpan.o() < options.
|
|
3788
|
+
if (inSpan.o() < options.k28_1)
|
|
3786
3789
|
return null;
|
|
3787
|
-
if (!(cleanFraction >= options.
|
|
3790
|
+
if (!(cleanFraction >= options.j28_1))
|
|
3788
3791
|
return null;
|
|
3789
|
-
var medianHalf = options.
|
|
3792
|
+
var medianHalf = options.g29() / 2 | 0;
|
|
3790
3793
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
3791
3794
|
var b_0 = a - medianHalf | 0;
|
|
3792
3795
|
var lo = Math.max(0, b_0);
|
|
@@ -3823,7 +3826,7 @@
|
|
|
3823
3826
|
do {
|
|
3824
3827
|
var element_0 = inductionVariable_1;
|
|
3825
3828
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3826
|
-
if (mnh[element_0] <= options.
|
|
3829
|
+
if (mnh[element_0] <= options.n28_1) {
|
|
3827
3830
|
tmp$ret$5 = true;
|
|
3828
3831
|
break $l$block_0;
|
|
3829
3832
|
}
|
|
@@ -3843,7 +3846,7 @@
|
|
|
3843
3846
|
while (inductionVariable_2 < c1);
|
|
3844
3847
|
}
|
|
3845
3848
|
while (inductionVariable_0 < last_0);
|
|
3846
|
-
var mfClean = this.
|
|
3849
|
+
var mfClean = this.h29(x, medianHalf);
|
|
3847
3850
|
var tmp_0 = 0;
|
|
3848
3851
|
var tmp_1 = ((b - h | 0) - (a + h | 0) | 0) + 1 | 0;
|
|
3849
3852
|
var tmp_2 = new Float64Array(tmp_1);
|
|
@@ -3851,13 +3854,13 @@
|
|
|
3851
3854
|
var tmp_3 = tmp_0;
|
|
3852
3855
|
var k_0 = (a + h | 0) + tmp_3 | 0;
|
|
3853
3856
|
// Inline function 'kotlin.math.abs' call
|
|
3854
|
-
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.
|
|
3857
|
+
var x_0 = (mfClean[(k_0 + h | 0) - lo | 0] - mfClean[(k_0 - h | 0) - lo | 0]) / (imul(2, h) * options.q27_1);
|
|
3855
3858
|
tmp_2[tmp_3] = Math.abs(x_0);
|
|
3856
3859
|
tmp_0 = tmp_0 + 1 | 0;
|
|
3857
3860
|
}
|
|
3858
3861
|
return tmp_2;
|
|
3859
3862
|
};
|
|
3860
|
-
protoOf(DeckDetector).
|
|
3863
|
+
protoOf(DeckDetector).a29 = function (mnh, from, dir, threshold, maxIsland, maxSteps) {
|
|
3861
3864
|
var n = mnh.length;
|
|
3862
3865
|
var ok = DeckDetector$extend$lambda(n, mnh, threshold);
|
|
3863
3866
|
var k = from;
|
|
@@ -3891,7 +3894,7 @@
|
|
|
3891
3894
|
}
|
|
3892
3895
|
return abs(k - from | 0) > maxSteps ? from : k;
|
|
3893
3896
|
};
|
|
3894
|
-
protoOf(DeckDetector).
|
|
3897
|
+
protoOf(DeckDetector).c29 = function (mask, span, maxHole, fill) {
|
|
3895
3898
|
var k = span.oe_1;
|
|
3896
3899
|
$l$loop: while (k <= span.pe_1) {
|
|
3897
3900
|
if (mask[k]) {
|
|
@@ -3951,7 +3954,7 @@
|
|
|
3951
3954
|
k = end + 1 | 0;
|
|
3952
3955
|
}
|
|
3953
3956
|
};
|
|
3954
|
-
protoOf(DeckDetector).
|
|
3957
|
+
protoOf(DeckDetector).h29 = function (x, half) {
|
|
3955
3958
|
var n = x.length;
|
|
3956
3959
|
var window_0 = new Float64Array(imul(2, half) + 1 | 0);
|
|
3957
3960
|
var tmp = 0;
|
|
@@ -3985,7 +3988,7 @@
|
|
|
3985
3988
|
}
|
|
3986
3989
|
return tmp_0;
|
|
3987
3990
|
};
|
|
3988
|
-
protoOf(DeckDetector).
|
|
3991
|
+
protoOf(DeckDetector).n27 = function (x, half) {
|
|
3989
3992
|
var n = x.length;
|
|
3990
3993
|
var tmp = 0;
|
|
3991
3994
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4006,7 +4009,7 @@
|
|
|
4006
4009
|
}
|
|
4007
4010
|
return tmp_0;
|
|
4008
4011
|
};
|
|
4009
|
-
protoOf(DeckDetector).
|
|
4012
|
+
protoOf(DeckDetector).j29 = function (x, half) {
|
|
4010
4013
|
var n = x.length;
|
|
4011
4014
|
var tmp = 0;
|
|
4012
4015
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4037,7 +4040,7 @@
|
|
|
4037
4040
|
}
|
|
4038
4041
|
return tmp_0;
|
|
4039
4042
|
};
|
|
4040
|
-
protoOf(DeckDetector).
|
|
4043
|
+
protoOf(DeckDetector).b29 = function (x, h, stepM) {
|
|
4041
4044
|
var n = x.length;
|
|
4042
4045
|
var tmp = 0;
|
|
4043
4046
|
var tmp_0 = new Float64Array(n);
|
|
@@ -4054,7 +4057,7 @@
|
|
|
4054
4057
|
}
|
|
4055
4058
|
return tmp_0;
|
|
4056
4059
|
};
|
|
4057
|
-
protoOf(DeckDetector).
|
|
4060
|
+
protoOf(DeckDetector).v28 = function (mask) {
|
|
4058
4061
|
var out = ArrayList_init_$Create$();
|
|
4059
4062
|
var start = -1;
|
|
4060
4063
|
var inductionVariable = 0;
|
|
@@ -4080,7 +4083,7 @@
|
|
|
4080
4083
|
}
|
|
4081
4084
|
return out;
|
|
4082
4085
|
};
|
|
4083
|
-
protoOf(DeckDetector).
|
|
4086
|
+
protoOf(DeckDetector).f29 = function (rs, gapStations) {
|
|
4084
4087
|
var out = ArrayList_init_$Create$();
|
|
4085
4088
|
var _iterator__ex2g4s = rs.l();
|
|
4086
4089
|
while (_iterator__ex2g4s.m()) {
|
|
@@ -4100,7 +4103,7 @@
|
|
|
4100
4103
|
}
|
|
4101
4104
|
return out;
|
|
4102
4105
|
};
|
|
4103
|
-
protoOf(DeckDetector).
|
|
4106
|
+
protoOf(DeckDetector).o27 = function (values, q) {
|
|
4104
4107
|
var s = sortedArray(values);
|
|
4105
4108
|
var rank = (s.length - 1 | 0) * q;
|
|
4106
4109
|
// Inline function 'kotlin.math.floor' call
|
|
@@ -4117,33 +4120,33 @@
|
|
|
4117
4120
|
return DeckDetector_instance;
|
|
4118
4121
|
}
|
|
4119
4122
|
function DeckMetrics(lengthM, slopeP95, slopeMax, rawSlopeP95, cleanFraction, slopeOnCleanDeck, roughnessM, smoothFraction, canyonM, mntDropM, deckTopM) {
|
|
4120
|
-
this.
|
|
4121
|
-
this.
|
|
4122
|
-
this.
|
|
4123
|
-
this.
|
|
4124
|
-
this.
|
|
4125
|
-
this.
|
|
4126
|
-
this.
|
|
4127
|
-
this.
|
|
4128
|
-
this.
|
|
4129
|
-
this.
|
|
4130
|
-
this.
|
|
4123
|
+
this.k29_1 = lengthM;
|
|
4124
|
+
this.l29_1 = slopeP95;
|
|
4125
|
+
this.m29_1 = slopeMax;
|
|
4126
|
+
this.n29_1 = rawSlopeP95;
|
|
4127
|
+
this.o29_1 = cleanFraction;
|
|
4128
|
+
this.p29_1 = slopeOnCleanDeck;
|
|
4129
|
+
this.q29_1 = roughnessM;
|
|
4130
|
+
this.r29_1 = smoothFraction;
|
|
4131
|
+
this.s29_1 = canyonM;
|
|
4132
|
+
this.t29_1 = mntDropM;
|
|
4133
|
+
this.u29_1 = deckTopM;
|
|
4131
4134
|
}
|
|
4132
4135
|
protoOf(DeckMetrics).toString = function () {
|
|
4133
|
-
return 'DeckMetrics(lengthM=' + this.
|
|
4136
|
+
return 'DeckMetrics(lengthM=' + this.k29_1 + ', slopeP95=' + this.l29_1 + ', slopeMax=' + this.m29_1 + ', rawSlopeP95=' + this.n29_1 + ', cleanFraction=' + this.o29_1 + ', slopeOnCleanDeck=' + this.p29_1 + ', roughnessM=' + this.q29_1 + ', smoothFraction=' + this.r29_1 + ', canyonM=' + this.s29_1 + ', mntDropM=' + this.t29_1 + ', deckTopM=' + this.u29_1 + ')';
|
|
4134
4137
|
};
|
|
4135
4138
|
protoOf(DeckMetrics).hashCode = function () {
|
|
4136
|
-
var result = getNumberHashCode(this.
|
|
4137
|
-
result = imul(result, 31) + getNumberHashCode(this.k29_1) | 0;
|
|
4139
|
+
var result = getNumberHashCode(this.k29_1);
|
|
4138
4140
|
result = imul(result, 31) + getNumberHashCode(this.l29_1) | 0;
|
|
4139
4141
|
result = imul(result, 31) + getNumberHashCode(this.m29_1) | 0;
|
|
4140
4142
|
result = imul(result, 31) + getNumberHashCode(this.n29_1) | 0;
|
|
4141
|
-
result = imul(result, 31) +
|
|
4142
|
-
result = imul(result, 31) +
|
|
4143
|
+
result = imul(result, 31) + getNumberHashCode(this.o29_1) | 0;
|
|
4144
|
+
result = imul(result, 31) + getBooleanHashCode(this.p29_1) | 0;
|
|
4143
4145
|
result = imul(result, 31) + getNumberHashCode(this.q29_1) | 0;
|
|
4144
4146
|
result = imul(result, 31) + getNumberHashCode(this.r29_1) | 0;
|
|
4145
4147
|
result = imul(result, 31) + getNumberHashCode(this.s29_1) | 0;
|
|
4146
4148
|
result = imul(result, 31) + getNumberHashCode(this.t29_1) | 0;
|
|
4149
|
+
result = imul(result, 31) + getNumberHashCode(this.u29_1) | 0;
|
|
4147
4150
|
return result;
|
|
4148
4151
|
};
|
|
4149
4152
|
protoOf(DeckMetrics).equals = function (other) {
|
|
@@ -4151,8 +4154,6 @@
|
|
|
4151
4154
|
return true;
|
|
4152
4155
|
if (!(other instanceof DeckMetrics))
|
|
4153
4156
|
return false;
|
|
4154
|
-
if (!equals(this.j29_1, other.j29_1))
|
|
4155
|
-
return false;
|
|
4156
4157
|
if (!equals(this.k29_1, other.k29_1))
|
|
4157
4158
|
return false;
|
|
4158
4159
|
if (!equals(this.l29_1, other.l29_1))
|
|
@@ -4161,9 +4162,9 @@
|
|
|
4161
4162
|
return false;
|
|
4162
4163
|
if (!equals(this.n29_1, other.n29_1))
|
|
4163
4164
|
return false;
|
|
4164
|
-
if (!(this.o29_1
|
|
4165
|
+
if (!equals(this.o29_1, other.o29_1))
|
|
4165
4166
|
return false;
|
|
4166
|
-
if (!
|
|
4167
|
+
if (!(this.p29_1 === other.p29_1))
|
|
4167
4168
|
return false;
|
|
4168
4169
|
if (!equals(this.q29_1, other.q29_1))
|
|
4169
4170
|
return false;
|
|
@@ -4173,6 +4174,8 @@
|
|
|
4173
4174
|
return false;
|
|
4174
4175
|
if (!equals(this.t29_1, other.t29_1))
|
|
4175
4176
|
return false;
|
|
4177
|
+
if (!equals(this.u29_1, other.u29_1))
|
|
4178
|
+
return false;
|
|
4176
4179
|
return true;
|
|
4177
4180
|
};
|
|
4178
4181
|
var static_init_called_1;
|
|
@@ -4215,21 +4218,21 @@
|
|
|
4215
4218
|
return DeckRejection_NO_DATA_instance;
|
|
4216
4219
|
}
|
|
4217
4220
|
function stations($this, metres, name) {
|
|
4218
|
-
var r = metres / $this.
|
|
4221
|
+
var r = metres / $this.q27_1;
|
|
4219
4222
|
var k = roundToInt(r);
|
|
4220
4223
|
// Inline function 'kotlin.math.abs' call
|
|
4221
4224
|
var x = r - k;
|
|
4222
4225
|
// Inline function 'kotlin.require' call
|
|
4223
4226
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
4224
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
4227
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.q27_1 + ' m stations';
|
|
4225
4228
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4226
4229
|
}
|
|
4227
4230
|
return k;
|
|
4228
4231
|
}
|
|
4229
4232
|
function Companion_2() {
|
|
4230
4233
|
Companion_instance_3 = this;
|
|
4231
|
-
this.
|
|
4232
|
-
this.
|
|
4234
|
+
this.v29_1 = new DeckDetectorOptions();
|
|
4235
|
+
this.w29_1 = new DeckDetectorOptions(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, false, VOID, VOID, false, VOID, VOID, false);
|
|
4233
4236
|
}
|
|
4234
4237
|
var Companion_instance_3;
|
|
4235
4238
|
function Companion_getInstance_3() {
|
|
@@ -4264,37 +4267,37 @@
|
|
|
4264
4267
|
mntAboveMnsToleranceM = mntAboveMnsToleranceM === VOID ? 0.5 : mntAboveMnsToleranceM;
|
|
4265
4268
|
cleanGapGroundMnhM = cleanGapGroundMnhM === VOID ? 1.0 : cleanGapGroundMnhM;
|
|
4266
4269
|
splitSteepMerged = splitSteepMerged === VOID ? true : splitSteepMerged;
|
|
4267
|
-
this.
|
|
4268
|
-
this.
|
|
4269
|
-
this.
|
|
4270
|
-
this.
|
|
4271
|
-
this.
|
|
4272
|
-
this.
|
|
4273
|
-
this.
|
|
4274
|
-
this.
|
|
4275
|
-
this.
|
|
4276
|
-
this.
|
|
4277
|
-
this.
|
|
4278
|
-
this.
|
|
4279
|
-
this.
|
|
4280
|
-
this.
|
|
4281
|
-
this.
|
|
4282
|
-
this.
|
|
4283
|
-
this.
|
|
4284
|
-
this.
|
|
4285
|
-
this.
|
|
4286
|
-
this.
|
|
4287
|
-
this.
|
|
4288
|
-
this.
|
|
4289
|
-
this.
|
|
4290
|
-
this.
|
|
4291
|
-
this.
|
|
4270
|
+
this.q27_1 = stepM;
|
|
4271
|
+
this.r27_1 = tallMnhM;
|
|
4272
|
+
this.s27_1 = minTallRunM;
|
|
4273
|
+
this.t27_1 = surfaceMedianWindowM;
|
|
4274
|
+
this.u27_1 = roughnessWindowM;
|
|
4275
|
+
this.v27_1 = maxRoughnessM;
|
|
4276
|
+
this.w27_1 = minSmoothFraction;
|
|
4277
|
+
this.x27_1 = mergeGapM;
|
|
4278
|
+
this.y27_1 = deckMnhM;
|
|
4279
|
+
this.z27_1 = slopeHalfWindowM;
|
|
4280
|
+
this.a28_1 = maxSlopeP95;
|
|
4281
|
+
this.b28_1 = minLengthM;
|
|
4282
|
+
this.c28_1 = shortSpanM;
|
|
4283
|
+
this.d28_1 = maxShortRoughnessM;
|
|
4284
|
+
this.e28_1 = minCanyonDropM;
|
|
4285
|
+
this.f28_1 = deckMinRunM;
|
|
4286
|
+
this.g28_1 = smallSpanM;
|
|
4287
|
+
this.h28_1 = maxAbutmentM;
|
|
4288
|
+
this.i28_1 = slopeOnCleanDeck;
|
|
4289
|
+
this.j28_1 = minCleanFraction;
|
|
4290
|
+
this.k28_1 = minCleanStationsCount;
|
|
4291
|
+
this.l28_1 = mntAboveMnsAsTall;
|
|
4292
|
+
this.m28_1 = mntAboveMnsToleranceM;
|
|
4293
|
+
this.n28_1 = cleanGapGroundMnhM;
|
|
4294
|
+
this.o28_1 = splitSteepMerged;
|
|
4292
4295
|
// Inline function 'kotlin.require' call
|
|
4293
|
-
if (!(this.
|
|
4294
|
-
var message = 'stepM must be positive, got ' + this.
|
|
4296
|
+
if (!(this.q27_1 > 0.0 && isFinite(this.q27_1))) {
|
|
4297
|
+
var message = 'stepM must be positive, got ' + this.q27_1;
|
|
4295
4298
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
4296
4299
|
}
|
|
4297
|
-
var thresholds = mapOf([to('tallMnhM', this.
|
|
4300
|
+
var thresholds = mapOf([to('tallMnhM', this.r27_1), to('minTallRunM', this.s27_1), to('surfaceMedianWindowM', this.t27_1), to('roughnessWindowM', this.u27_1), to('maxRoughnessM', this.v27_1), to('minSmoothFraction', this.w27_1), to('mergeGapM', this.x27_1), to('deckMnhM', this.y27_1), to('slopeHalfWindowM', this.z27_1), to('maxSlopeP95', this.a28_1), to('minLengthM', this.b28_1), to('shortSpanM', this.c28_1), to('maxShortRoughnessM', this.d28_1), to('minCanyonDropM', this.e28_1), to('deckMinRunM', this.f28_1), to('smallSpanM', this.g28_1), to('maxAbutmentM', this.h28_1), to('minCleanFraction', this.j28_1), to('mntAboveMnsToleranceM', this.m28_1), to('cleanGapGroundMnhM', this.n28_1)]);
|
|
4298
4301
|
// Inline function 'kotlin.collections.forEach' call
|
|
4299
4302
|
// Inline function 'kotlin.collections.iterator' call
|
|
4300
4303
|
var _iterator__ex2g4s = thresholds.t1().l();
|
|
@@ -4311,98 +4314,97 @@
|
|
|
4311
4314
|
}
|
|
4312
4315
|
}
|
|
4313
4316
|
// Inline function 'kotlin.require' call
|
|
4314
|
-
if (!((this.
|
|
4317
|
+
if (!((this.g29() % 2 | 0) === 1)) {
|
|
4315
4318
|
var message_1 = 'surfaceMedianWindowM must be an odd number of stations';
|
|
4316
4319
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
4317
4320
|
}
|
|
4318
4321
|
// Inline function 'kotlin.require' call
|
|
4319
|
-
if (!((this.
|
|
4322
|
+
if (!((this.i29() % 2 | 0) === 1)) {
|
|
4320
4323
|
var message_2 = 'roughnessWindowM must be an odd number of stations';
|
|
4321
4324
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
4322
4325
|
}
|
|
4323
4326
|
// Inline function 'kotlin.require' call
|
|
4324
|
-
if (!(this.
|
|
4327
|
+
if (!(this.w28() >= 1)) {
|
|
4325
4328
|
var message_3 = 'minTallRunM must cover at least one station';
|
|
4326
4329
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
4327
4330
|
}
|
|
4328
4331
|
// Inline function 'kotlin.require' call
|
|
4329
|
-
if (!(this.
|
|
4332
|
+
if (!(this.q28() >= 1)) {
|
|
4330
4333
|
var message_4 = 'slopeHalfWindowM must cover at least one station';
|
|
4331
4334
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
4332
4335
|
}
|
|
4333
4336
|
// Inline function 'kotlin.require' call
|
|
4334
|
-
if (!(this.
|
|
4337
|
+
if (!(this.x28() >= 0 && this.d29() >= 1)) {
|
|
4335
4338
|
var message_5 = 'negative window';
|
|
4336
4339
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
4337
4340
|
}
|
|
4338
4341
|
// Inline function 'kotlin.require' call
|
|
4339
|
-
if (!(this.
|
|
4342
|
+
if (!(this.p28() >= 0 && this.e29() >= 0)) {
|
|
4340
4343
|
var message_6 = 'negative span threshold';
|
|
4341
4344
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
4342
4345
|
}
|
|
4343
4346
|
// Inline function 'kotlin.require' call
|
|
4344
|
-
if (!(this.
|
|
4347
|
+
if (!(this.z28() >= 0)) {
|
|
4345
4348
|
var message_7 = 'negative maxAbutmentM';
|
|
4346
4349
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_7));
|
|
4347
4350
|
}
|
|
4348
|
-
var containsArg = this.
|
|
4351
|
+
var containsArg = this.j28_1;
|
|
4349
4352
|
// Inline function 'kotlin.require' call
|
|
4350
4353
|
if (!(0.0 <= containsArg ? containsArg <= 1.0 : false)) {
|
|
4351
|
-
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.
|
|
4354
|
+
var message_8 = 'minCleanFraction must be in 0..1, got ' + this.j28_1;
|
|
4352
4355
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_8));
|
|
4353
4356
|
}
|
|
4354
4357
|
// Inline function 'kotlin.require' call
|
|
4355
|
-
if (!(this.
|
|
4356
|
-
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.
|
|
4358
|
+
if (!(this.m28_1 >= 0.0)) {
|
|
4359
|
+
var message_9 = 'mntAboveMnsToleranceM must be non-negative, got ' + this.m28_1;
|
|
4357
4360
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_9));
|
|
4358
4361
|
}
|
|
4359
4362
|
// Inline function 'kotlin.require' call
|
|
4360
|
-
if (!(this.
|
|
4361
|
-
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.
|
|
4363
|
+
if (!(this.k28_1 >= 2)) {
|
|
4364
|
+
var message_10 = 'minCleanStationsCount must be at least 2, got ' + this.k28_1;
|
|
4362
4365
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_10));
|
|
4363
4366
|
}
|
|
4364
4367
|
// Inline function 'kotlin.require' call
|
|
4365
|
-
if (!(this.
|
|
4368
|
+
if (!(this.p28() >= (imul(2, this.q28()) - 1 | 0))) {
|
|
4366
4369
|
var message_11 = 'shortSpanM must be at least 2\xB7slopeHalfWindowM \u2212 stepM, or a long span has no slope sample';
|
|
4367
4370
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_11));
|
|
4368
4371
|
}
|
|
4369
4372
|
}
|
|
4370
|
-
protoOf(DeckDetectorOptions).
|
|
4371
|
-
return stations(this, this.
|
|
4373
|
+
protoOf(DeckDetectorOptions).w28 = function () {
|
|
4374
|
+
return stations(this, this.s27_1, 'minTallRunM');
|
|
4372
4375
|
};
|
|
4373
|
-
protoOf(DeckDetectorOptions).
|
|
4374
|
-
return stations(this, this.
|
|
4376
|
+
protoOf(DeckDetectorOptions).g29 = function () {
|
|
4377
|
+
return stations(this, this.t27_1, 'surfaceMedianWindowM');
|
|
4375
4378
|
};
|
|
4376
|
-
protoOf(DeckDetectorOptions).
|
|
4377
|
-
return stations(this, this.
|
|
4379
|
+
protoOf(DeckDetectorOptions).i29 = function () {
|
|
4380
|
+
return stations(this, this.u27_1, 'roughnessWindowM');
|
|
4378
4381
|
};
|
|
4379
|
-
protoOf(DeckDetectorOptions).
|
|
4380
|
-
return stations(this, this.
|
|
4382
|
+
protoOf(DeckDetectorOptions).x28 = function () {
|
|
4383
|
+
return stations(this, this.x27_1, 'mergeGapM');
|
|
4384
|
+
};
|
|
4385
|
+
protoOf(DeckDetectorOptions).q28 = function () {
|
|
4386
|
+
return stations(this, this.z27_1, 'slopeHalfWindowM');
|
|
4381
4387
|
};
|
|
4382
4388
|
protoOf(DeckDetectorOptions).p28 = function () {
|
|
4383
|
-
return stations(this, this.
|
|
4389
|
+
return stations(this, this.c28_1, 'shortSpanM');
|
|
4384
4390
|
};
|
|
4385
|
-
protoOf(DeckDetectorOptions).
|
|
4386
|
-
return stations(this, this.
|
|
4391
|
+
protoOf(DeckDetectorOptions).d29 = function () {
|
|
4392
|
+
return stations(this, this.f28_1, 'deckMinRunM');
|
|
4387
4393
|
};
|
|
4388
|
-
protoOf(DeckDetectorOptions).
|
|
4389
|
-
return stations(this, this.
|
|
4394
|
+
protoOf(DeckDetectorOptions).z28 = function () {
|
|
4395
|
+
return stations(this, this.h28_1, 'maxAbutmentM');
|
|
4390
4396
|
};
|
|
4391
4397
|
protoOf(DeckDetectorOptions).y28 = function () {
|
|
4392
|
-
return
|
|
4393
|
-
};
|
|
4394
|
-
protoOf(DeckDetectorOptions).x28 = function () {
|
|
4395
|
-
return this.f29() / 2 | 0;
|
|
4398
|
+
return this.g29() / 2 | 0;
|
|
4396
4399
|
};
|
|
4397
|
-
protoOf(DeckDetectorOptions).
|
|
4398
|
-
return stations(this, this.
|
|
4400
|
+
protoOf(DeckDetectorOptions).e29 = function () {
|
|
4401
|
+
return stations(this, this.g28_1, 'smallSpanM');
|
|
4399
4402
|
};
|
|
4400
4403
|
protoOf(DeckDetectorOptions).toString = function () {
|
|
4401
|
-
return 'DeckDetectorOptions(stepM=' + this.
|
|
4404
|
+
return 'DeckDetectorOptions(stepM=' + this.q27_1 + ', tallMnhM=' + this.r27_1 + ', minTallRunM=' + this.s27_1 + ', surfaceMedianWindowM=' + this.t27_1 + ', roughnessWindowM=' + this.u27_1 + ', maxRoughnessM=' + this.v27_1 + ', minSmoothFraction=' + this.w27_1 + ', mergeGapM=' + this.x27_1 + ', deckMnhM=' + this.y27_1 + ', slopeHalfWindowM=' + this.z27_1 + ', maxSlopeP95=' + this.a28_1 + ', minLengthM=' + this.b28_1 + ', shortSpanM=' + this.c28_1 + ', maxShortRoughnessM=' + this.d28_1 + ', minCanyonDropM=' + this.e28_1 + ', deckMinRunM=' + this.f28_1 + ', smallSpanM=' + this.g28_1 + ', maxAbutmentM=' + this.h28_1 + ', slopeOnCleanDeck=' + this.i28_1 + ', minCleanFraction=' + this.j28_1 + ', minCleanStationsCount=' + this.k28_1 + ', mntAboveMnsAsTall=' + this.l28_1 + ', mntAboveMnsToleranceM=' + this.m28_1 + ', cleanGapGroundMnhM=' + this.n28_1 + ', splitSteepMerged=' + this.o28_1 + ')';
|
|
4402
4405
|
};
|
|
4403
4406
|
protoOf(DeckDetectorOptions).hashCode = function () {
|
|
4404
|
-
var result = getNumberHashCode(this.
|
|
4405
|
-
result = imul(result, 31) + getNumberHashCode(this.q27_1) | 0;
|
|
4407
|
+
var result = getNumberHashCode(this.q27_1);
|
|
4406
4408
|
result = imul(result, 31) + getNumberHashCode(this.r27_1) | 0;
|
|
4407
4409
|
result = imul(result, 31) + getNumberHashCode(this.s27_1) | 0;
|
|
4408
4410
|
result = imul(result, 31) + getNumberHashCode(this.t27_1) | 0;
|
|
@@ -4419,13 +4421,14 @@
|
|
|
4419
4421
|
result = imul(result, 31) + getNumberHashCode(this.e28_1) | 0;
|
|
4420
4422
|
result = imul(result, 31) + getNumberHashCode(this.f28_1) | 0;
|
|
4421
4423
|
result = imul(result, 31) + getNumberHashCode(this.g28_1) | 0;
|
|
4422
|
-
result = imul(result, 31) +
|
|
4423
|
-
result = imul(result, 31) +
|
|
4424
|
-
result = imul(result, 31) + this.j28_1 | 0;
|
|
4425
|
-
result = imul(result, 31) +
|
|
4426
|
-
result = imul(result, 31) +
|
|
4424
|
+
result = imul(result, 31) + getNumberHashCode(this.h28_1) | 0;
|
|
4425
|
+
result = imul(result, 31) + getBooleanHashCode(this.i28_1) | 0;
|
|
4426
|
+
result = imul(result, 31) + getNumberHashCode(this.j28_1) | 0;
|
|
4427
|
+
result = imul(result, 31) + this.k28_1 | 0;
|
|
4428
|
+
result = imul(result, 31) + getBooleanHashCode(this.l28_1) | 0;
|
|
4427
4429
|
result = imul(result, 31) + getNumberHashCode(this.m28_1) | 0;
|
|
4428
|
-
result = imul(result, 31) +
|
|
4430
|
+
result = imul(result, 31) + getNumberHashCode(this.n28_1) | 0;
|
|
4431
|
+
result = imul(result, 31) + getBooleanHashCode(this.o28_1) | 0;
|
|
4429
4432
|
return result;
|
|
4430
4433
|
};
|
|
4431
4434
|
protoOf(DeckDetectorOptions).equals = function (other) {
|
|
@@ -4433,8 +4436,6 @@
|
|
|
4433
4436
|
return true;
|
|
4434
4437
|
if (!(other instanceof DeckDetectorOptions))
|
|
4435
4438
|
return false;
|
|
4436
|
-
if (!equals(this.p27_1, other.p27_1))
|
|
4437
|
-
return false;
|
|
4438
4439
|
if (!equals(this.q27_1, other.q27_1))
|
|
4439
4440
|
return false;
|
|
4440
4441
|
if (!equals(this.r27_1, other.r27_1))
|
|
@@ -4469,83 +4470,85 @@
|
|
|
4469
4470
|
return false;
|
|
4470
4471
|
if (!equals(this.g28_1, other.g28_1))
|
|
4471
4472
|
return false;
|
|
4472
|
-
if (!(this.h28_1
|
|
4473
|
+
if (!equals(this.h28_1, other.h28_1))
|
|
4473
4474
|
return false;
|
|
4474
|
-
if (!
|
|
4475
|
+
if (!(this.i28_1 === other.i28_1))
|
|
4475
4476
|
return false;
|
|
4476
|
-
if (!(this.j28_1
|
|
4477
|
+
if (!equals(this.j28_1, other.j28_1))
|
|
4477
4478
|
return false;
|
|
4478
4479
|
if (!(this.k28_1 === other.k28_1))
|
|
4479
4480
|
return false;
|
|
4480
|
-
if (!
|
|
4481
|
+
if (!(this.l28_1 === other.l28_1))
|
|
4481
4482
|
return false;
|
|
4482
4483
|
if (!equals(this.m28_1, other.m28_1))
|
|
4483
4484
|
return false;
|
|
4484
|
-
if (!(this.n28_1
|
|
4485
|
+
if (!equals(this.n28_1, other.n28_1))
|
|
4486
|
+
return false;
|
|
4487
|
+
if (!(this.o28_1 === other.o28_1))
|
|
4485
4488
|
return false;
|
|
4486
4489
|
return true;
|
|
4487
4490
|
};
|
|
4488
4491
|
function DeckReplacement(first, last, spanFirst, spanLast, anchorFirst, anchorLast, anchors, elevationM, spans) {
|
|
4489
|
-
this.
|
|
4490
|
-
this.
|
|
4491
|
-
this.
|
|
4492
|
-
this.
|
|
4493
|
-
this.
|
|
4494
|
-
this.
|
|
4495
|
-
this.
|
|
4496
|
-
this.
|
|
4497
|
-
this.
|
|
4498
|
-
}
|
|
4499
|
-
protoOf(DeckReplacement).f2a = function () {
|
|
4500
|
-
return this.w29_1 < this.y29_1;
|
|
4501
|
-
};
|
|
4492
|
+
this.x29_1 = first;
|
|
4493
|
+
this.y29_1 = last;
|
|
4494
|
+
this.z29_1 = spanFirst;
|
|
4495
|
+
this.a2a_1 = spanLast;
|
|
4496
|
+
this.b2a_1 = anchorFirst;
|
|
4497
|
+
this.c2a_1 = anchorLast;
|
|
4498
|
+
this.d2a_1 = anchors;
|
|
4499
|
+
this.e2a_1 = elevationM;
|
|
4500
|
+
this.f2a_1 = spans;
|
|
4501
|
+
}
|
|
4502
4502
|
protoOf(DeckReplacement).g2a = function () {
|
|
4503
|
-
return this.x29_1
|
|
4503
|
+
return this.x29_1 < this.z29_1;
|
|
4504
4504
|
};
|
|
4505
|
-
protoOf(DeckReplacement).h2a = function (
|
|
4505
|
+
protoOf(DeckReplacement).h2a = function () {
|
|
4506
|
+
return this.y29_1 > this.a2a_1;
|
|
4507
|
+
};
|
|
4508
|
+
protoOf(DeckReplacement).i2a = function (startM, endM) {
|
|
4506
4509
|
// Inline function 'kotlin.collections.copyOf' call
|
|
4507
4510
|
// Inline function 'kotlin.js.asDynamic' call
|
|
4508
|
-
var z = this.
|
|
4509
|
-
if (this.
|
|
4511
|
+
var z = this.e2a_1.slice();
|
|
4512
|
+
if (this.g2a()) {
|
|
4510
4513
|
z[0] = startM;
|
|
4511
4514
|
}
|
|
4512
|
-
if (this.
|
|
4515
|
+
if (this.h2a()) {
|
|
4513
4516
|
z[z.length - 1 | 0] = endM;
|
|
4514
4517
|
}
|
|
4515
4518
|
fillLinear(z);
|
|
4516
4519
|
return z;
|
|
4517
4520
|
};
|
|
4518
4521
|
protoOf(DeckReplacement).toString = function () {
|
|
4519
|
-
var tmp = 'DeckReplacement(first=' + this.
|
|
4520
|
-
var tmp_0 = this.
|
|
4522
|
+
var tmp = 'DeckReplacement(first=' + this.x29_1 + ', last=' + this.y29_1 + ', span=' + this.z29_1 + '..' + this.a2a_1 + ', anchors=' + this.b2a_1 + '..' + this.c2a_1 + ' ';
|
|
4523
|
+
var tmp_0 = this.d2a_1.length;
|
|
4521
4524
|
// Inline function 'kotlin.collections.map' call
|
|
4522
|
-
var this_0 = this.
|
|
4525
|
+
var this_0 = this.f2a_1;
|
|
4523
4526
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4524
4527
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4525
4528
|
var _iterator__ex2g4s = this_0.l();
|
|
4526
4529
|
while (_iterator__ex2g4s.m()) {
|
|
4527
4530
|
var item = _iterator__ex2g4s.n();
|
|
4528
|
-
var tmp$ret$2 = numberRangeToNumber(item.
|
|
4531
|
+
var tmp$ret$2 = numberRangeToNumber(item.y26_1, item.z26_1);
|
|
4529
4532
|
destination.k(tmp$ret$2);
|
|
4530
4533
|
}
|
|
4531
4534
|
return tmp + ('(' + tmp_0 + '), spans=' + toString_0(destination) + ')');
|
|
4532
4535
|
};
|
|
4533
4536
|
function DeckProfiles(replacements, dropped) {
|
|
4534
|
-
this.
|
|
4535
|
-
this.
|
|
4537
|
+
this.j2a_1 = replacements;
|
|
4538
|
+
this.k2a_1 = dropped;
|
|
4536
4539
|
}
|
|
4537
4540
|
function joins($this, previous, next, mns, mnt, options) {
|
|
4538
4541
|
var a = previous.kc();
|
|
4539
4542
|
var aAnchors = previous.lc();
|
|
4540
4543
|
var b = next.kc();
|
|
4541
4544
|
var bAnchors = next.lc();
|
|
4542
|
-
if (((b.
|
|
4545
|
+
if (((b.y26_1 - a.z26_1 | 0) - 1 | 0) >= options.x28())
|
|
4543
4546
|
return false;
|
|
4544
4547
|
if (aAnchors.q() || bAnchors.q())
|
|
4545
4548
|
return false;
|
|
4546
4549
|
var c0 = last(aAnchors);
|
|
4547
4550
|
var c1 = first(bAnchors);
|
|
4548
|
-
var tmp0 = until(a.
|
|
4551
|
+
var tmp0 = until(a.z26_1 + 1 | 0, b.y26_1);
|
|
4549
4552
|
var tmp$ret$0;
|
|
4550
4553
|
$l$block_0: {
|
|
4551
4554
|
// Inline function 'kotlin.collections.none' call
|
|
@@ -4567,7 +4570,7 @@
|
|
|
4567
4570
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4568
4571
|
var k = element;
|
|
4569
4572
|
var line = mns[c0] + (mns[c1] - mns[c0]) * (k - c0 | 0) / (c1 - c0 | 0);
|
|
4570
|
-
if (!(line - mnt[k] > options.
|
|
4573
|
+
if (!(line - mnt[k] > options.e28_1)) {
|
|
4571
4574
|
tmp$ret$0 = false;
|
|
4572
4575
|
break $l$block_0;
|
|
4573
4576
|
}
|
|
@@ -4580,7 +4583,7 @@
|
|
|
4580
4583
|
function replacement($this, spans, anchors, mns, n, options) {
|
|
4581
4584
|
var u = first_0(anchors);
|
|
4582
4585
|
var v = last_0(anchors);
|
|
4583
|
-
var half = options.
|
|
4586
|
+
var half = options.g29() / 2 | 0;
|
|
4584
4587
|
var tmp = 0;
|
|
4585
4588
|
var tmp_0 = ((v - u | 0) + 1 | 0) + imul(2, half) | 0;
|
|
4586
4589
|
var tmp_1 = new Float64Array(tmp_0);
|
|
@@ -4607,7 +4610,7 @@
|
|
|
4607
4610
|
while (!(k === c1));
|
|
4608
4611
|
}
|
|
4609
4612
|
while (inductionVariable < last_2);
|
|
4610
|
-
var median = DeckDetector_instance.
|
|
4613
|
+
var median = DeckDetector_instance.h29(x, half);
|
|
4611
4614
|
var tmp_2 = 0;
|
|
4612
4615
|
var tmp_3 = (v - u | 0) + 1 | 0;
|
|
4613
4616
|
var tmp_4 = new Float64Array(tmp_3);
|
|
@@ -4617,9 +4620,9 @@
|
|
|
4617
4620
|
tmp_2 = tmp_2 + 1 | 0;
|
|
4618
4621
|
}
|
|
4619
4622
|
var deck = tmp_4;
|
|
4620
|
-
$this.
|
|
4621
|
-
var spanFirst = first(spans).
|
|
4622
|
-
var spanLast = last(spans).
|
|
4623
|
+
$this.l2a(deck, options.a28_1 * options.q27_1);
|
|
4624
|
+
var spanFirst = first(spans).y26_1;
|
|
4625
|
+
var spanLast = last(spans).z26_1;
|
|
4623
4626
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
4624
4627
|
var b = spanFirst - 1 | 0;
|
|
4625
4628
|
var first_2 = Math.max(0, b);
|
|
@@ -4640,16 +4643,16 @@
|
|
|
4640
4643
|
return new DeckReplacement(first_2, last_3, spanFirst, spanLast, u, v, anchors, z, spans);
|
|
4641
4644
|
}
|
|
4642
4645
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
4643
|
-
this.
|
|
4646
|
+
this.m2a_1 = function_0;
|
|
4644
4647
|
}
|
|
4645
4648
|
protoOf(sam$kotlin_Comparator$0_0).la = function (a, b) {
|
|
4646
|
-
return this.
|
|
4649
|
+
return this.m2a_1(a, b);
|
|
4647
4650
|
};
|
|
4648
4651
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
4649
4652
|
return this.la(a, b);
|
|
4650
4653
|
};
|
|
4651
4654
|
protoOf(sam$kotlin_Comparator$0_0).e2 = function () {
|
|
4652
|
-
return this.
|
|
4655
|
+
return this.m2a_1;
|
|
4653
4656
|
};
|
|
4654
4657
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
4655
4658
|
var tmp;
|
|
@@ -4671,7 +4674,7 @@
|
|
|
4671
4674
|
};
|
|
4672
4675
|
function build$anchorsOf(state, mns, span) {
|
|
4673
4676
|
// Inline function 'kotlin.collections.flatMap' call
|
|
4674
|
-
var tmp0 = span.
|
|
4677
|
+
var tmp0 = span.e27_1;
|
|
4675
4678
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
4676
4679
|
var destination = ArrayList_init_$Create$();
|
|
4677
4680
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -4688,9 +4691,9 @@
|
|
|
4688
4691
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
4689
4692
|
var tmp;
|
|
4690
4693
|
var tmp_0;
|
|
4691
|
-
var containsLower = span.
|
|
4692
|
-
if (element_0 <= span.
|
|
4693
|
-
tmp_0 = state.
|
|
4694
|
+
var containsLower = span.y26_1;
|
|
4695
|
+
if (element_0 <= span.z26_1 ? containsLower <= element_0 : false) {
|
|
4696
|
+
tmp_0 = state.m27_1[element_0];
|
|
4694
4697
|
} else {
|
|
4695
4698
|
tmp_0 = false;
|
|
4696
4699
|
}
|
|
@@ -4707,21 +4710,21 @@
|
|
|
4707
4710
|
}
|
|
4708
4711
|
function DeckProfileBuilder$build$lambda(a, b) {
|
|
4709
4712
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
4710
|
-
var tmp = a.
|
|
4711
|
-
var tmp$ret$2 = b.
|
|
4713
|
+
var tmp = a.y26_1;
|
|
4714
|
+
var tmp$ret$2 = b.y26_1;
|
|
4712
4715
|
return compareValues(tmp, tmp$ret$2);
|
|
4713
4716
|
}
|
|
4714
4717
|
function DeckProfileBuilder() {
|
|
4715
4718
|
}
|
|
4716
|
-
protoOf(DeckProfileBuilder).
|
|
4719
|
+
protoOf(DeckProfileBuilder).n2a = function (profile, detection, options) {
|
|
4717
4720
|
var n = profile.o();
|
|
4718
|
-
if (n === 0 || detection.
|
|
4721
|
+
if (n === 0 || detection.v26_1.q())
|
|
4719
4722
|
return new DeckProfiles(emptyList(), emptyList());
|
|
4720
|
-
var state = DeckDetector_instance.
|
|
4721
|
-
var mns = profile.
|
|
4722
|
-
var mnt = profile.
|
|
4723
|
+
var state = DeckDetector_instance.u28(profile, options);
|
|
4724
|
+
var mns = profile.h27_1;
|
|
4725
|
+
var mnt = profile.i27_1;
|
|
4723
4726
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
4724
|
-
var this_0 = detection.
|
|
4727
|
+
var this_0 = detection.v26_1;
|
|
4725
4728
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
4726
4729
|
var tmp = DeckProfileBuilder$build$lambda;
|
|
4727
4730
|
var tmp$ret$1 = new sam$kotlin_Comparator$0_0(tmp);
|
|
@@ -4778,7 +4781,7 @@
|
|
|
4778
4781
|
}
|
|
4779
4782
|
return new DeckProfiles(replacements, dropped);
|
|
4780
4783
|
};
|
|
4781
|
-
protoOf(DeckProfileBuilder).
|
|
4784
|
+
protoOf(DeckProfileBuilder).l2a = function (z, maxRise) {
|
|
4782
4785
|
var inductionVariable = 1;
|
|
4783
4786
|
var last = z.length;
|
|
4784
4787
|
if (inductionVariable < last)
|
|
@@ -4831,35 +4834,155 @@
|
|
|
4831
4834
|
}
|
|
4832
4835
|
while (inductionVariable <= last);
|
|
4833
4836
|
}
|
|
4837
|
+
function ElevationCorrections(bridgeDecks, bridgeDecksApplied, bridgeDecksDropped, tunnels, tunnelsApplied, tunnelsDropped, warnings) {
|
|
4838
|
+
this.o2a_1 = bridgeDecks;
|
|
4839
|
+
this.p2a_1 = bridgeDecksApplied;
|
|
4840
|
+
this.q2a_1 = bridgeDecksDropped;
|
|
4841
|
+
this.r2a_1 = tunnels;
|
|
4842
|
+
this.s2a_1 = tunnelsApplied;
|
|
4843
|
+
this.t2a_1 = tunnelsDropped;
|
|
4844
|
+
this.u2a_1 = warnings;
|
|
4845
|
+
}
|
|
4846
|
+
protoOf(ElevationCorrections).toString = function () {
|
|
4847
|
+
return 'ElevationCorrections(bridgeDecks=' + this.o2a_1.toString() + ', bridgeDecksApplied=' + this.p2a_1 + ', bridgeDecksDropped=' + this.q2a_1 + ', tunnels=' + this.r2a_1.toString() + ', tunnelsApplied=' + this.s2a_1 + ', tunnelsDropped=' + this.t2a_1 + ', warnings=' + toString_0(this.u2a_1) + ')';
|
|
4848
|
+
};
|
|
4849
|
+
protoOf(ElevationCorrections).hashCode = function () {
|
|
4850
|
+
var result = this.o2a_1.hashCode();
|
|
4851
|
+
result = imul(result, 31) + this.p2a_1 | 0;
|
|
4852
|
+
result = imul(result, 31) + this.q2a_1 | 0;
|
|
4853
|
+
result = imul(result, 31) + this.r2a_1.hashCode() | 0;
|
|
4854
|
+
result = imul(result, 31) + this.s2a_1 | 0;
|
|
4855
|
+
result = imul(result, 31) + this.t2a_1 | 0;
|
|
4856
|
+
result = imul(result, 31) + hashCode(this.u2a_1) | 0;
|
|
4857
|
+
return result;
|
|
4858
|
+
};
|
|
4859
|
+
protoOf(ElevationCorrections).equals = function (other) {
|
|
4860
|
+
if (this === other)
|
|
4861
|
+
return true;
|
|
4862
|
+
if (!(other instanceof ElevationCorrections))
|
|
4863
|
+
return false;
|
|
4864
|
+
if (!this.o2a_1.equals(other.o2a_1))
|
|
4865
|
+
return false;
|
|
4866
|
+
if (!(this.p2a_1 === other.p2a_1))
|
|
4867
|
+
return false;
|
|
4868
|
+
if (!(this.q2a_1 === other.q2a_1))
|
|
4869
|
+
return false;
|
|
4870
|
+
if (!this.r2a_1.equals(other.r2a_1))
|
|
4871
|
+
return false;
|
|
4872
|
+
if (!(this.s2a_1 === other.s2a_1))
|
|
4873
|
+
return false;
|
|
4874
|
+
if (!(this.t2a_1 === other.t2a_1))
|
|
4875
|
+
return false;
|
|
4876
|
+
if (!equals(this.u2a_1, other.u2a_1))
|
|
4877
|
+
return false;
|
|
4878
|
+
return true;
|
|
4879
|
+
};
|
|
4880
|
+
var static_init_called_2;
|
|
4881
|
+
function static_init_2() {
|
|
4882
|
+
if (static_init_called_2)
|
|
4883
|
+
return Unit_instance;
|
|
4884
|
+
static_init_called_2 = true;
|
|
4885
|
+
ElevationCorrectionStatus_NOT_RUN_instance = new ElevationCorrectionStatus('NOT_RUN', 0, 'not-run');
|
|
4886
|
+
ElevationCorrectionStatus_UNAVAILABLE_instance = new ElevationCorrectionStatus('UNAVAILABLE', 1, 'unavailable');
|
|
4887
|
+
ElevationCorrectionStatus_NO_COVERAGE_instance = new ElevationCorrectionStatus('NO_COVERAGE', 2, 'no-coverage');
|
|
4888
|
+
ElevationCorrectionStatus_NONE_FOUND_instance = new ElevationCorrectionStatus('NONE_FOUND', 3, 'none-found');
|
|
4889
|
+
ElevationCorrectionStatus_APPLIED_instance = new ElevationCorrectionStatus('APPLIED', 4, 'applied');
|
|
4890
|
+
ElevationCorrectionStatus_FETCH_FAILED_instance = new ElevationCorrectionStatus('FETCH_FAILED', 5, 'fetch-failed');
|
|
4891
|
+
if (Companion_instance_4 == null) {
|
|
4892
|
+
Companion_instance;
|
|
4893
|
+
new Companion_3();
|
|
4894
|
+
}
|
|
4895
|
+
}
|
|
4896
|
+
var ElevationCorrectionStatus_NOT_RUN_instance;
|
|
4897
|
+
var ElevationCorrectionStatus_UNAVAILABLE_instance;
|
|
4898
|
+
var ElevationCorrectionStatus_NO_COVERAGE_instance;
|
|
4899
|
+
var ElevationCorrectionStatus_NONE_FOUND_instance;
|
|
4900
|
+
var ElevationCorrectionStatus_APPLIED_instance;
|
|
4901
|
+
var ElevationCorrectionStatus_FETCH_FAILED_instance;
|
|
4834
4902
|
function Companion_3() {
|
|
4903
|
+
Companion_instance_4 = this;
|
|
4904
|
+
var tmp = this;
|
|
4905
|
+
// Inline function 'kotlin.collections.map' call
|
|
4906
|
+
var this_0 = get_entries_1();
|
|
4907
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
4908
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
4909
|
+
var _iterator__ex2g4s = this_0.l();
|
|
4910
|
+
while (_iterator__ex2g4s.m()) {
|
|
4911
|
+
var item = _iterator__ex2g4s.n();
|
|
4912
|
+
var tmp$ret$2 = item.x2a_1;
|
|
4913
|
+
destination.k(tmp$ret$2);
|
|
4914
|
+
}
|
|
4915
|
+
tmp.y2a_1 = destination;
|
|
4835
4916
|
}
|
|
4836
|
-
protoOf(Companion_3).n2a = function (options) {
|
|
4837
|
-
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.q2a_1, options.r2a_1, 0);
|
|
4838
|
-
};
|
|
4839
4917
|
var Companion_instance_4;
|
|
4918
|
+
function values_1() {
|
|
4919
|
+
static_init_2();
|
|
4920
|
+
return [ElevationCorrectionStatus_NOT_RUN_getInstance(), ElevationCorrectionStatus_UNAVAILABLE_getInstance(), ElevationCorrectionStatus_NO_COVERAGE_getInstance(), ElevationCorrectionStatus_NONE_FOUND_getInstance(), ElevationCorrectionStatus_APPLIED_getInstance(), ElevationCorrectionStatus_FETCH_FAILED_getInstance()];
|
|
4921
|
+
}
|
|
4922
|
+
function get_entries_1() {
|
|
4923
|
+
static_init_2();
|
|
4924
|
+
if ($ENTRIES_1 == null)
|
|
4925
|
+
$ENTRIES_1 = enumEntries(values_1());
|
|
4926
|
+
return $ENTRIES_1;
|
|
4927
|
+
}
|
|
4928
|
+
var $ENTRIES_1;
|
|
4929
|
+
function ElevationCorrectionStatus(name, ordinal, id) {
|
|
4930
|
+
Enum.call(this, name, ordinal);
|
|
4931
|
+
this.x2a_1 = id;
|
|
4932
|
+
}
|
|
4933
|
+
function ElevationCorrectionStatus_NOT_RUN_getInstance() {
|
|
4934
|
+
static_init_2();
|
|
4935
|
+
return ElevationCorrectionStatus_NOT_RUN_instance;
|
|
4936
|
+
}
|
|
4937
|
+
function ElevationCorrectionStatus_UNAVAILABLE_getInstance() {
|
|
4938
|
+
static_init_2();
|
|
4939
|
+
return ElevationCorrectionStatus_UNAVAILABLE_instance;
|
|
4940
|
+
}
|
|
4941
|
+
function ElevationCorrectionStatus_NO_COVERAGE_getInstance() {
|
|
4942
|
+
static_init_2();
|
|
4943
|
+
return ElevationCorrectionStatus_NO_COVERAGE_instance;
|
|
4944
|
+
}
|
|
4945
|
+
function ElevationCorrectionStatus_NONE_FOUND_getInstance() {
|
|
4946
|
+
static_init_2();
|
|
4947
|
+
return ElevationCorrectionStatus_NONE_FOUND_instance;
|
|
4948
|
+
}
|
|
4949
|
+
function ElevationCorrectionStatus_APPLIED_getInstance() {
|
|
4950
|
+
static_init_2();
|
|
4951
|
+
return ElevationCorrectionStatus_APPLIED_instance;
|
|
4952
|
+
}
|
|
4953
|
+
function ElevationCorrectionStatus_FETCH_FAILED_getInstance() {
|
|
4954
|
+
static_init_2();
|
|
4955
|
+
return ElevationCorrectionStatus_FETCH_FAILED_instance;
|
|
4956
|
+
}
|
|
4957
|
+
function Companion_4() {
|
|
4958
|
+
}
|
|
4959
|
+
protoOf(Companion_4).z2a = function (options) {
|
|
4960
|
+
return new ElevationGainResult(0.0, 0.0, 0.0, 0.0, options.c2b_1, options.d2b_1, 0);
|
|
4961
|
+
};
|
|
4962
|
+
var Companion_instance_5;
|
|
4840
4963
|
function Companion_getInstance_4() {
|
|
4841
|
-
return
|
|
4964
|
+
return Companion_instance_5;
|
|
4842
4965
|
}
|
|
4843
4966
|
function ElevationGainResult(gainM, lossM, rawGainM, rawLossM, thresholdM, smoothWindowM, legCount) {
|
|
4844
|
-
this.
|
|
4845
|
-
this.
|
|
4846
|
-
this.
|
|
4847
|
-
this.
|
|
4848
|
-
this.
|
|
4849
|
-
this.
|
|
4850
|
-
this.
|
|
4967
|
+
this.e2b_1 = gainM;
|
|
4968
|
+
this.f2b_1 = lossM;
|
|
4969
|
+
this.g2b_1 = rawGainM;
|
|
4970
|
+
this.h2b_1 = rawLossM;
|
|
4971
|
+
this.i2b_1 = thresholdM;
|
|
4972
|
+
this.j2b_1 = smoothWindowM;
|
|
4973
|
+
this.k2b_1 = legCount;
|
|
4851
4974
|
}
|
|
4852
4975
|
protoOf(ElevationGainResult).toString = function () {
|
|
4853
|
-
return 'ElevationGainResult(gainM=' + this.
|
|
4976
|
+
return 'ElevationGainResult(gainM=' + this.e2b_1 + ', lossM=' + this.f2b_1 + ', rawGainM=' + this.g2b_1 + ', rawLossM=' + this.h2b_1 + ', thresholdM=' + this.i2b_1 + ', smoothWindowM=' + this.j2b_1 + ', legCount=' + this.k2b_1 + ')';
|
|
4854
4977
|
};
|
|
4855
4978
|
protoOf(ElevationGainResult).hashCode = function () {
|
|
4856
|
-
var result = getNumberHashCode(this.
|
|
4857
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4858
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4859
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4860
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4861
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4862
|
-
result = imul(result, 31) + this.
|
|
4979
|
+
var result = getNumberHashCode(this.e2b_1);
|
|
4980
|
+
result = imul(result, 31) + getNumberHashCode(this.f2b_1) | 0;
|
|
4981
|
+
result = imul(result, 31) + getNumberHashCode(this.g2b_1) | 0;
|
|
4982
|
+
result = imul(result, 31) + getNumberHashCode(this.h2b_1) | 0;
|
|
4983
|
+
result = imul(result, 31) + getNumberHashCode(this.i2b_1) | 0;
|
|
4984
|
+
result = imul(result, 31) + getNumberHashCode(this.j2b_1) | 0;
|
|
4985
|
+
result = imul(result, 31) + this.k2b_1 | 0;
|
|
4863
4986
|
return result;
|
|
4864
4987
|
};
|
|
4865
4988
|
protoOf(ElevationGainResult).equals = function (other) {
|
|
@@ -4867,26 +4990,26 @@
|
|
|
4867
4990
|
return true;
|
|
4868
4991
|
if (!(other instanceof ElevationGainResult))
|
|
4869
4992
|
return false;
|
|
4870
|
-
if (!equals(this.
|
|
4993
|
+
if (!equals(this.e2b_1, other.e2b_1))
|
|
4871
4994
|
return false;
|
|
4872
|
-
if (!equals(this.
|
|
4995
|
+
if (!equals(this.f2b_1, other.f2b_1))
|
|
4873
4996
|
return false;
|
|
4874
|
-
if (!equals(this.
|
|
4997
|
+
if (!equals(this.g2b_1, other.g2b_1))
|
|
4875
4998
|
return false;
|
|
4876
|
-
if (!equals(this.
|
|
4999
|
+
if (!equals(this.h2b_1, other.h2b_1))
|
|
4877
5000
|
return false;
|
|
4878
|
-
if (!equals(this.
|
|
5001
|
+
if (!equals(this.i2b_1, other.i2b_1))
|
|
4879
5002
|
return false;
|
|
4880
|
-
if (!equals(this.
|
|
5003
|
+
if (!equals(this.j2b_1, other.j2b_1))
|
|
4881
5004
|
return false;
|
|
4882
|
-
if (!(this.
|
|
5005
|
+
if (!(this.k2b_1 === other.k2b_1))
|
|
4883
5006
|
return false;
|
|
4884
5007
|
return true;
|
|
4885
5008
|
};
|
|
4886
5009
|
function Banked(gainM, lossM, legCount) {
|
|
4887
|
-
this.
|
|
4888
|
-
this.
|
|
4889
|
-
this.
|
|
5010
|
+
this.l2b_1 = gainM;
|
|
5011
|
+
this.m2b_1 = lossM;
|
|
5012
|
+
this.n2b_1 = legCount;
|
|
4890
5013
|
}
|
|
4891
5014
|
function accumulate($this, h, threshold) {
|
|
4892
5015
|
var gain = 0.0;
|
|
@@ -4968,15 +5091,15 @@
|
|
|
4968
5091
|
}
|
|
4969
5092
|
function ElevationGain() {
|
|
4970
5093
|
}
|
|
4971
|
-
protoOf(ElevationGain).
|
|
5094
|
+
protoOf(ElevationGain).o2b = function (path, options) {
|
|
4972
5095
|
if (path.l23_1 < 2)
|
|
4973
|
-
return
|
|
5096
|
+
return Companion_instance_5.z2a(options);
|
|
4974
5097
|
var tmp = 0;
|
|
4975
5098
|
var tmp_0 = path.l23_1;
|
|
4976
5099
|
var tmp_1 = new Float64Array(tmp_0);
|
|
4977
5100
|
while (tmp < tmp_0) {
|
|
4978
5101
|
var tmp_2 = tmp;
|
|
4979
|
-
tmp_1[tmp_2] = path.
|
|
5102
|
+
tmp_1[tmp_2] = path.p2b(tmp_2);
|
|
4980
5103
|
tmp = tmp + 1 | 0;
|
|
4981
5104
|
}
|
|
4982
5105
|
var distanceM = tmp_1;
|
|
@@ -4985,28 +5108,28 @@
|
|
|
4985
5108
|
var tmp_5 = new Float64Array(tmp_4);
|
|
4986
5109
|
while (tmp_3 < tmp_4) {
|
|
4987
5110
|
var tmp_6 = tmp_3;
|
|
4988
|
-
var source = path.
|
|
5111
|
+
var source = path.q2b(tmp_6);
|
|
4989
5112
|
tmp_5[tmp_6] = isNaN_0(source) ? path.q23(tmp_6) : source;
|
|
4990
5113
|
tmp_3 = tmp_3 + 1 | 0;
|
|
4991
5114
|
}
|
|
4992
5115
|
var elevationM = tmp_5;
|
|
4993
|
-
return this.
|
|
5116
|
+
return this.r2b(distanceM, elevationM, options);
|
|
4994
5117
|
};
|
|
4995
|
-
protoOf(ElevationGain).
|
|
4996
|
-
var result = this.
|
|
4997
|
-
path.a25_1 = result.
|
|
4998
|
-
path.b25_1 = result.
|
|
5118
|
+
protoOf(ElevationGain).s2b = function (path, options) {
|
|
5119
|
+
var result = this.o2b(path, options);
|
|
5120
|
+
path.a25_1 = result.e2b_1;
|
|
5121
|
+
path.b25_1 = result.f2b_1;
|
|
4999
5122
|
return result;
|
|
5000
5123
|
};
|
|
5001
|
-
protoOf(ElevationGain).
|
|
5124
|
+
protoOf(ElevationGain).r2b = function (distanceM, elevationM, options) {
|
|
5002
5125
|
// Inline function 'kotlin.require' call
|
|
5003
5126
|
if (!(distanceM.length === elevationM.length)) {
|
|
5004
5127
|
var message = 'distanceM (' + distanceM.length + ') and elevationM (' + elevationM.length + ') must have the same length';
|
|
5005
5128
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5006
5129
|
}
|
|
5007
5130
|
if (elevationM.length < 2)
|
|
5008
|
-
return
|
|
5009
|
-
var profile = ElevationSmoother_instance.k17(distanceM, elevationM, options.
|
|
5131
|
+
return Companion_instance_5.z2a(options);
|
|
5132
|
+
var profile = ElevationSmoother_instance.k17(distanceM, elevationM, options.d2b_1);
|
|
5010
5133
|
var rawGain = 0.0;
|
|
5011
5134
|
var rawLoss = 0.0;
|
|
5012
5135
|
var inductionVariable = 1;
|
|
@@ -5022,48 +5145,48 @@
|
|
|
5022
5145
|
rawLoss = rawLoss + d;
|
|
5023
5146
|
}
|
|
5024
5147
|
while (inductionVariable < last);
|
|
5025
|
-
if (options.
|
|
5026
|
-
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.
|
|
5148
|
+
if (options.c2b_1 <= 0.0) {
|
|
5149
|
+
return new ElevationGainResult(rawGain, rawLoss, rawGain, rawLoss, 0.0, options.d2b_1, 0);
|
|
5027
5150
|
}
|
|
5028
|
-
var banked = accumulate(this, profile, options.
|
|
5029
|
-
return new ElevationGainResult(banked.
|
|
5151
|
+
var banked = accumulate(this, profile, options.c2b_1);
|
|
5152
|
+
return new ElevationGainResult(banked.l2b_1, banked.m2b_1, rawGain, rawLoss, options.c2b_1, options.d2b_1, banked.n2b_1);
|
|
5030
5153
|
};
|
|
5031
5154
|
var ElevationGain_instance;
|
|
5032
5155
|
function ElevationGain_getInstance() {
|
|
5033
5156
|
return ElevationGain_instance;
|
|
5034
5157
|
}
|
|
5035
5158
|
function ElevationGainPreset$Companion$byId$lambda(it) {
|
|
5036
|
-
return it.
|
|
5159
|
+
return it.x2b();
|
|
5037
5160
|
}
|
|
5038
|
-
var
|
|
5039
|
-
function
|
|
5040
|
-
if (
|
|
5161
|
+
var static_init_called_3;
|
|
5162
|
+
function static_init_3() {
|
|
5163
|
+
if (static_init_called_3)
|
|
5041
5164
|
return Unit_instance;
|
|
5042
|
-
|
|
5165
|
+
static_init_called_3 = true;
|
|
5043
5166
|
ElevationGainPreset_RAW_instance = new ElevationGainPreset('RAW', 0, 0.0, 0.0);
|
|
5044
5167
|
ElevationGainPreset_BAROMETRIC_instance = new ElevationGainPreset('BAROMETRIC', 1, 2.0, 15.0);
|
|
5045
5168
|
ElevationGainPreset_DEM_instance = new ElevationGainPreset('DEM', 2, 3.0, 30.0);
|
|
5046
5169
|
ElevationGainPreset_GPS_instance = new ElevationGainPreset('GPS', 3, 10.0, 50.0);
|
|
5047
|
-
if (
|
|
5170
|
+
if (Companion_instance_6 == null) {
|
|
5048
5171
|
Companion_instance;
|
|
5049
|
-
new
|
|
5172
|
+
new Companion_5();
|
|
5050
5173
|
}
|
|
5051
5174
|
}
|
|
5052
5175
|
var ElevationGainPreset_RAW_instance;
|
|
5053
5176
|
var ElevationGainPreset_BAROMETRIC_instance;
|
|
5054
5177
|
var ElevationGainPreset_DEM_instance;
|
|
5055
5178
|
var ElevationGainPreset_GPS_instance;
|
|
5056
|
-
function
|
|
5179
|
+
function Companion_5() {
|
|
5057
5180
|
}
|
|
5058
|
-
protoOf(
|
|
5059
|
-
var tmp0 =
|
|
5181
|
+
protoOf(Companion_5).q17 = function (name) {
|
|
5182
|
+
var tmp0 = get_entries_2();
|
|
5060
5183
|
var tmp$ret$0;
|
|
5061
5184
|
$l$block: {
|
|
5062
5185
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
5063
5186
|
var _iterator__ex2g4s = tmp0.l();
|
|
5064
5187
|
while (_iterator__ex2g4s.m()) {
|
|
5065
5188
|
var element = _iterator__ex2g4s.n();
|
|
5066
|
-
if (equals_0(element.
|
|
5189
|
+
if (equals_0(element.x2b(), name, true) || equals_0(element.u1_1, name, true)) {
|
|
5067
5190
|
tmp$ret$0 = element;
|
|
5068
5191
|
break $l$block;
|
|
5069
5192
|
}
|
|
@@ -5073,34 +5196,34 @@
|
|
|
5073
5196
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
5074
5197
|
var tmp;
|
|
5075
5198
|
if (tmp0_elvis_lhs == null) {
|
|
5076
|
-
var tmp_0 =
|
|
5199
|
+
var tmp_0 = get_entries_2();
|
|
5077
5200
|
throw IllegalArgumentException_init_$Create$_0("Unknown elevation gain preset '" + name + "': expected one of " + joinToString(tmp_0, ', ', VOID, VOID, VOID, VOID, ElevationGainPreset$Companion$byId$lambda));
|
|
5078
5201
|
} else {
|
|
5079
5202
|
tmp = tmp0_elvis_lhs;
|
|
5080
5203
|
}
|
|
5081
5204
|
return tmp;
|
|
5082
5205
|
};
|
|
5083
|
-
var
|
|
5206
|
+
var Companion_instance_6;
|
|
5084
5207
|
function Companion_getInstance_5() {
|
|
5085
|
-
return
|
|
5208
|
+
return Companion_instance_6;
|
|
5086
5209
|
}
|
|
5087
|
-
function
|
|
5088
|
-
|
|
5210
|
+
function values_2() {
|
|
5211
|
+
static_init_3();
|
|
5089
5212
|
return [ElevationGainPreset_RAW_getInstance(), ElevationGainPreset_BAROMETRIC_getInstance(), ElevationGainPreset_DEM_getInstance(), ElevationGainPreset_GPS_getInstance()];
|
|
5090
5213
|
}
|
|
5091
|
-
function
|
|
5092
|
-
|
|
5093
|
-
if ($
|
|
5094
|
-
$
|
|
5095
|
-
return $
|
|
5214
|
+
function get_entries_2() {
|
|
5215
|
+
static_init_3();
|
|
5216
|
+
if ($ENTRIES_2 == null)
|
|
5217
|
+
$ENTRIES_2 = enumEntries(values_2());
|
|
5218
|
+
return $ENTRIES_2;
|
|
5096
5219
|
}
|
|
5097
|
-
var $
|
|
5220
|
+
var $ENTRIES_2;
|
|
5098
5221
|
function ElevationGainPreset(name, ordinal, thresholdM, smoothWindowM) {
|
|
5099
5222
|
Enum.call(this, name, ordinal);
|
|
5100
|
-
this.
|
|
5101
|
-
this.
|
|
5223
|
+
this.v2b_1 = thresholdM;
|
|
5224
|
+
this.w2b_1 = smoothWindowM;
|
|
5102
5225
|
}
|
|
5103
|
-
protoOf(ElevationGainPreset).
|
|
5226
|
+
protoOf(ElevationGainPreset).x2b = function () {
|
|
5104
5227
|
var tmp;
|
|
5105
5228
|
switch (this.v1_1) {
|
|
5106
5229
|
case 0:
|
|
@@ -5121,46 +5244,46 @@
|
|
|
5121
5244
|
}
|
|
5122
5245
|
return tmp;
|
|
5123
5246
|
};
|
|
5124
|
-
function
|
|
5125
|
-
|
|
5126
|
-
this.
|
|
5127
|
-
this.
|
|
5247
|
+
function Companion_6() {
|
|
5248
|
+
Companion_instance_7 = this;
|
|
5249
|
+
this.y2b_1 = new ElevationGainOptions();
|
|
5250
|
+
this.z2b_1 = new ElevationGainOptions(VOID, ElevationGainPreset_RAW_getInstance());
|
|
5128
5251
|
}
|
|
5129
|
-
var
|
|
5252
|
+
var Companion_instance_7;
|
|
5130
5253
|
function Companion_getInstance_6() {
|
|
5131
|
-
if (
|
|
5132
|
-
new
|
|
5133
|
-
return
|
|
5254
|
+
if (Companion_instance_7 == null)
|
|
5255
|
+
new Companion_6();
|
|
5256
|
+
return Companion_instance_7;
|
|
5134
5257
|
}
|
|
5135
5258
|
function ElevationGainOptions(enabled, preset, thresholdM, smoothWindowM) {
|
|
5136
5259
|
Companion_getInstance_6();
|
|
5137
5260
|
enabled = enabled === VOID ? true : enabled;
|
|
5138
5261
|
preset = preset === VOID ? ElevationGainPreset_DEM_getInstance() : preset;
|
|
5139
|
-
thresholdM = thresholdM === VOID ? preset.
|
|
5140
|
-
smoothWindowM = smoothWindowM === VOID ? preset.
|
|
5141
|
-
this.
|
|
5142
|
-
this.
|
|
5143
|
-
this.
|
|
5144
|
-
this.
|
|
5262
|
+
thresholdM = thresholdM === VOID ? preset.v2b_1 : thresholdM;
|
|
5263
|
+
smoothWindowM = smoothWindowM === VOID ? preset.w2b_1 : smoothWindowM;
|
|
5264
|
+
this.a2b_1 = enabled;
|
|
5265
|
+
this.b2b_1 = preset;
|
|
5266
|
+
this.c2b_1 = thresholdM;
|
|
5267
|
+
this.d2b_1 = smoothWindowM;
|
|
5145
5268
|
// Inline function 'kotlin.require' call
|
|
5146
|
-
if (!(this.
|
|
5147
|
-
var message = 'thresholdM must be finite and >= 0, was ' + this.
|
|
5269
|
+
if (!(this.c2b_1 >= 0.0 && isFinite(this.c2b_1))) {
|
|
5270
|
+
var message = 'thresholdM must be finite and >= 0, was ' + this.c2b_1;
|
|
5148
5271
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
5149
5272
|
}
|
|
5150
5273
|
// Inline function 'kotlin.require' call
|
|
5151
|
-
if (!(this.
|
|
5152
|
-
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.
|
|
5274
|
+
if (!(this.d2b_1 >= 0.0 && isFinite(this.d2b_1))) {
|
|
5275
|
+
var message_0 = 'smoothWindowM must be finite and >= 0, was ' + this.d2b_1;
|
|
5153
5276
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
5154
5277
|
}
|
|
5155
5278
|
}
|
|
5156
5279
|
protoOf(ElevationGainOptions).toString = function () {
|
|
5157
|
-
return 'ElevationGainOptions(enabled=' + this.
|
|
5280
|
+
return 'ElevationGainOptions(enabled=' + this.a2b_1 + ', preset=' + this.b2b_1.toString() + ', thresholdM=' + this.c2b_1 + ', smoothWindowM=' + this.d2b_1 + ')';
|
|
5158
5281
|
};
|
|
5159
5282
|
protoOf(ElevationGainOptions).hashCode = function () {
|
|
5160
|
-
var result = getBooleanHashCode(this.
|
|
5161
|
-
result = imul(result, 31) + this.
|
|
5162
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5163
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5283
|
+
var result = getBooleanHashCode(this.a2b_1);
|
|
5284
|
+
result = imul(result, 31) + this.b2b_1.hashCode() | 0;
|
|
5285
|
+
result = imul(result, 31) + getNumberHashCode(this.c2b_1) | 0;
|
|
5286
|
+
result = imul(result, 31) + getNumberHashCode(this.d2b_1) | 0;
|
|
5164
5287
|
return result;
|
|
5165
5288
|
};
|
|
5166
5289
|
protoOf(ElevationGainOptions).equals = function (other) {
|
|
@@ -5168,30 +5291,30 @@
|
|
|
5168
5291
|
return true;
|
|
5169
5292
|
if (!(other instanceof ElevationGainOptions))
|
|
5170
5293
|
return false;
|
|
5171
|
-
if (!(this.
|
|
5294
|
+
if (!(this.a2b_1 === other.a2b_1))
|
|
5172
5295
|
return false;
|
|
5173
|
-
if (!this.
|
|
5296
|
+
if (!this.b2b_1.equals(other.b2b_1))
|
|
5174
5297
|
return false;
|
|
5175
|
-
if (!equals(this.
|
|
5298
|
+
if (!equals(this.c2b_1, other.c2b_1))
|
|
5176
5299
|
return false;
|
|
5177
|
-
if (!equals(this.
|
|
5300
|
+
if (!equals(this.d2b_1, other.d2b_1))
|
|
5178
5301
|
return false;
|
|
5179
5302
|
return true;
|
|
5180
5303
|
};
|
|
5181
5304
|
function ElevationGainPreset_RAW_getInstance() {
|
|
5182
|
-
|
|
5305
|
+
static_init_3();
|
|
5183
5306
|
return ElevationGainPreset_RAW_instance;
|
|
5184
5307
|
}
|
|
5185
5308
|
function ElevationGainPreset_BAROMETRIC_getInstance() {
|
|
5186
|
-
|
|
5309
|
+
static_init_3();
|
|
5187
5310
|
return ElevationGainPreset_BAROMETRIC_instance;
|
|
5188
5311
|
}
|
|
5189
5312
|
function ElevationGainPreset_DEM_getInstance() {
|
|
5190
|
-
|
|
5313
|
+
static_init_3();
|
|
5191
5314
|
return ElevationGainPreset_DEM_instance;
|
|
5192
5315
|
}
|
|
5193
5316
|
function ElevationGainPreset_GPS_getInstance() {
|
|
5194
|
-
|
|
5317
|
+
static_init_3();
|
|
5195
5318
|
return ElevationGainPreset_GPS_instance;
|
|
5196
5319
|
}
|
|
5197
5320
|
function copyAllSlots($this, source) {
|
|
@@ -5202,10 +5325,10 @@
|
|
|
5202
5325
|
do {
|
|
5203
5326
|
var i = inductionVariable;
|
|
5204
5327
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5205
|
-
var _iterator__ex2g4s =
|
|
5328
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
5206
5329
|
while (_iterator__ex2g4s.m()) {
|
|
5207
5330
|
var field = _iterator__ex2g4s.n();
|
|
5208
|
-
out.
|
|
5331
|
+
out.a2c(i, field, source.o26(i, field));
|
|
5209
5332
|
}
|
|
5210
5333
|
}
|
|
5211
5334
|
while (inductionVariable < last);
|
|
@@ -5213,9 +5336,9 @@
|
|
|
5213
5336
|
}
|
|
5214
5337
|
function $fixElevationCOROUTINE$(_this__u8e3s4, source, provider, resultContinuation) {
|
|
5215
5338
|
CoroutineImpl.call(this, resultContinuation);
|
|
5216
|
-
this.
|
|
5217
|
-
this.
|
|
5218
|
-
this.
|
|
5339
|
+
this.j2c_1 = _this__u8e3s4;
|
|
5340
|
+
this.k2c_1 = source;
|
|
5341
|
+
this.l2c_1 = provider;
|
|
5219
5342
|
}
|
|
5220
5343
|
protoOf($fixElevationCOROUTINE$).o7 = function () {
|
|
5221
5344
|
var suspendResult = this.i7_1;
|
|
@@ -5225,21 +5348,21 @@
|
|
|
5225
5348
|
switch (tmp) {
|
|
5226
5349
|
case 0:
|
|
5227
5350
|
this.h7_1 = 2;
|
|
5228
|
-
if (this.
|
|
5351
|
+
if (this.k2c_1.l23_1 === 0)
|
|
5229
5352
|
return new Path(0);
|
|
5230
|
-
var size = this.
|
|
5353
|
+
var size = this.k2c_1.l23_1;
|
|
5231
5354
|
var list = ArrayList_init_$Create$_0(size);
|
|
5232
5355
|
var inductionVariable = 0;
|
|
5233
5356
|
if (inductionVariable < size)
|
|
5234
5357
|
do {
|
|
5235
5358
|
var index = inductionVariable;
|
|
5236
5359
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5237
|
-
list.k(new LatLon(this.
|
|
5360
|
+
list.k(new LatLon(this.k2c_1.o23(index) * 57.29577951308232, this.k2c_1.p23(index) * 57.29577951308232));
|
|
5238
5361
|
}
|
|
5239
5362
|
while (inductionVariable < size);
|
|
5240
5363
|
var coords = list;
|
|
5241
5364
|
this.g7_1 = 1;
|
|
5242
|
-
suspendResult = this.
|
|
5365
|
+
suspendResult = this.l2c_1.e16(coords, VOID, this);
|
|
5243
5366
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
5244
5367
|
return suspendResult;
|
|
5245
5368
|
}
|
|
@@ -5247,7 +5370,7 @@
|
|
|
5247
5370
|
continue $sm;
|
|
5248
5371
|
case 1:
|
|
5249
5372
|
var corrected = suspendResult;
|
|
5250
|
-
var out = copyAllSlots(this.
|
|
5373
|
+
var out = copyAllSlots(this.j2c_1, this.k2c_1);
|
|
5251
5374
|
var inductionVariable_0 = 0;
|
|
5252
5375
|
var last = out.l23_1;
|
|
5253
5376
|
if (inductionVariable_0 < last)
|
|
@@ -5257,7 +5380,7 @@
|
|
|
5257
5380
|
out.k24(i, corrected.p(i).e11());
|
|
5258
5381
|
}
|
|
5259
5382
|
while (inductionVariable_0 < last);
|
|
5260
|
-
out.
|
|
5383
|
+
out.f25();
|
|
5261
5384
|
return out;
|
|
5262
5385
|
case 2:
|
|
5263
5386
|
throw this.j7_1;
|
|
@@ -5274,15 +5397,15 @@
|
|
|
5274
5397
|
while (true);
|
|
5275
5398
|
};
|
|
5276
5399
|
function ElevationStep() {
|
|
5277
|
-
this.
|
|
5400
|
+
this.m2c_1 = 150.0;
|
|
5278
5401
|
}
|
|
5279
|
-
protoOf(ElevationStep).
|
|
5402
|
+
protoOf(ElevationStep).n2c = function (source, provider, $completion) {
|
|
5280
5403
|
var tmp = new $fixElevationCOROUTINE$(this, source, provider, $completion);
|
|
5281
5404
|
tmp.i7_1 = Unit_instance;
|
|
5282
5405
|
tmp.j7_1 = null;
|
|
5283
5406
|
return tmp.o7();
|
|
5284
5407
|
};
|
|
5285
|
-
protoOf(ElevationStep).
|
|
5408
|
+
protoOf(ElevationStep).o2c = function (source, windowM) {
|
|
5286
5409
|
if (source.l23_1 === 0)
|
|
5287
5410
|
return new Path(0);
|
|
5288
5411
|
// Inline function 'kotlin.collections.List' call
|
|
@@ -5295,7 +5418,7 @@
|
|
|
5295
5418
|
do {
|
|
5296
5419
|
var index = inductionVariable;
|
|
5297
5420
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5298
|
-
var tmp$ret$4 = source.
|
|
5421
|
+
var tmp$ret$4 = source.p2c(index);
|
|
5299
5422
|
list.k(tmp$ret$4);
|
|
5300
5423
|
}
|
|
5301
5424
|
while (inductionVariable < size);
|
|
@@ -5308,13 +5431,14 @@
|
|
|
5308
5431
|
do {
|
|
5309
5432
|
var i = inductionVariable_0;
|
|
5310
5433
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5311
|
-
if (isNaN_0(out.
|
|
5312
|
-
out.
|
|
5434
|
+
if (isNaN_0(out.q2b(i))) {
|
|
5435
|
+
out.q2c(i, source.q23(i));
|
|
5313
5436
|
}
|
|
5314
5437
|
out.k24(i, smoothed.p(i).e11());
|
|
5315
5438
|
}
|
|
5316
5439
|
while (inductionVariable_0 < last);
|
|
5317
|
-
out.
|
|
5440
|
+
out.f25();
|
|
5441
|
+
out.c25_1 = source.c25_1;
|
|
5318
5442
|
return out;
|
|
5319
5443
|
};
|
|
5320
5444
|
var ElevationStep_instance;
|
|
@@ -5323,21 +5447,21 @@
|
|
|
5323
5447
|
}
|
|
5324
5448
|
function FieldInterpolation() {
|
|
5325
5449
|
FieldInterpolation_instance = this;
|
|
5326
|
-
this.
|
|
5327
|
-
this.
|
|
5450
|
+
this.r2c_1 = 6.283185307179586;
|
|
5451
|
+
this.s2c_1 = setOf([PointField_LONGITUDE_getInstance(), PointField_SOURCE_LONGITUDE_getInstance(), PointField_BEARING_getInstance(), PointField_WIND_BEARING_getInstance(), PointField_WIND_DIRECTION_getInstance(), PointField_WIND_ALPHA_getInstance()]);
|
|
5328
5452
|
}
|
|
5329
|
-
protoOf(FieldInterpolation).
|
|
5330
|
-
var _iterator__ex2g4s =
|
|
5453
|
+
protoOf(FieldInterpolation).t2c = function (src, i1, i2, coef, dst, dstIdx) {
|
|
5454
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
5331
5455
|
while (_iterator__ex2g4s.m()) {
|
|
5332
5456
|
var field = _iterator__ex2g4s.n();
|
|
5333
|
-
dst.
|
|
5457
|
+
dst.a2c(dstIdx, field, this.u2c(field, src.o26(i1, field), src.o26(i2, field), coef));
|
|
5334
5458
|
}
|
|
5335
5459
|
};
|
|
5336
|
-
protoOf(FieldInterpolation).
|
|
5460
|
+
protoOf(FieldInterpolation).u2c = function (field, v1, v2, coef) {
|
|
5337
5461
|
if (isNaN_0(v1) || isNaN_0(v2))
|
|
5338
5462
|
return NaN;
|
|
5339
5463
|
var delta = v2 - v1;
|
|
5340
|
-
if (!this.
|
|
5464
|
+
if (!this.s2c_1.i1(field) || (delta >= -3.141592653589793 && delta <= 3.141592653589793))
|
|
5341
5465
|
return v1 + delta * coef;
|
|
5342
5466
|
var arc = delta > 3.141592653589793 ? delta - 6.283185307179586 : delta + 6.283185307179586;
|
|
5343
5467
|
var v = v1 + arc * coef;
|
|
@@ -5373,10 +5497,10 @@
|
|
|
5373
5497
|
}
|
|
5374
5498
|
while (inductionVariable < last);
|
|
5375
5499
|
}
|
|
5376
|
-
protoOf(GeneratedPath).
|
|
5500
|
+
protoOf(GeneratedPath).o26 = function (i, field) {
|
|
5377
5501
|
return this.m23_1[imul(i, 44) + field.v1_1 | 0];
|
|
5378
5502
|
};
|
|
5379
|
-
protoOf(GeneratedPath).
|
|
5503
|
+
protoOf(GeneratedPath).a2c = function (i, field, v) {
|
|
5380
5504
|
this.m23_1[imul(i, 44) + field.v1_1 | 0] = v;
|
|
5381
5505
|
};
|
|
5382
5506
|
protoOf(GeneratedPath).o23 = function (i) {
|
|
@@ -5391,13 +5515,13 @@
|
|
|
5391
5515
|
protoOf(GeneratedPath).j24 = function (i, v) {
|
|
5392
5516
|
this.m23_1[imul(i, 44) + 1 | 0] = v;
|
|
5393
5517
|
};
|
|
5394
|
-
protoOf(GeneratedPath).
|
|
5518
|
+
protoOf(GeneratedPath).p2b = function (i) {
|
|
5395
5519
|
return this.m23_1[imul(i, 44) + 2 | 0];
|
|
5396
5520
|
};
|
|
5397
|
-
protoOf(GeneratedPath).
|
|
5521
|
+
protoOf(GeneratedPath).v2c = function (i, v) {
|
|
5398
5522
|
this.m23_1[imul(i, 44) + 2 | 0] = v;
|
|
5399
5523
|
};
|
|
5400
|
-
protoOf(GeneratedPath).
|
|
5524
|
+
protoOf(GeneratedPath).w2c = function (i, v) {
|
|
5401
5525
|
this.m23_1[imul(i, 44) + 3 | 0] = v;
|
|
5402
5526
|
};
|
|
5403
5527
|
protoOf(GeneratedPath).n23 = function (i) {
|
|
@@ -5406,22 +5530,22 @@
|
|
|
5406
5530
|
protoOf(GeneratedPath).l24 = function (i, v) {
|
|
5407
5531
|
this.m23_1[imul(i, 44) + 4 | 0] = v;
|
|
5408
5532
|
};
|
|
5409
|
-
protoOf(GeneratedPath).
|
|
5533
|
+
protoOf(GeneratedPath).x2c = function (i) {
|
|
5410
5534
|
return this.m23_1[imul(i, 44) + 5 | 0];
|
|
5411
5535
|
};
|
|
5412
|
-
protoOf(GeneratedPath).
|
|
5536
|
+
protoOf(GeneratedPath).y2c = function (i, v) {
|
|
5413
5537
|
this.m23_1[imul(i, 44) + 5 | 0] = v;
|
|
5414
5538
|
};
|
|
5415
|
-
protoOf(GeneratedPath).
|
|
5539
|
+
protoOf(GeneratedPath).z2c = function (i) {
|
|
5416
5540
|
return this.m23_1[imul(i, 44) + 6 | 0];
|
|
5417
5541
|
};
|
|
5418
|
-
protoOf(GeneratedPath).
|
|
5542
|
+
protoOf(GeneratedPath).a2d = function (i, v) {
|
|
5419
5543
|
this.m23_1[imul(i, 44) + 6 | 0] = v;
|
|
5420
5544
|
};
|
|
5421
|
-
protoOf(GeneratedPath).
|
|
5545
|
+
protoOf(GeneratedPath).b2d = function (i) {
|
|
5422
5546
|
return this.m23_1[imul(i, 44) + 7 | 0];
|
|
5423
5547
|
};
|
|
5424
|
-
protoOf(GeneratedPath).
|
|
5548
|
+
protoOf(GeneratedPath).c2d = function (i, v) {
|
|
5425
5549
|
this.m23_1[imul(i, 44) + 7 | 0] = v;
|
|
5426
5550
|
};
|
|
5427
5551
|
protoOf(GeneratedPath).q23 = function (i) {
|
|
@@ -5430,40 +5554,40 @@
|
|
|
5430
5554
|
protoOf(GeneratedPath).k24 = function (i, v) {
|
|
5431
5555
|
this.m23_1[imul(i, 44) + 8 | 0] = v;
|
|
5432
5556
|
};
|
|
5433
|
-
protoOf(GeneratedPath).
|
|
5557
|
+
protoOf(GeneratedPath).d2d = function (i) {
|
|
5434
5558
|
return this.m23_1[imul(i, 44) + 9 | 0];
|
|
5435
5559
|
};
|
|
5436
|
-
protoOf(GeneratedPath).
|
|
5560
|
+
protoOf(GeneratedPath).e2d = function (i, v) {
|
|
5437
5561
|
this.m23_1[imul(i, 44) + 9 | 0] = v;
|
|
5438
5562
|
};
|
|
5439
|
-
protoOf(GeneratedPath).
|
|
5563
|
+
protoOf(GeneratedPath).f2d = function (i) {
|
|
5440
5564
|
return this.m23_1[imul(i, 44) + 10 | 0];
|
|
5441
5565
|
};
|
|
5442
|
-
protoOf(GeneratedPath).
|
|
5566
|
+
protoOf(GeneratedPath).g2d = function (i, v) {
|
|
5443
5567
|
this.m23_1[imul(i, 44) + 10 | 0] = v;
|
|
5444
5568
|
};
|
|
5445
|
-
protoOf(GeneratedPath).
|
|
5569
|
+
protoOf(GeneratedPath).h2d = function (i, v) {
|
|
5446
5570
|
this.m23_1[imul(i, 44) + 11 | 0] = v;
|
|
5447
5571
|
};
|
|
5448
|
-
protoOf(GeneratedPath).
|
|
5572
|
+
protoOf(GeneratedPath).i2d = function (i, v) {
|
|
5449
5573
|
this.m23_1[imul(i, 44) + 12 | 0] = v;
|
|
5450
5574
|
};
|
|
5451
|
-
protoOf(GeneratedPath).
|
|
5575
|
+
protoOf(GeneratedPath).j2d = function (i) {
|
|
5452
5576
|
return this.m23_1[imul(i, 44) + 13 | 0];
|
|
5453
5577
|
};
|
|
5454
|
-
protoOf(GeneratedPath).
|
|
5578
|
+
protoOf(GeneratedPath).k2d = function (i, v) {
|
|
5455
5579
|
this.m23_1[imul(i, 44) + 13 | 0] = v;
|
|
5456
5580
|
};
|
|
5457
|
-
protoOf(GeneratedPath).
|
|
5581
|
+
protoOf(GeneratedPath).l2d = function (i, v) {
|
|
5458
5582
|
this.m23_1[imul(i, 44) + 14 | 0] = v;
|
|
5459
5583
|
};
|
|
5460
|
-
protoOf(GeneratedPath).
|
|
5584
|
+
protoOf(GeneratedPath).m2d = function (i, v) {
|
|
5461
5585
|
this.m23_1[imul(i, 44) + 15 | 0] = v;
|
|
5462
5586
|
};
|
|
5463
|
-
protoOf(GeneratedPath).
|
|
5587
|
+
protoOf(GeneratedPath).n2d = function (i, v) {
|
|
5464
5588
|
this.m23_1[imul(i, 44) + 16 | 0] = v;
|
|
5465
5589
|
};
|
|
5466
|
-
protoOf(GeneratedPath).
|
|
5590
|
+
protoOf(GeneratedPath).o2d = function (i, v) {
|
|
5467
5591
|
this.m23_1[imul(i, 44) + 17 | 0] = v;
|
|
5468
5592
|
};
|
|
5469
5593
|
protoOf(GeneratedPath).u23 = function (i) {
|
|
@@ -5472,49 +5596,49 @@
|
|
|
5472
5596
|
protoOf(GeneratedPath).m24 = function (i, v) {
|
|
5473
5597
|
this.m23_1[imul(i, 44) + 18 | 0] = v;
|
|
5474
5598
|
};
|
|
5475
|
-
protoOf(GeneratedPath).
|
|
5599
|
+
protoOf(GeneratedPath).p2d = function (i, v) {
|
|
5476
5600
|
this.m23_1[imul(i, 44) + 19 | 0] = v;
|
|
5477
5601
|
};
|
|
5478
|
-
protoOf(GeneratedPath).
|
|
5602
|
+
protoOf(GeneratedPath).q2d = function (i, v) {
|
|
5479
5603
|
this.m23_1[imul(i, 44) + 20 | 0] = v;
|
|
5480
5604
|
};
|
|
5481
|
-
protoOf(GeneratedPath).
|
|
5605
|
+
protoOf(GeneratedPath).r2d = function (i, v) {
|
|
5482
5606
|
this.m23_1[imul(i, 44) + 21 | 0] = v;
|
|
5483
5607
|
};
|
|
5484
|
-
protoOf(GeneratedPath).
|
|
5608
|
+
protoOf(GeneratedPath).s2d = function (i, v) {
|
|
5485
5609
|
this.m23_1[imul(i, 44) + 22 | 0] = v;
|
|
5486
5610
|
};
|
|
5487
|
-
protoOf(GeneratedPath).
|
|
5611
|
+
protoOf(GeneratedPath).t2d = function (i, v) {
|
|
5488
5612
|
this.m23_1[imul(i, 44) + 23 | 0] = v;
|
|
5489
5613
|
};
|
|
5490
|
-
protoOf(GeneratedPath).
|
|
5614
|
+
protoOf(GeneratedPath).u2d = function (i, v) {
|
|
5491
5615
|
this.m23_1[imul(i, 44) + 24 | 0] = v;
|
|
5492
5616
|
};
|
|
5493
|
-
protoOf(GeneratedPath).
|
|
5617
|
+
protoOf(GeneratedPath).v2d = function (i, v) {
|
|
5494
5618
|
this.m23_1[imul(i, 44) + 25 | 0] = v;
|
|
5495
5619
|
};
|
|
5496
5620
|
protoOf(GeneratedPath).v23 = function (i) {
|
|
5497
5621
|
return this.m23_1[imul(i, 44) + 26 | 0];
|
|
5498
5622
|
};
|
|
5499
|
-
protoOf(GeneratedPath).
|
|
5623
|
+
protoOf(GeneratedPath).w2d = function (i, v) {
|
|
5500
5624
|
this.m23_1[imul(i, 44) + 26 | 0] = v;
|
|
5501
5625
|
};
|
|
5502
|
-
protoOf(GeneratedPath).
|
|
5626
|
+
protoOf(GeneratedPath).x2d = function (i) {
|
|
5503
5627
|
return this.m23_1[imul(i, 44) + 27 | 0];
|
|
5504
5628
|
};
|
|
5505
|
-
protoOf(GeneratedPath).
|
|
5629
|
+
protoOf(GeneratedPath).y2d = function (i, v) {
|
|
5506
5630
|
this.m23_1[imul(i, 44) + 27 | 0] = v;
|
|
5507
5631
|
};
|
|
5508
|
-
protoOf(GeneratedPath).
|
|
5632
|
+
protoOf(GeneratedPath).z2d = function (i) {
|
|
5509
5633
|
return this.m23_1[imul(i, 44) + 28 | 0];
|
|
5510
5634
|
};
|
|
5511
|
-
protoOf(GeneratedPath).
|
|
5635
|
+
protoOf(GeneratedPath).a2e = function (i, v) {
|
|
5512
5636
|
this.m23_1[imul(i, 44) + 28 | 0] = v;
|
|
5513
5637
|
};
|
|
5514
|
-
protoOf(GeneratedPath).
|
|
5638
|
+
protoOf(GeneratedPath).b2e = function (i, v) {
|
|
5515
5639
|
this.m23_1[imul(i, 44) + 29 | 0] = v;
|
|
5516
5640
|
};
|
|
5517
|
-
protoOf(GeneratedPath).
|
|
5641
|
+
protoOf(GeneratedPath).c2e = function (i, v) {
|
|
5518
5642
|
this.m23_1[imul(i, 44) + 30 | 0] = v;
|
|
5519
5643
|
};
|
|
5520
5644
|
protoOf(GeneratedPath).t23 = function (i) {
|
|
@@ -5523,13 +5647,13 @@
|
|
|
5523
5647
|
protoOf(GeneratedPath).p24 = function (i, v) {
|
|
5524
5648
|
this.m23_1[imul(i, 44) + 31 | 0] = v;
|
|
5525
5649
|
};
|
|
5526
|
-
protoOf(GeneratedPath).
|
|
5650
|
+
protoOf(GeneratedPath).d2e = function (i) {
|
|
5527
5651
|
return this.m23_1[imul(i, 44) + 32 | 0];
|
|
5528
5652
|
};
|
|
5529
|
-
protoOf(GeneratedPath).
|
|
5653
|
+
protoOf(GeneratedPath).e2e = function (i, v) {
|
|
5530
5654
|
this.m23_1[imul(i, 44) + 32 | 0] = v;
|
|
5531
5655
|
};
|
|
5532
|
-
protoOf(GeneratedPath).
|
|
5656
|
+
protoOf(GeneratedPath).f2e = function (i, v) {
|
|
5533
5657
|
this.m23_1[imul(i, 44) + 33 | 0] = v;
|
|
5534
5658
|
};
|
|
5535
5659
|
protoOf(GeneratedPath).r23 = function (i) {
|
|
@@ -5544,64 +5668,64 @@
|
|
|
5544
5668
|
protoOf(GeneratedPath).o24 = function (i, v) {
|
|
5545
5669
|
this.m23_1[imul(i, 44) + 35 | 0] = v;
|
|
5546
5670
|
};
|
|
5547
|
-
protoOf(GeneratedPath).
|
|
5671
|
+
protoOf(GeneratedPath).g2e = function (i, v) {
|
|
5548
5672
|
this.m23_1[imul(i, 44) + 36 | 0] = v;
|
|
5549
5673
|
};
|
|
5550
|
-
protoOf(GeneratedPath).
|
|
5674
|
+
protoOf(GeneratedPath).h2e = function (i, v) {
|
|
5551
5675
|
this.m23_1[imul(i, 44) + 37 | 0] = v;
|
|
5552
5676
|
};
|
|
5553
|
-
protoOf(GeneratedPath).
|
|
5677
|
+
protoOf(GeneratedPath).i2e = function (i) {
|
|
5554
5678
|
return this.m23_1[imul(i, 44) + 38 | 0];
|
|
5555
5679
|
};
|
|
5556
|
-
protoOf(GeneratedPath).
|
|
5680
|
+
protoOf(GeneratedPath).j2e = function (i, v) {
|
|
5557
5681
|
this.m23_1[imul(i, 44) + 38 | 0] = v;
|
|
5558
5682
|
};
|
|
5559
|
-
protoOf(GeneratedPath).
|
|
5683
|
+
protoOf(GeneratedPath).k2e = function (i) {
|
|
5560
5684
|
return this.m23_1[imul(i, 44) + 39 | 0];
|
|
5561
5685
|
};
|
|
5562
5686
|
protoOf(GeneratedPath).s24 = function (i, v) {
|
|
5563
5687
|
this.m23_1[imul(i, 44) + 39 | 0] = v;
|
|
5564
5688
|
};
|
|
5565
|
-
protoOf(GeneratedPath).
|
|
5689
|
+
protoOf(GeneratedPath).l2e = function (i, v) {
|
|
5566
5690
|
this.m23_1[imul(i, 44) + 40 | 0] = v;
|
|
5567
5691
|
};
|
|
5568
|
-
protoOf(GeneratedPath).
|
|
5692
|
+
protoOf(GeneratedPath).m2e = function (i, v) {
|
|
5569
5693
|
this.m23_1[imul(i, 44) + 41 | 0] = v;
|
|
5570
5694
|
};
|
|
5571
|
-
protoOf(GeneratedPath).
|
|
5695
|
+
protoOf(GeneratedPath).n2e = function (i, v) {
|
|
5572
5696
|
this.m23_1[imul(i, 44) + 42 | 0] = v;
|
|
5573
5697
|
};
|
|
5574
|
-
protoOf(GeneratedPath).
|
|
5698
|
+
protoOf(GeneratedPath).q2b = function (i) {
|
|
5575
5699
|
return this.m23_1[imul(i, 44) + 43 | 0];
|
|
5576
5700
|
};
|
|
5577
|
-
protoOf(GeneratedPath).
|
|
5701
|
+
protoOf(GeneratedPath).q2c = function (i, v) {
|
|
5578
5702
|
this.m23_1[imul(i, 44) + 43 | 0] = v;
|
|
5579
5703
|
};
|
|
5580
|
-
function
|
|
5581
|
-
|
|
5582
|
-
this.
|
|
5704
|
+
function Companion_7() {
|
|
5705
|
+
Companion_instance_8 = this;
|
|
5706
|
+
this.o2e_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
5583
5707
|
}
|
|
5584
|
-
var
|
|
5708
|
+
var Companion_instance_8;
|
|
5585
5709
|
function Companion_getInstance_7() {
|
|
5586
|
-
if (
|
|
5587
|
-
new
|
|
5588
|
-
return
|
|
5710
|
+
if (Companion_instance_8 == null)
|
|
5711
|
+
new Companion_7();
|
|
5712
|
+
return Companion_instance_8;
|
|
5589
5713
|
}
|
|
5590
5714
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
5591
5715
|
Companion_getInstance_7();
|
|
5592
|
-
this.
|
|
5593
|
-
this.
|
|
5594
|
-
this.
|
|
5595
|
-
this.
|
|
5716
|
+
this.p2e_1 = minLat;
|
|
5717
|
+
this.q2e_1 = maxLat;
|
|
5718
|
+
this.r2e_1 = minLon;
|
|
5719
|
+
this.s2e_1 = maxLon;
|
|
5596
5720
|
}
|
|
5597
5721
|
protoOf(BoundsRad).toString = function () {
|
|
5598
|
-
return 'BoundsRad(minLat=' + this.
|
|
5722
|
+
return 'BoundsRad(minLat=' + this.p2e_1 + ', maxLat=' + this.q2e_1 + ', minLon=' + this.r2e_1 + ', maxLon=' + this.s2e_1 + ')';
|
|
5599
5723
|
};
|
|
5600
5724
|
protoOf(BoundsRad).hashCode = function () {
|
|
5601
|
-
var result = getNumberHashCode(this.
|
|
5602
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5603
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5604
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
5725
|
+
var result = getNumberHashCode(this.p2e_1);
|
|
5726
|
+
result = imul(result, 31) + getNumberHashCode(this.q2e_1) | 0;
|
|
5727
|
+
result = imul(result, 31) + getNumberHashCode(this.r2e_1) | 0;
|
|
5728
|
+
result = imul(result, 31) + getNumberHashCode(this.s2e_1) | 0;
|
|
5605
5729
|
return result;
|
|
5606
5730
|
};
|
|
5607
5731
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -5609,13 +5733,13 @@
|
|
|
5609
5733
|
return true;
|
|
5610
5734
|
if (!(other instanceof BoundsRad))
|
|
5611
5735
|
return false;
|
|
5612
|
-
if (!equals(this.
|
|
5736
|
+
if (!equals(this.p2e_1, other.p2e_1))
|
|
5613
5737
|
return false;
|
|
5614
|
-
if (!equals(this.
|
|
5738
|
+
if (!equals(this.q2e_1, other.q2e_1))
|
|
5615
5739
|
return false;
|
|
5616
|
-
if (!equals(this.
|
|
5740
|
+
if (!equals(this.r2e_1, other.r2e_1))
|
|
5617
5741
|
return false;
|
|
5618
|
-
if (!equals(this.
|
|
5742
|
+
if (!equals(this.s2e_1, other.s2e_1))
|
|
5619
5743
|
return false;
|
|
5620
5744
|
return true;
|
|
5621
5745
|
};
|
|
@@ -5629,6 +5753,7 @@
|
|
|
5629
5753
|
$this.b25_1 = other.b25_1;
|
|
5630
5754
|
$this.c25_1 = other.c25_1;
|
|
5631
5755
|
$this.d25_1 = other.d25_1;
|
|
5756
|
+
$this.e25_1 = other.e25_1;
|
|
5632
5757
|
}
|
|
5633
5758
|
function resetStats($this) {
|
|
5634
5759
|
$this.v24_1 = 0.0;
|
|
@@ -5638,8 +5763,8 @@
|
|
|
5638
5763
|
$this.z24_1 = 0.0;
|
|
5639
5764
|
$this.a25_1 = NaN;
|
|
5640
5765
|
$this.b25_1 = NaN;
|
|
5641
|
-
$this.
|
|
5642
|
-
$this.
|
|
5766
|
+
$this.d25_1 = 0.0;
|
|
5767
|
+
$this.e25_1 = Companion_getInstance_7().o2e_1;
|
|
5643
5768
|
}
|
|
5644
5769
|
function computeBearing($this, from, to) {
|
|
5645
5770
|
var lat1 = $this.o23(from);
|
|
@@ -5659,11 +5784,11 @@
|
|
|
5659
5784
|
var y = -dy;
|
|
5660
5785
|
return Math.atan2(y, dx);
|
|
5661
5786
|
}
|
|
5662
|
-
function
|
|
5787
|
+
function Companion_8() {
|
|
5663
5788
|
}
|
|
5664
|
-
var
|
|
5789
|
+
var Companion_instance_9;
|
|
5665
5790
|
function Companion_getInstance_8() {
|
|
5666
|
-
return
|
|
5791
|
+
return Companion_instance_9;
|
|
5667
5792
|
}
|
|
5668
5793
|
function Path(size) {
|
|
5669
5794
|
GeneratedPath.call(this, size);
|
|
@@ -5674,28 +5799,29 @@
|
|
|
5674
5799
|
this.z24_1 = 0.0;
|
|
5675
5800
|
this.a25_1 = NaN;
|
|
5676
5801
|
this.b25_1 = NaN;
|
|
5677
|
-
this.c25_1 =
|
|
5678
|
-
this.d25_1 =
|
|
5802
|
+
this.c25_1 = null;
|
|
5803
|
+
this.d25_1 = 0.0;
|
|
5804
|
+
this.e25_1 = Companion_getInstance_7().o2e_1;
|
|
5679
5805
|
}
|
|
5680
|
-
protoOf(Path).
|
|
5806
|
+
protoOf(Path).t2e = function () {
|
|
5681
5807
|
return isNaN_0(this.a25_1) ? this.y24_1 : this.a25_1;
|
|
5682
5808
|
};
|
|
5683
|
-
protoOf(Path).
|
|
5809
|
+
protoOf(Path).u2e = function () {
|
|
5684
5810
|
return isNaN_0(this.b25_1) ? this.z24_1 : this.b25_1;
|
|
5685
5811
|
};
|
|
5686
|
-
protoOf(Path).
|
|
5812
|
+
protoOf(Path).v2e = function () {
|
|
5687
5813
|
return until(0, this.l23_1);
|
|
5688
5814
|
};
|
|
5689
|
-
protoOf(Path).
|
|
5815
|
+
protoOf(Path).w2e = function (i) {
|
|
5690
5816
|
return this.o23(i) * 57.29577951308232;
|
|
5691
5817
|
};
|
|
5692
|
-
protoOf(Path).
|
|
5818
|
+
protoOf(Path).x2e = function (i) {
|
|
5693
5819
|
return this.p23(i) * 57.29577951308232;
|
|
5694
5820
|
};
|
|
5695
|
-
protoOf(Path).
|
|
5696
|
-
return new LatLonElevation(this.
|
|
5821
|
+
protoOf(Path).p2c = function (i) {
|
|
5822
|
+
return new LatLonElevation(this.w2e(i), this.x2e(i), this.q23(i));
|
|
5697
5823
|
};
|
|
5698
|
-
protoOf(Path).
|
|
5824
|
+
protoOf(Path).y2e = function () {
|
|
5699
5825
|
var out = new Path(this.l23_1);
|
|
5700
5826
|
var tmp0 = this.m23_1;
|
|
5701
5827
|
var tmp2 = out.m23_1;
|
|
@@ -5710,7 +5836,7 @@
|
|
|
5710
5836
|
copyStatsFrom(out, this);
|
|
5711
5837
|
return out;
|
|
5712
5838
|
};
|
|
5713
|
-
protoOf(Path).
|
|
5839
|
+
protoOf(Path).f25 = function () {
|
|
5714
5840
|
resetStats(this);
|
|
5715
5841
|
if (this.l23_1 === 0)
|
|
5716
5842
|
return Unit_instance;
|
|
@@ -5752,8 +5878,8 @@
|
|
|
5752
5878
|
var a_4 = maxEle;
|
|
5753
5879
|
maxEle = Math.max(a_4, ele);
|
|
5754
5880
|
if (i > 0) {
|
|
5755
|
-
var prevCoord = new LatLon(this.
|
|
5756
|
-
var curCoord = new LatLon(this.
|
|
5881
|
+
var prevCoord = new LatLon(this.w2e(i - 1 | 0), this.x2e(i - 1 | 0));
|
|
5882
|
+
var curCoord = new LatLon(this.w2e(i), this.x2e(i));
|
|
5757
5883
|
cumDist = cumDist + Distance_instance.z10(prevCoord, curCoord);
|
|
5758
5884
|
var dEle = ele - this.q23(i - 1 | 0);
|
|
5759
5885
|
if (dEle > 0)
|
|
@@ -5761,7 +5887,7 @@
|
|
|
5761
5887
|
else
|
|
5762
5888
|
loss = loss + dEle;
|
|
5763
5889
|
}
|
|
5764
|
-
this.
|
|
5890
|
+
this.v2c(i, cumDist);
|
|
5765
5891
|
}
|
|
5766
5892
|
while (inductionVariable < last);
|
|
5767
5893
|
this.v24_1 = cumDist;
|
|
@@ -5769,15 +5895,15 @@
|
|
|
5769
5895
|
this.x24_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
5770
5896
|
this.y24_1 = gain;
|
|
5771
5897
|
this.z24_1 = loss;
|
|
5772
|
-
this.
|
|
5773
|
-
this.
|
|
5898
|
+
this.e25_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
5899
|
+
this.d25_1 = this.l23_1 >= 2 ? this.n23(this.l23_1 - 1 | 0) - timeStart : 0.0;
|
|
5774
5900
|
var inductionVariable_0 = 0;
|
|
5775
5901
|
var last_0 = this.l23_1;
|
|
5776
5902
|
if (inductionVariable_0 < last_0)
|
|
5777
5903
|
$l$loop: do {
|
|
5778
5904
|
var i_0 = inductionVariable_0;
|
|
5779
5905
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5780
|
-
this.
|
|
5906
|
+
this.y2c(i_0, (this.n23(i_0) - timeStart) / 1000.0);
|
|
5781
5907
|
if (this.l23_1 <= 1)
|
|
5782
5908
|
continue $l$loop;
|
|
5783
5909
|
// Inline function 'kotlin.math.max' call
|
|
@@ -5787,23 +5913,23 @@
|
|
|
5787
5913
|
// Inline function 'kotlin.math.min' call
|
|
5788
5914
|
var b_0 = i_0 + 1 | 0;
|
|
5789
5915
|
var ip1 = Math.min(tmp0, b_0);
|
|
5790
|
-
this.
|
|
5791
|
-
var dDist = (this.
|
|
5916
|
+
this.c2d(i_0, computeBearing(this, im1, ip1));
|
|
5917
|
+
var dDist = (this.p2b(ip1) - this.p2b(im1)) / 2.0;
|
|
5792
5918
|
var dEle_0 = (this.q23(ip1) - this.q23(im1)) / 2.0;
|
|
5793
5919
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
5794
|
-
this.
|
|
5920
|
+
this.e2d(i_0, grade);
|
|
5795
5921
|
var dTime = (this.n23(ip1) - this.n23(im1)) / 2000.0;
|
|
5796
|
-
this.
|
|
5797
|
-
this.
|
|
5798
|
-
this.
|
|
5922
|
+
this.w2c(i_0, dDist);
|
|
5923
|
+
this.a2d(i_0, dTime);
|
|
5924
|
+
this.y2d(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
5799
5925
|
}
|
|
5800
5926
|
while (inductionVariable_0 < last_0);
|
|
5801
5927
|
};
|
|
5802
5928
|
function PathSimplifier() {
|
|
5803
5929
|
}
|
|
5804
|
-
protoOf(PathSimplifier).
|
|
5930
|
+
protoOf(PathSimplifier).z2e = function (path, toleranceM, zExaggeration) {
|
|
5805
5931
|
if (path.l23_1 <= 2)
|
|
5806
|
-
return path.
|
|
5932
|
+
return path.y2e();
|
|
5807
5933
|
var coords = ArrayList_init_$Create$_0(path.l23_1);
|
|
5808
5934
|
var inductionVariable = 0;
|
|
5809
5935
|
var last = path.l23_1;
|
|
@@ -5842,26 +5968,27 @@
|
|
|
5842
5968
|
var dstIdx = index;
|
|
5843
5969
|
index = index + 1 | 0;
|
|
5844
5970
|
var srcIdx = iterator.n();
|
|
5845
|
-
var _iterator__ex2g4s_0 =
|
|
5971
|
+
var _iterator__ex2g4s_0 = get_entries_3().l();
|
|
5846
5972
|
while (_iterator__ex2g4s_0.m()) {
|
|
5847
5973
|
var field = _iterator__ex2g4s_0.n();
|
|
5848
|
-
out.
|
|
5974
|
+
out.a2c(dstIdx, field, path.o26(srcIdx, field));
|
|
5849
5975
|
}
|
|
5850
5976
|
}
|
|
5851
|
-
out.
|
|
5977
|
+
out.f25();
|
|
5852
5978
|
out.a25_1 = path.a25_1;
|
|
5853
5979
|
out.b25_1 = path.b25_1;
|
|
5980
|
+
out.c25_1 = path.c25_1;
|
|
5854
5981
|
return out;
|
|
5855
5982
|
};
|
|
5856
5983
|
var PathSimplifier_instance;
|
|
5857
5984
|
function PathSimplifier_getInstance() {
|
|
5858
5985
|
return PathSimplifier_instance;
|
|
5859
5986
|
}
|
|
5860
|
-
var
|
|
5861
|
-
function
|
|
5862
|
-
if (
|
|
5987
|
+
var static_init_called_4;
|
|
5988
|
+
function static_init_4() {
|
|
5989
|
+
if (static_init_called_4)
|
|
5863
5990
|
return Unit_instance;
|
|
5864
|
-
|
|
5991
|
+
static_init_called_4 = true;
|
|
5865
5992
|
PointField_LATITUDE_instance = new PointField('LATITUDE', 0, 'latitude', 'radians', 'Latitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
|
|
5866
5993
|
PointField_LONGITUDE_instance = new PointField('LONGITUDE', 1, 'longitude', 'radians', 'Longitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
|
|
5867
5994
|
PointField_DISTANCE_instance = new PointField('DISTANCE', 2, 'distance', 'meters', 'Distance (meters)', PointFieldCategory_COORDINATES_getInstance());
|
|
@@ -5906,9 +6033,9 @@
|
|
|
5906
6033
|
PointField_SOURCE_LATITUDE_instance = new PointField('SOURCE_LATITUDE', 41, 'sourceLatitude', 'radians', 'Original latitude before the racing line (radians)', PointFieldCategory_ROAD_getInstance(), true, true, true);
|
|
5907
6034
|
PointField_SOURCE_LONGITUDE_instance = new PointField('SOURCE_LONGITUDE', 42, 'sourceLongitude', 'radians', 'Original longitude before the racing line (radians)', PointFieldCategory_ROAD_getInstance(), true, true, true);
|
|
5908
6035
|
PointField_SOURCE_ELEVATION_instance = new PointField('SOURCE_ELEVATION', 43, 'sourceElevation', 'meters', 'Original elevation before smoothing (m)', PointFieldCategory_ELEVATION_getInstance(), true, VOID, true);
|
|
5909
|
-
if (
|
|
6036
|
+
if (Companion_instance_10 == null) {
|
|
5910
6037
|
Companion_instance;
|
|
5911
|
-
new
|
|
6038
|
+
new Companion_9();
|
|
5912
6039
|
}
|
|
5913
6040
|
}
|
|
5914
6041
|
var PointField_LATITUDE_instance;
|
|
@@ -5955,236 +6082,236 @@
|
|
|
5955
6082
|
var PointField_SOURCE_LATITUDE_instance;
|
|
5956
6083
|
var PointField_SOURCE_LONGITUDE_instance;
|
|
5957
6084
|
var PointField_SOURCE_ELEVATION_instance;
|
|
5958
|
-
function
|
|
5959
|
-
|
|
5960
|
-
this.
|
|
6085
|
+
function Companion_9() {
|
|
6086
|
+
Companion_instance_10 = this;
|
|
6087
|
+
this.a2f_1 = 44;
|
|
5961
6088
|
var tmp = this;
|
|
5962
6089
|
// Inline function 'kotlin.collections.associateBy' call
|
|
5963
|
-
var this_0 =
|
|
6090
|
+
var this_0 = get_entries_3();
|
|
5964
6091
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
5965
6092
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5966
6093
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
5967
6094
|
var _iterator__ex2g4s = this_0.l();
|
|
5968
6095
|
while (_iterator__ex2g4s.m()) {
|
|
5969
6096
|
var element = _iterator__ex2g4s.n();
|
|
5970
|
-
var tmp$ret$2 = element.
|
|
6097
|
+
var tmp$ret$2 = element.g26_1;
|
|
5971
6098
|
destination.s3(tmp$ret$2, element);
|
|
5972
6099
|
}
|
|
5973
|
-
tmp.
|
|
6100
|
+
tmp.b2f_1 = destination;
|
|
5974
6101
|
}
|
|
5975
|
-
protoOf(
|
|
5976
|
-
return this.
|
|
6102
|
+
protoOf(Companion_9).c2f = function (prop) {
|
|
6103
|
+
return this.b2f_1.q1(prop);
|
|
5977
6104
|
};
|
|
5978
|
-
var
|
|
6105
|
+
var Companion_instance_10;
|
|
5979
6106
|
function Companion_getInstance_9() {
|
|
5980
|
-
|
|
5981
|
-
return
|
|
6107
|
+
static_init_4();
|
|
6108
|
+
return Companion_instance_10;
|
|
5982
6109
|
}
|
|
5983
|
-
function
|
|
5984
|
-
|
|
6110
|
+
function values_3() {
|
|
6111
|
+
static_init_4();
|
|
5985
6112
|
return [PointField_LATITUDE_getInstance(), PointField_LONGITUDE_getInstance(), PointField_DISTANCE_getInstance(), PointField_DX_getInstance(), PointField_TIME_getInstance(), PointField_ELAPSED_getInstance(), PointField_DT_getInstance(), PointField_BEARING_getInstance(), PointField_ELEVATION_getInstance(), PointField_GRADE_getInstance(), PointField_RADIUS_getInstance(), PointField_AERO_COEF_getInstance(), PointField_WIND_BEARING_getInstance(), PointField_WIND_ALPHA_getInstance(), PointField_P_AERO_getInstance(), PointField_P_GRAVITY_getInstance(), PointField_P_ROLLING_RESISTANCE_getInstance(), PointField_P_WHEEL_BEARINGS_getInstance(), PointField_P_INPUT_POWER_getInstance(), PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_getInstance(), PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_getInstance(), PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_getInstance(), PointField_P_CYCLIST_PROVIDED_MUSCULAR_getInstance(), PointField_P_CYCLIST_PROVIDED_WHEEL_getInstance(), PointField_P_COMPUTED_TOTAL_POWER_getInstance(), PointField_P_COMPUTED_WHEEL_POWER_getInstance(), PointField_POWER_getInstance(), PointField_SPEED_getInstance(), PointField_SPEED_MAX_getInstance(), PointField_SPEED_MAX_INCLINE_getInstance(), PointField_VIRT_SPEED_CURRENT_getInstance(), PointField_TEMPERATURE_getInstance(), PointField_WIND_SPEED_getInstance(), PointField_WIND_DIRECTION_getInstance(), PointField_HEART_RATE_getInstance(), PointField_CADENCE_getInstance(), PointField_W_PRIME_BALANCE_getInstance(), PointField_P_BRAKE_getInstance(), PointField_TRAJECTORY_CURVATURE_getInstance(), PointField_ROAD_WIDTH_getInstance(), PointField_LATERAL_OFFSET_getInstance(), PointField_SOURCE_LATITUDE_getInstance(), PointField_SOURCE_LONGITUDE_getInstance(), PointField_SOURCE_ELEVATION_getInstance()];
|
|
5986
6113
|
}
|
|
5987
|
-
function
|
|
5988
|
-
|
|
5989
|
-
if ($
|
|
5990
|
-
$
|
|
5991
|
-
return $
|
|
6114
|
+
function get_entries_3() {
|
|
6115
|
+
static_init_4();
|
|
6116
|
+
if ($ENTRIES_3 == null)
|
|
6117
|
+
$ENTRIES_3 = enumEntries(values_3());
|
|
6118
|
+
return $ENTRIES_3;
|
|
5992
6119
|
}
|
|
5993
|
-
var $
|
|
6120
|
+
var $ENTRIES_3;
|
|
5994
6121
|
function PointField(name, ordinal, prop, unit, shortDescription, category, notSelectable, anglesInRadians, nanDefault) {
|
|
5995
6122
|
notSelectable = notSelectable === VOID ? false : notSelectable;
|
|
5996
6123
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
5997
6124
|
nanDefault = nanDefault === VOID ? false : nanDefault;
|
|
5998
6125
|
Enum.call(this, name, ordinal);
|
|
5999
|
-
this.
|
|
6000
|
-
this.
|
|
6001
|
-
this.
|
|
6002
|
-
this.
|
|
6003
|
-
this.
|
|
6004
|
-
this.
|
|
6005
|
-
this.
|
|
6126
|
+
this.g26_1 = prop;
|
|
6127
|
+
this.h26_1 = unit;
|
|
6128
|
+
this.i26_1 = shortDescription;
|
|
6129
|
+
this.j26_1 = category;
|
|
6130
|
+
this.k26_1 = notSelectable;
|
|
6131
|
+
this.l26_1 = anglesInRadians;
|
|
6132
|
+
this.m26_1 = nanDefault;
|
|
6006
6133
|
}
|
|
6007
6134
|
function PointField_LATITUDE_getInstance() {
|
|
6008
|
-
|
|
6135
|
+
static_init_4();
|
|
6009
6136
|
return PointField_LATITUDE_instance;
|
|
6010
6137
|
}
|
|
6011
6138
|
function PointField_LONGITUDE_getInstance() {
|
|
6012
|
-
|
|
6139
|
+
static_init_4();
|
|
6013
6140
|
return PointField_LONGITUDE_instance;
|
|
6014
6141
|
}
|
|
6015
6142
|
function PointField_DISTANCE_getInstance() {
|
|
6016
|
-
|
|
6143
|
+
static_init_4();
|
|
6017
6144
|
return PointField_DISTANCE_instance;
|
|
6018
6145
|
}
|
|
6019
6146
|
function PointField_DX_getInstance() {
|
|
6020
|
-
|
|
6147
|
+
static_init_4();
|
|
6021
6148
|
return PointField_DX_instance;
|
|
6022
6149
|
}
|
|
6023
6150
|
function PointField_TIME_getInstance() {
|
|
6024
|
-
|
|
6151
|
+
static_init_4();
|
|
6025
6152
|
return PointField_TIME_instance;
|
|
6026
6153
|
}
|
|
6027
6154
|
function PointField_ELAPSED_getInstance() {
|
|
6028
|
-
|
|
6155
|
+
static_init_4();
|
|
6029
6156
|
return PointField_ELAPSED_instance;
|
|
6030
6157
|
}
|
|
6031
6158
|
function PointField_DT_getInstance() {
|
|
6032
|
-
|
|
6159
|
+
static_init_4();
|
|
6033
6160
|
return PointField_DT_instance;
|
|
6034
6161
|
}
|
|
6035
6162
|
function PointField_BEARING_getInstance() {
|
|
6036
|
-
|
|
6163
|
+
static_init_4();
|
|
6037
6164
|
return PointField_BEARING_instance;
|
|
6038
6165
|
}
|
|
6039
6166
|
function PointField_ELEVATION_getInstance() {
|
|
6040
|
-
|
|
6167
|
+
static_init_4();
|
|
6041
6168
|
return PointField_ELEVATION_instance;
|
|
6042
6169
|
}
|
|
6043
6170
|
function PointField_GRADE_getInstance() {
|
|
6044
|
-
|
|
6171
|
+
static_init_4();
|
|
6045
6172
|
return PointField_GRADE_instance;
|
|
6046
6173
|
}
|
|
6047
6174
|
function PointField_RADIUS_getInstance() {
|
|
6048
|
-
|
|
6175
|
+
static_init_4();
|
|
6049
6176
|
return PointField_RADIUS_instance;
|
|
6050
6177
|
}
|
|
6051
6178
|
function PointField_AERO_COEF_getInstance() {
|
|
6052
|
-
|
|
6179
|
+
static_init_4();
|
|
6053
6180
|
return PointField_AERO_COEF_instance;
|
|
6054
6181
|
}
|
|
6055
6182
|
function PointField_WIND_BEARING_getInstance() {
|
|
6056
|
-
|
|
6183
|
+
static_init_4();
|
|
6057
6184
|
return PointField_WIND_BEARING_instance;
|
|
6058
6185
|
}
|
|
6059
6186
|
function PointField_WIND_ALPHA_getInstance() {
|
|
6060
|
-
|
|
6187
|
+
static_init_4();
|
|
6061
6188
|
return PointField_WIND_ALPHA_instance;
|
|
6062
6189
|
}
|
|
6063
6190
|
function PointField_P_AERO_getInstance() {
|
|
6064
|
-
|
|
6191
|
+
static_init_4();
|
|
6065
6192
|
return PointField_P_AERO_instance;
|
|
6066
6193
|
}
|
|
6067
6194
|
function PointField_P_GRAVITY_getInstance() {
|
|
6068
|
-
|
|
6195
|
+
static_init_4();
|
|
6069
6196
|
return PointField_P_GRAVITY_instance;
|
|
6070
6197
|
}
|
|
6071
6198
|
function PointField_P_ROLLING_RESISTANCE_getInstance() {
|
|
6072
|
-
|
|
6199
|
+
static_init_4();
|
|
6073
6200
|
return PointField_P_ROLLING_RESISTANCE_instance;
|
|
6074
6201
|
}
|
|
6075
6202
|
function PointField_P_WHEEL_BEARINGS_getInstance() {
|
|
6076
|
-
|
|
6203
|
+
static_init_4();
|
|
6077
6204
|
return PointField_P_WHEEL_BEARINGS_instance;
|
|
6078
6205
|
}
|
|
6079
6206
|
function PointField_P_INPUT_POWER_getInstance() {
|
|
6080
|
-
|
|
6207
|
+
static_init_4();
|
|
6081
6208
|
return PointField_P_INPUT_POWER_instance;
|
|
6082
6209
|
}
|
|
6083
6210
|
function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_getInstance() {
|
|
6084
|
-
|
|
6211
|
+
static_init_4();
|
|
6085
6212
|
return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_instance;
|
|
6086
6213
|
}
|
|
6087
6214
|
function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_getInstance() {
|
|
6088
|
-
|
|
6215
|
+
static_init_4();
|
|
6089
6216
|
return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_instance;
|
|
6090
6217
|
}
|
|
6091
6218
|
function PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_getInstance() {
|
|
6092
|
-
|
|
6219
|
+
static_init_4();
|
|
6093
6220
|
return PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_instance;
|
|
6094
6221
|
}
|
|
6095
6222
|
function PointField_P_CYCLIST_PROVIDED_MUSCULAR_getInstance() {
|
|
6096
|
-
|
|
6223
|
+
static_init_4();
|
|
6097
6224
|
return PointField_P_CYCLIST_PROVIDED_MUSCULAR_instance;
|
|
6098
6225
|
}
|
|
6099
6226
|
function PointField_P_CYCLIST_PROVIDED_WHEEL_getInstance() {
|
|
6100
|
-
|
|
6227
|
+
static_init_4();
|
|
6101
6228
|
return PointField_P_CYCLIST_PROVIDED_WHEEL_instance;
|
|
6102
6229
|
}
|
|
6103
6230
|
function PointField_P_COMPUTED_TOTAL_POWER_getInstance() {
|
|
6104
|
-
|
|
6231
|
+
static_init_4();
|
|
6105
6232
|
return PointField_P_COMPUTED_TOTAL_POWER_instance;
|
|
6106
6233
|
}
|
|
6107
6234
|
function PointField_P_COMPUTED_WHEEL_POWER_getInstance() {
|
|
6108
|
-
|
|
6235
|
+
static_init_4();
|
|
6109
6236
|
return PointField_P_COMPUTED_WHEEL_POWER_instance;
|
|
6110
6237
|
}
|
|
6111
6238
|
function PointField_POWER_getInstance() {
|
|
6112
|
-
|
|
6239
|
+
static_init_4();
|
|
6113
6240
|
return PointField_POWER_instance;
|
|
6114
6241
|
}
|
|
6115
6242
|
function PointField_SPEED_getInstance() {
|
|
6116
|
-
|
|
6243
|
+
static_init_4();
|
|
6117
6244
|
return PointField_SPEED_instance;
|
|
6118
6245
|
}
|
|
6119
6246
|
function PointField_SPEED_MAX_getInstance() {
|
|
6120
|
-
|
|
6247
|
+
static_init_4();
|
|
6121
6248
|
return PointField_SPEED_MAX_instance;
|
|
6122
6249
|
}
|
|
6123
6250
|
function PointField_SPEED_MAX_INCLINE_getInstance() {
|
|
6124
|
-
|
|
6251
|
+
static_init_4();
|
|
6125
6252
|
return PointField_SPEED_MAX_INCLINE_instance;
|
|
6126
6253
|
}
|
|
6127
6254
|
function PointField_VIRT_SPEED_CURRENT_getInstance() {
|
|
6128
|
-
|
|
6255
|
+
static_init_4();
|
|
6129
6256
|
return PointField_VIRT_SPEED_CURRENT_instance;
|
|
6130
6257
|
}
|
|
6131
6258
|
function PointField_TEMPERATURE_getInstance() {
|
|
6132
|
-
|
|
6259
|
+
static_init_4();
|
|
6133
6260
|
return PointField_TEMPERATURE_instance;
|
|
6134
6261
|
}
|
|
6135
6262
|
function PointField_WIND_SPEED_getInstance() {
|
|
6136
|
-
|
|
6263
|
+
static_init_4();
|
|
6137
6264
|
return PointField_WIND_SPEED_instance;
|
|
6138
6265
|
}
|
|
6139
6266
|
function PointField_WIND_DIRECTION_getInstance() {
|
|
6140
|
-
|
|
6267
|
+
static_init_4();
|
|
6141
6268
|
return PointField_WIND_DIRECTION_instance;
|
|
6142
6269
|
}
|
|
6143
6270
|
function PointField_HEART_RATE_getInstance() {
|
|
6144
|
-
|
|
6271
|
+
static_init_4();
|
|
6145
6272
|
return PointField_HEART_RATE_instance;
|
|
6146
6273
|
}
|
|
6147
6274
|
function PointField_CADENCE_getInstance() {
|
|
6148
|
-
|
|
6275
|
+
static_init_4();
|
|
6149
6276
|
return PointField_CADENCE_instance;
|
|
6150
6277
|
}
|
|
6151
6278
|
function PointField_W_PRIME_BALANCE_getInstance() {
|
|
6152
|
-
|
|
6279
|
+
static_init_4();
|
|
6153
6280
|
return PointField_W_PRIME_BALANCE_instance;
|
|
6154
6281
|
}
|
|
6155
6282
|
function PointField_P_BRAKE_getInstance() {
|
|
6156
|
-
|
|
6283
|
+
static_init_4();
|
|
6157
6284
|
return PointField_P_BRAKE_instance;
|
|
6158
6285
|
}
|
|
6159
6286
|
function PointField_TRAJECTORY_CURVATURE_getInstance() {
|
|
6160
|
-
|
|
6287
|
+
static_init_4();
|
|
6161
6288
|
return PointField_TRAJECTORY_CURVATURE_instance;
|
|
6162
6289
|
}
|
|
6163
6290
|
function PointField_ROAD_WIDTH_getInstance() {
|
|
6164
|
-
|
|
6291
|
+
static_init_4();
|
|
6165
6292
|
return PointField_ROAD_WIDTH_instance;
|
|
6166
6293
|
}
|
|
6167
6294
|
function PointField_LATERAL_OFFSET_getInstance() {
|
|
6168
|
-
|
|
6295
|
+
static_init_4();
|
|
6169
6296
|
return PointField_LATERAL_OFFSET_instance;
|
|
6170
6297
|
}
|
|
6171
6298
|
function PointField_SOURCE_LATITUDE_getInstance() {
|
|
6172
|
-
|
|
6299
|
+
static_init_4();
|
|
6173
6300
|
return PointField_SOURCE_LATITUDE_instance;
|
|
6174
6301
|
}
|
|
6175
6302
|
function PointField_SOURCE_LONGITUDE_getInstance() {
|
|
6176
|
-
|
|
6303
|
+
static_init_4();
|
|
6177
6304
|
return PointField_SOURCE_LONGITUDE_instance;
|
|
6178
6305
|
}
|
|
6179
6306
|
function PointField_SOURCE_ELEVATION_getInstance() {
|
|
6180
|
-
|
|
6307
|
+
static_init_4();
|
|
6181
6308
|
return PointField_SOURCE_ELEVATION_instance;
|
|
6182
6309
|
}
|
|
6183
|
-
var
|
|
6184
|
-
function
|
|
6185
|
-
if (
|
|
6310
|
+
var static_init_called_5;
|
|
6311
|
+
function static_init_5() {
|
|
6312
|
+
if (static_init_called_5)
|
|
6186
6313
|
return Unit_instance;
|
|
6187
|
-
|
|
6314
|
+
static_init_called_5 = true;
|
|
6188
6315
|
PointFieldCategory_COORDINATES_instance = new PointFieldCategory('COORDINATES', 0, 'coordinates', 'Coordinates');
|
|
6189
6316
|
PointFieldCategory_TEMPORAL_instance = new PointFieldCategory('TEMPORAL', 1, 'temporal', 'Temporal');
|
|
6190
6317
|
PointFieldCategory_ANGLES_instance = new PointFieldCategory('ANGLES', 2, 'angles', 'Angles');
|
|
@@ -6218,99 +6345,99 @@
|
|
|
6218
6345
|
var PointFieldCategory_ROAD_instance;
|
|
6219
6346
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
6220
6347
|
Enum.call(this, name, ordinal);
|
|
6221
|
-
this.
|
|
6222
|
-
this.
|
|
6348
|
+
this.f2f_1 = id;
|
|
6349
|
+
this.g2f_1 = displayName;
|
|
6223
6350
|
}
|
|
6224
6351
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
6225
|
-
|
|
6352
|
+
static_init_5();
|
|
6226
6353
|
return PointFieldCategory_COORDINATES_instance;
|
|
6227
6354
|
}
|
|
6228
6355
|
function PointFieldCategory_TEMPORAL_getInstance() {
|
|
6229
|
-
|
|
6356
|
+
static_init_5();
|
|
6230
6357
|
return PointFieldCategory_TEMPORAL_instance;
|
|
6231
6358
|
}
|
|
6232
6359
|
function PointFieldCategory_ANGLES_getInstance() {
|
|
6233
|
-
|
|
6360
|
+
static_init_5();
|
|
6234
6361
|
return PointFieldCategory_ANGLES_instance;
|
|
6235
6362
|
}
|
|
6236
6363
|
function PointFieldCategory_ELEVATION_getInstance() {
|
|
6237
|
-
|
|
6364
|
+
static_init_5();
|
|
6238
6365
|
return PointFieldCategory_ELEVATION_instance;
|
|
6239
6366
|
}
|
|
6240
6367
|
function PointFieldCategory_GRADE_getInstance() {
|
|
6241
|
-
|
|
6368
|
+
static_init_5();
|
|
6242
6369
|
return PointFieldCategory_GRADE_instance;
|
|
6243
6370
|
}
|
|
6244
6371
|
function PointFieldCategory_RADIUS_getInstance() {
|
|
6245
|
-
|
|
6372
|
+
static_init_5();
|
|
6246
6373
|
return PointFieldCategory_RADIUS_instance;
|
|
6247
6374
|
}
|
|
6248
6375
|
function PointFieldCategory_AERO_COEF_getInstance() {
|
|
6249
|
-
|
|
6376
|
+
static_init_5();
|
|
6250
6377
|
return PointFieldCategory_AERO_COEF_instance;
|
|
6251
6378
|
}
|
|
6252
6379
|
function PointFieldCategory_CYCLIST_WIND_getInstance() {
|
|
6253
|
-
|
|
6380
|
+
static_init_5();
|
|
6254
6381
|
return PointFieldCategory_CYCLIST_WIND_instance;
|
|
6255
6382
|
}
|
|
6256
6383
|
function PointFieldCategory_POWER_PHYSICS_getInstance() {
|
|
6257
|
-
|
|
6384
|
+
static_init_5();
|
|
6258
6385
|
return PointFieldCategory_POWER_PHYSICS_instance;
|
|
6259
6386
|
}
|
|
6260
6387
|
function PointFieldCategory_POWER_CYCLIST_getInstance() {
|
|
6261
|
-
|
|
6388
|
+
static_init_5();
|
|
6262
6389
|
return PointFieldCategory_POWER_CYCLIST_instance;
|
|
6263
6390
|
}
|
|
6264
6391
|
function PointFieldCategory_POWER_POST_getInstance() {
|
|
6265
|
-
|
|
6392
|
+
static_init_5();
|
|
6266
6393
|
return PointFieldCategory_POWER_POST_instance;
|
|
6267
6394
|
}
|
|
6268
6395
|
function PointFieldCategory_SPEED_getInstance() {
|
|
6269
|
-
|
|
6396
|
+
static_init_5();
|
|
6270
6397
|
return PointFieldCategory_SPEED_instance;
|
|
6271
6398
|
}
|
|
6272
6399
|
function PointFieldCategory_ENVIRONMENTAL_getInstance() {
|
|
6273
|
-
|
|
6400
|
+
static_init_5();
|
|
6274
6401
|
return PointFieldCategory_ENVIRONMENTAL_instance;
|
|
6275
6402
|
}
|
|
6276
6403
|
function PointFieldCategory_PHYSIOLOGICAL_getInstance() {
|
|
6277
|
-
|
|
6404
|
+
static_init_5();
|
|
6278
6405
|
return PointFieldCategory_PHYSIOLOGICAL_instance;
|
|
6279
6406
|
}
|
|
6280
6407
|
function PointFieldCategory_ROAD_getInstance() {
|
|
6281
|
-
|
|
6408
|
+
static_init_5();
|
|
6282
6409
|
return PointFieldCategory_ROAD_instance;
|
|
6283
6410
|
}
|
|
6284
6411
|
function Copy(sourceIndex) {
|
|
6285
|
-
this.
|
|
6412
|
+
this.h2f_1 = sourceIndex;
|
|
6286
6413
|
}
|
|
6287
6414
|
protoOf(Copy).toString = function () {
|
|
6288
|
-
return 'Copy(sourceIndex=' + this.
|
|
6415
|
+
return 'Copy(sourceIndex=' + this.h2f_1 + ')';
|
|
6289
6416
|
};
|
|
6290
6417
|
protoOf(Copy).hashCode = function () {
|
|
6291
|
-
return this.
|
|
6418
|
+
return this.h2f_1;
|
|
6292
6419
|
};
|
|
6293
6420
|
protoOf(Copy).equals = function (other) {
|
|
6294
6421
|
if (this === other)
|
|
6295
6422
|
return true;
|
|
6296
6423
|
if (!(other instanceof Copy))
|
|
6297
6424
|
return false;
|
|
6298
|
-
if (!(this.
|
|
6425
|
+
if (!(this.h2f_1 === other.h2f_1))
|
|
6299
6426
|
return false;
|
|
6300
6427
|
return true;
|
|
6301
6428
|
};
|
|
6302
6429
|
function Interpolate(from, to, coef) {
|
|
6303
|
-
this.
|
|
6304
|
-
this.
|
|
6305
|
-
this.
|
|
6430
|
+
this.i2f_1 = from;
|
|
6431
|
+
this.j2f_1 = to;
|
|
6432
|
+
this.k2f_1 = coef;
|
|
6306
6433
|
}
|
|
6307
6434
|
protoOf(Interpolate).toString = function () {
|
|
6308
|
-
return 'Interpolate(from=' + this.
|
|
6435
|
+
return 'Interpolate(from=' + this.i2f_1 + ', to=' + this.j2f_1 + ', coef=' + this.k2f_1 + ')';
|
|
6309
6436
|
};
|
|
6310
6437
|
protoOf(Interpolate).hashCode = function () {
|
|
6311
|
-
var result = this.
|
|
6312
|
-
result = imul(result, 31) + this.
|
|
6313
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6438
|
+
var result = this.i2f_1;
|
|
6439
|
+
result = imul(result, 31) + this.j2f_1 | 0;
|
|
6440
|
+
result = imul(result, 31) + getNumberHashCode(this.k2f_1) | 0;
|
|
6314
6441
|
return result;
|
|
6315
6442
|
};
|
|
6316
6443
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -6318,11 +6445,11 @@
|
|
|
6318
6445
|
return true;
|
|
6319
6446
|
if (!(other instanceof Interpolate))
|
|
6320
6447
|
return false;
|
|
6321
|
-
if (!(this.
|
|
6448
|
+
if (!(this.i2f_1 === other.i2f_1))
|
|
6322
6449
|
return false;
|
|
6323
|
-
if (!(this.
|
|
6450
|
+
if (!(this.j2f_1 === other.j2f_1))
|
|
6324
6451
|
return false;
|
|
6325
|
-
if (!equals(this.
|
|
6452
|
+
if (!equals(this.k2f_1, other.k2f_1))
|
|
6326
6453
|
return false;
|
|
6327
6454
|
return true;
|
|
6328
6455
|
};
|
|
@@ -6332,14 +6459,14 @@
|
|
|
6332
6459
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6333
6460
|
var element = new Copy(0);
|
|
6334
6461
|
plan.k(element);
|
|
6335
|
-
var lastAddedDistance = source.
|
|
6462
|
+
var lastAddedDistance = source.p2b(0);
|
|
6336
6463
|
var lastAddedIndex = 0;
|
|
6337
6464
|
var inductionVariable = 1;
|
|
6338
6465
|
if (inductionVariable < n)
|
|
6339
6466
|
$l$loop: do {
|
|
6340
6467
|
var i = inductionVariable;
|
|
6341
6468
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6342
|
-
var curDist = source.
|
|
6469
|
+
var curDist = source.p2b(i);
|
|
6343
6470
|
var gap = curDist - lastAddedDistance;
|
|
6344
6471
|
if (gap < minDistanceM)
|
|
6345
6472
|
continue $l$loop;
|
|
@@ -6362,11 +6489,11 @@
|
|
|
6362
6489
|
var j = inductionVariable_0;
|
|
6363
6490
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6364
6491
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
6365
|
-
while (index1 < (i - 1 | 0) && source.
|
|
6492
|
+
while (index1 < (i - 1 | 0) && source.p2b(index1 + 1 | 0) < targetDistance) {
|
|
6366
6493
|
index1 = index1 + 1 | 0;
|
|
6367
6494
|
}
|
|
6368
|
-
var dist1 = source.
|
|
6369
|
-
var dist2 = source.
|
|
6495
|
+
var dist1 = source.p2b(index1);
|
|
6496
|
+
var dist2 = source.p2b(index1 + 1 | 0);
|
|
6370
6497
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
6371
6498
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6372
6499
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -6392,31 +6519,31 @@
|
|
|
6392
6519
|
index = index + 1 | 0;
|
|
6393
6520
|
var op = iterator.n();
|
|
6394
6521
|
if (op instanceof Copy) {
|
|
6395
|
-
copyFields($this, source, op.
|
|
6522
|
+
copyFields($this, source, op.h2f_1, out, dstIdx);
|
|
6396
6523
|
} else {
|
|
6397
6524
|
if (op instanceof Interpolate) {
|
|
6398
|
-
FieldInterpolation_getInstance().
|
|
6525
|
+
FieldInterpolation_getInstance().t2c(source, op.i2f_1, op.j2f_1, op.k2f_1, out, dstIdx);
|
|
6399
6526
|
} else {
|
|
6400
6527
|
noWhenBranchMatchedException();
|
|
6401
6528
|
}
|
|
6402
6529
|
}
|
|
6403
6530
|
}
|
|
6404
|
-
out.
|
|
6531
|
+
out.f25();
|
|
6405
6532
|
return out;
|
|
6406
6533
|
}
|
|
6407
6534
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
6408
|
-
var _iterator__ex2g4s =
|
|
6535
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
6409
6536
|
while (_iterator__ex2g4s.m()) {
|
|
6410
6537
|
var field = _iterator__ex2g4s.n();
|
|
6411
|
-
dst.
|
|
6538
|
+
dst.a2c(dstIdx, field, src.o26(srcIdx, field));
|
|
6412
6539
|
}
|
|
6413
6540
|
}
|
|
6414
6541
|
function PointPerDistance() {
|
|
6415
6542
|
}
|
|
6416
|
-
protoOf(PointPerDistance).
|
|
6417
|
-
return this.
|
|
6543
|
+
protoOf(PointPerDistance).l2f = function (source, minDistanceM, maxDistanceM) {
|
|
6544
|
+
return this.m2f(source, minDistanceM, maxDistanceM);
|
|
6418
6545
|
};
|
|
6419
|
-
protoOf(PointPerDistance).
|
|
6546
|
+
protoOf(PointPerDistance).m2f = function (source, minDistanceM, maxDistanceM) {
|
|
6420
6547
|
// Inline function 'kotlin.require' call
|
|
6421
6548
|
if (!(maxDistanceM > 0.0)) {
|
|
6422
6549
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
@@ -6427,7 +6554,7 @@
|
|
|
6427
6554
|
if (source.l23_1 === 1) {
|
|
6428
6555
|
var out = new Path(1);
|
|
6429
6556
|
copyFields(this, source, 0, out, 0);
|
|
6430
|
-
out.
|
|
6557
|
+
out.f25();
|
|
6431
6558
|
return out;
|
|
6432
6559
|
}
|
|
6433
6560
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -6438,35 +6565,35 @@
|
|
|
6438
6565
|
return PointPerDistance_instance;
|
|
6439
6566
|
}
|
|
6440
6567
|
function Copy_0(sourceIndex) {
|
|
6441
|
-
this.
|
|
6568
|
+
this.n2f_1 = sourceIndex;
|
|
6442
6569
|
}
|
|
6443
6570
|
protoOf(Copy_0).toString = function () {
|
|
6444
|
-
return 'Copy(sourceIndex=' + this.
|
|
6571
|
+
return 'Copy(sourceIndex=' + this.n2f_1 + ')';
|
|
6445
6572
|
};
|
|
6446
6573
|
protoOf(Copy_0).hashCode = function () {
|
|
6447
|
-
return this.
|
|
6574
|
+
return this.n2f_1;
|
|
6448
6575
|
};
|
|
6449
6576
|
protoOf(Copy_0).equals = function (other) {
|
|
6450
6577
|
if (this === other)
|
|
6451
6578
|
return true;
|
|
6452
6579
|
if (!(other instanceof Copy_0))
|
|
6453
6580
|
return false;
|
|
6454
|
-
if (!(this.
|
|
6581
|
+
if (!(this.n2f_1 === other.n2f_1))
|
|
6455
6582
|
return false;
|
|
6456
6583
|
return true;
|
|
6457
6584
|
};
|
|
6458
6585
|
function Interpolate_0(from, to, coef) {
|
|
6459
|
-
this.
|
|
6460
|
-
this.
|
|
6461
|
-
this.
|
|
6586
|
+
this.o2f_1 = from;
|
|
6587
|
+
this.p2f_1 = to;
|
|
6588
|
+
this.q2f_1 = coef;
|
|
6462
6589
|
}
|
|
6463
6590
|
protoOf(Interpolate_0).toString = function () {
|
|
6464
|
-
return 'Interpolate(from=' + this.
|
|
6591
|
+
return 'Interpolate(from=' + this.o2f_1 + ', to=' + this.p2f_1 + ', coef=' + this.q2f_1 + ')';
|
|
6465
6592
|
};
|
|
6466
6593
|
protoOf(Interpolate_0).hashCode = function () {
|
|
6467
|
-
var result = this.
|
|
6468
|
-
result = imul(result, 31) + this.
|
|
6469
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6594
|
+
var result = this.o2f_1;
|
|
6595
|
+
result = imul(result, 31) + this.p2f_1 | 0;
|
|
6596
|
+
result = imul(result, 31) + getNumberHashCode(this.q2f_1) | 0;
|
|
6470
6597
|
return result;
|
|
6471
6598
|
};
|
|
6472
6599
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -6474,11 +6601,11 @@
|
|
|
6474
6601
|
return true;
|
|
6475
6602
|
if (!(other instanceof Interpolate_0))
|
|
6476
6603
|
return false;
|
|
6477
|
-
if (!(this.
|
|
6604
|
+
if (!(this.o2f_1 === other.o2f_1))
|
|
6478
6605
|
return false;
|
|
6479
|
-
if (!(this.
|
|
6606
|
+
if (!(this.p2f_1 === other.p2f_1))
|
|
6480
6607
|
return false;
|
|
6481
|
-
if (!equals(this.
|
|
6608
|
+
if (!equals(this.q2f_1, other.q2f_1))
|
|
6482
6609
|
return false;
|
|
6483
6610
|
return true;
|
|
6484
6611
|
};
|
|
@@ -6556,29 +6683,29 @@
|
|
|
6556
6683
|
}
|
|
6557
6684
|
var data = tmp;
|
|
6558
6685
|
if (data instanceof Copy_0) {
|
|
6559
|
-
copyFields_0($this, source, data.
|
|
6686
|
+
copyFields_0($this, source, data.n2f_1, out, idx);
|
|
6560
6687
|
} else {
|
|
6561
6688
|
if (data instanceof Interpolate_0) {
|
|
6562
|
-
FieldInterpolation_getInstance().
|
|
6689
|
+
FieldInterpolation_getInstance().t2c(source, data.o2f_1, data.p2f_1, data.q2f_1, out, idx);
|
|
6563
6690
|
} else {
|
|
6564
6691
|
noWhenBranchMatchedException();
|
|
6565
6692
|
}
|
|
6566
6693
|
}
|
|
6567
6694
|
out.l24(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
6568
6695
|
}
|
|
6569
|
-
out.
|
|
6696
|
+
out.f25();
|
|
6570
6697
|
return out;
|
|
6571
6698
|
}
|
|
6572
6699
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
6573
|
-
var _iterator__ex2g4s =
|
|
6700
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
6574
6701
|
while (_iterator__ex2g4s.m()) {
|
|
6575
6702
|
var field = _iterator__ex2g4s.n();
|
|
6576
|
-
dst.
|
|
6703
|
+
dst.a2c(dstIdx, field, src.o26(srcIdx, field));
|
|
6577
6704
|
}
|
|
6578
6705
|
}
|
|
6579
6706
|
function PointPerSecond() {
|
|
6580
6707
|
}
|
|
6581
|
-
protoOf(PointPerSecond).
|
|
6708
|
+
protoOf(PointPerSecond).r2f = function (source) {
|
|
6582
6709
|
if (source.l23_1 === 0)
|
|
6583
6710
|
return new Path(0);
|
|
6584
6711
|
var plan = buildPlan_0(this, source);
|
|
@@ -6589,33 +6716,33 @@
|
|
|
6589
6716
|
return PointPerSecond_instance;
|
|
6590
6717
|
}
|
|
6591
6718
|
function TunnelSpan(first, last, chordGrade, heightM, riseGrade, fallGrade, straightness, stepM) {
|
|
6592
|
-
this.
|
|
6593
|
-
this.
|
|
6594
|
-
this.
|
|
6595
|
-
this.
|
|
6596
|
-
this.
|
|
6597
|
-
this.
|
|
6598
|
-
this.
|
|
6599
|
-
this.
|
|
6719
|
+
this.s2f_1 = first;
|
|
6720
|
+
this.t2f_1 = last;
|
|
6721
|
+
this.u2f_1 = chordGrade;
|
|
6722
|
+
this.v2f_1 = heightM;
|
|
6723
|
+
this.w2f_1 = riseGrade;
|
|
6724
|
+
this.x2f_1 = fallGrade;
|
|
6725
|
+
this.y2f_1 = straightness;
|
|
6726
|
+
this.z2f_1 = stepM;
|
|
6600
6727
|
}
|
|
6601
|
-
protoOf(TunnelSpan).
|
|
6602
|
-
return this.
|
|
6728
|
+
protoOf(TunnelSpan).a2g = function () {
|
|
6729
|
+
return this.s2f_1 * this.z2f_1;
|
|
6603
6730
|
};
|
|
6604
|
-
protoOf(TunnelSpan).
|
|
6605
|
-
return this.
|
|
6731
|
+
protoOf(TunnelSpan).b2g = function () {
|
|
6732
|
+
return this.t2f_1 * this.z2f_1;
|
|
6606
6733
|
};
|
|
6607
6734
|
protoOf(TunnelSpan).toString = function () {
|
|
6608
|
-
return 'TunnelSpan(first=' + this.
|
|
6735
|
+
return 'TunnelSpan(first=' + this.s2f_1 + ', last=' + this.t2f_1 + ', chordGrade=' + this.u2f_1 + ', heightM=' + this.v2f_1 + ', riseGrade=' + this.w2f_1 + ', fallGrade=' + this.x2f_1 + ', straightness=' + this.y2f_1 + ', stepM=' + this.z2f_1 + ')';
|
|
6609
6736
|
};
|
|
6610
6737
|
protoOf(TunnelSpan).hashCode = function () {
|
|
6611
|
-
var result = this.
|
|
6612
|
-
result = imul(result, 31) + this.
|
|
6613
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6614
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6615
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6616
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6617
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6618
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6738
|
+
var result = this.s2f_1;
|
|
6739
|
+
result = imul(result, 31) + this.t2f_1 | 0;
|
|
6740
|
+
result = imul(result, 31) + getNumberHashCode(this.u2f_1) | 0;
|
|
6741
|
+
result = imul(result, 31) + getNumberHashCode(this.v2f_1) | 0;
|
|
6742
|
+
result = imul(result, 31) + getNumberHashCode(this.w2f_1) | 0;
|
|
6743
|
+
result = imul(result, 31) + getNumberHashCode(this.x2f_1) | 0;
|
|
6744
|
+
result = imul(result, 31) + getNumberHashCode(this.y2f_1) | 0;
|
|
6745
|
+
result = imul(result, 31) + getNumberHashCode(this.z2f_1) | 0;
|
|
6619
6746
|
return result;
|
|
6620
6747
|
};
|
|
6621
6748
|
protoOf(TunnelSpan).equals = function (other) {
|
|
@@ -6623,46 +6750,46 @@
|
|
|
6623
6750
|
return true;
|
|
6624
6751
|
if (!(other instanceof TunnelSpan))
|
|
6625
6752
|
return false;
|
|
6626
|
-
if (!(this.
|
|
6753
|
+
if (!(this.s2f_1 === other.s2f_1))
|
|
6627
6754
|
return false;
|
|
6628
|
-
if (!(this.
|
|
6755
|
+
if (!(this.t2f_1 === other.t2f_1))
|
|
6629
6756
|
return false;
|
|
6630
|
-
if (!equals(this.
|
|
6757
|
+
if (!equals(this.u2f_1, other.u2f_1))
|
|
6631
6758
|
return false;
|
|
6632
|
-
if (!equals(this.
|
|
6759
|
+
if (!equals(this.v2f_1, other.v2f_1))
|
|
6633
6760
|
return false;
|
|
6634
|
-
if (!equals(this.
|
|
6761
|
+
if (!equals(this.w2f_1, other.w2f_1))
|
|
6635
6762
|
return false;
|
|
6636
|
-
if (!equals(this.
|
|
6763
|
+
if (!equals(this.x2f_1, other.x2f_1))
|
|
6637
6764
|
return false;
|
|
6638
|
-
if (!equals(this.
|
|
6765
|
+
if (!equals(this.y2f_1, other.y2f_1))
|
|
6639
6766
|
return false;
|
|
6640
|
-
if (!equals(this.
|
|
6767
|
+
if (!equals(this.z2f_1, other.z2f_1))
|
|
6641
6768
|
return false;
|
|
6642
6769
|
return true;
|
|
6643
6770
|
};
|
|
6644
6771
|
function Stations(options) {
|
|
6645
|
-
this.
|
|
6646
|
-
this.
|
|
6647
|
-
this.
|
|
6648
|
-
this.
|
|
6772
|
+
this.c2g_1 = options.v2g();
|
|
6773
|
+
this.d2g_1 = options.w2g();
|
|
6774
|
+
this.e2g_1 = options.x2g();
|
|
6775
|
+
this.f2g_1 = options.y2g();
|
|
6649
6776
|
}
|
|
6650
6777
|
function grade($this, z, i, j, stepM) {
|
|
6651
6778
|
return i < 0 || j >= z.length ? NaN : (z[j] - z[i]) / ((j - i | 0) * stepM);
|
|
6652
6779
|
}
|
|
6653
6780
|
function judge($this, profile, a, b, entries, exits, options, stations) {
|
|
6654
|
-
var w = stations.
|
|
6655
|
-
var z = profile.
|
|
6781
|
+
var w = stations.d2g_1;
|
|
6782
|
+
var z = profile.z2g_1;
|
|
6656
6783
|
var n = z.length;
|
|
6657
|
-
var step = options.
|
|
6784
|
+
var step = options.g2g_1;
|
|
6658
6785
|
var length = (b - a | 0) * step;
|
|
6659
|
-
if (length < options.
|
|
6786
|
+
if (length < options.s2g_1 - 1.0E-9)
|
|
6660
6787
|
return null;
|
|
6661
|
-
var chord = Distance_instance.z10(new LatLon(profile.
|
|
6788
|
+
var chord = Distance_instance.z10(new LatLon(profile.a2h_1[a], profile.b2h_1[a]), new LatLon(profile.a2h_1[b], profile.b2h_1[b]));
|
|
6662
6789
|
var straightness = chord / length;
|
|
6663
|
-
if (!(straightness >= options.
|
|
6790
|
+
if (!(straightness >= options.u2g_1))
|
|
6664
6791
|
return null;
|
|
6665
|
-
var w0 = stations.
|
|
6792
|
+
var w0 = stations.d2g_1;
|
|
6666
6793
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6667
6794
|
var b_0 = a - w0 | 0;
|
|
6668
6795
|
var inductionVariable = Math.max(0, b_0);
|
|
@@ -6693,7 +6820,7 @@
|
|
|
6693
6820
|
while (!(k_0 === last));
|
|
6694
6821
|
var c = (z[b] - z[a]) / length;
|
|
6695
6822
|
// Inline function 'kotlin.math.abs' call
|
|
6696
|
-
if (!(Math.abs(c) <= options.
|
|
6823
|
+
if (!(Math.abs(c) <= options.n2g_1))
|
|
6697
6824
|
return null;
|
|
6698
6825
|
var height = -Infinity;
|
|
6699
6826
|
var inductionVariable_1 = a;
|
|
@@ -6702,15 +6829,15 @@
|
|
|
6702
6829
|
var k_1 = inductionVariable_1;
|
|
6703
6830
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6704
6831
|
var h = z[k_1] - (z[a] + c * (k_1 - a | 0) * step);
|
|
6705
|
-
if (isNaN_0(h) || h < -options.
|
|
6832
|
+
if (isNaN_0(h) || h < -options.q2g_1)
|
|
6706
6833
|
return null;
|
|
6707
6834
|
if (h > height)
|
|
6708
6835
|
height = h;
|
|
6709
6836
|
}
|
|
6710
6837
|
while (!(k_1 === b));
|
|
6711
|
-
if (height < options.
|
|
6838
|
+
if (height < options.o2g_1)
|
|
6712
6839
|
return null;
|
|
6713
|
-
var f = stations.
|
|
6840
|
+
var f = stations.f2g_1;
|
|
6714
6841
|
var nearEntry = -Infinity;
|
|
6715
6842
|
var inductionVariable_2 = a;
|
|
6716
6843
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
@@ -6740,9 +6867,9 @@
|
|
|
6740
6867
|
nearExit = Math.max(tmp0_1, b_5);
|
|
6741
6868
|
}
|
|
6742
6869
|
while (!(k_3 === b));
|
|
6743
|
-
if (nearEntry < options.
|
|
6870
|
+
if (nearEntry < options.o2g_1 || nearExit < options.o2g_1)
|
|
6744
6871
|
return null;
|
|
6745
|
-
var s = stations.
|
|
6872
|
+
var s = stations.e2g_1;
|
|
6746
6873
|
var rise = -Infinity;
|
|
6747
6874
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6748
6875
|
var b_6 = a - (w / 2 | 0) | 0;
|
|
@@ -6774,7 +6901,7 @@
|
|
|
6774
6901
|
fall = g_0;
|
|
6775
6902
|
}
|
|
6776
6903
|
while (!(k_5 === last_2));
|
|
6777
|
-
if (rise < options.
|
|
6904
|
+
if (rise < options.l2g_1 || fall > -options.l2g_1)
|
|
6778
6905
|
return null;
|
|
6779
6906
|
// Inline function 'kotlin.collections.filter' call
|
|
6780
6907
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -6811,7 +6938,7 @@
|
|
|
6811
6938
|
do {
|
|
6812
6939
|
var k_6 = inductionVariable_6;
|
|
6813
6940
|
inductionVariable_6 = inductionVariable_6 + 1 | 0;
|
|
6814
|
-
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.
|
|
6941
|
+
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.r2g_1)
|
|
6815
6942
|
return null;
|
|
6816
6943
|
}
|
|
6817
6944
|
while (!(k_6 === y));
|
|
@@ -6820,15 +6947,15 @@
|
|
|
6820
6947
|
return new TunnelSpan(a, b, c, height, rise, fall, straightness, step);
|
|
6821
6948
|
}
|
|
6822
6949
|
function TunnelDetector() {
|
|
6823
|
-
this.
|
|
6950
|
+
this.c2h_1 = 1.0E-6;
|
|
6824
6951
|
}
|
|
6825
|
-
protoOf(TunnelDetector).
|
|
6826
|
-
var z = profile.
|
|
6952
|
+
protoOf(TunnelDetector).d2h = function (profile, options) {
|
|
6953
|
+
var z = profile.z2g_1;
|
|
6827
6954
|
if (z.length < 2)
|
|
6828
6955
|
return emptyList();
|
|
6829
6956
|
var stations = new Stations(options);
|
|
6830
|
-
var entries = this.
|
|
6831
|
-
var exits = this.
|
|
6957
|
+
var entries = this.e2h(z, options, true, stations);
|
|
6958
|
+
var exits = this.e2h(z, options, false, stations);
|
|
6832
6959
|
var out = ArrayList_init_$Create$();
|
|
6833
6960
|
var next = -1;
|
|
6834
6961
|
var _iterator__ex2g4s = entries.l();
|
|
@@ -6842,7 +6969,7 @@
|
|
|
6842
6969
|
var b = _iterator__ex2g4s_0.n();
|
|
6843
6970
|
if (b <= a)
|
|
6844
6971
|
continue $l$loop_2;
|
|
6845
|
-
if ((b - a | 0) * options.
|
|
6972
|
+
if ((b - a | 0) * options.g2g_1 > options.t2g_1 + 1.0E-9)
|
|
6846
6973
|
break $l$loop_2;
|
|
6847
6974
|
var tmp0_elvis_lhs = judge(this, profile, a, b, entries, exits, options, stations);
|
|
6848
6975
|
var tmp;
|
|
@@ -6852,23 +6979,23 @@
|
|
|
6852
6979
|
tmp = tmp0_elvis_lhs;
|
|
6853
6980
|
}
|
|
6854
6981
|
var span = tmp;
|
|
6855
|
-
if (best == null || span.
|
|
6982
|
+
if (best == null || span.v2f_1 > best.v2f_1 + 1.0E-9)
|
|
6856
6983
|
best = span;
|
|
6857
6984
|
}
|
|
6858
6985
|
if (!(best == null)) {
|
|
6859
6986
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6860
6987
|
var element = best;
|
|
6861
6988
|
out.k(element);
|
|
6862
|
-
next = best.
|
|
6989
|
+
next = best.t2f_1;
|
|
6863
6990
|
}
|
|
6864
6991
|
}
|
|
6865
6992
|
return out;
|
|
6866
6993
|
};
|
|
6867
|
-
protoOf(TunnelDetector).
|
|
6994
|
+
protoOf(TunnelDetector).e2h = function (z, options, entry, stations) {
|
|
6868
6995
|
var n = z.length;
|
|
6869
|
-
var m = stations.
|
|
6870
|
-
var w = stations.
|
|
6871
|
-
var step = options.
|
|
6996
|
+
var m = stations.c2g_1;
|
|
6997
|
+
var w = stations.d2g_1;
|
|
6998
|
+
var step = options.g2g_1;
|
|
6872
6999
|
var tmp = 0;
|
|
6873
7000
|
var tmp_0 = new Float64Array(n);
|
|
6874
7001
|
while (tmp < n) {
|
|
@@ -6891,14 +7018,14 @@
|
|
|
6891
7018
|
var tmp_2;
|
|
6892
7019
|
var tmp_3;
|
|
6893
7020
|
// Inline function 'kotlin.math.abs' call
|
|
6894
|
-
if (Math.abs(back) <= options.
|
|
7021
|
+
if (Math.abs(back) <= options.j2g_1) {
|
|
6895
7022
|
// Inline function 'kotlin.math.abs' call
|
|
6896
|
-
tmp_3 = Math.abs(outer) <= options.
|
|
7023
|
+
tmp_3 = Math.abs(outer) <= options.j2g_1;
|
|
6897
7024
|
} else {
|
|
6898
7025
|
tmp_3 = false;
|
|
6899
7026
|
}
|
|
6900
7027
|
if (tmp_3) {
|
|
6901
|
-
tmp_2 = ahead >= options.
|
|
7028
|
+
tmp_2 = ahead >= options.k2g_1;
|
|
6902
7029
|
} else {
|
|
6903
7030
|
tmp_2 = false;
|
|
6904
7031
|
}
|
|
@@ -6908,14 +7035,14 @@
|
|
|
6908
7035
|
var tmp_4;
|
|
6909
7036
|
var tmp_5;
|
|
6910
7037
|
// Inline function 'kotlin.math.abs' call
|
|
6911
|
-
if (Math.abs(ahead) <= options.
|
|
7038
|
+
if (Math.abs(ahead) <= options.j2g_1) {
|
|
6912
7039
|
// Inline function 'kotlin.math.abs' call
|
|
6913
|
-
tmp_5 = Math.abs(outer_0) <= options.
|
|
7040
|
+
tmp_5 = Math.abs(outer_0) <= options.j2g_1;
|
|
6914
7041
|
} else {
|
|
6915
7042
|
tmp_5 = false;
|
|
6916
7043
|
}
|
|
6917
7044
|
if (tmp_5) {
|
|
6918
|
-
tmp_4 = back <= -options.
|
|
7045
|
+
tmp_4 = back <= -options.k2g_1;
|
|
6919
7046
|
} else {
|
|
6920
7047
|
tmp_4 = false;
|
|
6921
7048
|
}
|
|
@@ -6991,36 +7118,36 @@
|
|
|
6991
7118
|
return TunnelDetector_instance;
|
|
6992
7119
|
}
|
|
6993
7120
|
function TunnelProfile(terrainM, latDeg, lonDeg) {
|
|
6994
|
-
this.
|
|
6995
|
-
this.
|
|
6996
|
-
this.
|
|
7121
|
+
this.z2g_1 = terrainM;
|
|
7122
|
+
this.a2h_1 = latDeg;
|
|
7123
|
+
this.b2h_1 = lonDeg;
|
|
6997
7124
|
// Inline function 'kotlin.require' call
|
|
6998
|
-
if (!(this.
|
|
6999
|
-
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.
|
|
7125
|
+
if (!(this.z2g_1.length === this.a2h_1.length && this.a2h_1.length === this.b2h_1.length)) {
|
|
7126
|
+
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.z2g_1.length + ', ' + this.a2h_1.length + ', ' + this.b2h_1.length;
|
|
7000
7127
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7001
7128
|
}
|
|
7002
7129
|
}
|
|
7003
7130
|
function stations_0($this, metres, name) {
|
|
7004
|
-
var r = metres / $this.
|
|
7131
|
+
var r = metres / $this.g2g_1;
|
|
7005
7132
|
var k = roundToInt(r);
|
|
7006
7133
|
// Inline function 'kotlin.math.abs' call
|
|
7007
7134
|
var x = r - k;
|
|
7008
7135
|
// Inline function 'kotlin.require' call
|
|
7009
7136
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
7010
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
7137
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.g2g_1 + ' m stations';
|
|
7011
7138
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7012
7139
|
}
|
|
7013
7140
|
return k;
|
|
7014
7141
|
}
|
|
7015
|
-
function
|
|
7016
|
-
|
|
7017
|
-
this.
|
|
7142
|
+
function Companion_10() {
|
|
7143
|
+
Companion_instance_11 = this;
|
|
7144
|
+
this.f2h_1 = new TunnelDetectorOptions();
|
|
7018
7145
|
}
|
|
7019
|
-
var
|
|
7146
|
+
var Companion_instance_11;
|
|
7020
7147
|
function Companion_getInstance_10() {
|
|
7021
|
-
if (
|
|
7022
|
-
new
|
|
7023
|
-
return
|
|
7148
|
+
if (Companion_instance_11 == null)
|
|
7149
|
+
new Companion_10();
|
|
7150
|
+
return Companion_instance_11;
|
|
7024
7151
|
}
|
|
7025
7152
|
function TunnelDetectorOptions(stepM, footWindowM, steepWindowM, maxRoadGrade, minPortalGrade, minSideGrade, sideSearchM, maxChordGrade, minHeightM, faceReachM, maxBelowChordM, minValleyHeightM, minLengthM, maxLengthM, minStraightness) {
|
|
7026
7153
|
Companion_getInstance_10();
|
|
@@ -7039,96 +7166,96 @@
|
|
|
7039
7166
|
minLengthM = minLengthM === VOID ? 50.0 : minLengthM;
|
|
7040
7167
|
maxLengthM = maxLengthM === VOID ? 3000.0 : maxLengthM;
|
|
7041
7168
|
minStraightness = minStraightness === VOID ? 0.8 : minStraightness;
|
|
7042
|
-
this.
|
|
7043
|
-
this.
|
|
7044
|
-
this.
|
|
7045
|
-
this.
|
|
7046
|
-
this.
|
|
7047
|
-
this.
|
|
7048
|
-
this.
|
|
7049
|
-
this.
|
|
7050
|
-
this.
|
|
7051
|
-
this.
|
|
7052
|
-
this.
|
|
7053
|
-
this.
|
|
7054
|
-
this.
|
|
7055
|
-
this.
|
|
7056
|
-
this.
|
|
7169
|
+
this.g2g_1 = stepM;
|
|
7170
|
+
this.h2g_1 = footWindowM;
|
|
7171
|
+
this.i2g_1 = steepWindowM;
|
|
7172
|
+
this.j2g_1 = maxRoadGrade;
|
|
7173
|
+
this.k2g_1 = minPortalGrade;
|
|
7174
|
+
this.l2g_1 = minSideGrade;
|
|
7175
|
+
this.m2g_1 = sideSearchM;
|
|
7176
|
+
this.n2g_1 = maxChordGrade;
|
|
7177
|
+
this.o2g_1 = minHeightM;
|
|
7178
|
+
this.p2g_1 = faceReachM;
|
|
7179
|
+
this.q2g_1 = maxBelowChordM;
|
|
7180
|
+
this.r2g_1 = minValleyHeightM;
|
|
7181
|
+
this.s2g_1 = minLengthM;
|
|
7182
|
+
this.t2g_1 = maxLengthM;
|
|
7183
|
+
this.u2g_1 = minStraightness;
|
|
7057
7184
|
// Inline function 'kotlin.require' call
|
|
7058
|
-
if (!(this.
|
|
7059
|
-
var message = 'stepM must be positive, got ' + this.
|
|
7185
|
+
if (!(this.g2g_1 > 0.0)) {
|
|
7186
|
+
var message = 'stepM must be positive, got ' + this.g2g_1;
|
|
7060
7187
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7061
7188
|
}
|
|
7062
7189
|
// Inline function 'kotlin.require' call
|
|
7063
|
-
if (!(this.
|
|
7190
|
+
if (!(this.v2g() >= 1 && this.w2g() >= 1)) {
|
|
7064
7191
|
var message_0 = 'grade windows must cover a station';
|
|
7065
7192
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
7066
7193
|
}
|
|
7067
7194
|
// Inline function 'kotlin.require' call
|
|
7068
|
-
if (!(this.
|
|
7195
|
+
if (!(this.x2g() >= 0)) {
|
|
7069
7196
|
var message_1 = 'negative sideSearchM';
|
|
7070
7197
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
7071
7198
|
}
|
|
7072
7199
|
// Inline function 'kotlin.require' call
|
|
7073
|
-
if (!(this.
|
|
7200
|
+
if (!(this.y2g() >= 1)) {
|
|
7074
7201
|
var message_2 = 'faceReachM must cover a station';
|
|
7075
7202
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
7076
7203
|
}
|
|
7077
7204
|
// Inline function 'kotlin.require' call
|
|
7078
|
-
if (!(this.
|
|
7205
|
+
if (!(this.j2g_1 >= 0.0 && this.k2g_1 > 0.0 && this.l2g_1 > 0.0)) {
|
|
7079
7206
|
var message_3 = 'grades must be positive';
|
|
7080
7207
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
7081
7208
|
}
|
|
7082
7209
|
// Inline function 'kotlin.require' call
|
|
7083
|
-
if (!(this.
|
|
7210
|
+
if (!(this.n2g_1 >= 0.0 && this.o2g_1 > 0.0 && this.q2g_1 >= 0.0)) {
|
|
7084
7211
|
var message_4 = 'negative threshold';
|
|
7085
7212
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
7086
7213
|
}
|
|
7087
|
-
var containsUpper = this.
|
|
7088
|
-
var containsArg = this.
|
|
7214
|
+
var containsUpper = this.t2g_1;
|
|
7215
|
+
var containsArg = this.s2g_1;
|
|
7089
7216
|
// Inline function 'kotlin.require' call
|
|
7090
7217
|
if (!(0.0 <= containsArg ? containsArg <= containsUpper : false)) {
|
|
7091
7218
|
var message_5 = 'minLengthM must be in 0..maxLengthM';
|
|
7092
7219
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
7093
7220
|
}
|
|
7094
|
-
var containsArg_0 = this.
|
|
7221
|
+
var containsArg_0 = this.u2g_1;
|
|
7095
7222
|
// Inline function 'kotlin.require' call
|
|
7096
7223
|
if (!(0.0 <= containsArg_0 ? containsArg_0 <= 1.0 : false)) {
|
|
7097
|
-
var message_6 = 'minStraightness must be in 0..1, got ' + this.
|
|
7224
|
+
var message_6 = 'minStraightness must be in 0..1, got ' + this.u2g_1;
|
|
7098
7225
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
7099
7226
|
}
|
|
7100
7227
|
}
|
|
7101
|
-
protoOf(TunnelDetectorOptions).
|
|
7102
|
-
return stations_0(this, this.
|
|
7228
|
+
protoOf(TunnelDetectorOptions).v2g = function () {
|
|
7229
|
+
return stations_0(this, this.h2g_1, 'footWindowM');
|
|
7103
7230
|
};
|
|
7104
|
-
protoOf(TunnelDetectorOptions).
|
|
7105
|
-
return stations_0(this, this.
|
|
7231
|
+
protoOf(TunnelDetectorOptions).w2g = function () {
|
|
7232
|
+
return stations_0(this, this.i2g_1, 'steepWindowM');
|
|
7106
7233
|
};
|
|
7107
|
-
protoOf(TunnelDetectorOptions).
|
|
7108
|
-
return stations_0(this, this.
|
|
7234
|
+
protoOf(TunnelDetectorOptions).x2g = function () {
|
|
7235
|
+
return stations_0(this, this.m2g_1, 'sideSearchM');
|
|
7109
7236
|
};
|
|
7110
|
-
protoOf(TunnelDetectorOptions).
|
|
7111
|
-
return stations_0(this, this.
|
|
7237
|
+
protoOf(TunnelDetectorOptions).y2g = function () {
|
|
7238
|
+
return stations_0(this, this.p2g_1, 'faceReachM');
|
|
7112
7239
|
};
|
|
7113
7240
|
protoOf(TunnelDetectorOptions).toString = function () {
|
|
7114
|
-
return 'TunnelDetectorOptions(stepM=' + this.
|
|
7241
|
+
return 'TunnelDetectorOptions(stepM=' + this.g2g_1 + ', footWindowM=' + this.h2g_1 + ', steepWindowM=' + this.i2g_1 + ', maxRoadGrade=' + this.j2g_1 + ', minPortalGrade=' + this.k2g_1 + ', minSideGrade=' + this.l2g_1 + ', sideSearchM=' + this.m2g_1 + ', maxChordGrade=' + this.n2g_1 + ', minHeightM=' + this.o2g_1 + ', faceReachM=' + this.p2g_1 + ', maxBelowChordM=' + this.q2g_1 + ', minValleyHeightM=' + this.r2g_1 + ', minLengthM=' + this.s2g_1 + ', maxLengthM=' + this.t2g_1 + ', minStraightness=' + this.u2g_1 + ')';
|
|
7115
7242
|
};
|
|
7116
7243
|
protoOf(TunnelDetectorOptions).hashCode = function () {
|
|
7117
|
-
var result = getNumberHashCode(this.
|
|
7118
|
-
result = imul(result, 31) + getNumberHashCode(this.v2f_1) | 0;
|
|
7119
|
-
result = imul(result, 31) + getNumberHashCode(this.w2f_1) | 0;
|
|
7120
|
-
result = imul(result, 31) + getNumberHashCode(this.x2f_1) | 0;
|
|
7121
|
-
result = imul(result, 31) + getNumberHashCode(this.y2f_1) | 0;
|
|
7122
|
-
result = imul(result, 31) + getNumberHashCode(this.z2f_1) | 0;
|
|
7123
|
-
result = imul(result, 31) + getNumberHashCode(this.a2g_1) | 0;
|
|
7124
|
-
result = imul(result, 31) + getNumberHashCode(this.b2g_1) | 0;
|
|
7125
|
-
result = imul(result, 31) + getNumberHashCode(this.c2g_1) | 0;
|
|
7126
|
-
result = imul(result, 31) + getNumberHashCode(this.d2g_1) | 0;
|
|
7127
|
-
result = imul(result, 31) + getNumberHashCode(this.e2g_1) | 0;
|
|
7128
|
-
result = imul(result, 31) + getNumberHashCode(this.f2g_1) | 0;
|
|
7129
|
-
result = imul(result, 31) + getNumberHashCode(this.g2g_1) | 0;
|
|
7244
|
+
var result = getNumberHashCode(this.g2g_1);
|
|
7130
7245
|
result = imul(result, 31) + getNumberHashCode(this.h2g_1) | 0;
|
|
7131
7246
|
result = imul(result, 31) + getNumberHashCode(this.i2g_1) | 0;
|
|
7247
|
+
result = imul(result, 31) + getNumberHashCode(this.j2g_1) | 0;
|
|
7248
|
+
result = imul(result, 31) + getNumberHashCode(this.k2g_1) | 0;
|
|
7249
|
+
result = imul(result, 31) + getNumberHashCode(this.l2g_1) | 0;
|
|
7250
|
+
result = imul(result, 31) + getNumberHashCode(this.m2g_1) | 0;
|
|
7251
|
+
result = imul(result, 31) + getNumberHashCode(this.n2g_1) | 0;
|
|
7252
|
+
result = imul(result, 31) + getNumberHashCode(this.o2g_1) | 0;
|
|
7253
|
+
result = imul(result, 31) + getNumberHashCode(this.p2g_1) | 0;
|
|
7254
|
+
result = imul(result, 31) + getNumberHashCode(this.q2g_1) | 0;
|
|
7255
|
+
result = imul(result, 31) + getNumberHashCode(this.r2g_1) | 0;
|
|
7256
|
+
result = imul(result, 31) + getNumberHashCode(this.s2g_1) | 0;
|
|
7257
|
+
result = imul(result, 31) + getNumberHashCode(this.t2g_1) | 0;
|
|
7258
|
+
result = imul(result, 31) + getNumberHashCode(this.u2g_1) | 0;
|
|
7132
7259
|
return result;
|
|
7133
7260
|
};
|
|
7134
7261
|
protoOf(TunnelDetectorOptions).equals = function (other) {
|
|
@@ -7136,35 +7263,35 @@
|
|
|
7136
7263
|
return true;
|
|
7137
7264
|
if (!(other instanceof TunnelDetectorOptions))
|
|
7138
7265
|
return false;
|
|
7139
|
-
if (!equals(this.
|
|
7266
|
+
if (!equals(this.g2g_1, other.g2g_1))
|
|
7140
7267
|
return false;
|
|
7141
|
-
if (!equals(this.
|
|
7268
|
+
if (!equals(this.h2g_1, other.h2g_1))
|
|
7142
7269
|
return false;
|
|
7143
|
-
if (!equals(this.
|
|
7270
|
+
if (!equals(this.i2g_1, other.i2g_1))
|
|
7144
7271
|
return false;
|
|
7145
|
-
if (!equals(this.
|
|
7272
|
+
if (!equals(this.j2g_1, other.j2g_1))
|
|
7146
7273
|
return false;
|
|
7147
|
-
if (!equals(this.
|
|
7274
|
+
if (!equals(this.k2g_1, other.k2g_1))
|
|
7148
7275
|
return false;
|
|
7149
|
-
if (!equals(this.
|
|
7276
|
+
if (!equals(this.l2g_1, other.l2g_1))
|
|
7150
7277
|
return false;
|
|
7151
|
-
if (!equals(this.
|
|
7278
|
+
if (!equals(this.m2g_1, other.m2g_1))
|
|
7152
7279
|
return false;
|
|
7153
|
-
if (!equals(this.
|
|
7280
|
+
if (!equals(this.n2g_1, other.n2g_1))
|
|
7154
7281
|
return false;
|
|
7155
|
-
if (!equals(this.
|
|
7282
|
+
if (!equals(this.o2g_1, other.o2g_1))
|
|
7156
7283
|
return false;
|
|
7157
|
-
if (!equals(this.
|
|
7284
|
+
if (!equals(this.p2g_1, other.p2g_1))
|
|
7158
7285
|
return false;
|
|
7159
|
-
if (!equals(this.
|
|
7286
|
+
if (!equals(this.q2g_1, other.q2g_1))
|
|
7160
7287
|
return false;
|
|
7161
|
-
if (!equals(this.
|
|
7288
|
+
if (!equals(this.r2g_1, other.r2g_1))
|
|
7162
7289
|
return false;
|
|
7163
|
-
if (!equals(this.
|
|
7290
|
+
if (!equals(this.s2g_1, other.s2g_1))
|
|
7164
7291
|
return false;
|
|
7165
|
-
if (!equals(this.
|
|
7292
|
+
if (!equals(this.t2g_1, other.t2g_1))
|
|
7166
7293
|
return false;
|
|
7167
|
-
if (!equals(this.
|
|
7294
|
+
if (!equals(this.u2g_1, other.u2g_1))
|
|
7168
7295
|
return false;
|
|
7169
7296
|
return true;
|
|
7170
7297
|
};
|
|
@@ -7177,11 +7304,11 @@
|
|
|
7177
7304
|
Companion_instance_2 = new Companion_1();
|
|
7178
7305
|
DeckDetector_instance = new DeckDetector();
|
|
7179
7306
|
DeckProfileBuilder_instance = new DeckProfileBuilder();
|
|
7180
|
-
Companion_instance_4 = new Companion_3();
|
|
7181
|
-
ElevationGain_instance = new ElevationGain();
|
|
7182
7307
|
Companion_instance_5 = new Companion_4();
|
|
7308
|
+
ElevationGain_instance = new ElevationGain();
|
|
7309
|
+
Companion_instance_6 = new Companion_5();
|
|
7183
7310
|
ElevationStep_instance = new ElevationStep();
|
|
7184
|
-
|
|
7311
|
+
Companion_instance_9 = new Companion_8();
|
|
7185
7312
|
PathSimplifier_instance = new PathSimplifier();
|
|
7186
7313
|
PointPerDistance_instance = new PointPerDistance();
|
|
7187
7314
|
PointPerSecond_instance = new PointPerSecond();
|
|
@@ -7191,38 +7318,45 @@
|
|
|
7191
7318
|
_.$_$ = _.$_$ || {};
|
|
7192
7319
|
_.$_$.a = GpxPathKind_ROUTE_getInstance;
|
|
7193
7320
|
_.$_$.b = GpxPathKind_TRACK_getInstance;
|
|
7194
|
-
_.$_$.c =
|
|
7195
|
-
_.$_$.d =
|
|
7196
|
-
_.$_$.e =
|
|
7197
|
-
_.$_$.f =
|
|
7198
|
-
_.$_$.g =
|
|
7199
|
-
_.$_$.h =
|
|
7200
|
-
_.$_$.i =
|
|
7201
|
-
_.$_$.j =
|
|
7202
|
-
_.$_$.k =
|
|
7203
|
-
_.$_$.l =
|
|
7204
|
-
_.$_$.m =
|
|
7205
|
-
_.$_$.n =
|
|
7206
|
-
_.$_$.o =
|
|
7207
|
-
_.$_$.p =
|
|
7208
|
-
_.$_$.q =
|
|
7209
|
-
_.$_$.r =
|
|
7210
|
-
_.$_$.s =
|
|
7211
|
-
_.$_$.t =
|
|
7212
|
-
_.$_$.u =
|
|
7213
|
-
_.$_$.v =
|
|
7214
|
-
_.$_$.w =
|
|
7215
|
-
_.$_$.x =
|
|
7216
|
-
_.$_$.y =
|
|
7217
|
-
_.$_$.z =
|
|
7218
|
-
_.$_$.a1 =
|
|
7219
|
-
_.$_$.b1 =
|
|
7220
|
-
_.$_$.c1 =
|
|
7221
|
-
_.$_$.d1 =
|
|
7222
|
-
_.$_$.e1 =
|
|
7223
|
-
_.$_$.f1 =
|
|
7224
|
-
_.$_$.g1 =
|
|
7225
|
-
_.$_$.h1 =
|
|
7321
|
+
_.$_$.c = ElevationCorrectionStatus_APPLIED_getInstance;
|
|
7322
|
+
_.$_$.d = ElevationCorrectionStatus_FETCH_FAILED_getInstance;
|
|
7323
|
+
_.$_$.e = ElevationCorrectionStatus_NONE_FOUND_getInstance;
|
|
7324
|
+
_.$_$.f = ElevationCorrectionStatus_NOT_RUN_getInstance;
|
|
7325
|
+
_.$_$.g = ElevationCorrectionStatus_NO_COVERAGE_getInstance;
|
|
7326
|
+
_.$_$.h = ElevationCorrectionStatus_UNAVAILABLE_getInstance;
|
|
7327
|
+
_.$_$.i = ElevationGainPreset_DEM_getInstance;
|
|
7328
|
+
_.$_$.j = PointField_TEMPERATURE_getInstance;
|
|
7329
|
+
_.$_$.k = GpxParser_instance;
|
|
7330
|
+
_.$_$.l = Companion_getInstance_1;
|
|
7331
|
+
_.$_$.m = GpxWriter_instance;
|
|
7332
|
+
_.$_$.n = CsvWriter_instance;
|
|
7333
|
+
_.$_$.o = JsonWriter_instance;
|
|
7334
|
+
_.$_$.p = Companion_getInstance_3;
|
|
7335
|
+
_.$_$.q = DeckDetector_instance;
|
|
7336
|
+
_.$_$.r = Companion_instance_2;
|
|
7337
|
+
_.$_$.s = DeckProfileBuilder_instance;
|
|
7338
|
+
_.$_$.t = Companion_instance_6;
|
|
7339
|
+
_.$_$.u = ElevationGain_instance;
|
|
7340
|
+
_.$_$.v = ElevationStep_instance;
|
|
7341
|
+
_.$_$.w = PathSimplifier_instance;
|
|
7342
|
+
_.$_$.x = Companion_getInstance_9;
|
|
7343
|
+
_.$_$.y = PointPerDistance_instance;
|
|
7344
|
+
_.$_$.z = PointPerSecond_instance;
|
|
7345
|
+
_.$_$.a1 = Companion_getInstance_10;
|
|
7346
|
+
_.$_$.b1 = TunnelDetector_instance;
|
|
7347
|
+
_.$_$.c1 = GpxWaypoint;
|
|
7348
|
+
_.$_$.d1 = firstTrackAsPath;
|
|
7349
|
+
_.$_$.e1 = pathsToGpxDocument;
|
|
7350
|
+
_.$_$.f1 = segmentsAsPaths;
|
|
7351
|
+
_.$_$.g1 = toGpxDocument;
|
|
7352
|
+
_.$_$.h1 = tracksAsPaths;
|
|
7353
|
+
_.$_$.i1 = CsvOptions;
|
|
7354
|
+
_.$_$.j1 = JsonOptions;
|
|
7355
|
+
_.$_$.k1 = ElevationCorrections;
|
|
7356
|
+
_.$_$.l1 = ElevationGainOptions;
|
|
7357
|
+
_.$_$.m1 = Path;
|
|
7358
|
+
_.$_$.n1 = get_entries_3;
|
|
7359
|
+
_.$_$.o1 = TunnelProfile;
|
|
7226
7360
|
//endregion
|
|
7227
7361
|
return _;
|
|
7228
7362
|
}));
|