@glandais/vcyclist-engine 6.3.0 → 6.4.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 +1761 -1559
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +183 -183
- package/vcyclist-gpx.js +1040 -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,13 @@
|
|
|
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();
|
|
5318
5441
|
return out;
|
|
5319
5442
|
};
|
|
5320
5443
|
var ElevationStep_instance;
|
|
@@ -5323,21 +5446,21 @@
|
|
|
5323
5446
|
}
|
|
5324
5447
|
function FieldInterpolation() {
|
|
5325
5448
|
FieldInterpolation_instance = this;
|
|
5326
|
-
this.
|
|
5327
|
-
this.
|
|
5449
|
+
this.r2c_1 = 6.283185307179586;
|
|
5450
|
+
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
5451
|
}
|
|
5329
|
-
protoOf(FieldInterpolation).
|
|
5330
|
-
var _iterator__ex2g4s =
|
|
5452
|
+
protoOf(FieldInterpolation).t2c = function (src, i1, i2, coef, dst, dstIdx) {
|
|
5453
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
5331
5454
|
while (_iterator__ex2g4s.m()) {
|
|
5332
5455
|
var field = _iterator__ex2g4s.n();
|
|
5333
|
-
dst.
|
|
5456
|
+
dst.a2c(dstIdx, field, this.u2c(field, src.o26(i1, field), src.o26(i2, field), coef));
|
|
5334
5457
|
}
|
|
5335
5458
|
};
|
|
5336
|
-
protoOf(FieldInterpolation).
|
|
5459
|
+
protoOf(FieldInterpolation).u2c = function (field, v1, v2, coef) {
|
|
5337
5460
|
if (isNaN_0(v1) || isNaN_0(v2))
|
|
5338
5461
|
return NaN;
|
|
5339
5462
|
var delta = v2 - v1;
|
|
5340
|
-
if (!this.
|
|
5463
|
+
if (!this.s2c_1.i1(field) || (delta >= -3.141592653589793 && delta <= 3.141592653589793))
|
|
5341
5464
|
return v1 + delta * coef;
|
|
5342
5465
|
var arc = delta > 3.141592653589793 ? delta - 6.283185307179586 : delta + 6.283185307179586;
|
|
5343
5466
|
var v = v1 + arc * coef;
|
|
@@ -5373,10 +5496,10 @@
|
|
|
5373
5496
|
}
|
|
5374
5497
|
while (inductionVariable < last);
|
|
5375
5498
|
}
|
|
5376
|
-
protoOf(GeneratedPath).
|
|
5499
|
+
protoOf(GeneratedPath).o26 = function (i, field) {
|
|
5377
5500
|
return this.m23_1[imul(i, 44) + field.v1_1 | 0];
|
|
5378
5501
|
};
|
|
5379
|
-
protoOf(GeneratedPath).
|
|
5502
|
+
protoOf(GeneratedPath).a2c = function (i, field, v) {
|
|
5380
5503
|
this.m23_1[imul(i, 44) + field.v1_1 | 0] = v;
|
|
5381
5504
|
};
|
|
5382
5505
|
protoOf(GeneratedPath).o23 = function (i) {
|
|
@@ -5391,13 +5514,13 @@
|
|
|
5391
5514
|
protoOf(GeneratedPath).j24 = function (i, v) {
|
|
5392
5515
|
this.m23_1[imul(i, 44) + 1 | 0] = v;
|
|
5393
5516
|
};
|
|
5394
|
-
protoOf(GeneratedPath).
|
|
5517
|
+
protoOf(GeneratedPath).p2b = function (i) {
|
|
5395
5518
|
return this.m23_1[imul(i, 44) + 2 | 0];
|
|
5396
5519
|
};
|
|
5397
|
-
protoOf(GeneratedPath).
|
|
5520
|
+
protoOf(GeneratedPath).v2c = function (i, v) {
|
|
5398
5521
|
this.m23_1[imul(i, 44) + 2 | 0] = v;
|
|
5399
5522
|
};
|
|
5400
|
-
protoOf(GeneratedPath).
|
|
5523
|
+
protoOf(GeneratedPath).w2c = function (i, v) {
|
|
5401
5524
|
this.m23_1[imul(i, 44) + 3 | 0] = v;
|
|
5402
5525
|
};
|
|
5403
5526
|
protoOf(GeneratedPath).n23 = function (i) {
|
|
@@ -5406,22 +5529,22 @@
|
|
|
5406
5529
|
protoOf(GeneratedPath).l24 = function (i, v) {
|
|
5407
5530
|
this.m23_1[imul(i, 44) + 4 | 0] = v;
|
|
5408
5531
|
};
|
|
5409
|
-
protoOf(GeneratedPath).
|
|
5532
|
+
protoOf(GeneratedPath).x2c = function (i) {
|
|
5410
5533
|
return this.m23_1[imul(i, 44) + 5 | 0];
|
|
5411
5534
|
};
|
|
5412
|
-
protoOf(GeneratedPath).
|
|
5535
|
+
protoOf(GeneratedPath).y2c = function (i, v) {
|
|
5413
5536
|
this.m23_1[imul(i, 44) + 5 | 0] = v;
|
|
5414
5537
|
};
|
|
5415
|
-
protoOf(GeneratedPath).
|
|
5538
|
+
protoOf(GeneratedPath).z2c = function (i) {
|
|
5416
5539
|
return this.m23_1[imul(i, 44) + 6 | 0];
|
|
5417
5540
|
};
|
|
5418
|
-
protoOf(GeneratedPath).
|
|
5541
|
+
protoOf(GeneratedPath).a2d = function (i, v) {
|
|
5419
5542
|
this.m23_1[imul(i, 44) + 6 | 0] = v;
|
|
5420
5543
|
};
|
|
5421
|
-
protoOf(GeneratedPath).
|
|
5544
|
+
protoOf(GeneratedPath).b2d = function (i) {
|
|
5422
5545
|
return this.m23_1[imul(i, 44) + 7 | 0];
|
|
5423
5546
|
};
|
|
5424
|
-
protoOf(GeneratedPath).
|
|
5547
|
+
protoOf(GeneratedPath).c2d = function (i, v) {
|
|
5425
5548
|
this.m23_1[imul(i, 44) + 7 | 0] = v;
|
|
5426
5549
|
};
|
|
5427
5550
|
protoOf(GeneratedPath).q23 = function (i) {
|
|
@@ -5430,40 +5553,40 @@
|
|
|
5430
5553
|
protoOf(GeneratedPath).k24 = function (i, v) {
|
|
5431
5554
|
this.m23_1[imul(i, 44) + 8 | 0] = v;
|
|
5432
5555
|
};
|
|
5433
|
-
protoOf(GeneratedPath).
|
|
5556
|
+
protoOf(GeneratedPath).d2d = function (i) {
|
|
5434
5557
|
return this.m23_1[imul(i, 44) + 9 | 0];
|
|
5435
5558
|
};
|
|
5436
|
-
protoOf(GeneratedPath).
|
|
5559
|
+
protoOf(GeneratedPath).e2d = function (i, v) {
|
|
5437
5560
|
this.m23_1[imul(i, 44) + 9 | 0] = v;
|
|
5438
5561
|
};
|
|
5439
|
-
protoOf(GeneratedPath).
|
|
5562
|
+
protoOf(GeneratedPath).f2d = function (i) {
|
|
5440
5563
|
return this.m23_1[imul(i, 44) + 10 | 0];
|
|
5441
5564
|
};
|
|
5442
|
-
protoOf(GeneratedPath).
|
|
5565
|
+
protoOf(GeneratedPath).g2d = function (i, v) {
|
|
5443
5566
|
this.m23_1[imul(i, 44) + 10 | 0] = v;
|
|
5444
5567
|
};
|
|
5445
|
-
protoOf(GeneratedPath).
|
|
5568
|
+
protoOf(GeneratedPath).h2d = function (i, v) {
|
|
5446
5569
|
this.m23_1[imul(i, 44) + 11 | 0] = v;
|
|
5447
5570
|
};
|
|
5448
|
-
protoOf(GeneratedPath).
|
|
5571
|
+
protoOf(GeneratedPath).i2d = function (i, v) {
|
|
5449
5572
|
this.m23_1[imul(i, 44) + 12 | 0] = v;
|
|
5450
5573
|
};
|
|
5451
|
-
protoOf(GeneratedPath).
|
|
5574
|
+
protoOf(GeneratedPath).j2d = function (i) {
|
|
5452
5575
|
return this.m23_1[imul(i, 44) + 13 | 0];
|
|
5453
5576
|
};
|
|
5454
|
-
protoOf(GeneratedPath).
|
|
5577
|
+
protoOf(GeneratedPath).k2d = function (i, v) {
|
|
5455
5578
|
this.m23_1[imul(i, 44) + 13 | 0] = v;
|
|
5456
5579
|
};
|
|
5457
|
-
protoOf(GeneratedPath).
|
|
5580
|
+
protoOf(GeneratedPath).l2d = function (i, v) {
|
|
5458
5581
|
this.m23_1[imul(i, 44) + 14 | 0] = v;
|
|
5459
5582
|
};
|
|
5460
|
-
protoOf(GeneratedPath).
|
|
5583
|
+
protoOf(GeneratedPath).m2d = function (i, v) {
|
|
5461
5584
|
this.m23_1[imul(i, 44) + 15 | 0] = v;
|
|
5462
5585
|
};
|
|
5463
|
-
protoOf(GeneratedPath).
|
|
5586
|
+
protoOf(GeneratedPath).n2d = function (i, v) {
|
|
5464
5587
|
this.m23_1[imul(i, 44) + 16 | 0] = v;
|
|
5465
5588
|
};
|
|
5466
|
-
protoOf(GeneratedPath).
|
|
5589
|
+
protoOf(GeneratedPath).o2d = function (i, v) {
|
|
5467
5590
|
this.m23_1[imul(i, 44) + 17 | 0] = v;
|
|
5468
5591
|
};
|
|
5469
5592
|
protoOf(GeneratedPath).u23 = function (i) {
|
|
@@ -5472,49 +5595,49 @@
|
|
|
5472
5595
|
protoOf(GeneratedPath).m24 = function (i, v) {
|
|
5473
5596
|
this.m23_1[imul(i, 44) + 18 | 0] = v;
|
|
5474
5597
|
};
|
|
5475
|
-
protoOf(GeneratedPath).
|
|
5598
|
+
protoOf(GeneratedPath).p2d = function (i, v) {
|
|
5476
5599
|
this.m23_1[imul(i, 44) + 19 | 0] = v;
|
|
5477
5600
|
};
|
|
5478
|
-
protoOf(GeneratedPath).
|
|
5601
|
+
protoOf(GeneratedPath).q2d = function (i, v) {
|
|
5479
5602
|
this.m23_1[imul(i, 44) + 20 | 0] = v;
|
|
5480
5603
|
};
|
|
5481
|
-
protoOf(GeneratedPath).
|
|
5604
|
+
protoOf(GeneratedPath).r2d = function (i, v) {
|
|
5482
5605
|
this.m23_1[imul(i, 44) + 21 | 0] = v;
|
|
5483
5606
|
};
|
|
5484
|
-
protoOf(GeneratedPath).
|
|
5607
|
+
protoOf(GeneratedPath).s2d = function (i, v) {
|
|
5485
5608
|
this.m23_1[imul(i, 44) + 22 | 0] = v;
|
|
5486
5609
|
};
|
|
5487
|
-
protoOf(GeneratedPath).
|
|
5610
|
+
protoOf(GeneratedPath).t2d = function (i, v) {
|
|
5488
5611
|
this.m23_1[imul(i, 44) + 23 | 0] = v;
|
|
5489
5612
|
};
|
|
5490
|
-
protoOf(GeneratedPath).
|
|
5613
|
+
protoOf(GeneratedPath).u2d = function (i, v) {
|
|
5491
5614
|
this.m23_1[imul(i, 44) + 24 | 0] = v;
|
|
5492
5615
|
};
|
|
5493
|
-
protoOf(GeneratedPath).
|
|
5616
|
+
protoOf(GeneratedPath).v2d = function (i, v) {
|
|
5494
5617
|
this.m23_1[imul(i, 44) + 25 | 0] = v;
|
|
5495
5618
|
};
|
|
5496
5619
|
protoOf(GeneratedPath).v23 = function (i) {
|
|
5497
5620
|
return this.m23_1[imul(i, 44) + 26 | 0];
|
|
5498
5621
|
};
|
|
5499
|
-
protoOf(GeneratedPath).
|
|
5622
|
+
protoOf(GeneratedPath).w2d = function (i, v) {
|
|
5500
5623
|
this.m23_1[imul(i, 44) + 26 | 0] = v;
|
|
5501
5624
|
};
|
|
5502
|
-
protoOf(GeneratedPath).
|
|
5625
|
+
protoOf(GeneratedPath).x2d = function (i) {
|
|
5503
5626
|
return this.m23_1[imul(i, 44) + 27 | 0];
|
|
5504
5627
|
};
|
|
5505
|
-
protoOf(GeneratedPath).
|
|
5628
|
+
protoOf(GeneratedPath).y2d = function (i, v) {
|
|
5506
5629
|
this.m23_1[imul(i, 44) + 27 | 0] = v;
|
|
5507
5630
|
};
|
|
5508
|
-
protoOf(GeneratedPath).
|
|
5631
|
+
protoOf(GeneratedPath).z2d = function (i) {
|
|
5509
5632
|
return this.m23_1[imul(i, 44) + 28 | 0];
|
|
5510
5633
|
};
|
|
5511
|
-
protoOf(GeneratedPath).
|
|
5634
|
+
protoOf(GeneratedPath).a2e = function (i, v) {
|
|
5512
5635
|
this.m23_1[imul(i, 44) + 28 | 0] = v;
|
|
5513
5636
|
};
|
|
5514
|
-
protoOf(GeneratedPath).
|
|
5637
|
+
protoOf(GeneratedPath).b2e = function (i, v) {
|
|
5515
5638
|
this.m23_1[imul(i, 44) + 29 | 0] = v;
|
|
5516
5639
|
};
|
|
5517
|
-
protoOf(GeneratedPath).
|
|
5640
|
+
protoOf(GeneratedPath).c2e = function (i, v) {
|
|
5518
5641
|
this.m23_1[imul(i, 44) + 30 | 0] = v;
|
|
5519
5642
|
};
|
|
5520
5643
|
protoOf(GeneratedPath).t23 = function (i) {
|
|
@@ -5523,13 +5646,13 @@
|
|
|
5523
5646
|
protoOf(GeneratedPath).p24 = function (i, v) {
|
|
5524
5647
|
this.m23_1[imul(i, 44) + 31 | 0] = v;
|
|
5525
5648
|
};
|
|
5526
|
-
protoOf(GeneratedPath).
|
|
5649
|
+
protoOf(GeneratedPath).d2e = function (i) {
|
|
5527
5650
|
return this.m23_1[imul(i, 44) + 32 | 0];
|
|
5528
5651
|
};
|
|
5529
|
-
protoOf(GeneratedPath).
|
|
5652
|
+
protoOf(GeneratedPath).e2e = function (i, v) {
|
|
5530
5653
|
this.m23_1[imul(i, 44) + 32 | 0] = v;
|
|
5531
5654
|
};
|
|
5532
|
-
protoOf(GeneratedPath).
|
|
5655
|
+
protoOf(GeneratedPath).f2e = function (i, v) {
|
|
5533
5656
|
this.m23_1[imul(i, 44) + 33 | 0] = v;
|
|
5534
5657
|
};
|
|
5535
5658
|
protoOf(GeneratedPath).r23 = function (i) {
|
|
@@ -5544,64 +5667,64 @@
|
|
|
5544
5667
|
protoOf(GeneratedPath).o24 = function (i, v) {
|
|
5545
5668
|
this.m23_1[imul(i, 44) + 35 | 0] = v;
|
|
5546
5669
|
};
|
|
5547
|
-
protoOf(GeneratedPath).
|
|
5670
|
+
protoOf(GeneratedPath).g2e = function (i, v) {
|
|
5548
5671
|
this.m23_1[imul(i, 44) + 36 | 0] = v;
|
|
5549
5672
|
};
|
|
5550
|
-
protoOf(GeneratedPath).
|
|
5673
|
+
protoOf(GeneratedPath).h2e = function (i, v) {
|
|
5551
5674
|
this.m23_1[imul(i, 44) + 37 | 0] = v;
|
|
5552
5675
|
};
|
|
5553
|
-
protoOf(GeneratedPath).
|
|
5676
|
+
protoOf(GeneratedPath).i2e = function (i) {
|
|
5554
5677
|
return this.m23_1[imul(i, 44) + 38 | 0];
|
|
5555
5678
|
};
|
|
5556
|
-
protoOf(GeneratedPath).
|
|
5679
|
+
protoOf(GeneratedPath).j2e = function (i, v) {
|
|
5557
5680
|
this.m23_1[imul(i, 44) + 38 | 0] = v;
|
|
5558
5681
|
};
|
|
5559
|
-
protoOf(GeneratedPath).
|
|
5682
|
+
protoOf(GeneratedPath).k2e = function (i) {
|
|
5560
5683
|
return this.m23_1[imul(i, 44) + 39 | 0];
|
|
5561
5684
|
};
|
|
5562
5685
|
protoOf(GeneratedPath).s24 = function (i, v) {
|
|
5563
5686
|
this.m23_1[imul(i, 44) + 39 | 0] = v;
|
|
5564
5687
|
};
|
|
5565
|
-
protoOf(GeneratedPath).
|
|
5688
|
+
protoOf(GeneratedPath).l2e = function (i, v) {
|
|
5566
5689
|
this.m23_1[imul(i, 44) + 40 | 0] = v;
|
|
5567
5690
|
};
|
|
5568
|
-
protoOf(GeneratedPath).
|
|
5691
|
+
protoOf(GeneratedPath).m2e = function (i, v) {
|
|
5569
5692
|
this.m23_1[imul(i, 44) + 41 | 0] = v;
|
|
5570
5693
|
};
|
|
5571
|
-
protoOf(GeneratedPath).
|
|
5694
|
+
protoOf(GeneratedPath).n2e = function (i, v) {
|
|
5572
5695
|
this.m23_1[imul(i, 44) + 42 | 0] = v;
|
|
5573
5696
|
};
|
|
5574
|
-
protoOf(GeneratedPath).
|
|
5697
|
+
protoOf(GeneratedPath).q2b = function (i) {
|
|
5575
5698
|
return this.m23_1[imul(i, 44) + 43 | 0];
|
|
5576
5699
|
};
|
|
5577
|
-
protoOf(GeneratedPath).
|
|
5700
|
+
protoOf(GeneratedPath).q2c = function (i, v) {
|
|
5578
5701
|
this.m23_1[imul(i, 44) + 43 | 0] = v;
|
|
5579
5702
|
};
|
|
5580
|
-
function
|
|
5581
|
-
|
|
5582
|
-
this.
|
|
5703
|
+
function Companion_7() {
|
|
5704
|
+
Companion_instance_8 = this;
|
|
5705
|
+
this.o2e_1 = new BoundsRad(0.0, 0.0, 0.0, 0.0);
|
|
5583
5706
|
}
|
|
5584
|
-
var
|
|
5707
|
+
var Companion_instance_8;
|
|
5585
5708
|
function Companion_getInstance_7() {
|
|
5586
|
-
if (
|
|
5587
|
-
new
|
|
5588
|
-
return
|
|
5709
|
+
if (Companion_instance_8 == null)
|
|
5710
|
+
new Companion_7();
|
|
5711
|
+
return Companion_instance_8;
|
|
5589
5712
|
}
|
|
5590
5713
|
function BoundsRad(minLat, maxLat, minLon, maxLon) {
|
|
5591
5714
|
Companion_getInstance_7();
|
|
5592
|
-
this.
|
|
5593
|
-
this.
|
|
5594
|
-
this.
|
|
5595
|
-
this.
|
|
5715
|
+
this.p2e_1 = minLat;
|
|
5716
|
+
this.q2e_1 = maxLat;
|
|
5717
|
+
this.r2e_1 = minLon;
|
|
5718
|
+
this.s2e_1 = maxLon;
|
|
5596
5719
|
}
|
|
5597
5720
|
protoOf(BoundsRad).toString = function () {
|
|
5598
|
-
return 'BoundsRad(minLat=' + this.
|
|
5721
|
+
return 'BoundsRad(minLat=' + this.p2e_1 + ', maxLat=' + this.q2e_1 + ', minLon=' + this.r2e_1 + ', maxLon=' + this.s2e_1 + ')';
|
|
5599
5722
|
};
|
|
5600
5723
|
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.
|
|
5724
|
+
var result = getNumberHashCode(this.p2e_1);
|
|
5725
|
+
result = imul(result, 31) + getNumberHashCode(this.q2e_1) | 0;
|
|
5726
|
+
result = imul(result, 31) + getNumberHashCode(this.r2e_1) | 0;
|
|
5727
|
+
result = imul(result, 31) + getNumberHashCode(this.s2e_1) | 0;
|
|
5605
5728
|
return result;
|
|
5606
5729
|
};
|
|
5607
5730
|
protoOf(BoundsRad).equals = function (other) {
|
|
@@ -5609,13 +5732,13 @@
|
|
|
5609
5732
|
return true;
|
|
5610
5733
|
if (!(other instanceof BoundsRad))
|
|
5611
5734
|
return false;
|
|
5612
|
-
if (!equals(this.
|
|
5735
|
+
if (!equals(this.p2e_1, other.p2e_1))
|
|
5613
5736
|
return false;
|
|
5614
|
-
if (!equals(this.
|
|
5737
|
+
if (!equals(this.q2e_1, other.q2e_1))
|
|
5615
5738
|
return false;
|
|
5616
|
-
if (!equals(this.
|
|
5739
|
+
if (!equals(this.r2e_1, other.r2e_1))
|
|
5617
5740
|
return false;
|
|
5618
|
-
if (!equals(this.
|
|
5741
|
+
if (!equals(this.s2e_1, other.s2e_1))
|
|
5619
5742
|
return false;
|
|
5620
5743
|
return true;
|
|
5621
5744
|
};
|
|
@@ -5629,6 +5752,7 @@
|
|
|
5629
5752
|
$this.b25_1 = other.b25_1;
|
|
5630
5753
|
$this.c25_1 = other.c25_1;
|
|
5631
5754
|
$this.d25_1 = other.d25_1;
|
|
5755
|
+
$this.e25_1 = other.e25_1;
|
|
5632
5756
|
}
|
|
5633
5757
|
function resetStats($this) {
|
|
5634
5758
|
$this.v24_1 = 0.0;
|
|
@@ -5638,8 +5762,8 @@
|
|
|
5638
5762
|
$this.z24_1 = 0.0;
|
|
5639
5763
|
$this.a25_1 = NaN;
|
|
5640
5764
|
$this.b25_1 = NaN;
|
|
5641
|
-
$this.
|
|
5642
|
-
$this.
|
|
5765
|
+
$this.d25_1 = 0.0;
|
|
5766
|
+
$this.e25_1 = Companion_getInstance_7().o2e_1;
|
|
5643
5767
|
}
|
|
5644
5768
|
function computeBearing($this, from, to) {
|
|
5645
5769
|
var lat1 = $this.o23(from);
|
|
@@ -5659,11 +5783,11 @@
|
|
|
5659
5783
|
var y = -dy;
|
|
5660
5784
|
return Math.atan2(y, dx);
|
|
5661
5785
|
}
|
|
5662
|
-
function
|
|
5786
|
+
function Companion_8() {
|
|
5663
5787
|
}
|
|
5664
|
-
var
|
|
5788
|
+
var Companion_instance_9;
|
|
5665
5789
|
function Companion_getInstance_8() {
|
|
5666
|
-
return
|
|
5790
|
+
return Companion_instance_9;
|
|
5667
5791
|
}
|
|
5668
5792
|
function Path(size) {
|
|
5669
5793
|
GeneratedPath.call(this, size);
|
|
@@ -5674,28 +5798,29 @@
|
|
|
5674
5798
|
this.z24_1 = 0.0;
|
|
5675
5799
|
this.a25_1 = NaN;
|
|
5676
5800
|
this.b25_1 = NaN;
|
|
5677
|
-
this.c25_1 =
|
|
5678
|
-
this.d25_1 =
|
|
5801
|
+
this.c25_1 = null;
|
|
5802
|
+
this.d25_1 = 0.0;
|
|
5803
|
+
this.e25_1 = Companion_getInstance_7().o2e_1;
|
|
5679
5804
|
}
|
|
5680
|
-
protoOf(Path).
|
|
5805
|
+
protoOf(Path).t2e = function () {
|
|
5681
5806
|
return isNaN_0(this.a25_1) ? this.y24_1 : this.a25_1;
|
|
5682
5807
|
};
|
|
5683
|
-
protoOf(Path).
|
|
5808
|
+
protoOf(Path).u2e = function () {
|
|
5684
5809
|
return isNaN_0(this.b25_1) ? this.z24_1 : this.b25_1;
|
|
5685
5810
|
};
|
|
5686
|
-
protoOf(Path).
|
|
5811
|
+
protoOf(Path).v2e = function () {
|
|
5687
5812
|
return until(0, this.l23_1);
|
|
5688
5813
|
};
|
|
5689
|
-
protoOf(Path).
|
|
5814
|
+
protoOf(Path).w2e = function (i) {
|
|
5690
5815
|
return this.o23(i) * 57.29577951308232;
|
|
5691
5816
|
};
|
|
5692
|
-
protoOf(Path).
|
|
5817
|
+
protoOf(Path).x2e = function (i) {
|
|
5693
5818
|
return this.p23(i) * 57.29577951308232;
|
|
5694
5819
|
};
|
|
5695
|
-
protoOf(Path).
|
|
5696
|
-
return new LatLonElevation(this.
|
|
5820
|
+
protoOf(Path).p2c = function (i) {
|
|
5821
|
+
return new LatLonElevation(this.w2e(i), this.x2e(i), this.q23(i));
|
|
5697
5822
|
};
|
|
5698
|
-
protoOf(Path).
|
|
5823
|
+
protoOf(Path).y2e = function () {
|
|
5699
5824
|
var out = new Path(this.l23_1);
|
|
5700
5825
|
var tmp0 = this.m23_1;
|
|
5701
5826
|
var tmp2 = out.m23_1;
|
|
@@ -5710,7 +5835,7 @@
|
|
|
5710
5835
|
copyStatsFrom(out, this);
|
|
5711
5836
|
return out;
|
|
5712
5837
|
};
|
|
5713
|
-
protoOf(Path).
|
|
5838
|
+
protoOf(Path).f25 = function () {
|
|
5714
5839
|
resetStats(this);
|
|
5715
5840
|
if (this.l23_1 === 0)
|
|
5716
5841
|
return Unit_instance;
|
|
@@ -5752,8 +5877,8 @@
|
|
|
5752
5877
|
var a_4 = maxEle;
|
|
5753
5878
|
maxEle = Math.max(a_4, ele);
|
|
5754
5879
|
if (i > 0) {
|
|
5755
|
-
var prevCoord = new LatLon(this.
|
|
5756
|
-
var curCoord = new LatLon(this.
|
|
5880
|
+
var prevCoord = new LatLon(this.w2e(i - 1 | 0), this.x2e(i - 1 | 0));
|
|
5881
|
+
var curCoord = new LatLon(this.w2e(i), this.x2e(i));
|
|
5757
5882
|
cumDist = cumDist + Distance_instance.z10(prevCoord, curCoord);
|
|
5758
5883
|
var dEle = ele - this.q23(i - 1 | 0);
|
|
5759
5884
|
if (dEle > 0)
|
|
@@ -5761,7 +5886,7 @@
|
|
|
5761
5886
|
else
|
|
5762
5887
|
loss = loss + dEle;
|
|
5763
5888
|
}
|
|
5764
|
-
this.
|
|
5889
|
+
this.v2c(i, cumDist);
|
|
5765
5890
|
}
|
|
5766
5891
|
while (inductionVariable < last);
|
|
5767
5892
|
this.v24_1 = cumDist;
|
|
@@ -5769,15 +5894,15 @@
|
|
|
5769
5894
|
this.x24_1 = maxEle === -Infinity ? 0.0 : maxEle;
|
|
5770
5895
|
this.y24_1 = gain;
|
|
5771
5896
|
this.z24_1 = loss;
|
|
5772
|
-
this.
|
|
5773
|
-
this.
|
|
5897
|
+
this.e25_1 = new BoundsRad(minLat, maxLat, minLon, maxLon);
|
|
5898
|
+
this.d25_1 = this.l23_1 >= 2 ? this.n23(this.l23_1 - 1 | 0) - timeStart : 0.0;
|
|
5774
5899
|
var inductionVariable_0 = 0;
|
|
5775
5900
|
var last_0 = this.l23_1;
|
|
5776
5901
|
if (inductionVariable_0 < last_0)
|
|
5777
5902
|
$l$loop: do {
|
|
5778
5903
|
var i_0 = inductionVariable_0;
|
|
5779
5904
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
5780
|
-
this.
|
|
5905
|
+
this.y2c(i_0, (this.n23(i_0) - timeStart) / 1000.0);
|
|
5781
5906
|
if (this.l23_1 <= 1)
|
|
5782
5907
|
continue $l$loop;
|
|
5783
5908
|
// Inline function 'kotlin.math.max' call
|
|
@@ -5787,23 +5912,23 @@
|
|
|
5787
5912
|
// Inline function 'kotlin.math.min' call
|
|
5788
5913
|
var b_0 = i_0 + 1 | 0;
|
|
5789
5914
|
var ip1 = Math.min(tmp0, b_0);
|
|
5790
|
-
this.
|
|
5791
|
-
var dDist = (this.
|
|
5915
|
+
this.c2d(i_0, computeBearing(this, im1, ip1));
|
|
5916
|
+
var dDist = (this.p2b(ip1) - this.p2b(im1)) / 2.0;
|
|
5792
5917
|
var dEle_0 = (this.q23(ip1) - this.q23(im1)) / 2.0;
|
|
5793
5918
|
var grade = dDist === 0.0 ? 0.0 : dEle_0 / dDist;
|
|
5794
|
-
this.
|
|
5919
|
+
this.e2d(i_0, grade);
|
|
5795
5920
|
var dTime = (this.n23(ip1) - this.n23(im1)) / 2000.0;
|
|
5796
|
-
this.
|
|
5797
|
-
this.
|
|
5798
|
-
this.
|
|
5921
|
+
this.w2c(i_0, dDist);
|
|
5922
|
+
this.a2d(i_0, dTime);
|
|
5923
|
+
this.y2d(i_0, dTime === 0.0 ? 0.0 : dDist / dTime);
|
|
5799
5924
|
}
|
|
5800
5925
|
while (inductionVariable_0 < last_0);
|
|
5801
5926
|
};
|
|
5802
5927
|
function PathSimplifier() {
|
|
5803
5928
|
}
|
|
5804
|
-
protoOf(PathSimplifier).
|
|
5929
|
+
protoOf(PathSimplifier).z2e = function (path, toleranceM, zExaggeration) {
|
|
5805
5930
|
if (path.l23_1 <= 2)
|
|
5806
|
-
return path.
|
|
5931
|
+
return path.y2e();
|
|
5807
5932
|
var coords = ArrayList_init_$Create$_0(path.l23_1);
|
|
5808
5933
|
var inductionVariable = 0;
|
|
5809
5934
|
var last = path.l23_1;
|
|
@@ -5842,26 +5967,27 @@
|
|
|
5842
5967
|
var dstIdx = index;
|
|
5843
5968
|
index = index + 1 | 0;
|
|
5844
5969
|
var srcIdx = iterator.n();
|
|
5845
|
-
var _iterator__ex2g4s_0 =
|
|
5970
|
+
var _iterator__ex2g4s_0 = get_entries_3().l();
|
|
5846
5971
|
while (_iterator__ex2g4s_0.m()) {
|
|
5847
5972
|
var field = _iterator__ex2g4s_0.n();
|
|
5848
|
-
out.
|
|
5973
|
+
out.a2c(dstIdx, field, path.o26(srcIdx, field));
|
|
5849
5974
|
}
|
|
5850
5975
|
}
|
|
5851
|
-
out.
|
|
5976
|
+
out.f25();
|
|
5852
5977
|
out.a25_1 = path.a25_1;
|
|
5853
5978
|
out.b25_1 = path.b25_1;
|
|
5979
|
+
out.c25_1 = path.c25_1;
|
|
5854
5980
|
return out;
|
|
5855
5981
|
};
|
|
5856
5982
|
var PathSimplifier_instance;
|
|
5857
5983
|
function PathSimplifier_getInstance() {
|
|
5858
5984
|
return PathSimplifier_instance;
|
|
5859
5985
|
}
|
|
5860
|
-
var
|
|
5861
|
-
function
|
|
5862
|
-
if (
|
|
5986
|
+
var static_init_called_4;
|
|
5987
|
+
function static_init_4() {
|
|
5988
|
+
if (static_init_called_4)
|
|
5863
5989
|
return Unit_instance;
|
|
5864
|
-
|
|
5990
|
+
static_init_called_4 = true;
|
|
5865
5991
|
PointField_LATITUDE_instance = new PointField('LATITUDE', 0, 'latitude', 'radians', 'Latitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
|
|
5866
5992
|
PointField_LONGITUDE_instance = new PointField('LONGITUDE', 1, 'longitude', 'radians', 'Longitude (radians)', PointFieldCategory_COORDINATES_getInstance(), true, true);
|
|
5867
5993
|
PointField_DISTANCE_instance = new PointField('DISTANCE', 2, 'distance', 'meters', 'Distance (meters)', PointFieldCategory_COORDINATES_getInstance());
|
|
@@ -5906,9 +6032,9 @@
|
|
|
5906
6032
|
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
6033
|
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
6034
|
PointField_SOURCE_ELEVATION_instance = new PointField('SOURCE_ELEVATION', 43, 'sourceElevation', 'meters', 'Original elevation before smoothing (m)', PointFieldCategory_ELEVATION_getInstance(), true, VOID, true);
|
|
5909
|
-
if (
|
|
6035
|
+
if (Companion_instance_10 == null) {
|
|
5910
6036
|
Companion_instance;
|
|
5911
|
-
new
|
|
6037
|
+
new Companion_9();
|
|
5912
6038
|
}
|
|
5913
6039
|
}
|
|
5914
6040
|
var PointField_LATITUDE_instance;
|
|
@@ -5955,236 +6081,236 @@
|
|
|
5955
6081
|
var PointField_SOURCE_LATITUDE_instance;
|
|
5956
6082
|
var PointField_SOURCE_LONGITUDE_instance;
|
|
5957
6083
|
var PointField_SOURCE_ELEVATION_instance;
|
|
5958
|
-
function
|
|
5959
|
-
|
|
5960
|
-
this.
|
|
6084
|
+
function Companion_9() {
|
|
6085
|
+
Companion_instance_10 = this;
|
|
6086
|
+
this.a2f_1 = 44;
|
|
5961
6087
|
var tmp = this;
|
|
5962
6088
|
// Inline function 'kotlin.collections.associateBy' call
|
|
5963
|
-
var this_0 =
|
|
6089
|
+
var this_0 = get_entries_3();
|
|
5964
6090
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
5965
6091
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
5966
6092
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
5967
6093
|
var _iterator__ex2g4s = this_0.l();
|
|
5968
6094
|
while (_iterator__ex2g4s.m()) {
|
|
5969
6095
|
var element = _iterator__ex2g4s.n();
|
|
5970
|
-
var tmp$ret$2 = element.
|
|
6096
|
+
var tmp$ret$2 = element.g26_1;
|
|
5971
6097
|
destination.s3(tmp$ret$2, element);
|
|
5972
6098
|
}
|
|
5973
|
-
tmp.
|
|
6099
|
+
tmp.b2f_1 = destination;
|
|
5974
6100
|
}
|
|
5975
|
-
protoOf(
|
|
5976
|
-
return this.
|
|
6101
|
+
protoOf(Companion_9).c2f = function (prop) {
|
|
6102
|
+
return this.b2f_1.q1(prop);
|
|
5977
6103
|
};
|
|
5978
|
-
var
|
|
6104
|
+
var Companion_instance_10;
|
|
5979
6105
|
function Companion_getInstance_9() {
|
|
5980
|
-
|
|
5981
|
-
return
|
|
6106
|
+
static_init_4();
|
|
6107
|
+
return Companion_instance_10;
|
|
5982
6108
|
}
|
|
5983
|
-
function
|
|
5984
|
-
|
|
6109
|
+
function values_3() {
|
|
6110
|
+
static_init_4();
|
|
5985
6111
|
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
6112
|
}
|
|
5987
|
-
function
|
|
5988
|
-
|
|
5989
|
-
if ($
|
|
5990
|
-
$
|
|
5991
|
-
return $
|
|
6113
|
+
function get_entries_3() {
|
|
6114
|
+
static_init_4();
|
|
6115
|
+
if ($ENTRIES_3 == null)
|
|
6116
|
+
$ENTRIES_3 = enumEntries(values_3());
|
|
6117
|
+
return $ENTRIES_3;
|
|
5992
6118
|
}
|
|
5993
|
-
var $
|
|
6119
|
+
var $ENTRIES_3;
|
|
5994
6120
|
function PointField(name, ordinal, prop, unit, shortDescription, category, notSelectable, anglesInRadians, nanDefault) {
|
|
5995
6121
|
notSelectable = notSelectable === VOID ? false : notSelectable;
|
|
5996
6122
|
anglesInRadians = anglesInRadians === VOID ? false : anglesInRadians;
|
|
5997
6123
|
nanDefault = nanDefault === VOID ? false : nanDefault;
|
|
5998
6124
|
Enum.call(this, name, ordinal);
|
|
5999
|
-
this.
|
|
6000
|
-
this.
|
|
6001
|
-
this.
|
|
6002
|
-
this.
|
|
6003
|
-
this.
|
|
6004
|
-
this.
|
|
6005
|
-
this.
|
|
6125
|
+
this.g26_1 = prop;
|
|
6126
|
+
this.h26_1 = unit;
|
|
6127
|
+
this.i26_1 = shortDescription;
|
|
6128
|
+
this.j26_1 = category;
|
|
6129
|
+
this.k26_1 = notSelectable;
|
|
6130
|
+
this.l26_1 = anglesInRadians;
|
|
6131
|
+
this.m26_1 = nanDefault;
|
|
6006
6132
|
}
|
|
6007
6133
|
function PointField_LATITUDE_getInstance() {
|
|
6008
|
-
|
|
6134
|
+
static_init_4();
|
|
6009
6135
|
return PointField_LATITUDE_instance;
|
|
6010
6136
|
}
|
|
6011
6137
|
function PointField_LONGITUDE_getInstance() {
|
|
6012
|
-
|
|
6138
|
+
static_init_4();
|
|
6013
6139
|
return PointField_LONGITUDE_instance;
|
|
6014
6140
|
}
|
|
6015
6141
|
function PointField_DISTANCE_getInstance() {
|
|
6016
|
-
|
|
6142
|
+
static_init_4();
|
|
6017
6143
|
return PointField_DISTANCE_instance;
|
|
6018
6144
|
}
|
|
6019
6145
|
function PointField_DX_getInstance() {
|
|
6020
|
-
|
|
6146
|
+
static_init_4();
|
|
6021
6147
|
return PointField_DX_instance;
|
|
6022
6148
|
}
|
|
6023
6149
|
function PointField_TIME_getInstance() {
|
|
6024
|
-
|
|
6150
|
+
static_init_4();
|
|
6025
6151
|
return PointField_TIME_instance;
|
|
6026
6152
|
}
|
|
6027
6153
|
function PointField_ELAPSED_getInstance() {
|
|
6028
|
-
|
|
6154
|
+
static_init_4();
|
|
6029
6155
|
return PointField_ELAPSED_instance;
|
|
6030
6156
|
}
|
|
6031
6157
|
function PointField_DT_getInstance() {
|
|
6032
|
-
|
|
6158
|
+
static_init_4();
|
|
6033
6159
|
return PointField_DT_instance;
|
|
6034
6160
|
}
|
|
6035
6161
|
function PointField_BEARING_getInstance() {
|
|
6036
|
-
|
|
6162
|
+
static_init_4();
|
|
6037
6163
|
return PointField_BEARING_instance;
|
|
6038
6164
|
}
|
|
6039
6165
|
function PointField_ELEVATION_getInstance() {
|
|
6040
|
-
|
|
6166
|
+
static_init_4();
|
|
6041
6167
|
return PointField_ELEVATION_instance;
|
|
6042
6168
|
}
|
|
6043
6169
|
function PointField_GRADE_getInstance() {
|
|
6044
|
-
|
|
6170
|
+
static_init_4();
|
|
6045
6171
|
return PointField_GRADE_instance;
|
|
6046
6172
|
}
|
|
6047
6173
|
function PointField_RADIUS_getInstance() {
|
|
6048
|
-
|
|
6174
|
+
static_init_4();
|
|
6049
6175
|
return PointField_RADIUS_instance;
|
|
6050
6176
|
}
|
|
6051
6177
|
function PointField_AERO_COEF_getInstance() {
|
|
6052
|
-
|
|
6178
|
+
static_init_4();
|
|
6053
6179
|
return PointField_AERO_COEF_instance;
|
|
6054
6180
|
}
|
|
6055
6181
|
function PointField_WIND_BEARING_getInstance() {
|
|
6056
|
-
|
|
6182
|
+
static_init_4();
|
|
6057
6183
|
return PointField_WIND_BEARING_instance;
|
|
6058
6184
|
}
|
|
6059
6185
|
function PointField_WIND_ALPHA_getInstance() {
|
|
6060
|
-
|
|
6186
|
+
static_init_4();
|
|
6061
6187
|
return PointField_WIND_ALPHA_instance;
|
|
6062
6188
|
}
|
|
6063
6189
|
function PointField_P_AERO_getInstance() {
|
|
6064
|
-
|
|
6190
|
+
static_init_4();
|
|
6065
6191
|
return PointField_P_AERO_instance;
|
|
6066
6192
|
}
|
|
6067
6193
|
function PointField_P_GRAVITY_getInstance() {
|
|
6068
|
-
|
|
6194
|
+
static_init_4();
|
|
6069
6195
|
return PointField_P_GRAVITY_instance;
|
|
6070
6196
|
}
|
|
6071
6197
|
function PointField_P_ROLLING_RESISTANCE_getInstance() {
|
|
6072
|
-
|
|
6198
|
+
static_init_4();
|
|
6073
6199
|
return PointField_P_ROLLING_RESISTANCE_instance;
|
|
6074
6200
|
}
|
|
6075
6201
|
function PointField_P_WHEEL_BEARINGS_getInstance() {
|
|
6076
|
-
|
|
6202
|
+
static_init_4();
|
|
6077
6203
|
return PointField_P_WHEEL_BEARINGS_instance;
|
|
6078
6204
|
}
|
|
6079
6205
|
function PointField_P_INPUT_POWER_getInstance() {
|
|
6080
|
-
|
|
6206
|
+
static_init_4();
|
|
6081
6207
|
return PointField_P_INPUT_POWER_instance;
|
|
6082
6208
|
}
|
|
6083
6209
|
function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_getInstance() {
|
|
6084
|
-
|
|
6210
|
+
static_init_4();
|
|
6085
6211
|
return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_instance;
|
|
6086
6212
|
}
|
|
6087
6213
|
function PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_getInstance() {
|
|
6088
|
-
|
|
6214
|
+
static_init_4();
|
|
6089
6215
|
return PointField_P_CYCLIST_PROVIDED_OPTIMAL_POWER_HARMONICS_instance;
|
|
6090
6216
|
}
|
|
6091
6217
|
function PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_getInstance() {
|
|
6092
|
-
|
|
6218
|
+
static_init_4();
|
|
6093
6219
|
return PointField_P_CYCLIST_PROVIDED_POWER_NEEDED_instance;
|
|
6094
6220
|
}
|
|
6095
6221
|
function PointField_P_CYCLIST_PROVIDED_MUSCULAR_getInstance() {
|
|
6096
|
-
|
|
6222
|
+
static_init_4();
|
|
6097
6223
|
return PointField_P_CYCLIST_PROVIDED_MUSCULAR_instance;
|
|
6098
6224
|
}
|
|
6099
6225
|
function PointField_P_CYCLIST_PROVIDED_WHEEL_getInstance() {
|
|
6100
|
-
|
|
6226
|
+
static_init_4();
|
|
6101
6227
|
return PointField_P_CYCLIST_PROVIDED_WHEEL_instance;
|
|
6102
6228
|
}
|
|
6103
6229
|
function PointField_P_COMPUTED_TOTAL_POWER_getInstance() {
|
|
6104
|
-
|
|
6230
|
+
static_init_4();
|
|
6105
6231
|
return PointField_P_COMPUTED_TOTAL_POWER_instance;
|
|
6106
6232
|
}
|
|
6107
6233
|
function PointField_P_COMPUTED_WHEEL_POWER_getInstance() {
|
|
6108
|
-
|
|
6234
|
+
static_init_4();
|
|
6109
6235
|
return PointField_P_COMPUTED_WHEEL_POWER_instance;
|
|
6110
6236
|
}
|
|
6111
6237
|
function PointField_POWER_getInstance() {
|
|
6112
|
-
|
|
6238
|
+
static_init_4();
|
|
6113
6239
|
return PointField_POWER_instance;
|
|
6114
6240
|
}
|
|
6115
6241
|
function PointField_SPEED_getInstance() {
|
|
6116
|
-
|
|
6242
|
+
static_init_4();
|
|
6117
6243
|
return PointField_SPEED_instance;
|
|
6118
6244
|
}
|
|
6119
6245
|
function PointField_SPEED_MAX_getInstance() {
|
|
6120
|
-
|
|
6246
|
+
static_init_4();
|
|
6121
6247
|
return PointField_SPEED_MAX_instance;
|
|
6122
6248
|
}
|
|
6123
6249
|
function PointField_SPEED_MAX_INCLINE_getInstance() {
|
|
6124
|
-
|
|
6250
|
+
static_init_4();
|
|
6125
6251
|
return PointField_SPEED_MAX_INCLINE_instance;
|
|
6126
6252
|
}
|
|
6127
6253
|
function PointField_VIRT_SPEED_CURRENT_getInstance() {
|
|
6128
|
-
|
|
6254
|
+
static_init_4();
|
|
6129
6255
|
return PointField_VIRT_SPEED_CURRENT_instance;
|
|
6130
6256
|
}
|
|
6131
6257
|
function PointField_TEMPERATURE_getInstance() {
|
|
6132
|
-
|
|
6258
|
+
static_init_4();
|
|
6133
6259
|
return PointField_TEMPERATURE_instance;
|
|
6134
6260
|
}
|
|
6135
6261
|
function PointField_WIND_SPEED_getInstance() {
|
|
6136
|
-
|
|
6262
|
+
static_init_4();
|
|
6137
6263
|
return PointField_WIND_SPEED_instance;
|
|
6138
6264
|
}
|
|
6139
6265
|
function PointField_WIND_DIRECTION_getInstance() {
|
|
6140
|
-
|
|
6266
|
+
static_init_4();
|
|
6141
6267
|
return PointField_WIND_DIRECTION_instance;
|
|
6142
6268
|
}
|
|
6143
6269
|
function PointField_HEART_RATE_getInstance() {
|
|
6144
|
-
|
|
6270
|
+
static_init_4();
|
|
6145
6271
|
return PointField_HEART_RATE_instance;
|
|
6146
6272
|
}
|
|
6147
6273
|
function PointField_CADENCE_getInstance() {
|
|
6148
|
-
|
|
6274
|
+
static_init_4();
|
|
6149
6275
|
return PointField_CADENCE_instance;
|
|
6150
6276
|
}
|
|
6151
6277
|
function PointField_W_PRIME_BALANCE_getInstance() {
|
|
6152
|
-
|
|
6278
|
+
static_init_4();
|
|
6153
6279
|
return PointField_W_PRIME_BALANCE_instance;
|
|
6154
6280
|
}
|
|
6155
6281
|
function PointField_P_BRAKE_getInstance() {
|
|
6156
|
-
|
|
6282
|
+
static_init_4();
|
|
6157
6283
|
return PointField_P_BRAKE_instance;
|
|
6158
6284
|
}
|
|
6159
6285
|
function PointField_TRAJECTORY_CURVATURE_getInstance() {
|
|
6160
|
-
|
|
6286
|
+
static_init_4();
|
|
6161
6287
|
return PointField_TRAJECTORY_CURVATURE_instance;
|
|
6162
6288
|
}
|
|
6163
6289
|
function PointField_ROAD_WIDTH_getInstance() {
|
|
6164
|
-
|
|
6290
|
+
static_init_4();
|
|
6165
6291
|
return PointField_ROAD_WIDTH_instance;
|
|
6166
6292
|
}
|
|
6167
6293
|
function PointField_LATERAL_OFFSET_getInstance() {
|
|
6168
|
-
|
|
6294
|
+
static_init_4();
|
|
6169
6295
|
return PointField_LATERAL_OFFSET_instance;
|
|
6170
6296
|
}
|
|
6171
6297
|
function PointField_SOURCE_LATITUDE_getInstance() {
|
|
6172
|
-
|
|
6298
|
+
static_init_4();
|
|
6173
6299
|
return PointField_SOURCE_LATITUDE_instance;
|
|
6174
6300
|
}
|
|
6175
6301
|
function PointField_SOURCE_LONGITUDE_getInstance() {
|
|
6176
|
-
|
|
6302
|
+
static_init_4();
|
|
6177
6303
|
return PointField_SOURCE_LONGITUDE_instance;
|
|
6178
6304
|
}
|
|
6179
6305
|
function PointField_SOURCE_ELEVATION_getInstance() {
|
|
6180
|
-
|
|
6306
|
+
static_init_4();
|
|
6181
6307
|
return PointField_SOURCE_ELEVATION_instance;
|
|
6182
6308
|
}
|
|
6183
|
-
var
|
|
6184
|
-
function
|
|
6185
|
-
if (
|
|
6309
|
+
var static_init_called_5;
|
|
6310
|
+
function static_init_5() {
|
|
6311
|
+
if (static_init_called_5)
|
|
6186
6312
|
return Unit_instance;
|
|
6187
|
-
|
|
6313
|
+
static_init_called_5 = true;
|
|
6188
6314
|
PointFieldCategory_COORDINATES_instance = new PointFieldCategory('COORDINATES', 0, 'coordinates', 'Coordinates');
|
|
6189
6315
|
PointFieldCategory_TEMPORAL_instance = new PointFieldCategory('TEMPORAL', 1, 'temporal', 'Temporal');
|
|
6190
6316
|
PointFieldCategory_ANGLES_instance = new PointFieldCategory('ANGLES', 2, 'angles', 'Angles');
|
|
@@ -6218,99 +6344,99 @@
|
|
|
6218
6344
|
var PointFieldCategory_ROAD_instance;
|
|
6219
6345
|
function PointFieldCategory(name, ordinal, id, displayName) {
|
|
6220
6346
|
Enum.call(this, name, ordinal);
|
|
6221
|
-
this.
|
|
6222
|
-
this.
|
|
6347
|
+
this.f2f_1 = id;
|
|
6348
|
+
this.g2f_1 = displayName;
|
|
6223
6349
|
}
|
|
6224
6350
|
function PointFieldCategory_COORDINATES_getInstance() {
|
|
6225
|
-
|
|
6351
|
+
static_init_5();
|
|
6226
6352
|
return PointFieldCategory_COORDINATES_instance;
|
|
6227
6353
|
}
|
|
6228
6354
|
function PointFieldCategory_TEMPORAL_getInstance() {
|
|
6229
|
-
|
|
6355
|
+
static_init_5();
|
|
6230
6356
|
return PointFieldCategory_TEMPORAL_instance;
|
|
6231
6357
|
}
|
|
6232
6358
|
function PointFieldCategory_ANGLES_getInstance() {
|
|
6233
|
-
|
|
6359
|
+
static_init_5();
|
|
6234
6360
|
return PointFieldCategory_ANGLES_instance;
|
|
6235
6361
|
}
|
|
6236
6362
|
function PointFieldCategory_ELEVATION_getInstance() {
|
|
6237
|
-
|
|
6363
|
+
static_init_5();
|
|
6238
6364
|
return PointFieldCategory_ELEVATION_instance;
|
|
6239
6365
|
}
|
|
6240
6366
|
function PointFieldCategory_GRADE_getInstance() {
|
|
6241
|
-
|
|
6367
|
+
static_init_5();
|
|
6242
6368
|
return PointFieldCategory_GRADE_instance;
|
|
6243
6369
|
}
|
|
6244
6370
|
function PointFieldCategory_RADIUS_getInstance() {
|
|
6245
|
-
|
|
6371
|
+
static_init_5();
|
|
6246
6372
|
return PointFieldCategory_RADIUS_instance;
|
|
6247
6373
|
}
|
|
6248
6374
|
function PointFieldCategory_AERO_COEF_getInstance() {
|
|
6249
|
-
|
|
6375
|
+
static_init_5();
|
|
6250
6376
|
return PointFieldCategory_AERO_COEF_instance;
|
|
6251
6377
|
}
|
|
6252
6378
|
function PointFieldCategory_CYCLIST_WIND_getInstance() {
|
|
6253
|
-
|
|
6379
|
+
static_init_5();
|
|
6254
6380
|
return PointFieldCategory_CYCLIST_WIND_instance;
|
|
6255
6381
|
}
|
|
6256
6382
|
function PointFieldCategory_POWER_PHYSICS_getInstance() {
|
|
6257
|
-
|
|
6383
|
+
static_init_5();
|
|
6258
6384
|
return PointFieldCategory_POWER_PHYSICS_instance;
|
|
6259
6385
|
}
|
|
6260
6386
|
function PointFieldCategory_POWER_CYCLIST_getInstance() {
|
|
6261
|
-
|
|
6387
|
+
static_init_5();
|
|
6262
6388
|
return PointFieldCategory_POWER_CYCLIST_instance;
|
|
6263
6389
|
}
|
|
6264
6390
|
function PointFieldCategory_POWER_POST_getInstance() {
|
|
6265
|
-
|
|
6391
|
+
static_init_5();
|
|
6266
6392
|
return PointFieldCategory_POWER_POST_instance;
|
|
6267
6393
|
}
|
|
6268
6394
|
function PointFieldCategory_SPEED_getInstance() {
|
|
6269
|
-
|
|
6395
|
+
static_init_5();
|
|
6270
6396
|
return PointFieldCategory_SPEED_instance;
|
|
6271
6397
|
}
|
|
6272
6398
|
function PointFieldCategory_ENVIRONMENTAL_getInstance() {
|
|
6273
|
-
|
|
6399
|
+
static_init_5();
|
|
6274
6400
|
return PointFieldCategory_ENVIRONMENTAL_instance;
|
|
6275
6401
|
}
|
|
6276
6402
|
function PointFieldCategory_PHYSIOLOGICAL_getInstance() {
|
|
6277
|
-
|
|
6403
|
+
static_init_5();
|
|
6278
6404
|
return PointFieldCategory_PHYSIOLOGICAL_instance;
|
|
6279
6405
|
}
|
|
6280
6406
|
function PointFieldCategory_ROAD_getInstance() {
|
|
6281
|
-
|
|
6407
|
+
static_init_5();
|
|
6282
6408
|
return PointFieldCategory_ROAD_instance;
|
|
6283
6409
|
}
|
|
6284
6410
|
function Copy(sourceIndex) {
|
|
6285
|
-
this.
|
|
6411
|
+
this.h2f_1 = sourceIndex;
|
|
6286
6412
|
}
|
|
6287
6413
|
protoOf(Copy).toString = function () {
|
|
6288
|
-
return 'Copy(sourceIndex=' + this.
|
|
6414
|
+
return 'Copy(sourceIndex=' + this.h2f_1 + ')';
|
|
6289
6415
|
};
|
|
6290
6416
|
protoOf(Copy).hashCode = function () {
|
|
6291
|
-
return this.
|
|
6417
|
+
return this.h2f_1;
|
|
6292
6418
|
};
|
|
6293
6419
|
protoOf(Copy).equals = function (other) {
|
|
6294
6420
|
if (this === other)
|
|
6295
6421
|
return true;
|
|
6296
6422
|
if (!(other instanceof Copy))
|
|
6297
6423
|
return false;
|
|
6298
|
-
if (!(this.
|
|
6424
|
+
if (!(this.h2f_1 === other.h2f_1))
|
|
6299
6425
|
return false;
|
|
6300
6426
|
return true;
|
|
6301
6427
|
};
|
|
6302
6428
|
function Interpolate(from, to, coef) {
|
|
6303
|
-
this.
|
|
6304
|
-
this.
|
|
6305
|
-
this.
|
|
6429
|
+
this.i2f_1 = from;
|
|
6430
|
+
this.j2f_1 = to;
|
|
6431
|
+
this.k2f_1 = coef;
|
|
6306
6432
|
}
|
|
6307
6433
|
protoOf(Interpolate).toString = function () {
|
|
6308
|
-
return 'Interpolate(from=' + this.
|
|
6434
|
+
return 'Interpolate(from=' + this.i2f_1 + ', to=' + this.j2f_1 + ', coef=' + this.k2f_1 + ')';
|
|
6309
6435
|
};
|
|
6310
6436
|
protoOf(Interpolate).hashCode = function () {
|
|
6311
|
-
var result = this.
|
|
6312
|
-
result = imul(result, 31) + this.
|
|
6313
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6437
|
+
var result = this.i2f_1;
|
|
6438
|
+
result = imul(result, 31) + this.j2f_1 | 0;
|
|
6439
|
+
result = imul(result, 31) + getNumberHashCode(this.k2f_1) | 0;
|
|
6314
6440
|
return result;
|
|
6315
6441
|
};
|
|
6316
6442
|
protoOf(Interpolate).equals = function (other) {
|
|
@@ -6318,11 +6444,11 @@
|
|
|
6318
6444
|
return true;
|
|
6319
6445
|
if (!(other instanceof Interpolate))
|
|
6320
6446
|
return false;
|
|
6321
|
-
if (!(this.
|
|
6447
|
+
if (!(this.i2f_1 === other.i2f_1))
|
|
6322
6448
|
return false;
|
|
6323
|
-
if (!(this.
|
|
6449
|
+
if (!(this.j2f_1 === other.j2f_1))
|
|
6324
6450
|
return false;
|
|
6325
|
-
if (!equals(this.
|
|
6451
|
+
if (!equals(this.k2f_1, other.k2f_1))
|
|
6326
6452
|
return false;
|
|
6327
6453
|
return true;
|
|
6328
6454
|
};
|
|
@@ -6332,14 +6458,14 @@
|
|
|
6332
6458
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6333
6459
|
var element = new Copy(0);
|
|
6334
6460
|
plan.k(element);
|
|
6335
|
-
var lastAddedDistance = source.
|
|
6461
|
+
var lastAddedDistance = source.p2b(0);
|
|
6336
6462
|
var lastAddedIndex = 0;
|
|
6337
6463
|
var inductionVariable = 1;
|
|
6338
6464
|
if (inductionVariable < n)
|
|
6339
6465
|
$l$loop: do {
|
|
6340
6466
|
var i = inductionVariable;
|
|
6341
6467
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6342
|
-
var curDist = source.
|
|
6468
|
+
var curDist = source.p2b(i);
|
|
6343
6469
|
var gap = curDist - lastAddedDistance;
|
|
6344
6470
|
if (gap < minDistanceM)
|
|
6345
6471
|
continue $l$loop;
|
|
@@ -6362,11 +6488,11 @@
|
|
|
6362
6488
|
var j = inductionVariable_0;
|
|
6363
6489
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
6364
6490
|
var targetDistance = lastAddedDistance + j * spacing;
|
|
6365
|
-
while (index1 < (i - 1 | 0) && source.
|
|
6491
|
+
while (index1 < (i - 1 | 0) && source.p2b(index1 + 1 | 0) < targetDistance) {
|
|
6366
6492
|
index1 = index1 + 1 | 0;
|
|
6367
6493
|
}
|
|
6368
|
-
var dist1 = source.
|
|
6369
|
-
var dist2 = source.
|
|
6494
|
+
var dist1 = source.p2b(index1);
|
|
6495
|
+
var dist2 = source.p2b(index1 + 1 | 0);
|
|
6370
6496
|
var coef = (targetDistance - dist1) / (dist2 - dist1);
|
|
6371
6497
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6372
6498
|
var element_1 = new Interpolate(index1, index1 + 1 | 0, coef);
|
|
@@ -6392,31 +6518,31 @@
|
|
|
6392
6518
|
index = index + 1 | 0;
|
|
6393
6519
|
var op = iterator.n();
|
|
6394
6520
|
if (op instanceof Copy) {
|
|
6395
|
-
copyFields($this, source, op.
|
|
6521
|
+
copyFields($this, source, op.h2f_1, out, dstIdx);
|
|
6396
6522
|
} else {
|
|
6397
6523
|
if (op instanceof Interpolate) {
|
|
6398
|
-
FieldInterpolation_getInstance().
|
|
6524
|
+
FieldInterpolation_getInstance().t2c(source, op.i2f_1, op.j2f_1, op.k2f_1, out, dstIdx);
|
|
6399
6525
|
} else {
|
|
6400
6526
|
noWhenBranchMatchedException();
|
|
6401
6527
|
}
|
|
6402
6528
|
}
|
|
6403
6529
|
}
|
|
6404
|
-
out.
|
|
6530
|
+
out.f25();
|
|
6405
6531
|
return out;
|
|
6406
6532
|
}
|
|
6407
6533
|
function copyFields($this, src, srcIdx, dst, dstIdx) {
|
|
6408
|
-
var _iterator__ex2g4s =
|
|
6534
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
6409
6535
|
while (_iterator__ex2g4s.m()) {
|
|
6410
6536
|
var field = _iterator__ex2g4s.n();
|
|
6411
|
-
dst.
|
|
6537
|
+
dst.a2c(dstIdx, field, src.o26(srcIdx, field));
|
|
6412
6538
|
}
|
|
6413
6539
|
}
|
|
6414
6540
|
function PointPerDistance() {
|
|
6415
6541
|
}
|
|
6416
|
-
protoOf(PointPerDistance).
|
|
6417
|
-
return this.
|
|
6542
|
+
protoOf(PointPerDistance).l2f = function (source, minDistanceM, maxDistanceM) {
|
|
6543
|
+
return this.m2f(source, minDistanceM, maxDistanceM);
|
|
6418
6544
|
};
|
|
6419
|
-
protoOf(PointPerDistance).
|
|
6545
|
+
protoOf(PointPerDistance).m2f = function (source, minDistanceM, maxDistanceM) {
|
|
6420
6546
|
// Inline function 'kotlin.require' call
|
|
6421
6547
|
if (!(maxDistanceM > 0.0)) {
|
|
6422
6548
|
var message = 'maxDistanceM must be > 0, got ' + maxDistanceM;
|
|
@@ -6427,7 +6553,7 @@
|
|
|
6427
6553
|
if (source.l23_1 === 1) {
|
|
6428
6554
|
var out = new Path(1);
|
|
6429
6555
|
copyFields(this, source, 0, out, 0);
|
|
6430
|
-
out.
|
|
6556
|
+
out.f25();
|
|
6431
6557
|
return out;
|
|
6432
6558
|
}
|
|
6433
6559
|
var plan = buildPlan(this, source, minDistanceM, maxDistanceM);
|
|
@@ -6438,35 +6564,35 @@
|
|
|
6438
6564
|
return PointPerDistance_instance;
|
|
6439
6565
|
}
|
|
6440
6566
|
function Copy_0(sourceIndex) {
|
|
6441
|
-
this.
|
|
6567
|
+
this.n2f_1 = sourceIndex;
|
|
6442
6568
|
}
|
|
6443
6569
|
protoOf(Copy_0).toString = function () {
|
|
6444
|
-
return 'Copy(sourceIndex=' + this.
|
|
6570
|
+
return 'Copy(sourceIndex=' + this.n2f_1 + ')';
|
|
6445
6571
|
};
|
|
6446
6572
|
protoOf(Copy_0).hashCode = function () {
|
|
6447
|
-
return this.
|
|
6573
|
+
return this.n2f_1;
|
|
6448
6574
|
};
|
|
6449
6575
|
protoOf(Copy_0).equals = function (other) {
|
|
6450
6576
|
if (this === other)
|
|
6451
6577
|
return true;
|
|
6452
6578
|
if (!(other instanceof Copy_0))
|
|
6453
6579
|
return false;
|
|
6454
|
-
if (!(this.
|
|
6580
|
+
if (!(this.n2f_1 === other.n2f_1))
|
|
6455
6581
|
return false;
|
|
6456
6582
|
return true;
|
|
6457
6583
|
};
|
|
6458
6584
|
function Interpolate_0(from, to, coef) {
|
|
6459
|
-
this.
|
|
6460
|
-
this.
|
|
6461
|
-
this.
|
|
6585
|
+
this.o2f_1 = from;
|
|
6586
|
+
this.p2f_1 = to;
|
|
6587
|
+
this.q2f_1 = coef;
|
|
6462
6588
|
}
|
|
6463
6589
|
protoOf(Interpolate_0).toString = function () {
|
|
6464
|
-
return 'Interpolate(from=' + this.
|
|
6590
|
+
return 'Interpolate(from=' + this.o2f_1 + ', to=' + this.p2f_1 + ', coef=' + this.q2f_1 + ')';
|
|
6465
6591
|
};
|
|
6466
6592
|
protoOf(Interpolate_0).hashCode = function () {
|
|
6467
|
-
var result = this.
|
|
6468
|
-
result = imul(result, 31) + this.
|
|
6469
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
6593
|
+
var result = this.o2f_1;
|
|
6594
|
+
result = imul(result, 31) + this.p2f_1 | 0;
|
|
6595
|
+
result = imul(result, 31) + getNumberHashCode(this.q2f_1) | 0;
|
|
6470
6596
|
return result;
|
|
6471
6597
|
};
|
|
6472
6598
|
protoOf(Interpolate_0).equals = function (other) {
|
|
@@ -6474,11 +6600,11 @@
|
|
|
6474
6600
|
return true;
|
|
6475
6601
|
if (!(other instanceof Interpolate_0))
|
|
6476
6602
|
return false;
|
|
6477
|
-
if (!(this.
|
|
6603
|
+
if (!(this.o2f_1 === other.o2f_1))
|
|
6478
6604
|
return false;
|
|
6479
|
-
if (!(this.
|
|
6605
|
+
if (!(this.p2f_1 === other.p2f_1))
|
|
6480
6606
|
return false;
|
|
6481
|
-
if (!equals(this.
|
|
6607
|
+
if (!equals(this.q2f_1, other.q2f_1))
|
|
6482
6608
|
return false;
|
|
6483
6609
|
return true;
|
|
6484
6610
|
};
|
|
@@ -6556,29 +6682,29 @@
|
|
|
6556
6682
|
}
|
|
6557
6683
|
var data = tmp;
|
|
6558
6684
|
if (data instanceof Copy_0) {
|
|
6559
|
-
copyFields_0($this, source, data.
|
|
6685
|
+
copyFields_0($this, source, data.n2f_1, out, idx);
|
|
6560
6686
|
} else {
|
|
6561
6687
|
if (data instanceof Interpolate_0) {
|
|
6562
|
-
FieldInterpolation_getInstance().
|
|
6688
|
+
FieldInterpolation_getInstance().t2c(source, data.o2f_1, data.p2f_1, data.q2f_1, out, idx);
|
|
6563
6689
|
} else {
|
|
6564
6690
|
noWhenBranchMatchedException();
|
|
6565
6691
|
}
|
|
6566
6692
|
}
|
|
6567
6693
|
out.l24(idx, toNumber(multiply(epoch, new Long(1000, 0))));
|
|
6568
6694
|
}
|
|
6569
|
-
out.
|
|
6695
|
+
out.f25();
|
|
6570
6696
|
return out;
|
|
6571
6697
|
}
|
|
6572
6698
|
function copyFields_0($this, src, srcIdx, dst, dstIdx) {
|
|
6573
|
-
var _iterator__ex2g4s =
|
|
6699
|
+
var _iterator__ex2g4s = get_entries_3().l();
|
|
6574
6700
|
while (_iterator__ex2g4s.m()) {
|
|
6575
6701
|
var field = _iterator__ex2g4s.n();
|
|
6576
|
-
dst.
|
|
6702
|
+
dst.a2c(dstIdx, field, src.o26(srcIdx, field));
|
|
6577
6703
|
}
|
|
6578
6704
|
}
|
|
6579
6705
|
function PointPerSecond() {
|
|
6580
6706
|
}
|
|
6581
|
-
protoOf(PointPerSecond).
|
|
6707
|
+
protoOf(PointPerSecond).r2f = function (source) {
|
|
6582
6708
|
if (source.l23_1 === 0)
|
|
6583
6709
|
return new Path(0);
|
|
6584
6710
|
var plan = buildPlan_0(this, source);
|
|
@@ -6589,33 +6715,33 @@
|
|
|
6589
6715
|
return PointPerSecond_instance;
|
|
6590
6716
|
}
|
|
6591
6717
|
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.
|
|
6718
|
+
this.s2f_1 = first;
|
|
6719
|
+
this.t2f_1 = last;
|
|
6720
|
+
this.u2f_1 = chordGrade;
|
|
6721
|
+
this.v2f_1 = heightM;
|
|
6722
|
+
this.w2f_1 = riseGrade;
|
|
6723
|
+
this.x2f_1 = fallGrade;
|
|
6724
|
+
this.y2f_1 = straightness;
|
|
6725
|
+
this.z2f_1 = stepM;
|
|
6600
6726
|
}
|
|
6601
|
-
protoOf(TunnelSpan).
|
|
6602
|
-
return this.
|
|
6727
|
+
protoOf(TunnelSpan).a2g = function () {
|
|
6728
|
+
return this.s2f_1 * this.z2f_1;
|
|
6603
6729
|
};
|
|
6604
|
-
protoOf(TunnelSpan).
|
|
6605
|
-
return this.
|
|
6730
|
+
protoOf(TunnelSpan).b2g = function () {
|
|
6731
|
+
return this.t2f_1 * this.z2f_1;
|
|
6606
6732
|
};
|
|
6607
6733
|
protoOf(TunnelSpan).toString = function () {
|
|
6608
|
-
return 'TunnelSpan(first=' + this.
|
|
6734
|
+
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
6735
|
};
|
|
6610
6736
|
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.
|
|
6737
|
+
var result = this.s2f_1;
|
|
6738
|
+
result = imul(result, 31) + this.t2f_1 | 0;
|
|
6739
|
+
result = imul(result, 31) + getNumberHashCode(this.u2f_1) | 0;
|
|
6740
|
+
result = imul(result, 31) + getNumberHashCode(this.v2f_1) | 0;
|
|
6741
|
+
result = imul(result, 31) + getNumberHashCode(this.w2f_1) | 0;
|
|
6742
|
+
result = imul(result, 31) + getNumberHashCode(this.x2f_1) | 0;
|
|
6743
|
+
result = imul(result, 31) + getNumberHashCode(this.y2f_1) | 0;
|
|
6744
|
+
result = imul(result, 31) + getNumberHashCode(this.z2f_1) | 0;
|
|
6619
6745
|
return result;
|
|
6620
6746
|
};
|
|
6621
6747
|
protoOf(TunnelSpan).equals = function (other) {
|
|
@@ -6623,46 +6749,46 @@
|
|
|
6623
6749
|
return true;
|
|
6624
6750
|
if (!(other instanceof TunnelSpan))
|
|
6625
6751
|
return false;
|
|
6626
|
-
if (!(this.
|
|
6752
|
+
if (!(this.s2f_1 === other.s2f_1))
|
|
6627
6753
|
return false;
|
|
6628
|
-
if (!(this.
|
|
6754
|
+
if (!(this.t2f_1 === other.t2f_1))
|
|
6629
6755
|
return false;
|
|
6630
|
-
if (!equals(this.
|
|
6756
|
+
if (!equals(this.u2f_1, other.u2f_1))
|
|
6631
6757
|
return false;
|
|
6632
|
-
if (!equals(this.
|
|
6758
|
+
if (!equals(this.v2f_1, other.v2f_1))
|
|
6633
6759
|
return false;
|
|
6634
|
-
if (!equals(this.
|
|
6760
|
+
if (!equals(this.w2f_1, other.w2f_1))
|
|
6635
6761
|
return false;
|
|
6636
|
-
if (!equals(this.
|
|
6762
|
+
if (!equals(this.x2f_1, other.x2f_1))
|
|
6637
6763
|
return false;
|
|
6638
|
-
if (!equals(this.
|
|
6764
|
+
if (!equals(this.y2f_1, other.y2f_1))
|
|
6639
6765
|
return false;
|
|
6640
|
-
if (!equals(this.
|
|
6766
|
+
if (!equals(this.z2f_1, other.z2f_1))
|
|
6641
6767
|
return false;
|
|
6642
6768
|
return true;
|
|
6643
6769
|
};
|
|
6644
6770
|
function Stations(options) {
|
|
6645
|
-
this.
|
|
6646
|
-
this.
|
|
6647
|
-
this.
|
|
6648
|
-
this.
|
|
6771
|
+
this.c2g_1 = options.v2g();
|
|
6772
|
+
this.d2g_1 = options.w2g();
|
|
6773
|
+
this.e2g_1 = options.x2g();
|
|
6774
|
+
this.f2g_1 = options.y2g();
|
|
6649
6775
|
}
|
|
6650
6776
|
function grade($this, z, i, j, stepM) {
|
|
6651
6777
|
return i < 0 || j >= z.length ? NaN : (z[j] - z[i]) / ((j - i | 0) * stepM);
|
|
6652
6778
|
}
|
|
6653
6779
|
function judge($this, profile, a, b, entries, exits, options, stations) {
|
|
6654
|
-
var w = stations.
|
|
6655
|
-
var z = profile.
|
|
6780
|
+
var w = stations.d2g_1;
|
|
6781
|
+
var z = profile.z2g_1;
|
|
6656
6782
|
var n = z.length;
|
|
6657
|
-
var step = options.
|
|
6783
|
+
var step = options.g2g_1;
|
|
6658
6784
|
var length = (b - a | 0) * step;
|
|
6659
|
-
if (length < options.
|
|
6785
|
+
if (length < options.s2g_1 - 1.0E-9)
|
|
6660
6786
|
return null;
|
|
6661
|
-
var chord = Distance_instance.z10(new LatLon(profile.
|
|
6787
|
+
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
6788
|
var straightness = chord / length;
|
|
6663
|
-
if (!(straightness >= options.
|
|
6789
|
+
if (!(straightness >= options.u2g_1))
|
|
6664
6790
|
return null;
|
|
6665
|
-
var w0 = stations.
|
|
6791
|
+
var w0 = stations.d2g_1;
|
|
6666
6792
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6667
6793
|
var b_0 = a - w0 | 0;
|
|
6668
6794
|
var inductionVariable = Math.max(0, b_0);
|
|
@@ -6693,7 +6819,7 @@
|
|
|
6693
6819
|
while (!(k_0 === last));
|
|
6694
6820
|
var c = (z[b] - z[a]) / length;
|
|
6695
6821
|
// Inline function 'kotlin.math.abs' call
|
|
6696
|
-
if (!(Math.abs(c) <= options.
|
|
6822
|
+
if (!(Math.abs(c) <= options.n2g_1))
|
|
6697
6823
|
return null;
|
|
6698
6824
|
var height = -Infinity;
|
|
6699
6825
|
var inductionVariable_1 = a;
|
|
@@ -6702,15 +6828,15 @@
|
|
|
6702
6828
|
var k_1 = inductionVariable_1;
|
|
6703
6829
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6704
6830
|
var h = z[k_1] - (z[a] + c * (k_1 - a | 0) * step);
|
|
6705
|
-
if (isNaN_0(h) || h < -options.
|
|
6831
|
+
if (isNaN_0(h) || h < -options.q2g_1)
|
|
6706
6832
|
return null;
|
|
6707
6833
|
if (h > height)
|
|
6708
6834
|
height = h;
|
|
6709
6835
|
}
|
|
6710
6836
|
while (!(k_1 === b));
|
|
6711
|
-
if (height < options.
|
|
6837
|
+
if (height < options.o2g_1)
|
|
6712
6838
|
return null;
|
|
6713
|
-
var f = stations.
|
|
6839
|
+
var f = stations.f2g_1;
|
|
6714
6840
|
var nearEntry = -Infinity;
|
|
6715
6841
|
var inductionVariable_2 = a;
|
|
6716
6842
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
@@ -6740,9 +6866,9 @@
|
|
|
6740
6866
|
nearExit = Math.max(tmp0_1, b_5);
|
|
6741
6867
|
}
|
|
6742
6868
|
while (!(k_3 === b));
|
|
6743
|
-
if (nearEntry < options.
|
|
6869
|
+
if (nearEntry < options.o2g_1 || nearExit < options.o2g_1)
|
|
6744
6870
|
return null;
|
|
6745
|
-
var s = stations.
|
|
6871
|
+
var s = stations.e2g_1;
|
|
6746
6872
|
var rise = -Infinity;
|
|
6747
6873
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6748
6874
|
var b_6 = a - (w / 2 | 0) | 0;
|
|
@@ -6774,7 +6900,7 @@
|
|
|
6774
6900
|
fall = g_0;
|
|
6775
6901
|
}
|
|
6776
6902
|
while (!(k_5 === last_2));
|
|
6777
|
-
if (rise < options.
|
|
6903
|
+
if (rise < options.l2g_1 || fall > -options.l2g_1)
|
|
6778
6904
|
return null;
|
|
6779
6905
|
// Inline function 'kotlin.collections.filter' call
|
|
6780
6906
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -6811,7 +6937,7 @@
|
|
|
6811
6937
|
do {
|
|
6812
6938
|
var k_6 = inductionVariable_6;
|
|
6813
6939
|
inductionVariable_6 = inductionVariable_6 + 1 | 0;
|
|
6814
|
-
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.
|
|
6940
|
+
if (z[k_6] - (z[a] + c * (k_6 - a | 0) * step) < options.r2g_1)
|
|
6815
6941
|
return null;
|
|
6816
6942
|
}
|
|
6817
6943
|
while (!(k_6 === y));
|
|
@@ -6820,15 +6946,15 @@
|
|
|
6820
6946
|
return new TunnelSpan(a, b, c, height, rise, fall, straightness, step);
|
|
6821
6947
|
}
|
|
6822
6948
|
function TunnelDetector() {
|
|
6823
|
-
this.
|
|
6949
|
+
this.c2h_1 = 1.0E-6;
|
|
6824
6950
|
}
|
|
6825
|
-
protoOf(TunnelDetector).
|
|
6826
|
-
var z = profile.
|
|
6951
|
+
protoOf(TunnelDetector).d2h = function (profile, options) {
|
|
6952
|
+
var z = profile.z2g_1;
|
|
6827
6953
|
if (z.length < 2)
|
|
6828
6954
|
return emptyList();
|
|
6829
6955
|
var stations = new Stations(options);
|
|
6830
|
-
var entries = this.
|
|
6831
|
-
var exits = this.
|
|
6956
|
+
var entries = this.e2h(z, options, true, stations);
|
|
6957
|
+
var exits = this.e2h(z, options, false, stations);
|
|
6832
6958
|
var out = ArrayList_init_$Create$();
|
|
6833
6959
|
var next = -1;
|
|
6834
6960
|
var _iterator__ex2g4s = entries.l();
|
|
@@ -6842,7 +6968,7 @@
|
|
|
6842
6968
|
var b = _iterator__ex2g4s_0.n();
|
|
6843
6969
|
if (b <= a)
|
|
6844
6970
|
continue $l$loop_2;
|
|
6845
|
-
if ((b - a | 0) * options.
|
|
6971
|
+
if ((b - a | 0) * options.g2g_1 > options.t2g_1 + 1.0E-9)
|
|
6846
6972
|
break $l$loop_2;
|
|
6847
6973
|
var tmp0_elvis_lhs = judge(this, profile, a, b, entries, exits, options, stations);
|
|
6848
6974
|
var tmp;
|
|
@@ -6852,23 +6978,23 @@
|
|
|
6852
6978
|
tmp = tmp0_elvis_lhs;
|
|
6853
6979
|
}
|
|
6854
6980
|
var span = tmp;
|
|
6855
|
-
if (best == null || span.
|
|
6981
|
+
if (best == null || span.v2f_1 > best.v2f_1 + 1.0E-9)
|
|
6856
6982
|
best = span;
|
|
6857
6983
|
}
|
|
6858
6984
|
if (!(best == null)) {
|
|
6859
6985
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
6860
6986
|
var element = best;
|
|
6861
6987
|
out.k(element);
|
|
6862
|
-
next = best.
|
|
6988
|
+
next = best.t2f_1;
|
|
6863
6989
|
}
|
|
6864
6990
|
}
|
|
6865
6991
|
return out;
|
|
6866
6992
|
};
|
|
6867
|
-
protoOf(TunnelDetector).
|
|
6993
|
+
protoOf(TunnelDetector).e2h = function (z, options, entry, stations) {
|
|
6868
6994
|
var n = z.length;
|
|
6869
|
-
var m = stations.
|
|
6870
|
-
var w = stations.
|
|
6871
|
-
var step = options.
|
|
6995
|
+
var m = stations.c2g_1;
|
|
6996
|
+
var w = stations.d2g_1;
|
|
6997
|
+
var step = options.g2g_1;
|
|
6872
6998
|
var tmp = 0;
|
|
6873
6999
|
var tmp_0 = new Float64Array(n);
|
|
6874
7000
|
while (tmp < n) {
|
|
@@ -6891,14 +7017,14 @@
|
|
|
6891
7017
|
var tmp_2;
|
|
6892
7018
|
var tmp_3;
|
|
6893
7019
|
// Inline function 'kotlin.math.abs' call
|
|
6894
|
-
if (Math.abs(back) <= options.
|
|
7020
|
+
if (Math.abs(back) <= options.j2g_1) {
|
|
6895
7021
|
// Inline function 'kotlin.math.abs' call
|
|
6896
|
-
tmp_3 = Math.abs(outer) <= options.
|
|
7022
|
+
tmp_3 = Math.abs(outer) <= options.j2g_1;
|
|
6897
7023
|
} else {
|
|
6898
7024
|
tmp_3 = false;
|
|
6899
7025
|
}
|
|
6900
7026
|
if (tmp_3) {
|
|
6901
|
-
tmp_2 = ahead >= options.
|
|
7027
|
+
tmp_2 = ahead >= options.k2g_1;
|
|
6902
7028
|
} else {
|
|
6903
7029
|
tmp_2 = false;
|
|
6904
7030
|
}
|
|
@@ -6908,14 +7034,14 @@
|
|
|
6908
7034
|
var tmp_4;
|
|
6909
7035
|
var tmp_5;
|
|
6910
7036
|
// Inline function 'kotlin.math.abs' call
|
|
6911
|
-
if (Math.abs(ahead) <= options.
|
|
7037
|
+
if (Math.abs(ahead) <= options.j2g_1) {
|
|
6912
7038
|
// Inline function 'kotlin.math.abs' call
|
|
6913
|
-
tmp_5 = Math.abs(outer_0) <= options.
|
|
7039
|
+
tmp_5 = Math.abs(outer_0) <= options.j2g_1;
|
|
6914
7040
|
} else {
|
|
6915
7041
|
tmp_5 = false;
|
|
6916
7042
|
}
|
|
6917
7043
|
if (tmp_5) {
|
|
6918
|
-
tmp_4 = back <= -options.
|
|
7044
|
+
tmp_4 = back <= -options.k2g_1;
|
|
6919
7045
|
} else {
|
|
6920
7046
|
tmp_4 = false;
|
|
6921
7047
|
}
|
|
@@ -6991,36 +7117,36 @@
|
|
|
6991
7117
|
return TunnelDetector_instance;
|
|
6992
7118
|
}
|
|
6993
7119
|
function TunnelProfile(terrainM, latDeg, lonDeg) {
|
|
6994
|
-
this.
|
|
6995
|
-
this.
|
|
6996
|
-
this.
|
|
7120
|
+
this.z2g_1 = terrainM;
|
|
7121
|
+
this.a2h_1 = latDeg;
|
|
7122
|
+
this.b2h_1 = lonDeg;
|
|
6997
7123
|
// Inline function 'kotlin.require' call
|
|
6998
|
-
if (!(this.
|
|
6999
|
-
var message = 'terrain, latitude and longitude must have one sample per station: ' + this.
|
|
7124
|
+
if (!(this.z2g_1.length === this.a2h_1.length && this.a2h_1.length === this.b2h_1.length)) {
|
|
7125
|
+
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
7126
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7001
7127
|
}
|
|
7002
7128
|
}
|
|
7003
7129
|
function stations_0($this, metres, name) {
|
|
7004
|
-
var r = metres / $this.
|
|
7130
|
+
var r = metres / $this.g2g_1;
|
|
7005
7131
|
var k = roundToInt(r);
|
|
7006
7132
|
// Inline function 'kotlin.math.abs' call
|
|
7007
7133
|
var x = r - k;
|
|
7008
7134
|
// Inline function 'kotlin.require' call
|
|
7009
7135
|
if (!(Math.abs(x) < 1.0E-9)) {
|
|
7010
|
-
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.
|
|
7136
|
+
var message = name + ' = ' + metres + ' m is not a whole number of ' + $this.g2g_1 + ' m stations';
|
|
7011
7137
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7012
7138
|
}
|
|
7013
7139
|
return k;
|
|
7014
7140
|
}
|
|
7015
|
-
function
|
|
7016
|
-
|
|
7017
|
-
this.
|
|
7141
|
+
function Companion_10() {
|
|
7142
|
+
Companion_instance_11 = this;
|
|
7143
|
+
this.f2h_1 = new TunnelDetectorOptions();
|
|
7018
7144
|
}
|
|
7019
|
-
var
|
|
7145
|
+
var Companion_instance_11;
|
|
7020
7146
|
function Companion_getInstance_10() {
|
|
7021
|
-
if (
|
|
7022
|
-
new
|
|
7023
|
-
return
|
|
7147
|
+
if (Companion_instance_11 == null)
|
|
7148
|
+
new Companion_10();
|
|
7149
|
+
return Companion_instance_11;
|
|
7024
7150
|
}
|
|
7025
7151
|
function TunnelDetectorOptions(stepM, footWindowM, steepWindowM, maxRoadGrade, minPortalGrade, minSideGrade, sideSearchM, maxChordGrade, minHeightM, faceReachM, maxBelowChordM, minValleyHeightM, minLengthM, maxLengthM, minStraightness) {
|
|
7026
7152
|
Companion_getInstance_10();
|
|
@@ -7039,96 +7165,96 @@
|
|
|
7039
7165
|
minLengthM = minLengthM === VOID ? 50.0 : minLengthM;
|
|
7040
7166
|
maxLengthM = maxLengthM === VOID ? 3000.0 : maxLengthM;
|
|
7041
7167
|
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.
|
|
7168
|
+
this.g2g_1 = stepM;
|
|
7169
|
+
this.h2g_1 = footWindowM;
|
|
7170
|
+
this.i2g_1 = steepWindowM;
|
|
7171
|
+
this.j2g_1 = maxRoadGrade;
|
|
7172
|
+
this.k2g_1 = minPortalGrade;
|
|
7173
|
+
this.l2g_1 = minSideGrade;
|
|
7174
|
+
this.m2g_1 = sideSearchM;
|
|
7175
|
+
this.n2g_1 = maxChordGrade;
|
|
7176
|
+
this.o2g_1 = minHeightM;
|
|
7177
|
+
this.p2g_1 = faceReachM;
|
|
7178
|
+
this.q2g_1 = maxBelowChordM;
|
|
7179
|
+
this.r2g_1 = minValleyHeightM;
|
|
7180
|
+
this.s2g_1 = minLengthM;
|
|
7181
|
+
this.t2g_1 = maxLengthM;
|
|
7182
|
+
this.u2g_1 = minStraightness;
|
|
7057
7183
|
// Inline function 'kotlin.require' call
|
|
7058
|
-
if (!(this.
|
|
7059
|
-
var message = 'stepM must be positive, got ' + this.
|
|
7184
|
+
if (!(this.g2g_1 > 0.0)) {
|
|
7185
|
+
var message = 'stepM must be positive, got ' + this.g2g_1;
|
|
7060
7186
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message));
|
|
7061
7187
|
}
|
|
7062
7188
|
// Inline function 'kotlin.require' call
|
|
7063
|
-
if (!(this.
|
|
7189
|
+
if (!(this.v2g() >= 1 && this.w2g() >= 1)) {
|
|
7064
7190
|
var message_0 = 'grade windows must cover a station';
|
|
7065
7191
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_0));
|
|
7066
7192
|
}
|
|
7067
7193
|
// Inline function 'kotlin.require' call
|
|
7068
|
-
if (!(this.
|
|
7194
|
+
if (!(this.x2g() >= 0)) {
|
|
7069
7195
|
var message_1 = 'negative sideSearchM';
|
|
7070
7196
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_1));
|
|
7071
7197
|
}
|
|
7072
7198
|
// Inline function 'kotlin.require' call
|
|
7073
|
-
if (!(this.
|
|
7199
|
+
if (!(this.y2g() >= 1)) {
|
|
7074
7200
|
var message_2 = 'faceReachM must cover a station';
|
|
7075
7201
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_2));
|
|
7076
7202
|
}
|
|
7077
7203
|
// Inline function 'kotlin.require' call
|
|
7078
|
-
if (!(this.
|
|
7204
|
+
if (!(this.j2g_1 >= 0.0 && this.k2g_1 > 0.0 && this.l2g_1 > 0.0)) {
|
|
7079
7205
|
var message_3 = 'grades must be positive';
|
|
7080
7206
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_3));
|
|
7081
7207
|
}
|
|
7082
7208
|
// Inline function 'kotlin.require' call
|
|
7083
|
-
if (!(this.
|
|
7209
|
+
if (!(this.n2g_1 >= 0.0 && this.o2g_1 > 0.0 && this.q2g_1 >= 0.0)) {
|
|
7084
7210
|
var message_4 = 'negative threshold';
|
|
7085
7211
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_4));
|
|
7086
7212
|
}
|
|
7087
|
-
var containsUpper = this.
|
|
7088
|
-
var containsArg = this.
|
|
7213
|
+
var containsUpper = this.t2g_1;
|
|
7214
|
+
var containsArg = this.s2g_1;
|
|
7089
7215
|
// Inline function 'kotlin.require' call
|
|
7090
7216
|
if (!(0.0 <= containsArg ? containsArg <= containsUpper : false)) {
|
|
7091
7217
|
var message_5 = 'minLengthM must be in 0..maxLengthM';
|
|
7092
7218
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_5));
|
|
7093
7219
|
}
|
|
7094
|
-
var containsArg_0 = this.
|
|
7220
|
+
var containsArg_0 = this.u2g_1;
|
|
7095
7221
|
// Inline function 'kotlin.require' call
|
|
7096
7222
|
if (!(0.0 <= containsArg_0 ? containsArg_0 <= 1.0 : false)) {
|
|
7097
|
-
var message_6 = 'minStraightness must be in 0..1, got ' + this.
|
|
7223
|
+
var message_6 = 'minStraightness must be in 0..1, got ' + this.u2g_1;
|
|
7098
7224
|
throw IllegalArgumentException_init_$Create$_0(toString_0(message_6));
|
|
7099
7225
|
}
|
|
7100
7226
|
}
|
|
7101
|
-
protoOf(TunnelDetectorOptions).
|
|
7102
|
-
return stations_0(this, this.
|
|
7227
|
+
protoOf(TunnelDetectorOptions).v2g = function () {
|
|
7228
|
+
return stations_0(this, this.h2g_1, 'footWindowM');
|
|
7103
7229
|
};
|
|
7104
|
-
protoOf(TunnelDetectorOptions).
|
|
7105
|
-
return stations_0(this, this.
|
|
7230
|
+
protoOf(TunnelDetectorOptions).w2g = function () {
|
|
7231
|
+
return stations_0(this, this.i2g_1, 'steepWindowM');
|
|
7106
7232
|
};
|
|
7107
|
-
protoOf(TunnelDetectorOptions).
|
|
7108
|
-
return stations_0(this, this.
|
|
7233
|
+
protoOf(TunnelDetectorOptions).x2g = function () {
|
|
7234
|
+
return stations_0(this, this.m2g_1, 'sideSearchM');
|
|
7109
7235
|
};
|
|
7110
|
-
protoOf(TunnelDetectorOptions).
|
|
7111
|
-
return stations_0(this, this.
|
|
7236
|
+
protoOf(TunnelDetectorOptions).y2g = function () {
|
|
7237
|
+
return stations_0(this, this.p2g_1, 'faceReachM');
|
|
7112
7238
|
};
|
|
7113
7239
|
protoOf(TunnelDetectorOptions).toString = function () {
|
|
7114
|
-
return 'TunnelDetectorOptions(stepM=' + this.
|
|
7240
|
+
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
7241
|
};
|
|
7116
7242
|
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;
|
|
7243
|
+
var result = getNumberHashCode(this.g2g_1);
|
|
7130
7244
|
result = imul(result, 31) + getNumberHashCode(this.h2g_1) | 0;
|
|
7131
7245
|
result = imul(result, 31) + getNumberHashCode(this.i2g_1) | 0;
|
|
7246
|
+
result = imul(result, 31) + getNumberHashCode(this.j2g_1) | 0;
|
|
7247
|
+
result = imul(result, 31) + getNumberHashCode(this.k2g_1) | 0;
|
|
7248
|
+
result = imul(result, 31) + getNumberHashCode(this.l2g_1) | 0;
|
|
7249
|
+
result = imul(result, 31) + getNumberHashCode(this.m2g_1) | 0;
|
|
7250
|
+
result = imul(result, 31) + getNumberHashCode(this.n2g_1) | 0;
|
|
7251
|
+
result = imul(result, 31) + getNumberHashCode(this.o2g_1) | 0;
|
|
7252
|
+
result = imul(result, 31) + getNumberHashCode(this.p2g_1) | 0;
|
|
7253
|
+
result = imul(result, 31) + getNumberHashCode(this.q2g_1) | 0;
|
|
7254
|
+
result = imul(result, 31) + getNumberHashCode(this.r2g_1) | 0;
|
|
7255
|
+
result = imul(result, 31) + getNumberHashCode(this.s2g_1) | 0;
|
|
7256
|
+
result = imul(result, 31) + getNumberHashCode(this.t2g_1) | 0;
|
|
7257
|
+
result = imul(result, 31) + getNumberHashCode(this.u2g_1) | 0;
|
|
7132
7258
|
return result;
|
|
7133
7259
|
};
|
|
7134
7260
|
protoOf(TunnelDetectorOptions).equals = function (other) {
|
|
@@ -7136,35 +7262,35 @@
|
|
|
7136
7262
|
return true;
|
|
7137
7263
|
if (!(other instanceof TunnelDetectorOptions))
|
|
7138
7264
|
return false;
|
|
7139
|
-
if (!equals(this.
|
|
7265
|
+
if (!equals(this.g2g_1, other.g2g_1))
|
|
7140
7266
|
return false;
|
|
7141
|
-
if (!equals(this.
|
|
7267
|
+
if (!equals(this.h2g_1, other.h2g_1))
|
|
7142
7268
|
return false;
|
|
7143
|
-
if (!equals(this.
|
|
7269
|
+
if (!equals(this.i2g_1, other.i2g_1))
|
|
7144
7270
|
return false;
|
|
7145
|
-
if (!equals(this.
|
|
7271
|
+
if (!equals(this.j2g_1, other.j2g_1))
|
|
7146
7272
|
return false;
|
|
7147
|
-
if (!equals(this.
|
|
7273
|
+
if (!equals(this.k2g_1, other.k2g_1))
|
|
7148
7274
|
return false;
|
|
7149
|
-
if (!equals(this.
|
|
7275
|
+
if (!equals(this.l2g_1, other.l2g_1))
|
|
7150
7276
|
return false;
|
|
7151
|
-
if (!equals(this.
|
|
7277
|
+
if (!equals(this.m2g_1, other.m2g_1))
|
|
7152
7278
|
return false;
|
|
7153
|
-
if (!equals(this.
|
|
7279
|
+
if (!equals(this.n2g_1, other.n2g_1))
|
|
7154
7280
|
return false;
|
|
7155
|
-
if (!equals(this.
|
|
7281
|
+
if (!equals(this.o2g_1, other.o2g_1))
|
|
7156
7282
|
return false;
|
|
7157
|
-
if (!equals(this.
|
|
7283
|
+
if (!equals(this.p2g_1, other.p2g_1))
|
|
7158
7284
|
return false;
|
|
7159
|
-
if (!equals(this.
|
|
7285
|
+
if (!equals(this.q2g_1, other.q2g_1))
|
|
7160
7286
|
return false;
|
|
7161
|
-
if (!equals(this.
|
|
7287
|
+
if (!equals(this.r2g_1, other.r2g_1))
|
|
7162
7288
|
return false;
|
|
7163
|
-
if (!equals(this.
|
|
7289
|
+
if (!equals(this.s2g_1, other.s2g_1))
|
|
7164
7290
|
return false;
|
|
7165
|
-
if (!equals(this.
|
|
7291
|
+
if (!equals(this.t2g_1, other.t2g_1))
|
|
7166
7292
|
return false;
|
|
7167
|
-
if (!equals(this.
|
|
7293
|
+
if (!equals(this.u2g_1, other.u2g_1))
|
|
7168
7294
|
return false;
|
|
7169
7295
|
return true;
|
|
7170
7296
|
};
|
|
@@ -7177,11 +7303,11 @@
|
|
|
7177
7303
|
Companion_instance_2 = new Companion_1();
|
|
7178
7304
|
DeckDetector_instance = new DeckDetector();
|
|
7179
7305
|
DeckProfileBuilder_instance = new DeckProfileBuilder();
|
|
7180
|
-
Companion_instance_4 = new Companion_3();
|
|
7181
|
-
ElevationGain_instance = new ElevationGain();
|
|
7182
7306
|
Companion_instance_5 = new Companion_4();
|
|
7307
|
+
ElevationGain_instance = new ElevationGain();
|
|
7308
|
+
Companion_instance_6 = new Companion_5();
|
|
7183
7309
|
ElevationStep_instance = new ElevationStep();
|
|
7184
|
-
|
|
7310
|
+
Companion_instance_9 = new Companion_8();
|
|
7185
7311
|
PathSimplifier_instance = new PathSimplifier();
|
|
7186
7312
|
PointPerDistance_instance = new PointPerDistance();
|
|
7187
7313
|
PointPerSecond_instance = new PointPerSecond();
|
|
@@ -7191,38 +7317,45 @@
|
|
|
7191
7317
|
_.$_$ = _.$_$ || {};
|
|
7192
7318
|
_.$_$.a = GpxPathKind_ROUTE_getInstance;
|
|
7193
7319
|
_.$_$.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 =
|
|
7320
|
+
_.$_$.c = ElevationCorrectionStatus_APPLIED_getInstance;
|
|
7321
|
+
_.$_$.d = ElevationCorrectionStatus_FETCH_FAILED_getInstance;
|
|
7322
|
+
_.$_$.e = ElevationCorrectionStatus_NONE_FOUND_getInstance;
|
|
7323
|
+
_.$_$.f = ElevationCorrectionStatus_NOT_RUN_getInstance;
|
|
7324
|
+
_.$_$.g = ElevationCorrectionStatus_NO_COVERAGE_getInstance;
|
|
7325
|
+
_.$_$.h = ElevationCorrectionStatus_UNAVAILABLE_getInstance;
|
|
7326
|
+
_.$_$.i = ElevationGainPreset_DEM_getInstance;
|
|
7327
|
+
_.$_$.j = PointField_TEMPERATURE_getInstance;
|
|
7328
|
+
_.$_$.k = GpxParser_instance;
|
|
7329
|
+
_.$_$.l = Companion_getInstance_1;
|
|
7330
|
+
_.$_$.m = GpxWriter_instance;
|
|
7331
|
+
_.$_$.n = CsvWriter_instance;
|
|
7332
|
+
_.$_$.o = JsonWriter_instance;
|
|
7333
|
+
_.$_$.p = Companion_getInstance_3;
|
|
7334
|
+
_.$_$.q = DeckDetector_instance;
|
|
7335
|
+
_.$_$.r = Companion_instance_2;
|
|
7336
|
+
_.$_$.s = DeckProfileBuilder_instance;
|
|
7337
|
+
_.$_$.t = Companion_instance_6;
|
|
7338
|
+
_.$_$.u = ElevationGain_instance;
|
|
7339
|
+
_.$_$.v = ElevationStep_instance;
|
|
7340
|
+
_.$_$.w = PathSimplifier_instance;
|
|
7341
|
+
_.$_$.x = Companion_getInstance_9;
|
|
7342
|
+
_.$_$.y = PointPerDistance_instance;
|
|
7343
|
+
_.$_$.z = PointPerSecond_instance;
|
|
7344
|
+
_.$_$.a1 = Companion_getInstance_10;
|
|
7345
|
+
_.$_$.b1 = TunnelDetector_instance;
|
|
7346
|
+
_.$_$.c1 = GpxWaypoint;
|
|
7347
|
+
_.$_$.d1 = firstTrackAsPath;
|
|
7348
|
+
_.$_$.e1 = pathsToGpxDocument;
|
|
7349
|
+
_.$_$.f1 = segmentsAsPaths;
|
|
7350
|
+
_.$_$.g1 = toGpxDocument;
|
|
7351
|
+
_.$_$.h1 = tracksAsPaths;
|
|
7352
|
+
_.$_$.i1 = CsvOptions;
|
|
7353
|
+
_.$_$.j1 = JsonOptions;
|
|
7354
|
+
_.$_$.k1 = ElevationCorrections;
|
|
7355
|
+
_.$_$.l1 = ElevationGainOptions;
|
|
7356
|
+
_.$_$.m1 = Path;
|
|
7357
|
+
_.$_$.n1 = get_entries_3;
|
|
7358
|
+
_.$_$.o1 = TunnelProfile;
|
|
7226
7359
|
//endregion
|
|
7227
7360
|
return _;
|
|
7228
7361
|
}));
|